]> git.sur5r.net Git - openldap/blob - configure
implement caseIgnoreListMatch (ITS#5608)
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.664 2008/08/26 19:48:17 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2008 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 MYSQL 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_NDB BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SOCK BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_MEMBEROF 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 SLAPD_NDB_LIBS SLAPD_NDB_INCS 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-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1040     --enable-null         enable null backend no|yes|mod [no]
1041     --enable-passwd       enable passwd backend no|yes|mod [no]
1042     --enable-perl         enable perl backend no|yes|mod [no]
1043     --enable-relay        enable relay backend no|yes|mod [yes]
1044     --enable-shell        enable shell backend no|yes|mod [no]
1045     --enable-sock         enable sock backend no|yes|mod [no]
1046     --enable-sql          enable sql backend no|yes|mod [no]
1047
1048 SLAPD Overlay Options:
1049     --enable-overlays     enable all available overlays no|yes|mod
1050     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1051     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1052     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1053     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1054     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1055     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1056     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1057     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1058     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1059     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1060     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1061     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1062     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1063     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1064     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1065     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1066     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1067
1068 Library Generation & Linking Options
1069   --enable-static[=PKGS]
1070                           build static libraries [default=yes]
1071   --enable-shared[=PKGS]
1072                           build shared libraries [default=yes]
1073   --enable-fast-install[=PKGS]
1074                           optimize for fast installation [default=yes]
1075   --disable-dependency-tracking  speeds up one-time build
1076   --enable-dependency-tracking   do not reject slow dependency extractors
1077   --disable-libtool-lock  avoid locking (might break parallel builds)
1078
1079 Optional Packages:
1080   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1081   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1082   --with-subdir=DIR       change default subdirectory used for installs
1083   --with-cyrus-sasl       with Cyrus SASL support [auto]
1084   --with-fetch            with fetch(3) URL support [auto]
1085   --with-threads          with threads [auto]
1086   --with-tls              with TLS/SSL support auto|openssl|gnutls [auto]
1087   --with-yielding-select  with implicitly yielding select [auto]
1088   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1089   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1090   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1091   --with-pic              try to use only PIC/non-PIC objects [default=use
1092                           both]
1093   --with-tags[=TAGS]
1094                           include additional configurations [automatic]
1095
1096 See INSTALL file for further details.
1097
1098 Some influential environment variables:
1099   CC          C compiler command
1100   CFLAGS      C compiler flags
1101   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1102               nonstandard directory <lib dir>
1103   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1104               headers in a nonstandard directory <include dir>
1105   CPP         C preprocessor
1106
1107 Use these variables to override the choices made by `configure' or to help
1108 it to find libraries and programs with nonstandard names/locations.
1109
1110 _ACEOF
1111 fi
1112
1113 if test "$ac_init_help" = "recursive"; then
1114   # If there are subdirs, report their specific --help.
1115   ac_popdir=`pwd`
1116   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1117     test -d $ac_dir || continue
1118     ac_builddir=.
1119
1120 if test "$ac_dir" != .; then
1121   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1122   # A "../" for each directory in $ac_dir_suffix.
1123   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1124 else
1125   ac_dir_suffix= ac_top_builddir=
1126 fi
1127
1128 case $srcdir in
1129   .)  # No --srcdir option.  We are building in place.
1130     ac_srcdir=.
1131     if test -z "$ac_top_builddir"; then
1132        ac_top_srcdir=.
1133     else
1134        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1135     fi ;;
1136   [\\/]* | ?:[\\/]* )  # Absolute path.
1137     ac_srcdir=$srcdir$ac_dir_suffix;
1138     ac_top_srcdir=$srcdir ;;
1139   *) # Relative path.
1140     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1141     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1142 esac
1143
1144 # Do not use `cd foo && pwd` to compute absolute paths, because
1145 # the directories may not exist.
1146 case `pwd` in
1147 .) ac_abs_builddir="$ac_dir";;
1148 *)
1149   case "$ac_dir" in
1150   .) ac_abs_builddir=`pwd`;;
1151   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1152   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1153   esac;;
1154 esac
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *)
1158   case ${ac_top_builddir}. in
1159   .) ac_abs_top_builddir=$ac_abs_builddir;;
1160   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1161   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1162   esac;;
1163 esac
1164 case $ac_abs_builddir in
1165 .) ac_abs_srcdir=$ac_srcdir;;
1166 *)
1167   case $ac_srcdir in
1168   .) ac_abs_srcdir=$ac_abs_builddir;;
1169   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1170   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1171   esac;;
1172 esac
1173 case $ac_abs_builddir in
1174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *)
1176   case $ac_top_srcdir in
1177   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1178   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1179   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1180   esac;;
1181 esac
1182
1183     cd $ac_dir
1184     # Check for guested configure; otherwise get Cygnus style configure.
1185     if test -f $ac_srcdir/configure.gnu; then
1186       echo
1187       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1188     elif test -f $ac_srcdir/configure; then
1189       echo
1190       $SHELL $ac_srcdir/configure  --help=recursive
1191     elif test -f $ac_srcdir/configure.ac ||
1192            test -f $ac_srcdir/configure.in; then
1193       echo
1194       $ac_configure --help
1195     else
1196       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1197     fi
1198     cd $ac_popdir
1199   done
1200 fi
1201
1202 test -n "$ac_init_help" && exit 0
1203 if $ac_init_version; then
1204   cat <<\_ACEOF
1205
1206 Copyright (C) 2003 Free Software Foundation, Inc.
1207 This configure script is free software; the Free Software Foundation
1208 gives unlimited permission to copy, distribute and modify it.
1209
1210 Copyright 1998-2008 The OpenLDAP Foundation. All rights reserved.
1211 Restrictions apply, see COPYRIGHT and LICENSE files.
1212 _ACEOF
1213   exit 0
1214 fi
1215 exec 5>config.log
1216 cat >&5 <<_ACEOF
1217 This file contains any messages produced by compilers while
1218 running configure, to aid debugging if configure makes a mistake.
1219
1220 It was created by $as_me, which was
1221 generated by GNU Autoconf 2.59.  Invocation command line was
1222
1223   $ $0 $@
1224
1225 _ACEOF
1226 {
1227 cat <<_ASUNAME
1228 ## --------- ##
1229 ## Platform. ##
1230 ## --------- ##
1231
1232 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1233 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1234 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1235 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1236 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1237
1238 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1239 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1240
1241 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1242 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1243 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1244 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1245 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1246 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1247 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1248
1249 _ASUNAME
1250
1251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1252 for as_dir in $PATH
1253 do
1254   IFS=$as_save_IFS
1255   test -z "$as_dir" && as_dir=.
1256   echo "PATH: $as_dir"
1257 done
1258
1259 } >&5
1260
1261 cat >&5 <<_ACEOF
1262
1263
1264 ## ----------- ##
1265 ## Core tests. ##
1266 ## ----------- ##
1267
1268 _ACEOF
1269
1270
1271 # Keep a trace of the command line.
1272 # Strip out --no-create and --no-recursion so they do not pile up.
1273 # Strip out --silent because we don't want to record it for future runs.
1274 # Also quote any args containing shell meta-characters.
1275 # Make two passes to allow for proper duplicate-argument suppression.
1276 ac_configure_args=
1277 ac_configure_args0=
1278 ac_configure_args1=
1279 ac_sep=
1280 ac_must_keep_next=false
1281 for ac_pass in 1 2
1282 do
1283   for ac_arg
1284   do
1285     case $ac_arg in
1286     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1287     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288     | -silent | --silent | --silen | --sile | --sil)
1289       continue ;;
1290     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1292     esac
1293     case $ac_pass in
1294     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1295     2)
1296       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1297       if test $ac_must_keep_next = true; then
1298         ac_must_keep_next=false # Got value, back to normal.
1299       else
1300         case $ac_arg in
1301           *=* | --config-cache | -C | -disable-* | --disable-* \
1302           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1303           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1304           | -with-* | --with-* | -without-* | --without-* | --x)
1305             case "$ac_configure_args0 " in
1306               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1307             esac
1308             ;;
1309           -* ) ac_must_keep_next=true ;;
1310         esac
1311       fi
1312       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1313       # Get rid of the leading space.
1314       ac_sep=" "
1315       ;;
1316     esac
1317   done
1318 done
1319 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1320 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1321
1322 # When interrupted or exit'd, cleanup temporary files, and complete
1323 # config.log.  We remove comments because anyway the quotes in there
1324 # would cause problems or look ugly.
1325 # WARNING: Be sure not to use single quotes in there, as some shells,
1326 # such as our DU 5.0 friend, will then `close' the trap.
1327 trap 'exit_status=$?
1328   # Save into config.log some information that might help in debugging.
1329   {
1330     echo
1331
1332     cat <<\_ASBOX
1333 ## ---------------- ##
1334 ## Cache variables. ##
1335 ## ---------------- ##
1336 _ASBOX
1337     echo
1338     # The following way of writing the cache mishandles newlines in values,
1339 {
1340   (set) 2>&1 |
1341     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1342     *ac_space=\ *)
1343       sed -n \
1344         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1345           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1346       ;;
1347     *)
1348       sed -n \
1349         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1350       ;;
1351     esac;
1352 }
1353     echo
1354
1355     cat <<\_ASBOX
1356 ## ----------------- ##
1357 ## Output variables. ##
1358 ## ----------------- ##
1359 _ASBOX
1360     echo
1361     for ac_var in $ac_subst_vars
1362     do
1363       eval ac_val=$`echo $ac_var`
1364       echo "$ac_var='"'"'$ac_val'"'"'"
1365     done | sort
1366     echo
1367
1368     if test -n "$ac_subst_files"; then
1369       cat <<\_ASBOX
1370 ## ------------- ##
1371 ## Output files. ##
1372 ## ------------- ##
1373 _ASBOX
1374       echo
1375       for ac_var in $ac_subst_files
1376       do
1377         eval ac_val=$`echo $ac_var`
1378         echo "$ac_var='"'"'$ac_val'"'"'"
1379       done | sort
1380       echo
1381     fi
1382
1383     if test -s confdefs.h; then
1384       cat <<\_ASBOX
1385 ## ----------- ##
1386 ## confdefs.h. ##
1387 ## ----------- ##
1388 _ASBOX
1389       echo
1390       sed "/^$/d" confdefs.h | sort
1391       echo
1392     fi
1393     test "$ac_signal" != 0 &&
1394       echo "$as_me: caught signal $ac_signal"
1395     echo "$as_me: exit $exit_status"
1396   } >&5
1397   rm -f core *.core &&
1398   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1399     exit $exit_status
1400      ' 0
1401 for ac_signal in 1 2 13 15; do
1402   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1403 done
1404 ac_signal=0
1405
1406 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1407 rm -rf conftest* confdefs.h
1408 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1409 echo >confdefs.h
1410
1411 # Predefined preprocessor variables.
1412
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_NAME "$PACKAGE_NAME"
1415 _ACEOF
1416
1417
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1420 _ACEOF
1421
1422
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1425 _ACEOF
1426
1427
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_STRING "$PACKAGE_STRING"
1430 _ACEOF
1431
1432
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1435 _ACEOF
1436
1437
1438 # Let the site file select an alternate cache file if it wants to.
1439 # Prefer explicitly selected file to automatically selected ones.
1440 if test -z "$CONFIG_SITE"; then
1441   if test "x$prefix" != xNONE; then
1442     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1443   else
1444     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1445   fi
1446 fi
1447 for ac_site_file in $CONFIG_SITE; do
1448   if test -r "$ac_site_file"; then
1449     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1450 echo "$as_me: loading site script $ac_site_file" >&6;}
1451     sed 's/^/| /' "$ac_site_file" >&5
1452     . "$ac_site_file"
1453   fi
1454 done
1455
1456
1457 # Check that the precious variables saved in the cache have kept the same
1458 # value.
1459 ac_cache_corrupted=false
1460 for ac_var in `(set) 2>&1 |
1461                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1462   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1463   eval ac_new_set=\$ac_env_${ac_var}_set
1464   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1465   eval ac_new_val="\$ac_env_${ac_var}_value"
1466   case $ac_old_set,$ac_new_set in
1467     set,)
1468       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1470       ac_cache_corrupted=: ;;
1471     ,set)
1472       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1474       ac_cache_corrupted=: ;;
1475     ,);;
1476     *)
1477       if test "x$ac_old_val" != "x$ac_new_val"; then
1478         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1481 echo "$as_me:   former value:  $ac_old_val" >&2;}
1482         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1483 echo "$as_me:   current value: $ac_new_val" >&2;}
1484         ac_cache_corrupted=:
1485       fi;;
1486   esac
1487   # Pass precious variables to config.status.
1488   if test "$ac_new_set" = set; then
1489     case $ac_new_val in
1490     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1491       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1492     *) ac_arg=$ac_var=$ac_new_val ;;
1493     esac
1494     case " $ac_configure_args " in
1495       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1496       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1497     esac
1498   fi
1499 done
1500 if $ac_cache_corrupted; then
1501   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1502 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1503   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1504 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507
1508 ac_ext=c
1509 ac_cpp='$CPP $CPPFLAGS'
1510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556 ac_aux_dir=
1557 for ac_dir in build $srcdir/build; do
1558   if test -f $ac_dir/install-sh; then
1559     ac_aux_dir=$ac_dir
1560     ac_install_sh="$ac_aux_dir/install-sh -c"
1561     break
1562   elif test -f $ac_dir/install.sh; then
1563     ac_aux_dir=$ac_dir
1564     ac_install_sh="$ac_aux_dir/install.sh -c"
1565     break
1566   elif test -f $ac_dir/shtool; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/shtool install -c"
1569     break
1570   fi
1571 done
1572 if test -z "$ac_aux_dir"; then
1573   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1575    { (exit 1); exit 1; }; }
1576 fi
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580
1581 eval `$ac_aux_dir/version.sh`
1582 if test -z "$OL_STRING"; then
1583         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1584 echo "$as_me: error: could not determine version" >&2;}
1585    { (exit 1); exit 1; }; }
1586 fi
1587
1588 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1589         ac_cv_shtool="$ac_aux_dir/shtool"
1590 else
1591         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1592 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1593    { (exit 1); exit 1; }; }
1594 fi
1595
1596 SHTOOL="$ac_cv_shtool"
1597
1598 TB="" TN=""
1599 if test -t 1; then
1600         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1601         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1602 fi
1603
1604 OPENLDAP_CVS=""
1605 if test -d $ac_aux_dir/CVS; then
1606         OPENLDAP_CVS="(from CVS sources) "
1607 fi
1608
1609 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1610
1611 # Make sure we can run config.sub.
1612 $ac_config_sub sun4 >/dev/null 2>&1 ||
1613   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1614 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1615    { (exit 1); exit 1; }; }
1616
1617 echo "$as_me:$LINENO: checking build system type" >&5
1618 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1619 if test "${ac_cv_build+set}" = set; then
1620   echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622   ac_cv_build_alias=$build_alias
1623 test -z "$ac_cv_build_alias" &&
1624   ac_cv_build_alias=`$ac_config_guess`
1625 test -z "$ac_cv_build_alias" &&
1626   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1627 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1628    { (exit 1); exit 1; }; }
1629 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1630   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1631 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1632    { (exit 1); exit 1; }; }
1633
1634 fi
1635 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1636 echo "${ECHO_T}$ac_cv_build" >&6
1637 build=$ac_cv_build
1638 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1639 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1640 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1641
1642
1643 echo "$as_me:$LINENO: checking host system type" >&5
1644 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1645 if test "${ac_cv_host+set}" = set; then
1646   echo $ECHO_N "(cached) $ECHO_C" >&6
1647 else
1648   ac_cv_host_alias=$host_alias
1649 test -z "$ac_cv_host_alias" &&
1650   ac_cv_host_alias=$ac_cv_build_alias
1651 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1652   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1653 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1654    { (exit 1); exit 1; }; }
1655
1656 fi
1657 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1658 echo "${ECHO_T}$ac_cv_host" >&6
1659 host=$ac_cv_host
1660 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1661 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1662 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1663
1664
1665 echo "$as_me:$LINENO: checking target system type" >&5
1666 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1667 if test "${ac_cv_target+set}" = set; then
1668   echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670   ac_cv_target_alias=$target_alias
1671 test "x$ac_cv_target_alias" = "x" &&
1672   ac_cv_target_alias=$ac_cv_host_alias
1673 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1674   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1675 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1676    { (exit 1); exit 1; }; }
1677
1678 fi
1679 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1680 echo "${ECHO_T}$ac_cv_target" >&6
1681 target=$ac_cv_target
1682 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1683 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1684 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685
1686
1687 # The aliases save the names the user supplied, while $host etc.
1688 # will get canonicalized.
1689 test -n "$target_alias" &&
1690   test "$program_prefix$program_suffix$program_transform_name" = \
1691     NONENONEs,x,x, &&
1692   program_prefix=${target_alias}-
1693
1694 am__api_version="1.9"
1695 # Find a good install program.  We prefer a C program (faster),
1696 # so one script is as good as another.  But avoid the broken or
1697 # incompatible versions:
1698 # SysV /etc/install, /usr/sbin/install
1699 # SunOS /usr/etc/install
1700 # IRIX /sbin/install
1701 # AIX /bin/install
1702 # AmigaOS /C/install, which installs bootblocks on floppy discs
1703 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1704 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1705 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1706 # OS/2's system install, which has a completely different semantic
1707 # ./install, which can be erroneously created by make from ./install.sh.
1708 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1709 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1710 if test -z "$INSTALL"; then
1711 if test "${ac_cv_path_install+set}" = set; then
1712   echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717   IFS=$as_save_IFS
1718   test -z "$as_dir" && as_dir=.
1719   # Account for people who put trailing slashes in PATH elements.
1720 case $as_dir/ in
1721   ./ | .// | /cC/* | \
1722   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1723   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1724   /usr/ucb/* ) ;;
1725   *)
1726     # OSF1 and SCO ODT 3.0 have their own names for install.
1727     # Don't use installbsd from OSF since it installs stuff as root
1728     # by default.
1729     for ac_prog in ginstall scoinst install; do
1730       for ac_exec_ext in '' $ac_executable_extensions; do
1731         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1732           if test $ac_prog = install &&
1733             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1734             # AIX install.  It has an incompatible calling convention.
1735             :
1736           elif test $ac_prog = install &&
1737             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738             # program-specific install script used by HP pwplus--don't use.
1739             :
1740           else
1741             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1742             break 3
1743           fi
1744         fi
1745       done
1746     done
1747     ;;
1748 esac
1749 done
1750
1751
1752 fi
1753   if test "${ac_cv_path_install+set}" = set; then
1754     INSTALL=$ac_cv_path_install
1755   else
1756     # As a last resort, use the slow shell script.  We don't cache a
1757     # path for INSTALL within a source directory, because that will
1758     # break other packages using the cache if that directory is
1759     # removed, or if the path is relative.
1760     INSTALL=$ac_install_sh
1761   fi
1762 fi
1763 echo "$as_me:$LINENO: result: $INSTALL" >&5
1764 echo "${ECHO_T}$INSTALL" >&6
1765
1766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1767 # It thinks the first close brace ends the variable substitution.
1768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1769
1770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1771
1772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1773
1774 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1775 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1776 # Just in case
1777 sleep 1
1778 echo timestamp > conftest.file
1779 # Do `set' in a subshell so we don't clobber the current shell's
1780 # arguments.  Must try -L first in case configure is actually a
1781 # symlink; some systems play weird games with the mod time of symlinks
1782 # (eg FreeBSD returns the mod time of the symlink's containing
1783 # directory).
1784 if (
1785    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1786    if test "$*" = "X"; then
1787       # -L didn't work.
1788       set X `ls -t $srcdir/configure conftest.file`
1789    fi
1790    rm -f conftest.file
1791    if test "$*" != "X $srcdir/configure conftest.file" \
1792       && test "$*" != "X conftest.file $srcdir/configure"; then
1793
1794       # If neither matched, then we have a broken ls.  This can happen
1795       # if, for instance, CONFIG_SHELL is bash and it inherits a
1796       # broken ls alias from the environment.  This has actually
1797       # happened.  Such a system could not be considered "sane".
1798       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1799 alias in your environment" >&5
1800 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1801 alias in your environment" >&2;}
1802    { (exit 1); exit 1; }; }
1803    fi
1804
1805    test "$2" = conftest.file
1806    )
1807 then
1808    # Ok.
1809    :
1810 else
1811    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1812 Check your system clock" >&5
1813 echo "$as_me: error: newly created file is older than distributed files!
1814 Check your system clock" >&2;}
1815    { (exit 1); exit 1; }; }
1816 fi
1817 echo "$as_me:$LINENO: result: yes" >&5
1818 echo "${ECHO_T}yes" >&6
1819 test "$program_prefix" != NONE &&
1820   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1821 # Use a double $ so make ignores it.
1822 test "$program_suffix" != NONE &&
1823   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1824 # Double any \ or $.  echo might interpret backslashes.
1825 # By default was `s,x,x', remove it if useless.
1826 cat <<\_ACEOF >conftest.sed
1827 s/[\\$]/&&/g;s/;s,x,x,$//
1828 _ACEOF
1829 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1830 rm conftest.sed
1831
1832 # expand $ac_aux_dir to an absolute path
1833 am_aux_dir=`cd $ac_aux_dir && pwd`
1834
1835 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1836 # Use eval to expand $SHELL
1837 if eval "$MISSING --run true"; then
1838   am_missing_run="$MISSING --run "
1839 else
1840   am_missing_run=
1841   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1842 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1843 fi
1844
1845 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1846   # We used to keeping the `.' as first argument, in order to
1847   # allow $(mkdir_p) to be used without argument.  As in
1848   #   $(mkdir_p) $(somedir)
1849   # where $(somedir) is conditionally defined.  However this is wrong
1850   # for two reasons:
1851   #  1. if the package is installed by a user who cannot write `.'
1852   #     make install will fail,
1853   #  2. the above comment should most certainly read
1854   #     $(mkdir_p) $(DESTDIR)$(somedir)
1855   #     so it does not work when $(somedir) is undefined and
1856   #     $(DESTDIR) is not.
1857   #  To support the latter case, we have to write
1858   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1859   #  so the `.' trick is pointless.
1860   mkdir_p='mkdir -p --'
1861 else
1862   # On NextStep and OpenStep, the `mkdir' command does not
1863   # recognize any option.  It will interpret all options as
1864   # directories to create, and then abort because `.' already
1865   # exists.
1866   for d in ./-p ./--version;
1867   do
1868     test -d $d && rmdir $d
1869   done
1870   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1871   if test -f "$ac_aux_dir/mkinstalldirs"; then
1872     mkdir_p='$(mkinstalldirs)'
1873   else
1874     mkdir_p='$(install_sh) -d'
1875   fi
1876 fi
1877
1878 for ac_prog in gawk mawk nawk awk
1879 do
1880   # Extract the first word of "$ac_prog", so it can be a program name with args.
1881 set dummy $ac_prog; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_AWK+set}" = set; then
1885   echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887   if test -n "$AWK"; then
1888   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1892 do
1893   IFS=$as_save_IFS
1894   test -z "$as_dir" && as_dir=.
1895   for ac_exec_ext in '' $ac_executable_extensions; do
1896   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897     ac_cv_prog_AWK="$ac_prog"
1898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899     break 2
1900   fi
1901 done
1902 done
1903
1904 fi
1905 fi
1906 AWK=$ac_cv_prog_AWK
1907 if test -n "$AWK"; then
1908   echo "$as_me:$LINENO: result: $AWK" >&5
1909 echo "${ECHO_T}$AWK" >&6
1910 else
1911   echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1913 fi
1914
1915   test -n "$AWK" && break
1916 done
1917
1918 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1919 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1920 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1921 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1922   echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924   cat >conftest.make <<\_ACEOF
1925 all:
1926         @echo 'ac_maketemp="$(MAKE)"'
1927 _ACEOF
1928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1929 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1930 if test -n "$ac_maketemp"; then
1931   eval ac_cv_prog_make_${ac_make}_set=yes
1932 else
1933   eval ac_cv_prog_make_${ac_make}_set=no
1934 fi
1935 rm -f conftest.make
1936 fi
1937 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1938   echo "$as_me:$LINENO: result: yes" >&5
1939 echo "${ECHO_T}yes" >&6
1940   SET_MAKE=
1941 else
1942   echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1944   SET_MAKE="MAKE=${MAKE-make}"
1945 fi
1946
1947 rm -rf .tst 2>/dev/null
1948 mkdir .tst 2>/dev/null
1949 if test -d .tst; then
1950   am__leading_dot=.
1951 else
1952   am__leading_dot=_
1953 fi
1954 rmdir .tst 2>/dev/null
1955
1956 # test to see if srcdir already configured
1957 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1958    test -f $srcdir/config.status; then
1959   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1960 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1961    { (exit 1); exit 1; }; }
1962 fi
1963
1964 # test whether we have cygpath
1965 if test -z "$CYGPATH_W"; then
1966   if (cygpath --version) >/dev/null 2>/dev/null; then
1967     CYGPATH_W='cygpath -w'
1968   else
1969     CYGPATH_W=echo
1970   fi
1971 fi
1972
1973
1974 # Define the identity of the package.
1975  PACKAGE=$OL_PACKAGE
1976  VERSION=$OL_VERSION
1977
1978
1979 # Some tools Automake needs.
1980
1981 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1982
1983
1984 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1985
1986
1987 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1988
1989
1990 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1991
1992
1993 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1994
1995 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1996
1997 # Installed binaries are usually stripped using `strip' when the user
1998 # run `make install-strip'.  However `strip' might not be the right
1999 # tool to use in cross-compilation environments, therefore Automake
2000 # will honor the `STRIP' environment variable to overrule this program.
2001 if test "$cross_compiling" != no; then
2002   if test -n "$ac_tool_prefix"; then
2003   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2004 set dummy ${ac_tool_prefix}strip; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_STRIP+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$STRIP"; then
2011   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026
2027 fi
2028 fi
2029 STRIP=$ac_cv_prog_STRIP
2030 if test -n "$STRIP"; then
2031   echo "$as_me:$LINENO: result: $STRIP" >&5
2032 echo "${ECHO_T}$STRIP" >&6
2033 else
2034   echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038 fi
2039 if test -z "$ac_cv_prog_STRIP"; then
2040   ac_ct_STRIP=$STRIP
2041   # Extract the first word of "strip", so it can be a program name with args.
2042 set dummy strip; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   if test -n "$ac_ct_STRIP"; then
2049   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054   IFS=$as_save_IFS
2055   test -z "$as_dir" && as_dir=.
2056   for ac_exec_ext in '' $ac_executable_extensions; do
2057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058     ac_cv_prog_ac_ct_STRIP="strip"
2059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060     break 2
2061   fi
2062 done
2063 done
2064
2065   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2066 fi
2067 fi
2068 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2069 if test -n "$ac_ct_STRIP"; then
2070   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2071 echo "${ECHO_T}$ac_ct_STRIP" >&6
2072 else
2073   echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6
2075 fi
2076
2077   STRIP=$ac_ct_STRIP
2078 else
2079   STRIP="$ac_cv_prog_STRIP"
2080 fi
2081
2082 fi
2083 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2084
2085 # We need awk for the "check" target.  The system "awk" is bad on
2086 # some platforms.
2087 # Always define AMTAR for backward compatibility.
2088
2089 AMTAR=${AMTAR-"${am_missing_run}tar"}
2090
2091 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2092
2093
2094
2095
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define OPENLDAP_PACKAGE "$PACKAGE"
2099 _ACEOF
2100
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define OPENLDAP_VERSION "$VERSION"
2104 _ACEOF
2105
2106
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define LDAP_VENDOR_VERSION $OL_API_INC
2110 _ACEOF
2111
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2115 _ACEOF
2116
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2120 _ACEOF
2121
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2125 _ACEOF
2126
2127
2128 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2129
2130 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2131
2132 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2133
2134
2135
2136
2137
2138
2139
2140           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2141
2142           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2143
2144           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2145
2146
2147 echo "$as_me:$LINENO: checking configure arguments" >&5
2148 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2149
2150
2151 top_builddir=`pwd`
2152
2153 ldap_subdir="/openldap"
2154
2155
2156 # Check whether --with-subdir or --without-subdir was given.
2157 if test "${with_subdir+set}" = set; then
2158   withval="$with_subdir"
2159   case "$withval" in
2160         no) ldap_subdir=""
2161                 ;;
2162         yes)
2163                 ;;
2164         /*|\\*)
2165                 ldap_subdir="$withval"
2166                 ;;
2167         *)
2168                 ldap_subdir="/$withval"
2169                 ;;
2170 esac
2171
2172 fi;
2173
2174 # OpenLDAP --enable-debug
2175
2176         # Check whether --enable-debug or --disable-debug was given.
2177 if test "${enable_debug+set}" = set; then
2178   enableval="$enable_debug"
2179
2180         ol_arg=invalid
2181         for ol_val in no yes traditional ; do
2182                 if test "$enableval" = "$ol_val" ; then
2183                         ol_arg="$ol_val"
2184                 fi
2185         done
2186         if test "$ol_arg" = "invalid" ; then
2187                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2188 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2189    { (exit 1); exit 1; }; }
2190         fi
2191         ol_enable_debug="$ol_arg"
2192
2193 else
2194         ol_enable_debug=yes
2195 fi;
2196 # end --enable-debug
2197 # OpenLDAP --enable-dynamic
2198
2199         # Check whether --enable-dynamic or --disable-dynamic was given.
2200 if test "${enable_dynamic+set}" = set; then
2201   enableval="$enable_dynamic"
2202
2203         ol_arg=invalid
2204         for ol_val in auto yes no ; do
2205                 if test "$enableval" = "$ol_val" ; then
2206                         ol_arg="$ol_val"
2207                 fi
2208         done
2209         if test "$ol_arg" = "invalid" ; then
2210                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2211 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2212    { (exit 1); exit 1; }; }
2213         fi
2214         ol_enable_dynamic="$ol_arg"
2215
2216 else
2217         ol_enable_dynamic=no
2218 fi;
2219 # end --enable-dynamic
2220 # OpenLDAP --enable-syslog
2221
2222         # Check whether --enable-syslog or --disable-syslog was given.
2223 if test "${enable_syslog+set}" = set; then
2224   enableval="$enable_syslog"
2225
2226         ol_arg=invalid
2227         for ol_val in auto yes no ; do
2228                 if test "$enableval" = "$ol_val" ; then
2229                         ol_arg="$ol_val"
2230                 fi
2231         done
2232         if test "$ol_arg" = "invalid" ; then
2233                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2234 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2235    { (exit 1); exit 1; }; }
2236         fi
2237         ol_enable_syslog="$ol_arg"
2238
2239 else
2240         ol_enable_syslog=auto
2241 fi;
2242 # end --enable-syslog
2243 # OpenLDAP --enable-proctitle
2244
2245         # Check whether --enable-proctitle or --disable-proctitle was given.
2246 if test "${enable_proctitle+set}" = set; then
2247   enableval="$enable_proctitle"
2248
2249         ol_arg=invalid
2250         for ol_val in auto yes no ; do
2251                 if test "$enableval" = "$ol_val" ; then
2252                         ol_arg="$ol_val"
2253                 fi
2254         done
2255         if test "$ol_arg" = "invalid" ; then
2256                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2257 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2258    { (exit 1); exit 1; }; }
2259         fi
2260         ol_enable_proctitle="$ol_arg"
2261
2262 else
2263         ol_enable_proctitle=yes
2264 fi;
2265 # end --enable-proctitle
2266 ol_enable_referrals=${ol_enable_referrals-no}
2267 # OpenLDAP --enable-ipv6
2268
2269         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2270 if test "${enable_ipv6+set}" = set; then
2271   enableval="$enable_ipv6"
2272
2273         ol_arg=invalid
2274         for ol_val in auto yes no ; do
2275                 if test "$enableval" = "$ol_val" ; then
2276                         ol_arg="$ol_val"
2277                 fi
2278         done
2279         if test "$ol_arg" = "invalid" ; then
2280                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2281 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2282    { (exit 1); exit 1; }; }
2283         fi
2284         ol_enable_ipv6="$ol_arg"
2285
2286 else
2287         ol_enable_ipv6=auto
2288 fi;
2289 # end --enable-ipv6
2290 # OpenLDAP --enable-local
2291
2292         # Check whether --enable-local or --disable-local was given.
2293 if test "${enable_local+set}" = set; then
2294   enableval="$enable_local"
2295
2296         ol_arg=invalid
2297         for ol_val in auto yes no ; do
2298                 if test "$enableval" = "$ol_val" ; then
2299                         ol_arg="$ol_val"
2300                 fi
2301         done
2302         if test "$ol_arg" = "invalid" ; then
2303                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2304 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2305    { (exit 1); exit 1; }; }
2306         fi
2307         ol_enable_local="$ol_arg"
2308
2309 else
2310         ol_enable_local=auto
2311 fi;
2312 # end --enable-local
2313
2314 # OpenLDAP --with-cyrus_sasl
2315
2316 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2317 if test "${with_cyrus_sasl+set}" = set; then
2318   withval="$with_cyrus_sasl"
2319
2320         ol_arg=invalid
2321         for ol_val in auto yes no  ; do
2322                 if test "$withval" = "$ol_val" ; then
2323                         ol_arg="$ol_val"
2324                 fi
2325         done
2326         if test "$ol_arg" = "invalid" ; then
2327                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2328 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2329    { (exit 1); exit 1; }; }
2330         fi
2331         ol_with_cyrus_sasl="$ol_arg"
2332
2333 else
2334         ol_with_cyrus_sasl="auto"
2335 fi; # end --with-cyrus_sasl
2336
2337 # OpenLDAP --with-fetch
2338
2339 # Check whether --with-fetch or --without-fetch was given.
2340 if test "${with_fetch+set}" = set; then
2341   withval="$with_fetch"
2342
2343         ol_arg=invalid
2344         for ol_val in auto yes no  ; do
2345                 if test "$withval" = "$ol_val" ; then
2346                         ol_arg="$ol_val"
2347                 fi
2348         done
2349         if test "$ol_arg" = "invalid" ; then
2350                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2351 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2352    { (exit 1); exit 1; }; }
2353         fi
2354         ol_with_fetch="$ol_arg"
2355
2356 else
2357         ol_with_fetch="auto"
2358 fi; # end --with-fetch
2359
2360 # OpenLDAP --with-threads
2361
2362 # Check whether --with-threads or --without-threads was given.
2363 if test "${with_threads+set}" = set; then
2364   withval="$with_threads"
2365
2366         ol_arg=invalid
2367         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2368                 if test "$withval" = "$ol_val" ; then
2369                         ol_arg="$ol_val"
2370                 fi
2371         done
2372         if test "$ol_arg" = "invalid" ; then
2373                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2374 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2375    { (exit 1); exit 1; }; }
2376         fi
2377         ol_with_threads="$ol_arg"
2378
2379 else
2380         ol_with_threads="auto"
2381 fi; # end --with-threads
2382
2383 # OpenLDAP --with-tls
2384
2385 # Check whether --with-tls or --without-tls was given.
2386 if test "${with_tls+set}" = set; then
2387   withval="$with_tls"
2388
2389         ol_arg=invalid
2390         for ol_val in auto openssl gnutls yes no  ; do
2391                 if test "$withval" = "$ol_val" ; then
2392                         ol_arg="$ol_val"
2393                 fi
2394         done
2395         if test "$ol_arg" = "invalid" ; then
2396                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2397 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2398    { (exit 1); exit 1; }; }
2399         fi
2400         ol_with_tls="$ol_arg"
2401
2402 else
2403         ol_with_tls="auto"
2404 fi; # end --with-tls
2405
2406 # OpenLDAP --with-yielding_select
2407
2408 # Check whether --with-yielding_select or --without-yielding_select was given.
2409 if test "${with_yielding_select+set}" = set; then
2410   withval="$with_yielding_select"
2411
2412         ol_arg=invalid
2413         for ol_val in auto yes no manual  ; do
2414                 if test "$withval" = "$ol_val" ; then
2415                         ol_arg="$ol_val"
2416                 fi
2417         done
2418         if test "$ol_arg" = "invalid" ; then
2419                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2420 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2421    { (exit 1); exit 1; }; }
2422         fi
2423         ol_with_yielding_select="$ol_arg"
2424
2425 else
2426         ol_with_yielding_select="auto"
2427 fi; # end --with-yielding_select
2428
2429 # OpenLDAP --with-mp
2430
2431 # Check whether --with-mp or --without-mp was given.
2432 if test "${with_mp+set}" = set; then
2433   withval="$with_mp"
2434
2435         ol_arg=invalid
2436         for ol_val in auto longlong long bignum gmp yes no ; do
2437                 if test "$withval" = "$ol_val" ; then
2438                         ol_arg="$ol_val"
2439                 fi
2440         done
2441         if test "$ol_arg" = "invalid" ; then
2442                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2443 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2444    { (exit 1); exit 1; }; }
2445         fi
2446         ol_with_mp="$ol_arg"
2447
2448 else
2449         ol_with_mp="auto"
2450 fi; # end --with-mp
2451
2452 # OpenLDAP --with-odbc
2453
2454 # Check whether --with-odbc or --without-odbc was given.
2455 if test "${with_odbc+set}" = set; then
2456   withval="$with_odbc"
2457
2458         ol_arg=invalid
2459         for ol_val in auto iodbc unixodbc odbc32  ; do
2460                 if test "$withval" = "$ol_val" ; then
2461                         ol_arg="$ol_val"
2462                 fi
2463         done
2464         if test "$ol_arg" = "invalid" ; then
2465                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2466 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2467    { (exit 1); exit 1; }; }
2468         fi
2469         ol_with_odbc="$ol_arg"
2470
2471 else
2472         ol_with_odbc="auto"
2473 fi; # end --with-odbc
2474
2475
2476
2477 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2478 if test "${enable_xxslapdoptions+set}" = set; then
2479   enableval="$enable_xxslapdoptions"
2480
2481 fi;
2482 # OpenLDAP --enable-slapd
2483
2484         # Check whether --enable-slapd or --disable-slapd was given.
2485 if test "${enable_slapd+set}" = set; then
2486   enableval="$enable_slapd"
2487
2488         ol_arg=invalid
2489         for ol_val in auto yes no ; do
2490                 if test "$enableval" = "$ol_val" ; then
2491                         ol_arg="$ol_val"
2492                 fi
2493         done
2494         if test "$ol_arg" = "invalid" ; then
2495                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2496 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2497    { (exit 1); exit 1; }; }
2498         fi
2499         ol_enable_slapd="$ol_arg"
2500
2501 else
2502         ol_enable_slapd=yes
2503 fi;
2504 # end --enable-slapd
2505 # OpenLDAP --enable-dynacl
2506
2507         # Check whether --enable-dynacl or --disable-dynacl was given.
2508 if test "${enable_dynacl+set}" = set; then
2509   enableval="$enable_dynacl"
2510
2511         ol_arg=invalid
2512         for ol_val in auto yes no ; do
2513                 if test "$enableval" = "$ol_val" ; then
2514                         ol_arg="$ol_val"
2515                 fi
2516         done
2517         if test "$ol_arg" = "invalid" ; then
2518                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2519 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2520    { (exit 1); exit 1; }; }
2521         fi
2522         ol_enable_dynacl="$ol_arg"
2523
2524 else
2525         ol_enable_dynacl=no
2526 fi;
2527 # end --enable-dynacl
2528 # OpenLDAP --enable-aci
2529
2530         # Check whether --enable-aci or --disable-aci was given.
2531 if test "${enable_aci+set}" = set; then
2532   enableval="$enable_aci"
2533
2534         ol_arg=invalid
2535         for ol_val in no yes mod ; do
2536                 if test "$enableval" = "$ol_val" ; then
2537                         ol_arg="$ol_val"
2538                 fi
2539         done
2540         if test "$ol_arg" = "invalid" ; then
2541                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2542 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2543    { (exit 1); exit 1; }; }
2544         fi
2545         ol_enable_aci="$ol_arg"
2546
2547 else
2548         ol_enable_aci=no
2549 fi;
2550 # end --enable-aci
2551 # OpenLDAP --enable-cleartext
2552
2553         # Check whether --enable-cleartext or --disable-cleartext was given.
2554 if test "${enable_cleartext+set}" = set; then
2555   enableval="$enable_cleartext"
2556
2557         ol_arg=invalid
2558         for ol_val in auto yes no ; do
2559                 if test "$enableval" = "$ol_val" ; then
2560                         ol_arg="$ol_val"
2561                 fi
2562         done
2563         if test "$ol_arg" = "invalid" ; then
2564                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2565 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2566    { (exit 1); exit 1; }; }
2567         fi
2568         ol_enable_cleartext="$ol_arg"
2569
2570 else
2571         ol_enable_cleartext=yes
2572 fi;
2573 # end --enable-cleartext
2574 # OpenLDAP --enable-crypt
2575
2576         # Check whether --enable-crypt or --disable-crypt was given.
2577 if test "${enable_crypt+set}" = set; then
2578   enableval="$enable_crypt"
2579
2580         ol_arg=invalid
2581         for ol_val in auto yes no ; do
2582                 if test "$enableval" = "$ol_val" ; then
2583                         ol_arg="$ol_val"
2584                 fi
2585         done
2586         if test "$ol_arg" = "invalid" ; then
2587                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2588 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2589    { (exit 1); exit 1; }; }
2590         fi
2591         ol_enable_crypt="$ol_arg"
2592
2593 else
2594         ol_enable_crypt=no
2595 fi;
2596 # end --enable-crypt
2597 # OpenLDAP --enable-lmpasswd
2598
2599         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2600 if test "${enable_lmpasswd+set}" = set; then
2601   enableval="$enable_lmpasswd"
2602
2603         ol_arg=invalid
2604         for ol_val in auto yes no ; do
2605                 if test "$enableval" = "$ol_val" ; then
2606                         ol_arg="$ol_val"
2607                 fi
2608         done
2609         if test "$ol_arg" = "invalid" ; then
2610                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2611 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2612    { (exit 1); exit 1; }; }
2613         fi
2614         ol_enable_lmpasswd="$ol_arg"
2615
2616 else
2617         ol_enable_lmpasswd=no
2618 fi;
2619 # end --enable-lmpasswd
2620 # OpenLDAP --enable-spasswd
2621
2622         # Check whether --enable-spasswd or --disable-spasswd was given.
2623 if test "${enable_spasswd+set}" = set; then
2624   enableval="$enable_spasswd"
2625
2626         ol_arg=invalid
2627         for ol_val in auto yes no ; do
2628                 if test "$enableval" = "$ol_val" ; then
2629                         ol_arg="$ol_val"
2630                 fi
2631         done
2632         if test "$ol_arg" = "invalid" ; then
2633                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2634 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2635    { (exit 1); exit 1; }; }
2636         fi
2637         ol_enable_spasswd="$ol_arg"
2638
2639 else
2640         ol_enable_spasswd=no
2641 fi;
2642 # end --enable-spasswd
2643 # OpenLDAP --enable-modules
2644
2645         # Check whether --enable-modules or --disable-modules was given.
2646 if test "${enable_modules+set}" = set; then
2647   enableval="$enable_modules"
2648
2649         ol_arg=invalid
2650         for ol_val in auto yes no ; do
2651                 if test "$enableval" = "$ol_val" ; then
2652                         ol_arg="$ol_val"
2653                 fi
2654         done
2655         if test "$ol_arg" = "invalid" ; then
2656                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2657 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2658    { (exit 1); exit 1; }; }
2659         fi
2660         ol_enable_modules="$ol_arg"
2661
2662 else
2663         ol_enable_modules=no
2664 fi;
2665 # end --enable-modules
2666 # OpenLDAP --enable-rewrite
2667
2668         # Check whether --enable-rewrite or --disable-rewrite was given.
2669 if test "${enable_rewrite+set}" = set; then
2670   enableval="$enable_rewrite"
2671
2672         ol_arg=invalid
2673         for ol_val in auto yes no ; do
2674                 if test "$enableval" = "$ol_val" ; then
2675                         ol_arg="$ol_val"
2676                 fi
2677         done
2678         if test "$ol_arg" = "invalid" ; then
2679                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2680 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2681    { (exit 1); exit 1; }; }
2682         fi
2683         ol_enable_rewrite="$ol_arg"
2684
2685 else
2686         ol_enable_rewrite=auto
2687 fi;
2688 # end --enable-rewrite
2689 # OpenLDAP --enable-rlookups
2690
2691         # Check whether --enable-rlookups or --disable-rlookups was given.
2692 if test "${enable_rlookups+set}" = set; then
2693   enableval="$enable_rlookups"
2694
2695         ol_arg=invalid
2696         for ol_val in auto yes no ; do
2697                 if test "$enableval" = "$ol_val" ; then
2698                         ol_arg="$ol_val"
2699                 fi
2700         done
2701         if test "$ol_arg" = "invalid" ; then
2702                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2703 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2704    { (exit 1); exit 1; }; }
2705         fi
2706         ol_enable_rlookups="$ol_arg"
2707
2708 else
2709         ol_enable_rlookups=no
2710 fi;
2711 # end --enable-rlookups
2712 # OpenLDAP --enable-slapi
2713
2714         # Check whether --enable-slapi or --disable-slapi was given.
2715 if test "${enable_slapi+set}" = set; then
2716   enableval="$enable_slapi"
2717
2718         ol_arg=invalid
2719         for ol_val in auto yes no ; do
2720                 if test "$enableval" = "$ol_val" ; then
2721                         ol_arg="$ol_val"
2722                 fi
2723         done
2724         if test "$ol_arg" = "invalid" ; then
2725                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2726 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2727    { (exit 1); exit 1; }; }
2728         fi
2729         ol_enable_slapi="$ol_arg"
2730
2731 else
2732         ol_enable_slapi=no
2733 fi;
2734 # end --enable-slapi
2735 # OpenLDAP --enable-slp
2736
2737         # Check whether --enable-slp or --disable-slp was given.
2738 if test "${enable_slp+set}" = set; then
2739   enableval="$enable_slp"
2740
2741         ol_arg=invalid
2742         for ol_val in auto yes no ; do
2743                 if test "$enableval" = "$ol_val" ; then
2744                         ol_arg="$ol_val"
2745                 fi
2746         done
2747         if test "$ol_arg" = "invalid" ; then
2748                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2749 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2750    { (exit 1); exit 1; }; }
2751         fi
2752         ol_enable_slp="$ol_arg"
2753
2754 else
2755         ol_enable_slp=no
2756 fi;
2757 # end --enable-slp
2758 # OpenLDAP --enable-wrappers
2759
2760         # Check whether --enable-wrappers or --disable-wrappers was given.
2761 if test "${enable_wrappers+set}" = set; then
2762   enableval="$enable_wrappers"
2763
2764         ol_arg=invalid
2765         for ol_val in auto yes no ; do
2766                 if test "$enableval" = "$ol_val" ; then
2767                         ol_arg="$ol_val"
2768                 fi
2769         done
2770         if test "$ol_arg" = "invalid" ; then
2771                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2772 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2773    { (exit 1); exit 1; }; }
2774         fi
2775         ol_enable_wrappers="$ol_arg"
2776
2777 else
2778         ol_enable_wrappers=no
2779 fi;
2780 # end --enable-wrappers
2781
2782 Backends="bdb \
2783         dnssrv \
2784         hdb \
2785         ldap \
2786         meta \
2787         monitor \
2788         ndb \
2789         null \
2790         passwd \
2791         perl \
2792         relay \
2793         shell \
2794         sock \
2795         sql"
2796
2797 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2798 if test "${enable_xxslapbackends+set}" = set; then
2799   enableval="$enable_xxslapbackends"
2800
2801 fi;
2802
2803 # OpenLDAP --enable-backends
2804
2805         # Check whether --enable-backends or --disable-backends was given.
2806 if test "${enable_backends+set}" = set; then
2807   enableval="$enable_backends"
2808
2809         ol_arg=invalid
2810         for ol_val in no yes mod ; do
2811                 if test "$enableval" = "$ol_val" ; then
2812                         ol_arg="$ol_val"
2813                 fi
2814         done
2815         if test "$ol_arg" = "invalid" ; then
2816                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2817 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2818    { (exit 1); exit 1; }; }
2819         fi
2820         ol_enable_backends="$ol_arg"
2821
2822 fi;
2823 # end --enable-backends
2824 # OpenLDAP --enable-bdb
2825
2826         # Check whether --enable-bdb or --disable-bdb was given.
2827 if test "${enable_bdb+set}" = set; then
2828   enableval="$enable_bdb"
2829
2830         ol_arg=invalid
2831         for ol_val in no yes mod ; do
2832                 if test "$enableval" = "$ol_val" ; then
2833                         ol_arg="$ol_val"
2834                 fi
2835         done
2836         if test "$ol_arg" = "invalid" ; then
2837                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2838 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2839    { (exit 1); exit 1; }; }
2840         fi
2841         ol_enable_bdb="$ol_arg"
2842
2843 else
2844         ol_enable_bdb=${ol_enable_backends:-yes}
2845 fi;
2846 # end --enable-bdb
2847 # OpenLDAP --enable-dnssrv
2848
2849         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2850 if test "${enable_dnssrv+set}" = set; then
2851   enableval="$enable_dnssrv"
2852
2853         ol_arg=invalid
2854         for ol_val in no yes mod ; do
2855                 if test "$enableval" = "$ol_val" ; then
2856                         ol_arg="$ol_val"
2857                 fi
2858         done
2859         if test "$ol_arg" = "invalid" ; then
2860                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2861 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2862    { (exit 1); exit 1; }; }
2863         fi
2864         ol_enable_dnssrv="$ol_arg"
2865
2866 else
2867         ol_enable_dnssrv=${ol_enable_backends:-no}
2868 fi;
2869 # end --enable-dnssrv
2870 # OpenLDAP --enable-hdb
2871
2872         # Check whether --enable-hdb or --disable-hdb was given.
2873 if test "${enable_hdb+set}" = set; then
2874   enableval="$enable_hdb"
2875
2876         ol_arg=invalid
2877         for ol_val in no yes mod ; do
2878                 if test "$enableval" = "$ol_val" ; then
2879                         ol_arg="$ol_val"
2880                 fi
2881         done
2882         if test "$ol_arg" = "invalid" ; then
2883                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2884 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2885    { (exit 1); exit 1; }; }
2886         fi
2887         ol_enable_hdb="$ol_arg"
2888
2889 else
2890         ol_enable_hdb=${ol_enable_backends:-yes}
2891 fi;
2892 # end --enable-hdb
2893 # OpenLDAP --enable-ldap
2894
2895         # Check whether --enable-ldap or --disable-ldap was given.
2896 if test "${enable_ldap+set}" = set; then
2897   enableval="$enable_ldap"
2898
2899         ol_arg=invalid
2900         for ol_val in no yes mod ; do
2901                 if test "$enableval" = "$ol_val" ; then
2902                         ol_arg="$ol_val"
2903                 fi
2904         done
2905         if test "$ol_arg" = "invalid" ; then
2906                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2907 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2908    { (exit 1); exit 1; }; }
2909         fi
2910         ol_enable_ldap="$ol_arg"
2911
2912 else
2913         ol_enable_ldap=${ol_enable_backends:-no}
2914 fi;
2915 # end --enable-ldap
2916 # OpenLDAP --enable-meta
2917
2918         # Check whether --enable-meta or --disable-meta was given.
2919 if test "${enable_meta+set}" = set; then
2920   enableval="$enable_meta"
2921
2922         ol_arg=invalid
2923         for ol_val in no yes mod ; do
2924                 if test "$enableval" = "$ol_val" ; then
2925                         ol_arg="$ol_val"
2926                 fi
2927         done
2928         if test "$ol_arg" = "invalid" ; then
2929                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2930 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2931    { (exit 1); exit 1; }; }
2932         fi
2933         ol_enable_meta="$ol_arg"
2934
2935 else
2936         ol_enable_meta=${ol_enable_backends:-no}
2937 fi;
2938 # end --enable-meta
2939 # OpenLDAP --enable-monitor
2940
2941         # Check whether --enable-monitor or --disable-monitor was given.
2942 if test "${enable_monitor+set}" = set; then
2943   enableval="$enable_monitor"
2944
2945         ol_arg=invalid
2946         for ol_val in no yes mod ; do
2947                 if test "$enableval" = "$ol_val" ; then
2948                         ol_arg="$ol_val"
2949                 fi
2950         done
2951         if test "$ol_arg" = "invalid" ; then
2952                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2953 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2954    { (exit 1); exit 1; }; }
2955         fi
2956         ol_enable_monitor="$ol_arg"
2957
2958 else
2959         ol_enable_monitor=${ol_enable_backends:-yes}
2960 fi;
2961 # end --enable-monitor
2962 # OpenLDAP --enable-ndb
2963
2964         # Check whether --enable-ndb or --disable-ndb was given.
2965 if test "${enable_ndb+set}" = set; then
2966   enableval="$enable_ndb"
2967
2968         ol_arg=invalid
2969         for ol_val in no yes mod ; do
2970                 if test "$enableval" = "$ol_val" ; then
2971                         ol_arg="$ol_val"
2972                 fi
2973         done
2974         if test "$ol_arg" = "invalid" ; then
2975                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
2976 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
2977    { (exit 1); exit 1; }; }
2978         fi
2979         ol_enable_ndb="$ol_arg"
2980
2981 else
2982         ol_enable_ndb=${ol_enable_backends:-no}
2983 fi;
2984 # end --enable-ndb
2985 # OpenLDAP --enable-null
2986
2987         # Check whether --enable-null or --disable-null was given.
2988 if test "${enable_null+set}" = set; then
2989   enableval="$enable_null"
2990
2991         ol_arg=invalid
2992         for ol_val in no yes mod ; do
2993                 if test "$enableval" = "$ol_val" ; then
2994                         ol_arg="$ol_val"
2995                 fi
2996         done
2997         if test "$ol_arg" = "invalid" ; then
2998                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2999 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3000    { (exit 1); exit 1; }; }
3001         fi
3002         ol_enable_null="$ol_arg"
3003
3004 else
3005         ol_enable_null=${ol_enable_backends:-no}
3006 fi;
3007 # end --enable-null
3008 # OpenLDAP --enable-passwd
3009
3010         # Check whether --enable-passwd or --disable-passwd was given.
3011 if test "${enable_passwd+set}" = set; then
3012   enableval="$enable_passwd"
3013
3014         ol_arg=invalid
3015         for ol_val in no yes mod ; do
3016                 if test "$enableval" = "$ol_val" ; then
3017                         ol_arg="$ol_val"
3018                 fi
3019         done
3020         if test "$ol_arg" = "invalid" ; then
3021                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3022 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3023    { (exit 1); exit 1; }; }
3024         fi
3025         ol_enable_passwd="$ol_arg"
3026
3027 else
3028         ol_enable_passwd=${ol_enable_backends:-no}
3029 fi;
3030 # end --enable-passwd
3031 # OpenLDAP --enable-perl
3032
3033         # Check whether --enable-perl or --disable-perl was given.
3034 if test "${enable_perl+set}" = set; then
3035   enableval="$enable_perl"
3036
3037         ol_arg=invalid
3038         for ol_val in no yes mod ; do
3039                 if test "$enableval" = "$ol_val" ; then
3040                         ol_arg="$ol_val"
3041                 fi
3042         done
3043         if test "$ol_arg" = "invalid" ; then
3044                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3045 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3046    { (exit 1); exit 1; }; }
3047         fi
3048         ol_enable_perl="$ol_arg"
3049
3050 else
3051         ol_enable_perl=${ol_enable_backends:-no}
3052 fi;
3053 # end --enable-perl
3054 # OpenLDAP --enable-relay
3055
3056         # Check whether --enable-relay or --disable-relay was given.
3057 if test "${enable_relay+set}" = set; then
3058   enableval="$enable_relay"
3059
3060         ol_arg=invalid
3061         for ol_val in no yes mod ; do
3062                 if test "$enableval" = "$ol_val" ; then
3063                         ol_arg="$ol_val"
3064                 fi
3065         done
3066         if test "$ol_arg" = "invalid" ; then
3067                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3068 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3069    { (exit 1); exit 1; }; }
3070         fi
3071         ol_enable_relay="$ol_arg"
3072
3073 else
3074         ol_enable_relay=${ol_enable_backends:-yes}
3075 fi;
3076 # end --enable-relay
3077 # OpenLDAP --enable-shell
3078
3079         # Check whether --enable-shell or --disable-shell was given.
3080 if test "${enable_shell+set}" = set; then
3081   enableval="$enable_shell"
3082
3083         ol_arg=invalid
3084         for ol_val in no yes mod ; do
3085                 if test "$enableval" = "$ol_val" ; then
3086                         ol_arg="$ol_val"
3087                 fi
3088         done
3089         if test "$ol_arg" = "invalid" ; then
3090                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3091 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3092    { (exit 1); exit 1; }; }
3093         fi
3094         ol_enable_shell="$ol_arg"
3095
3096 else
3097         ol_enable_shell=${ol_enable_backends:-no}
3098 fi;
3099 # end --enable-shell
3100 # OpenLDAP --enable-sock
3101
3102         # Check whether --enable-sock or --disable-sock was given.
3103 if test "${enable_sock+set}" = set; then
3104   enableval="$enable_sock"
3105
3106         ol_arg=invalid
3107         for ol_val in no yes mod ; do
3108                 if test "$enableval" = "$ol_val" ; then
3109                         ol_arg="$ol_val"
3110                 fi
3111         done
3112         if test "$ol_arg" = "invalid" ; then
3113                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3115    { (exit 1); exit 1; }; }
3116         fi
3117         ol_enable_sock="$ol_arg"
3118
3119 else
3120         ol_enable_sock=${ol_enable_backends:-no}
3121 fi;
3122 # end --enable-sock
3123 # OpenLDAP --enable-sql
3124
3125         # Check whether --enable-sql or --disable-sql was given.
3126 if test "${enable_sql+set}" = set; then
3127   enableval="$enable_sql"
3128
3129         ol_arg=invalid
3130         for ol_val in no yes mod ; do
3131                 if test "$enableval" = "$ol_val" ; then
3132                         ol_arg="$ol_val"
3133                 fi
3134         done
3135         if test "$ol_arg" = "invalid" ; then
3136                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3138    { (exit 1); exit 1; }; }
3139         fi
3140         ol_enable_sql="$ol_arg"
3141
3142 else
3143         ol_enable_sql=${ol_enable_backends:-no}
3144 fi;
3145 # end --enable-sql
3146
3147 Overlays="accesslog \
3148         auditlog \
3149         constraint \
3150         dds \
3151         dyngroup \
3152         dynlist \
3153         memberof \
3154         ppolicy \
3155         proxycache \
3156         refint \
3157         retcode \
3158         rwm \
3159         seqmod \
3160         syncprov \
3161         translucent \
3162         unique \
3163         valsort"
3164
3165 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3166 if test "${enable_xxslapoverlays+set}" = set; then
3167   enableval="$enable_xxslapoverlays"
3168
3169 fi;
3170
3171 # OpenLDAP --enable-overlays
3172
3173         # Check whether --enable-overlays or --disable-overlays was given.
3174 if test "${enable_overlays+set}" = set; then
3175   enableval="$enable_overlays"
3176
3177         ol_arg=invalid
3178         for ol_val in no yes mod ; do
3179                 if test "$enableval" = "$ol_val" ; then
3180                         ol_arg="$ol_val"
3181                 fi
3182         done
3183         if test "$ol_arg" = "invalid" ; then
3184                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3185 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3186    { (exit 1); exit 1; }; }
3187         fi
3188         ol_enable_overlays="$ol_arg"
3189
3190 fi;
3191 # end --enable-overlays
3192 # OpenLDAP --enable-accesslog
3193
3194         # Check whether --enable-accesslog or --disable-accesslog was given.
3195 if test "${enable_accesslog+set}" = set; then
3196   enableval="$enable_accesslog"
3197
3198         ol_arg=invalid
3199         for ol_val in no yes mod ; do
3200                 if test "$enableval" = "$ol_val" ; then
3201                         ol_arg="$ol_val"
3202                 fi
3203         done
3204         if test "$ol_arg" = "invalid" ; then
3205                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3206 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3207    { (exit 1); exit 1; }; }
3208         fi
3209         ol_enable_accesslog="$ol_arg"
3210
3211 else
3212         ol_enable_accesslog=${ol_enable_overlays:-no}
3213 fi;
3214 # end --enable-accesslog
3215
3216 # OpenLDAP --enable-auditlog
3217
3218         # Check whether --enable-auditlog or --disable-auditlog was given.
3219 if test "${enable_auditlog+set}" = set; then
3220   enableval="$enable_auditlog"
3221
3222         ol_arg=invalid
3223         for ol_val in no yes mod ; do
3224                 if test "$enableval" = "$ol_val" ; then
3225                         ol_arg="$ol_val"
3226                 fi
3227         done
3228         if test "$ol_arg" = "invalid" ; then
3229                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3230 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3231    { (exit 1); exit 1; }; }
3232         fi
3233         ol_enable_auditlog="$ol_arg"
3234
3235 else
3236         ol_enable_auditlog=${ol_enable_overlays:-no}
3237 fi;
3238 # end --enable-auditlog
3239
3240 # OpenLDAP --enable-constraint
3241
3242         # Check whether --enable-constraint or --disable-constraint was given.
3243 if test "${enable_constraint+set}" = set; then
3244   enableval="$enable_constraint"
3245
3246         ol_arg=invalid
3247         for ol_val in no yes mod ; do
3248                 if test "$enableval" = "$ol_val" ; then
3249                         ol_arg="$ol_val"
3250                 fi
3251         done
3252         if test "$ol_arg" = "invalid" ; then
3253                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3254 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3255    { (exit 1); exit 1; }; }
3256         fi
3257         ol_enable_constraint="$ol_arg"
3258
3259 else
3260         ol_enable_constraint=${ol_enable_overlays:-no}
3261 fi;
3262 # end --enable-constraint
3263
3264 # OpenLDAP --enable-dds
3265
3266         # Check whether --enable-dds or --disable-dds was given.
3267 if test "${enable_dds+set}" = set; then
3268   enableval="$enable_dds"
3269
3270         ol_arg=invalid
3271         for ol_val in no yes mod ; do
3272                 if test "$enableval" = "$ol_val" ; then
3273                         ol_arg="$ol_val"
3274                 fi
3275         done
3276         if test "$ol_arg" = "invalid" ; then
3277                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3278 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3279    { (exit 1); exit 1; }; }
3280         fi
3281         ol_enable_dds="$ol_arg"
3282
3283 else
3284         ol_enable_dds=${ol_enable_overlays:-no}
3285 fi;
3286 # end --enable-dds
3287
3288 # OpenLDAP --enable-dyngroup
3289
3290         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3291 if test "${enable_dyngroup+set}" = set; then
3292   enableval="$enable_dyngroup"
3293
3294         ol_arg=invalid
3295         for ol_val in no yes mod ; do
3296                 if test "$enableval" = "$ol_val" ; then
3297                         ol_arg="$ol_val"
3298                 fi
3299         done
3300         if test "$ol_arg" = "invalid" ; then
3301                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3302 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3303    { (exit 1); exit 1; }; }
3304         fi
3305         ol_enable_dyngroup="$ol_arg"
3306
3307 else
3308         ol_enable_dyngroup=${ol_enable_overlays:-no}
3309 fi;
3310 # end --enable-dyngroup
3311
3312 # OpenLDAP --enable-dynlist
3313
3314         # Check whether --enable-dynlist or --disable-dynlist was given.
3315 if test "${enable_dynlist+set}" = set; then
3316   enableval="$enable_dynlist"
3317
3318         ol_arg=invalid
3319         for ol_val in no yes mod ; do
3320                 if test "$enableval" = "$ol_val" ; then
3321                         ol_arg="$ol_val"
3322                 fi
3323         done
3324         if test "$ol_arg" = "invalid" ; then
3325                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3326 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3327    { (exit 1); exit 1; }; }
3328         fi
3329         ol_enable_dynlist="$ol_arg"
3330
3331 else
3332         ol_enable_dynlist=${ol_enable_overlays:-no}
3333 fi;
3334 # end --enable-dynlist
3335
3336 # OpenLDAP --enable-memberof
3337
3338         # Check whether --enable-memberof or --disable-memberof was given.
3339 if test "${enable_memberof+set}" = set; then
3340   enableval="$enable_memberof"
3341
3342         ol_arg=invalid
3343         for ol_val in no yes mod ; do
3344                 if test "$enableval" = "$ol_val" ; then
3345                         ol_arg="$ol_val"
3346                 fi
3347         done
3348         if test "$ol_arg" = "invalid" ; then
3349                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3350 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3351    { (exit 1); exit 1; }; }
3352         fi
3353         ol_enable_memberof="$ol_arg"
3354
3355 else
3356         ol_enable_memberof=${ol_enable_overlays:-no}
3357 fi;
3358 # end --enable-memberof
3359
3360 # OpenLDAP --enable-ppolicy
3361
3362         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3363 if test "${enable_ppolicy+set}" = set; then
3364   enableval="$enable_ppolicy"
3365
3366         ol_arg=invalid
3367         for ol_val in no yes mod ; do
3368                 if test "$enableval" = "$ol_val" ; then
3369                         ol_arg="$ol_val"
3370                 fi
3371         done
3372         if test "$ol_arg" = "invalid" ; then
3373                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3374 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3375    { (exit 1); exit 1; }; }
3376         fi
3377         ol_enable_ppolicy="$ol_arg"
3378
3379 else
3380         ol_enable_ppolicy=${ol_enable_overlays:-no}
3381 fi;
3382 # end --enable-ppolicy
3383
3384 # OpenLDAP --enable-proxycache
3385
3386         # Check whether --enable-proxycache or --disable-proxycache was given.
3387 if test "${enable_proxycache+set}" = set; then
3388   enableval="$enable_proxycache"
3389
3390         ol_arg=invalid
3391         for ol_val in no yes mod ; do
3392                 if test "$enableval" = "$ol_val" ; then
3393                         ol_arg="$ol_val"
3394                 fi
3395         done
3396         if test "$ol_arg" = "invalid" ; then
3397                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3398 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3399    { (exit 1); exit 1; }; }
3400         fi
3401         ol_enable_proxycache="$ol_arg"
3402
3403 else
3404         ol_enable_proxycache=${ol_enable_overlays:-no}
3405 fi;
3406 # end --enable-proxycache
3407
3408 # OpenLDAP --enable-refint
3409
3410         # Check whether --enable-refint or --disable-refint was given.
3411 if test "${enable_refint+set}" = set; then
3412   enableval="$enable_refint"
3413
3414         ol_arg=invalid
3415         for ol_val in no yes mod ; do
3416                 if test "$enableval" = "$ol_val" ; then
3417                         ol_arg="$ol_val"
3418                 fi
3419         done
3420         if test "$ol_arg" = "invalid" ; then
3421                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3422 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3423    { (exit 1); exit 1; }; }
3424         fi
3425         ol_enable_refint="$ol_arg"
3426
3427 else
3428         ol_enable_refint=${ol_enable_overlays:-no}
3429 fi;
3430 # end --enable-refint
3431
3432 # OpenLDAP --enable-retcode
3433
3434         # Check whether --enable-retcode or --disable-retcode was given.
3435 if test "${enable_retcode+set}" = set; then
3436   enableval="$enable_retcode"
3437
3438         ol_arg=invalid
3439         for ol_val in no yes mod ; do
3440                 if test "$enableval" = "$ol_val" ; then
3441                         ol_arg="$ol_val"
3442                 fi
3443         done
3444         if test "$ol_arg" = "invalid" ; then
3445                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3446 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3447    { (exit 1); exit 1; }; }
3448         fi
3449         ol_enable_retcode="$ol_arg"
3450
3451 else
3452         ol_enable_retcode=${ol_enable_overlays:-no}
3453 fi;
3454 # end --enable-retcode
3455
3456 # OpenLDAP --enable-rwm
3457
3458         # Check whether --enable-rwm or --disable-rwm was given.
3459 if test "${enable_rwm+set}" = set; then
3460   enableval="$enable_rwm"
3461
3462         ol_arg=invalid
3463         for ol_val in no yes mod ; do
3464                 if test "$enableval" = "$ol_val" ; then
3465                         ol_arg="$ol_val"
3466                 fi
3467         done
3468         if test "$ol_arg" = "invalid" ; then
3469                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3470 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3471    { (exit 1); exit 1; }; }
3472         fi
3473         ol_enable_rwm="$ol_arg"
3474
3475 else
3476         ol_enable_rwm=${ol_enable_overlays:-no}
3477 fi;
3478 # end --enable-rwm
3479
3480 # OpenLDAP --enable-seqmod
3481
3482         # Check whether --enable-seqmod or --disable-seqmod was given.
3483 if test "${enable_seqmod+set}" = set; then
3484   enableval="$enable_seqmod"
3485
3486         ol_arg=invalid
3487         for ol_val in no yes mod ; do
3488                 if test "$enableval" = "$ol_val" ; then
3489                         ol_arg="$ol_val"
3490                 fi
3491         done
3492         if test "$ol_arg" = "invalid" ; then
3493                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3494 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3495    { (exit 1); exit 1; }; }
3496         fi
3497         ol_enable_seqmod="$ol_arg"
3498
3499 else
3500         ol_enable_seqmod=${ol_enable_overlays:-yes}
3501 fi;
3502 # end --enable-seqmod
3503
3504 # OpenLDAP --enable-syncprov
3505
3506         # Check whether --enable-syncprov or --disable-syncprov was given.
3507 if test "${enable_syncprov+set}" = set; then
3508   enableval="$enable_syncprov"
3509
3510         ol_arg=invalid
3511         for ol_val in no yes mod ; do
3512                 if test "$enableval" = "$ol_val" ; then
3513                         ol_arg="$ol_val"
3514                 fi
3515         done
3516         if test "$ol_arg" = "invalid" ; then
3517                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3518 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3519    { (exit 1); exit 1; }; }
3520         fi
3521         ol_enable_syncprov="$ol_arg"
3522
3523 else
3524         ol_enable_syncprov=${ol_enable_overlays:-yes}
3525 fi;
3526 # end --enable-syncprov
3527
3528 # OpenLDAP --enable-translucent
3529
3530         # Check whether --enable-translucent or --disable-translucent was given.
3531 if test "${enable_translucent+set}" = set; then
3532   enableval="$enable_translucent"
3533
3534         ol_arg=invalid
3535         for ol_val in no yes mod ; do
3536                 if test "$enableval" = "$ol_val" ; then
3537                         ol_arg="$ol_val"
3538                 fi
3539         done
3540         if test "$ol_arg" = "invalid" ; then
3541                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3542 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3543    { (exit 1); exit 1; }; }
3544         fi
3545         ol_enable_translucent="$ol_arg"
3546
3547 else
3548         ol_enable_translucent=${ol_enable_overlays:-no}
3549 fi;
3550 # end --enable-translucent
3551
3552 # OpenLDAP --enable-unique
3553
3554         # Check whether --enable-unique or --disable-unique was given.
3555 if test "${enable_unique+set}" = set; then
3556   enableval="$enable_unique"
3557
3558         ol_arg=invalid
3559         for ol_val in no yes mod ; do
3560                 if test "$enableval" = "$ol_val" ; then
3561                         ol_arg="$ol_val"
3562                 fi
3563         done
3564         if test "$ol_arg" = "invalid" ; then
3565                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3566 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3567    { (exit 1); exit 1; }; }
3568         fi
3569         ol_enable_unique="$ol_arg"
3570
3571 else
3572         ol_enable_unique=${ol_enable_overlays:-no}
3573 fi;
3574 # end --enable-unique
3575
3576 # OpenLDAP --enable-valsort
3577
3578         # Check whether --enable-valsort or --disable-valsort was given.
3579 if test "${enable_valsort+set}" = set; then
3580   enableval="$enable_valsort"
3581
3582         ol_arg=invalid
3583         for ol_val in no yes mod ; do
3584                 if test "$enableval" = "$ol_val" ; then
3585                         ol_arg="$ol_val"
3586                 fi
3587         done
3588         if test "$ol_arg" = "invalid" ; then
3589                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3590 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3591    { (exit 1); exit 1; }; }
3592         fi
3593         ol_enable_valsort="$ol_arg"
3594
3595 else
3596         ol_enable_valsort=${ol_enable_overlays:-no}
3597 fi;
3598 # end --enable-valsort
3599
3600
3601 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3602 if test "${enable_xxliboptions+set}" = set; then
3603   enableval="$enable_xxliboptions"
3604
3605 fi;
3606 # Check whether --enable-static or --disable-static was given.
3607 if test "${enable_static+set}" = set; then
3608   enableval="$enable_static"
3609   p=${PACKAGE-default}
3610     case $enableval in
3611     yes) enable_static=yes ;;
3612     no) enable_static=no ;;
3613     *)
3614      enable_static=no
3615       # Look at the argument we got.  We use all the common list separators.
3616       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617       for pkg in $enableval; do
3618         IFS="$lt_save_ifs"
3619         if test "X$pkg" = "X$p"; then
3620           enable_static=yes
3621         fi
3622       done
3623       IFS="$lt_save_ifs"
3624       ;;
3625     esac
3626 else
3627   enable_static=yes
3628 fi;
3629
3630 # Check whether --enable-shared or --disable-shared was given.
3631 if test "${enable_shared+set}" = set; then
3632   enableval="$enable_shared"
3633   p=${PACKAGE-default}
3634     case $enableval in
3635     yes) enable_shared=yes ;;
3636     no) enable_shared=no ;;
3637     *)
3638       enable_shared=no
3639       # Look at the argument we got.  We use all the common list separators.
3640       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3641       for pkg in $enableval; do
3642         IFS="$lt_save_ifs"
3643         if test "X$pkg" = "X$p"; then
3644           enable_shared=yes
3645         fi
3646       done
3647       IFS="$lt_save_ifs"
3648       ;;
3649     esac
3650 else
3651   enable_shared=yes
3652 fi;
3653
3654
3655
3656 # validate options
3657 if test $ol_enable_slapd = no ; then
3658                 if test $ol_enable_slapi = yes ; then
3659                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3660 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3661         fi
3662         case "$ol_enable_backends" in yes | mod)
3663                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3664 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3665         esac
3666         for i in $Backends; do
3667                 eval "ol_tmp=\$ol_enable_$i"
3668                 if test $ol_tmp != no ; then
3669                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3670 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3671                         eval "ol_enable_$i=no"
3672                 fi
3673         done
3674         if test $ol_enable_modules = yes ; then
3675                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3676 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3677         fi
3678         if test $ol_enable_wrappers = yes ; then
3679                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3680 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3681         fi
3682         if test $ol_enable_rlookups = yes ; then
3683                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3684 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3685         fi
3686         if test $ol_enable_dynacl = yes ; then
3687                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3688 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3689         fi
3690         if test $ol_enable_aci != no ; then
3691                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3692 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3693         fi
3694         if test $ol_enable_rewrite = yes ; then
3695                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3696 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3697         fi
3698                 case "$ol_enable_overlays" in yes | mod)
3699                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3700 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3701         esac
3702         for i in $Overlays; do
3703                 eval "ol_tmp=\$ol_enable_$i"
3704                 if test $ol_tmp != no ; then
3705                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3706 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3707                         eval "ol_enable_$i=no"
3708                 fi
3709         done
3710
3711         # force settings to no
3712         ol_enable_slapi=no
3713
3714         ol_enable_backends=
3715         ol_enable_overlays=
3716         ol_enable_modules=no
3717         ol_enable_rlookups=no
3718         ol_enable_dynacl=no
3719         ol_enable_aci=no
3720         ol_enable_wrappers=no
3721
3722         ol_enable_rewrite=no
3723
3724 elif test $ol_enable_modules != yes &&
3725         test $ol_enable_bdb = no &&
3726         test $ol_enable_dnssrv = no &&
3727         test $ol_enable_hdb = no &&
3728         test $ol_enable_ldap = no &&
3729         test $ol_enable_meta = no &&
3730         test $ol_enable_monitor = no &&
3731         test $ol_enable_ndb = no &&
3732         test $ol_enable_null = no &&
3733         test $ol_enable_passwd = no &&
3734         test $ol_enable_perl = no &&
3735         test $ol_enable_relay = no &&
3736         test $ol_enable_shell = no &&
3737         test $ol_enable_sock = no &&
3738         test $ol_enable_sql = no ; then
3739
3740         if test $ol_enable_slapd = yes ; then
3741                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3742 echo "$as_me: error: slapd requires a backend" >&2;}
3743    { (exit 1); exit 1; }; }
3744         else
3745                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3746 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3747                 ol_enable_slapd=no
3748         fi
3749 fi
3750
3751 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3752         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3753 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3754    { (exit 1); exit 1; }; }
3755 fi
3756
3757 if test $ol_enable_lmpasswd = yes ; then
3758         if test $ol_with_tls = no ; then
3759                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3760 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3761    { (exit 1); exit 1; }; }
3762         fi
3763 fi
3764
3765 if test $ol_enable_spasswd = yes ; then
3766         if test $ol_with_cyrus_sasl = no ; then
3767                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3768 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3769    { (exit 1); exit 1; }; }
3770         fi
3771         ol_with_cyrus_sasl=yes
3772 fi
3773
3774 echo "$as_me:$LINENO: result: done" >&5
3775 echo "${ECHO_T}done" >&6
3776
3777 LDAP_LIBS=
3778 BDB_LIBS=
3779 SLAPD_NDB_LIBS=
3780 SLAPD_NDB_INCS=
3781 LTHREAD_LIBS=
3782 LUTIL_LIBS=
3783
3784 SLAPD_LIBS=
3785
3786 BUILD_SLAPD=no
3787
3788 BUILD_THREAD=no
3789
3790 BUILD_SLAPI=no
3791 SLAPD_SLAPI_DEPEND=
3792
3793 BUILD_BDB=no
3794 BUILD_DNSSRV=no
3795 BUILD_HDB=no
3796 BUILD_LDAP=no
3797 BUILD_META=no
3798 BUILD_MONITOR=no
3799 BUILD_NULL=no
3800 BUILD_PASSWD=no
3801 BUILD_PERL=no
3802 BUILD_RELAY=no
3803 BUILD_SHELL=no
3804 BUILD_SOCK=no
3805 BUILD_SQL=no
3806
3807 BUILD_ACCESSLOG=no
3808 BUILD_AUDITLOG=no
3809 BUILD_CONSTRAINT=no
3810 BUILD_DDS=no
3811 BUILD_DENYOP=no
3812 BUILD_DYNGROUP=no
3813 BUILD_DYNLIST=no
3814 BUILD_LASTMOD=no
3815 BUILD_MEMBEROF=no
3816 BUILD_PPOLICY=no
3817 BUILD_PROXYCACHE=no
3818 BUILD_REFINT=no
3819 BUILD_RETCODE=no
3820 BUILD_RWM=no
3821 BUILD_SEQMOD=no
3822 BUILD_SYNCPROV=no
3823 BUILD_TRANSLUCENT=no
3824 BUILD_UNIQUE=no
3825 BUILD_VALSORT=no
3826
3827 SLAPD_STATIC_OVERLAYS=
3828 SLAPD_DYNAMIC_OVERLAYS=
3829
3830 SLAPD_MODULES_LDFLAGS=
3831 SLAPD_MODULES_CPPFLAGS=
3832
3833 SLAPD_STATIC_BACKENDS=back-ldif
3834 SLAPD_DYNAMIC_BACKENDS=
3835
3836 SLAPD_PERL_LDFLAGS=
3837 MOD_PERL_LDFLAGS=
3838 PERL_CPPFLAGS=
3839
3840 SLAPD_SQL_LDFLAGS=
3841 SLAPD_SQL_LIBS=
3842 SLAPD_SQL_INCLUDES=
3843
3844 KRB4_LIBS=
3845 KRB5_LIBS=
3846 SASL_LIBS=
3847 TLS_LIBS=
3848 MODULES_LIBS=
3849 SLAPI_LIBS=
3850 LIBSLAPI=
3851 LIBSLAPITOOLS=
3852 AUTH_LIBS=
3853 ICU_LIBS=
3854
3855 SLAPD_SLP_LIBS=
3856 SLAPD_GMP_LIBS=
3857
3858
3859
3860 cat >>confdefs.h <<\_ACEOF
3861 #define HAVE_MKVERSION 1
3862 _ACEOF
3863
3864
3865
3866
3867 ol_aix_threads=no
3868 case "$target" in
3869 *-*-aix*)       if test -z "$CC" ; then
3870                 case "$ol_with_threads" in
3871                 auto | yes |  posix) ol_aix_threads=yes ;;
3872                 esac
3873         fi
3874 ;;
3875 esac
3876
3877 if test $ol_aix_threads = yes ; then
3878         if test -z "${CC}" ; then
3879                 for ac_prog in cc_r xlc_r cc
3880 do
3881   # Extract the first word of "$ac_prog", so it can be a program name with args.
3882 set dummy $ac_prog; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_CC+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   if test -n "$CC"; then
3889   ac_cv_prog_CC="$CC" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894   IFS=$as_save_IFS
3895   test -z "$as_dir" && as_dir=.
3896   for ac_exec_ext in '' $ac_executable_extensions; do
3897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898     ac_cv_prog_CC="$ac_prog"
3899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900     break 2
3901   fi
3902 done
3903 done
3904
3905 fi
3906 fi
3907 CC=$ac_cv_prog_CC
3908 if test -n "$CC"; then
3909   echo "$as_me:$LINENO: result: $CC" >&5
3910 echo "${ECHO_T}$CC" >&6
3911 else
3912   echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3914 fi
3915
3916   test -n "$CC" && break
3917 done
3918
3919
3920                 if test "$CC" = cc ; then
3921                                                 if test $ol_with_threads != auto ; then
3922                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3923 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3924    { (exit 1); exit 1; }; }
3925                         else
3926                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3927 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3928                         fi
3929                         ol_with_threads=no
3930                 fi
3931         fi
3932
3933         case ${CC} in cc_r | xlc_r)
3934                 ol_with_threads=posix
3935                 ol_cv_pthread_create=yes
3936                 ;;
3937         esac
3938 fi
3939
3940 if test -z "${CC}"; then
3941         for ac_prog in cc gcc
3942 do
3943   # Extract the first word of "$ac_prog", so it can be a program name with args.
3944 set dummy $ac_prog; ac_word=$2
3945 echo "$as_me:$LINENO: checking for $ac_word" >&5
3946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3947 if test "${ac_cv_prog_CC+set}" = set; then
3948   echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950   if test -n "$CC"; then
3951   ac_cv_prog_CC="$CC" # Let the user override the test.
3952 else
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3955 do
3956   IFS=$as_save_IFS
3957   test -z "$as_dir" && as_dir=.
3958   for ac_exec_ext in '' $ac_executable_extensions; do
3959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3960     ac_cv_prog_CC="$ac_prog"
3961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3962     break 2
3963   fi
3964 done
3965 done
3966
3967 fi
3968 fi
3969 CC=$ac_cv_prog_CC
3970 if test -n "$CC"; then
3971   echo "$as_me:$LINENO: result: $CC" >&5
3972 echo "${ECHO_T}$CC" >&6
3973 else
3974   echo "$as_me:$LINENO: result: no" >&5
3975 echo "${ECHO_T}no" >&6
3976 fi
3977
3978   test -n "$CC" && break
3979 done
3980 test -n "$CC" || CC="missing"
3981
3982
3983         if test "${CC}" = "missing" ; then
3984                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3985 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3986    { (exit 1); exit 1; }; }
3987         fi
3988 fi
3989
3990 if test -z "${AR}"; then
3991         for ac_prog in ar gar
3992 do
3993   # Extract the first word of "$ac_prog", so it can be a program name with args.
3994 set dummy $ac_prog; ac_word=$2
3995 echo "$as_me:$LINENO: checking for $ac_word" >&5
3996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3997 if test "${ac_cv_prog_AR+set}" = set; then
3998   echo $ECHO_N "(cached) $ECHO_C" >&6
3999 else
4000   if test -n "$AR"; then
4001   ac_cv_prog_AR="$AR" # Let the user override the test.
4002 else
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH
4005 do
4006   IFS=$as_save_IFS
4007   test -z "$as_dir" && as_dir=.
4008   for ac_exec_ext in '' $ac_executable_extensions; do
4009   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010     ac_cv_prog_AR="$ac_prog"
4011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4012     break 2
4013   fi
4014 done
4015 done
4016
4017 fi
4018 fi
4019 AR=$ac_cv_prog_AR
4020 if test -n "$AR"; then
4021   echo "$as_me:$LINENO: result: $AR" >&5
4022 echo "${ECHO_T}$AR" >&6
4023 else
4024   echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6
4026 fi
4027
4028   test -n "$AR" && break
4029 done
4030 test -n "$AR" || AR="missing"
4031
4032
4033         if test "${AR}" = "missing" ; then
4034                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4035 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4036    { (exit 1); exit 1; }; }
4037         fi
4038 fi
4039
4040
4041
4042
4043
4044 # Check whether --enable-fast-install or --disable-fast-install was given.
4045 if test "${enable_fast_install+set}" = set; then
4046   enableval="$enable_fast_install"
4047   p=${PACKAGE-default}
4048     case $enableval in
4049     yes) enable_fast_install=yes ;;
4050     no) enable_fast_install=no ;;
4051     *)
4052       enable_fast_install=no
4053       # Look at the argument we got.  We use all the common list separators.
4054       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4055       for pkg in $enableval; do
4056         IFS="$lt_save_ifs"
4057         if test "X$pkg" = "X$p"; then
4058           enable_fast_install=yes
4059         fi
4060       done
4061       IFS="$lt_save_ifs"
4062       ;;
4063     esac
4064 else
4065   enable_fast_install=yes
4066 fi;
4067
4068 DEPDIR="${am__leading_dot}deps"
4069
4070           ac_config_commands="$ac_config_commands depfiles"
4071
4072
4073 am_make=${MAKE-make}
4074 cat > confinc << 'END'
4075 am__doit:
4076         @echo done
4077 .PHONY: am__doit
4078 END
4079 # If we don't find an include directive, just comment out the code.
4080 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4081 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4082 am__include="#"
4083 am__quote=
4084 _am_result=none
4085 # First try GNU make style include.
4086 echo "include confinc" > confmf
4087 # We grep out `Entering directory' and `Leaving directory'
4088 # messages which can occur if `w' ends up in MAKEFLAGS.
4089 # In particular we don't look at `^make:' because GNU make might
4090 # be invoked under some other name (usually "gmake"), in which
4091 # case it prints its new name instead of `make'.
4092 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4093    am__include=include
4094    am__quote=
4095    _am_result=GNU
4096 fi
4097 # Now try BSD make style include.
4098 if test "$am__include" = "#"; then
4099    echo '.include "confinc"' > confmf
4100    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4101       am__include=.include
4102       am__quote="\""
4103       _am_result=BSD
4104    fi
4105 fi
4106
4107
4108 echo "$as_me:$LINENO: result: $_am_result" >&5
4109 echo "${ECHO_T}$_am_result" >&6
4110 rm -f confinc confmf
4111
4112 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4113 if test "${enable_dependency_tracking+set}" = set; then
4114   enableval="$enable_dependency_tracking"
4115
4116 fi;
4117 if test "x$enable_dependency_tracking" != xno; then
4118   am_depcomp="$ac_aux_dir/depcomp"
4119   AMDEPBACKSLASH='\'
4120 fi
4121
4122
4123 if test "x$enable_dependency_tracking" != xno; then
4124   AMDEP_TRUE=
4125   AMDEP_FALSE='#'
4126 else
4127   AMDEP_TRUE='#'
4128   AMDEP_FALSE=
4129 fi
4130
4131
4132
4133 ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138 if test -n "$ac_tool_prefix"; then
4139   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4140 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4141 echo "$as_me:$LINENO: checking for $ac_word" >&5
4142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4143 if test "${ac_cv_prog_CC+set}" = set; then
4144   echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146   if test -n "$CC"; then
4147   ac_cv_prog_CC="$CC" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152   IFS=$as_save_IFS
4153   test -z "$as_dir" && as_dir=.
4154   for ac_exec_ext in '' $ac_executable_extensions; do
4155   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4158     break 2
4159   fi
4160 done
4161 done
4162
4163 fi
4164 fi
4165 CC=$ac_cv_prog_CC
4166 if test -n "$CC"; then
4167   echo "$as_me:$LINENO: result: $CC" >&5
4168 echo "${ECHO_T}$CC" >&6
4169 else
4170   echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4172 fi
4173
4174 fi
4175 if test -z "$ac_cv_prog_CC"; then
4176   ac_ct_CC=$CC
4177   # Extract the first word of "gcc", so it can be a program name with args.
4178 set dummy gcc; ac_word=$2
4179 echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4182   echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184   if test -n "$ac_ct_CC"; then
4185   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4186 else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4189 do
4190   IFS=$as_save_IFS
4191   test -z "$as_dir" && as_dir=.
4192   for ac_exec_ext in '' $ac_executable_extensions; do
4193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4194     ac_cv_prog_ac_ct_CC="gcc"
4195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196     break 2
4197   fi
4198 done
4199 done
4200
4201 fi
4202 fi
4203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4204 if test -n "$ac_ct_CC"; then
4205   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4206 echo "${ECHO_T}$ac_ct_CC" >&6
4207 else
4208   echo "$as_me:$LINENO: result: no" >&5
4209 echo "${ECHO_T}no" >&6
4210 fi
4211
4212   CC=$ac_ct_CC
4213 else
4214   CC="$ac_cv_prog_CC"
4215 fi
4216
4217 if test -z "$CC"; then
4218   if test -n "$ac_tool_prefix"; then
4219   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}cc; ac_word=$2
4221 echo "$as_me:$LINENO: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4223 if test "${ac_cv_prog_CC+set}" = set; then
4224   echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226   if test -n "$CC"; then
4227   ac_cv_prog_CC="$CC" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232   IFS=$as_save_IFS
4233   test -z "$as_dir" && as_dir=.
4234   for ac_exec_ext in '' $ac_executable_extensions; do
4235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236     ac_cv_prog_CC="${ac_tool_prefix}cc"
4237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4238     break 2
4239   fi
4240 done
4241 done
4242
4243 fi
4244 fi
4245 CC=$ac_cv_prog_CC
4246 if test -n "$CC"; then
4247   echo "$as_me:$LINENO: result: $CC" >&5
4248 echo "${ECHO_T}$CC" >&6
4249 else
4250   echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4252 fi
4253
4254 fi
4255 if test -z "$ac_cv_prog_CC"; then
4256   ac_ct_CC=$CC
4257   # Extract the first word of "cc", so it can be a program name with args.
4258 set dummy cc; ac_word=$2
4259 echo "$as_me:$LINENO: checking for $ac_word" >&5
4260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4261 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264   if test -n "$ac_ct_CC"; then
4265   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4266 else
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270   IFS=$as_save_IFS
4271   test -z "$as_dir" && as_dir=.
4272   for ac_exec_ext in '' $ac_executable_extensions; do
4273   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274     ac_cv_prog_ac_ct_CC="cc"
4275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4276     break 2
4277   fi
4278 done
4279 done
4280
4281 fi
4282 fi
4283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4284 if test -n "$ac_ct_CC"; then
4285   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4286 echo "${ECHO_T}$ac_ct_CC" >&6
4287 else
4288   echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6
4290 fi
4291
4292   CC=$ac_ct_CC
4293 else
4294   CC="$ac_cv_prog_CC"
4295 fi
4296
4297 fi
4298 if test -z "$CC"; then
4299   # Extract the first word of "cc", so it can be a program name with args.
4300 set dummy cc; ac_word=$2
4301 echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4303 if test "${ac_cv_prog_CC+set}" = set; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   if test -n "$CC"; then
4307   ac_cv_prog_CC="$CC" # Let the user override the test.
4308 else
4309   ac_prog_rejected=no
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4312 do
4313   IFS=$as_save_IFS
4314   test -z "$as_dir" && as_dir=.
4315   for ac_exec_ext in '' $ac_executable_extensions; do
4316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4317     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4318        ac_prog_rejected=yes
4319        continue
4320      fi
4321     ac_cv_prog_CC="cc"
4322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323     break 2
4324   fi
4325 done
4326 done
4327
4328 if test $ac_prog_rejected = yes; then
4329   # We found a bogon in the path, so make sure we never use it.
4330   set dummy $ac_cv_prog_CC
4331   shift
4332   if test $# != 0; then
4333     # We chose a different compiler from the bogus one.
4334     # However, it has the same basename, so the bogon will be chosen
4335     # first if we set CC to just the basename; use the full file name.
4336     shift
4337     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4338   fi
4339 fi
4340 fi
4341 fi
4342 CC=$ac_cv_prog_CC
4343 if test -n "$CC"; then
4344   echo "$as_me:$LINENO: result: $CC" >&5
4345 echo "${ECHO_T}$CC" >&6
4346 else
4347   echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6
4349 fi
4350
4351 fi
4352 if test -z "$CC"; then
4353   if test -n "$ac_tool_prefix"; then
4354   for ac_prog in cl
4355   do
4356     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4358 echo "$as_me:$LINENO: checking for $ac_word" >&5
4359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4360 if test "${ac_cv_prog_CC+set}" = set; then
4361   echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363   if test -n "$CC"; then
4364   ac_cv_prog_CC="$CC" # Let the user override the test.
4365 else
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4368 do
4369   IFS=$as_save_IFS
4370   test -z "$as_dir" && as_dir=.
4371   for ac_exec_ext in '' $ac_executable_extensions; do
4372   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4373     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375     break 2
4376   fi
4377 done
4378 done
4379
4380 fi
4381 fi
4382 CC=$ac_cv_prog_CC
4383 if test -n "$CC"; then
4384   echo "$as_me:$LINENO: result: $CC" >&5
4385 echo "${ECHO_T}$CC" >&6
4386 else
4387   echo "$as_me:$LINENO: result: no" >&5
4388 echo "${ECHO_T}no" >&6
4389 fi
4390
4391     test -n "$CC" && break
4392   done
4393 fi
4394 if test -z "$CC"; then
4395   ac_ct_CC=$CC
4396   for ac_prog in cl
4397 do
4398   # Extract the first word of "$ac_prog", so it can be a program name with args.
4399 set dummy $ac_prog; ac_word=$2
4400 echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4403   echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405   if test -n "$ac_ct_CC"; then
4406   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411   IFS=$as_save_IFS
4412   test -z "$as_dir" && as_dir=.
4413   for ac_exec_ext in '' $ac_executable_extensions; do
4414   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415     ac_cv_prog_ac_ct_CC="$ac_prog"
4416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417     break 2
4418   fi
4419 done
4420 done
4421
4422 fi
4423 fi
4424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4425 if test -n "$ac_ct_CC"; then
4426   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4427 echo "${ECHO_T}$ac_ct_CC" >&6
4428 else
4429   echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6
4431 fi
4432
4433   test -n "$ac_ct_CC" && break
4434 done
4435
4436   CC=$ac_ct_CC
4437 fi
4438
4439 fi
4440
4441
4442 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4443 See \`config.log' for more details." >&5
4444 echo "$as_me: error: no acceptable C compiler found in \$PATH
4445 See \`config.log' for more details." >&2;}
4446    { (exit 1); exit 1; }; }
4447
4448 # Provide some information about the compiler.
4449 echo "$as_me:$LINENO:" \
4450      "checking for C compiler version" >&5
4451 ac_compiler=`set X $ac_compile; echo $2`
4452 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4453   (eval $ac_compiler --version </dev/null >&5) 2>&5
4454   ac_status=$?
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); }
4457 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4458   (eval $ac_compiler -v </dev/null >&5) 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }
4462 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4463   (eval $ac_compiler -V </dev/null >&5) 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); }
4467
4468 cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h.  */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h.  */
4474
4475 int
4476 main ()
4477 {
4478
4479   ;
4480   return 0;
4481 }
4482 _ACEOF
4483 ac_clean_files_save=$ac_clean_files
4484 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4485 # Try to create an executable without -o first, disregard a.out.
4486 # It will help us diagnose broken compilers, and finding out an intuition
4487 # of exeext.
4488 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4489 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4490 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4492   (eval $ac_link_default) 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); }; then
4496   # Find the output, starting from the most likely.  This scheme is
4497 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4498 # resort.
4499
4500 # Be careful to initialize this variable, since it used to be cached.
4501 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4502 ac_cv_exeext=
4503 # b.out is created by i960 compilers.
4504 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4505 do
4506   test -f "$ac_file" || continue
4507   case $ac_file in
4508     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4509         ;;
4510     conftest.$ac_ext )
4511         # This is the source file.
4512         ;;
4513     [ab].out )
4514         # We found the default executable, but exeext='' is most
4515         # certainly right.
4516         break;;
4517     *.* )
4518         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4519         # FIXME: I believe we export ac_cv_exeext for Libtool,
4520         # but it would be cool to find out if it's true.  Does anybody
4521         # maintain Libtool? --akim.
4522         export ac_cv_exeext
4523         break;;
4524     * )
4525         break;;
4526   esac
4527 done
4528 else
4529   echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4531
4532 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4533 See \`config.log' for more details." >&5
4534 echo "$as_me: error: C compiler cannot create executables
4535 See \`config.log' for more details." >&2;}
4536    { (exit 77); exit 77; }; }
4537 fi
4538
4539 ac_exeext=$ac_cv_exeext
4540 echo "$as_me:$LINENO: result: $ac_file" >&5
4541 echo "${ECHO_T}$ac_file" >&6
4542
4543 # Check the compiler produces executables we can run.  If not, either
4544 # the compiler is broken, or we cross compile.
4545 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4546 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4547 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4548 # If not cross compiling, check that we can run a simple program.
4549 if test "$cross_compiling" != yes; then
4550   if { ac_try='./$ac_file'
4551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552   (eval $ac_try) 2>&5
4553   ac_status=$?
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); }; }; then
4556     cross_compiling=no
4557   else
4558     if test "$cross_compiling" = maybe; then
4559         cross_compiling=yes
4560     else
4561         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4562 If you meant to cross compile, use \`--host'.
4563 See \`config.log' for more details." >&5
4564 echo "$as_me: error: cannot run C compiled programs.
4565 If you meant to cross compile, use \`--host'.
4566 See \`config.log' for more details." >&2;}
4567    { (exit 1); exit 1; }; }
4568     fi
4569   fi
4570 fi
4571 echo "$as_me:$LINENO: result: yes" >&5
4572 echo "${ECHO_T}yes" >&6
4573
4574 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4575 ac_clean_files=$ac_clean_files_save
4576 # Check the compiler produces executables we can run.  If not, either
4577 # the compiler is broken, or we cross compile.
4578 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4579 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4580 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4581 echo "${ECHO_T}$cross_compiling" >&6
4582
4583 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4584 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4586   (eval $ac_link) 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); }; then
4590   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4591 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4592 # work properly (i.e., refer to `conftest.exe'), while it won't with
4593 # `rm'.
4594 for ac_file in conftest.exe conftest conftest.*; do
4595   test -f "$ac_file" || continue
4596   case $ac_file in
4597     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4598     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4599           export ac_cv_exeext
4600           break;;
4601     * ) break;;
4602   esac
4603 done
4604 else
4605   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4606 See \`config.log' for more details." >&5
4607 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4608 See \`config.log' for more details." >&2;}
4609    { (exit 1); exit 1; }; }
4610 fi
4611
4612 rm -f conftest$ac_cv_exeext
4613 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4614 echo "${ECHO_T}$ac_cv_exeext" >&6
4615
4616 rm -f conftest.$ac_ext
4617 EXEEXT=$ac_cv_exeext
4618 ac_exeext=$EXEEXT
4619 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4620 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4621 if test "${ac_cv_objext+set}" = set; then
4622   echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624   cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h.  */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h.  */
4630
4631 int
4632 main ()
4633 {
4634
4635   ;
4636   return 0;
4637 }
4638 _ACEOF
4639 rm -f conftest.o conftest.obj
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641   (eval $ac_compile) 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); }; then
4645   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4646   case $ac_file in
4647     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4648     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4649        break;;
4650   esac
4651 done
4652 else
4653   echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4655
4656 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4657 See \`config.log' for more details." >&5
4658 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4659 See \`config.log' for more details." >&2;}
4660    { (exit 1); exit 1; }; }
4661 fi
4662
4663 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4664 fi
4665 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4666 echo "${ECHO_T}$ac_cv_objext" >&6
4667 OBJEXT=$ac_cv_objext
4668 ac_objext=$OBJEXT
4669 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4670 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4671 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4672   echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674   cat >conftest.$ac_ext <<_ACEOF
4675 /* confdefs.h.  */
4676 _ACEOF
4677 cat confdefs.h >>conftest.$ac_ext
4678 cat >>conftest.$ac_ext <<_ACEOF
4679 /* end confdefs.h.  */
4680
4681 int
4682 main ()
4683 {
4684 #ifndef __GNUC__
4685        choke me
4686 #endif
4687
4688   ;
4689   return 0;
4690 }
4691 _ACEOF
4692 rm -f conftest.$ac_objext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694   (eval $ac_compile) 2>conftest.er1
4695   ac_status=$?
4696   grep -v '^ *+' conftest.er1 >conftest.err
4697   rm -f conftest.er1
4698   cat conftest.err >&5
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); } &&
4701          { ac_try='test -z "$ac_c_werror_flag"
4702                          || test ! -s conftest.err'
4703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704   (eval $ac_try) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); }; } &&
4708          { ac_try='test -s conftest.$ac_objext'
4709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710   (eval $ac_try) 2>&5
4711   ac_status=$?
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); }; }; then
4714   ac_compiler_gnu=yes
4715 else
4716   echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719 ac_compiler_gnu=no
4720 fi
4721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4722 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4723
4724 fi
4725 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4726 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4727 GCC=`test $ac_compiler_gnu = yes && echo yes`
4728 ac_test_CFLAGS=${CFLAGS+set}
4729 ac_save_CFLAGS=$CFLAGS
4730 CFLAGS="-g"
4731 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4732 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4733 if test "${ac_cv_prog_cc_g+set}" = set; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h.  */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h.  */
4742
4743 int
4744 main ()
4745 {
4746
4747   ;
4748   return 0;
4749 }
4750 _ACEOF
4751 rm -f conftest.$ac_objext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753   (eval $ac_compile) 2>conftest.er1
4754   ac_status=$?
4755   grep -v '^ *+' conftest.er1 >conftest.err
4756   rm -f conftest.er1
4757   cat conftest.err >&5
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); } &&
4760          { ac_try='test -z "$ac_c_werror_flag"
4761                          || test ! -s conftest.err'
4762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763   (eval $ac_try) 2>&5
4764   ac_status=$?
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); }; } &&
4767          { ac_try='test -s conftest.$ac_objext'
4768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769   (eval $ac_try) 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); }; }; then
4773   ac_cv_prog_cc_g=yes
4774 else
4775   echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4777
4778 ac_cv_prog_cc_g=no
4779 fi
4780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4781 fi
4782 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4783 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4784 if test "$ac_test_CFLAGS" = set; then
4785   CFLAGS=$ac_save_CFLAGS
4786 elif test $ac_cv_prog_cc_g = yes; then
4787   if test "$GCC" = yes; then
4788     CFLAGS="-g -O2"
4789   else
4790     CFLAGS="-g"
4791   fi
4792 else
4793   if test "$GCC" = yes; then
4794     CFLAGS="-O2"
4795   else
4796     CFLAGS=
4797   fi
4798 fi
4799 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4800 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4801 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4802   echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804   ac_cv_prog_cc_stdc=no
4805 ac_save_CC=$CC
4806 cat >conftest.$ac_ext <<_ACEOF
4807 /* confdefs.h.  */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h.  */
4812 #include <stdarg.h>
4813 #include <stdio.h>
4814 #include <sys/types.h>
4815 #include <sys/stat.h>
4816 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4817 struct buf { int x; };
4818 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4819 static char *e (p, i)
4820      char **p;
4821      int i;
4822 {
4823   return p[i];
4824 }
4825 static char *f (char * (*g) (char **, int), char **p, ...)
4826 {
4827   char *s;
4828   va_list v;
4829   va_start (v,p);
4830   s = g (p, va_arg (v,int));
4831   va_end (v);
4832   return s;
4833 }
4834
4835 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4836    function prototypes and stuff, but not '\xHH' hex character constants.
4837    These don't provoke an error unfortunately, instead are silently treated
4838    as 'x'.  The following induces an error, until -std1 is added to get
4839    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4840    array size at least.  It's necessary to write '\x00'==0 to get something
4841    that's true only with -std1.  */
4842 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4843
4844 int test (int i, double x);
4845 struct s1 {int (*f) (int a);};
4846 struct s2 {int (*f) (double a);};
4847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4848 int argc;
4849 char **argv;
4850 int
4851 main ()
4852 {
4853 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4854   ;
4855   return 0;
4856 }
4857 _ACEOF
4858 # Don't try gcc -ansi; that turns off useful extensions and
4859 # breaks some systems' header files.
4860 # AIX                   -qlanglvl=ansi
4861 # Ultrix and OSF/1      -std1
4862 # HP-UX 10.20 and later -Ae
4863 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4864 # SVR4                  -Xc -D__EXTENSIONS__
4865 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4866 do
4867   CC="$ac_save_CC $ac_arg"
4868   rm -f conftest.$ac_objext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870   (eval $ac_compile) 2>conftest.er1
4871   ac_status=$?
4872   grep -v '^ *+' conftest.er1 >conftest.err
4873   rm -f conftest.er1
4874   cat conftest.err >&5
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); } &&
4877          { ac_try='test -z "$ac_c_werror_flag"
4878                          || test ! -s conftest.err'
4879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880   (eval $ac_try) 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); }; } &&
4884          { ac_try='test -s conftest.$ac_objext'
4885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886   (eval $ac_try) 2>&5
4887   ac_status=$?
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); }; }; then
4890   ac_cv_prog_cc_stdc=$ac_arg
4891 break
4892 else
4893   echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4895
4896 fi
4897 rm -f conftest.err conftest.$ac_objext
4898 done
4899 rm -f conftest.$ac_ext conftest.$ac_objext
4900 CC=$ac_save_CC
4901
4902 fi
4903
4904 case "x$ac_cv_prog_cc_stdc" in
4905   x|xno)
4906     echo "$as_me:$LINENO: result: none needed" >&5
4907 echo "${ECHO_T}none needed" >&6 ;;
4908   *)
4909     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4910 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4911     CC="$CC $ac_cv_prog_cc_stdc" ;;
4912 esac
4913
4914 # Some people use a C++ compiler to compile C.  Since we use `exit',
4915 # in C++ we need to declare it.  In case someone uses the same compiler
4916 # for both compiling C and C++ we need to have the C++ compiler decide
4917 # the declaration of exit, since it's the most demanding environment.
4918 cat >conftest.$ac_ext <<_ACEOF
4919 #ifndef __cplusplus
4920   choke me
4921 #endif
4922 _ACEOF
4923 rm -f conftest.$ac_objext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925   (eval $ac_compile) 2>conftest.er1
4926   ac_status=$?
4927   grep -v '^ *+' conftest.er1 >conftest.err
4928   rm -f conftest.er1
4929   cat conftest.err >&5
4930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931   (exit $ac_status); } &&
4932          { ac_try='test -z "$ac_c_werror_flag"
4933                          || test ! -s conftest.err'
4934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935   (eval $ac_try) 2>&5
4936   ac_status=$?
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); }; } &&
4939          { ac_try='test -s conftest.$ac_objext'
4940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941   (eval $ac_try) 2>&5
4942   ac_status=$?
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); }; }; then
4945   for ac_declaration in \
4946    '' \
4947    'extern "C" void std::exit (int) throw (); using std::exit;' \
4948    'extern "C" void std::exit (int); using std::exit;' \
4949    'extern "C" void exit (int) throw ();' \
4950    'extern "C" void exit (int);' \
4951    'void exit (int);'
4952 do
4953   cat >conftest.$ac_ext <<_ACEOF
4954 /* confdefs.h.  */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h.  */
4959 $ac_declaration
4960 #include <stdlib.h>
4961 int
4962 main ()
4963 {
4964 exit (42);
4965   ;
4966   return 0;
4967 }
4968 _ACEOF
4969 rm -f conftest.$ac_objext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971   (eval $ac_compile) 2>conftest.er1
4972   ac_status=$?
4973   grep -v '^ *+' conftest.er1 >conftest.err
4974   rm -f conftest.er1
4975   cat conftest.err >&5
4976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977   (exit $ac_status); } &&
4978          { ac_try='test -z "$ac_c_werror_flag"
4979                          || test ! -s conftest.err'
4980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981   (eval $ac_try) 2>&5
4982   ac_status=$?
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); }; } &&
4985          { ac_try='test -s conftest.$ac_objext'
4986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987   (eval $ac_try) 2>&5
4988   ac_status=$?
4989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); }; }; then
4991   :
4992 else
4993   echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4995
4996 continue
4997 fi
4998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4999   cat >conftest.$ac_ext <<_ACEOF
5000 /* confdefs.h.  */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h.  */
5005 $ac_declaration
5006 int
5007 main ()
5008 {
5009 exit (42);
5010   ;
5011   return 0;
5012 }
5013 _ACEOF
5014 rm -f conftest.$ac_objext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5016   (eval $ac_compile) 2>conftest.er1
5017   ac_status=$?
5018   grep -v '^ *+' conftest.er1 >conftest.err
5019   rm -f conftest.er1
5020   cat conftest.err >&5
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); } &&
5023          { ac_try='test -z "$ac_c_werror_flag"
5024                          || test ! -s conftest.err'
5025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026   (eval $ac_try) 2>&5
5027   ac_status=$?
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); }; } &&
5030          { ac_try='test -s conftest.$ac_objext'
5031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032   (eval $ac_try) 2>&5
5033   ac_status=$?
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); }; }; then
5036   break
5037 else
5038   echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5040
5041 fi
5042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5043 done
5044 rm -f conftest*
5045 if test -n "$ac_declaration"; then
5046   echo '#ifdef __cplusplus' >>confdefs.h
5047   echo $ac_declaration      >>confdefs.h
5048   echo '#endif'             >>confdefs.h
5049 fi
5050
5051 else
5052   echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5054
5055 fi
5056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5057 ac_ext=c
5058 ac_cpp='$CPP $CPPFLAGS'
5059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5062
5063 depcc="$CC"   am_compiler_list=
5064
5065 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5066 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5067 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5068   echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5071   # We make a subdir and do the tests there.  Otherwise we can end up
5072   # making bogus files that we don't know about and never remove.  For
5073   # instance it was reported that on HP-UX the gcc test will end up
5074   # making a dummy file named `D' -- because `-MD' means `put the output
5075   # in D'.
5076   mkdir conftest.dir
5077   # Copy depcomp to subdir because otherwise we won't find it if we're
5078   # using a relative directory.
5079   cp "$am_depcomp" conftest.dir
5080   cd conftest.dir
5081   # We will build objects and dependencies in a subdirectory because
5082   # it helps to detect inapplicable dependency modes.  For instance
5083   # both Tru64's cc and ICC support -MD to output dependencies as a
5084   # side effect of compilation, but ICC will put the dependencies in
5085   # the current directory while Tru64 will put them in the object
5086   # directory.
5087   mkdir sub
5088
5089   am_cv_CC_dependencies_compiler_type=none
5090   if test "$am_compiler_list" = ""; then
5091      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5092   fi
5093   for depmode in $am_compiler_list; do
5094     # Setup a source with many dependencies, because some compilers
5095     # like to wrap large dependency lists on column 80 (with \), and
5096     # we should not choose a depcomp mode which is confused by this.
5097     #
5098     # We need to recreate these files for each test, as the compiler may
5099     # overwrite some of them when testing with obscure command lines.
5100     # This happens at least with the AIX C compiler.
5101     : > sub/conftest.c
5102     for i in 1 2 3 4 5 6; do
5103       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5104       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5105       # Solaris 8's {/usr,}/bin/sh.
5106       touch sub/conftst$i.h
5107     done
5108     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5109
5110     case $depmode in
5111     nosideeffect)
5112       # after this tag, mechanisms are not by side-effect, so they'll
5113       # only be used when explicitly requested
5114       if test "x$enable_dependency_tracking" = xyes; then
5115         continue
5116       else
5117         break
5118       fi
5119       ;;
5120     none) break ;;
5121     esac
5122     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5123     # mode.  It turns out that the SunPro C++ compiler does not properly
5124     # handle `-M -o', and we need to detect this.
5125     if depmode=$depmode \
5126        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5127        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5128        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5129          >/dev/null 2>conftest.err &&
5130        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5131        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5132        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5133       # icc doesn't choke on unknown options, it will just issue warnings
5134       # or remarks (even with -Werror).  So we grep stderr for any message
5135       # that says an option was ignored or not supported.
5136       # When given -MP, icc 7.0 and 7.1 complain thusly:
5137       #   icc: Command line warning: ignoring option '-M'; no argument required
5138       # The diagnosis changed in icc 8.0:
5139       #   icc: Command line remark: option '-MP' not supported
5140       if (grep 'ignoring option' conftest.err ||
5141           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5142         am_cv_CC_dependencies_compiler_type=$depmode
5143         break
5144       fi
5145     fi
5146   done
5147
5148   cd ..
5149   rm -rf conftest.dir
5150 else
5151   am_cv_CC_dependencies_compiler_type=none
5152 fi
5153
5154 fi
5155 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5156 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5157 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5158
5159
5160
5161 if
5162   test "x$enable_dependency_tracking" != xno \
5163   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5164   am__fastdepCC_TRUE=
5165   am__fastdepCC_FALSE='#'
5166 else
5167   am__fastdepCC_TRUE='#'
5168   am__fastdepCC_FALSE=
5169 fi
5170
5171
5172 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5173 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5174 if test "${lt_cv_path_SED+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   # Loop through the user's path and test for sed and gsed.
5178 # Then use that list of sed's as ones to test for truncation.
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182   IFS=$as_save_IFS
5183   test -z "$as_dir" && as_dir=.
5184   for lt_ac_prog in sed gsed; do
5185     for ac_exec_ext in '' $ac_executable_extensions; do
5186       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5187         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5188       fi
5189     done
5190   done
5191 done
5192 lt_ac_max=0
5193 lt_ac_count=0
5194 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5195 # along with /bin/sed that truncates output.
5196 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5197   test ! -f $lt_ac_sed && continue
5198   cat /dev/null > conftest.in
5199   lt_ac_count=0
5200   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5201   # Check for GNU sed and select it if it is found.
5202   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5203     lt_cv_path_SED=$lt_ac_sed
5204     break
5205   fi
5206   while true; do
5207     cat conftest.in conftest.in >conftest.tmp
5208     mv conftest.tmp conftest.in
5209     cp conftest.in conftest.nl
5210     echo >>conftest.nl
5211     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5212     cmp -s conftest.out conftest.nl || break
5213     # 10000 chars as input seems more than enough
5214     test $lt_ac_count -gt 10 && break
5215     lt_ac_count=`expr $lt_ac_count + 1`
5216     if test $lt_ac_count -gt $lt_ac_max; then
5217       lt_ac_max=$lt_ac_count
5218       lt_cv_path_SED=$lt_ac_sed
5219     fi
5220   done
5221 done
5222
5223 fi
5224
5225 SED=$lt_cv_path_SED
5226 echo "$as_me:$LINENO: result: $SED" >&5
5227 echo "${ECHO_T}$SED" >&6
5228
5229 echo "$as_me:$LINENO: checking for egrep" >&5
5230 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5231 if test "${ac_cv_prog_egrep+set}" = set; then
5232   echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5235     then ac_cv_prog_egrep='grep -E'
5236     else ac_cv_prog_egrep='egrep'
5237     fi
5238 fi
5239 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5240 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5241  EGREP=$ac_cv_prog_egrep
5242
5243
5244
5245 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5246 if test "${with_gnu_ld+set}" = set; then
5247   withval="$with_gnu_ld"
5248   test "$withval" = no || with_gnu_ld=yes
5249 else
5250   with_gnu_ld=no
5251 fi;
5252 ac_prog=ld
5253 if test "$GCC" = yes; then
5254   # Check if gcc -print-prog-name=ld gives a path.
5255   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5256 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5257   case $host in
5258   *-*-mingw*)
5259     # gcc leaves a trailing carriage return which upsets mingw
5260     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5261   *)
5262     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5263   esac
5264   case $ac_prog in
5265     # Accept absolute paths.
5266     [\\/]* | ?:[\\/]*)
5267       re_direlt='/[^/][^/]*/\.\./'
5268       # Canonicalize the pathname of ld
5269       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5270       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5271         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5272       done
5273       test -z "$LD" && LD="$ac_prog"
5274       ;;
5275   "")
5276     # If it fails, then pretend we aren't using GCC.
5277     ac_prog=ld
5278     ;;
5279   *)
5280     # If it is relative, then search for the first ld in PATH.
5281     with_gnu_ld=unknown
5282     ;;
5283   esac
5284 elif test "$with_gnu_ld" = yes; then
5285   echo "$as_me:$LINENO: checking for GNU ld" >&5
5286 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5287 else
5288   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5289 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5290 fi
5291 if test "${lt_cv_path_LD+set}" = set; then
5292   echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294   if test -z "$LD"; then
5295   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5296   for ac_dir in $PATH; do
5297     IFS="$lt_save_ifs"
5298     test -z "$ac_dir" && ac_dir=.
5299     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5300       lt_cv_path_LD="$ac_dir/$ac_prog"
5301       # Check to see if the program is GNU ld.  I'd rather use --version,
5302       # but apparently some variants of GNU ld only accept -v.
5303       # Break only if it was the GNU/non-GNU ld that we prefer.
5304       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5305       *GNU* | *'with BFD'*)
5306         test "$with_gnu_ld" != no && break
5307         ;;
5308       *)
5309         test "$with_gnu_ld" != yes && break
5310         ;;
5311       esac
5312     fi
5313   done
5314   IFS="$lt_save_ifs"
5315 else
5316   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5317 fi
5318 fi
5319
5320 LD="$lt_cv_path_LD"
5321 if test -n "$LD"; then
5322   echo "$as_me:$LINENO: result: $LD" >&5
5323 echo "${ECHO_T}$LD" >&6
5324 else
5325   echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6
5327 fi
5328 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5329 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5330    { (exit 1); exit 1; }; }
5331 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5332 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5333 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5334   echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5337 case `$LD -v 2>&1 </dev/null` in
5338 *GNU* | *'with BFD'*)
5339   lt_cv_prog_gnu_ld=yes
5340   ;;
5341 *)
5342   lt_cv_prog_gnu_ld=no
5343   ;;
5344 esac
5345 fi
5346 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5347 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5348 with_gnu_ld=$lt_cv_prog_gnu_ld
5349
5350
5351 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5352 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5353 if test "${lt_cv_ld_reload_flag+set}" = set; then
5354   echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356   lt_cv_ld_reload_flag='-r'
5357 fi
5358 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5359 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5360 reload_flag=$lt_cv_ld_reload_flag
5361 case $reload_flag in
5362 "" | " "*) ;;
5363 *) reload_flag=" $reload_flag" ;;
5364 esac
5365 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5366 case $host_os in
5367   darwin*)
5368     if test "$GCC" = yes; then
5369       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5370     else
5371       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5372     fi
5373     ;;
5374 esac
5375
5376 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5377 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5378 if test "${lt_cv_path_NM+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   if test -n "$NM"; then
5382   # Let the user override the test.
5383   lt_cv_path_NM="$NM"
5384 else
5385   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5386   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5387     IFS="$lt_save_ifs"
5388     test -z "$ac_dir" && ac_dir=.
5389     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5390     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5391       # Check to see if the nm accepts a BSD-compat flag.
5392       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5393       #   nm: unknown option "B" ignored
5394       # Tru64's nm complains that /dev/null is an invalid object file
5395       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5396       */dev/null* | *'Invalid file or object type'*)
5397         lt_cv_path_NM="$tmp_nm -B"
5398         break
5399         ;;
5400       *)
5401         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5402         */dev/null*)
5403           lt_cv_path_NM="$tmp_nm -p"
5404           break
5405           ;;
5406         *)
5407           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5408           continue # so that we can try to find one that supports BSD flags
5409           ;;
5410         esac
5411       esac
5412     fi
5413   done
5414   IFS="$lt_save_ifs"
5415   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5416 fi
5417 fi
5418 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5419 echo "${ECHO_T}$lt_cv_path_NM" >&6
5420 NM="$lt_cv_path_NM"
5421
5422 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5423 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5424 LN_S=$as_ln_s
5425 if test "$LN_S" = "ln -s"; then
5426   echo "$as_me:$LINENO: result: yes" >&5
5427 echo "${ECHO_T}yes" >&6
5428 else
5429   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5430 echo "${ECHO_T}no, using $LN_S" >&6
5431 fi
5432
5433 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5434 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5435 if test "${lt_cv_deplibs_check_method+set}" = set; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   lt_cv_file_magic_cmd='$MAGIC_CMD'
5439 lt_cv_file_magic_test_file=
5440 lt_cv_deplibs_check_method='unknown'
5441 # Need to set the preceding variable on all platforms that support
5442 # interlibrary dependencies.
5443 # 'none' -- dependencies not supported.
5444 # `unknown' -- same as none, but documents that we really don't know.
5445 # 'pass_all' -- all dependencies passed with no checks.
5446 # 'test_compile' -- check by making test program.
5447 # 'file_magic [[regex]]' -- check by looking for files in library path
5448 # which responds to the $file_magic_cmd with a given extended regex.
5449 # If you have `file' or equivalent on your system and you're not sure
5450 # whether `pass_all' will *always* work, you probably want this one.
5451
5452 case $host_os in
5453 aix4* | aix5*)
5454   lt_cv_deplibs_check_method=pass_all
5455   ;;
5456
5457 beos*)
5458   lt_cv_deplibs_check_method=pass_all
5459   ;;
5460
5461 bsdi[45]*)
5462   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5463   lt_cv_file_magic_cmd='/usr/bin/file -L'
5464   lt_cv_file_magic_test_file=/shlib/libc.so
5465   ;;
5466
5467 cygwin*)
5468   # func_win32_libid is a shell function defined in ltmain.sh
5469   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5470   lt_cv_file_magic_cmd='func_win32_libid'
5471   ;;
5472
5473 mingw* | pw32*)
5474   # Base MSYS/MinGW do not provide the 'file' command needed by
5475   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5476   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5477   lt_cv_file_magic_cmd='$OBJDUMP -f'
5478   ;;
5479
5480 darwin* | rhapsody*)
5481   lt_cv_deplibs_check_method=pass_all
5482   ;;
5483
5484 freebsd* | kfreebsd*-gnu | dragonfly*)
5485   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5486     case $host_cpu in
5487     i*86 )
5488       # Not sure whether the presence of OpenBSD here was a mistake.
5489       # Let's accept both of them until this is cleared up.
5490       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5491       lt_cv_file_magic_cmd=/usr/bin/file
5492       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5493       ;;
5494     esac
5495   else
5496     lt_cv_deplibs_check_method=pass_all
5497   fi
5498   ;;
5499
5500 gnu*)
5501   lt_cv_deplibs_check_method=pass_all
5502   ;;
5503
5504 hpux10.20* | hpux11*)
5505   lt_cv_file_magic_cmd=/usr/bin/file
5506   case $host_cpu in
5507   ia64*)
5508     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5509     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5510     ;;
5511   hppa*64*)
5512     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]'
5513     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5514     ;;
5515   *)
5516     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5517     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5518     ;;
5519   esac
5520   ;;
5521
5522 irix5* | irix6* | nonstopux*)
5523   case $LD in
5524   *-32|*"-32 ") libmagic=32-bit;;
5525   *-n32|*"-n32 ") libmagic=N32;;
5526   *-64|*"-64 ") libmagic=64-bit;;
5527   *) libmagic=never-match;;
5528   esac
5529   lt_cv_deplibs_check_method=pass_all
5530   ;;
5531
5532 # This must be Linux ELF.
5533 linux*)
5534   lt_cv_deplibs_check_method=pass_all
5535   ;;
5536
5537 netbsd*)
5538   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5539     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5540   else
5541     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5542   fi
5543   ;;
5544
5545 newos6*)
5546   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5547   lt_cv_file_magic_cmd=/usr/bin/file
5548   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5549   ;;
5550
5551 nto-qnx*)
5552   lt_cv_deplibs_check_method=unknown
5553   ;;
5554
5555 openbsd*)
5556   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5557     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5558   else
5559     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5560   fi
5561   ;;
5562
5563 osf3* | osf4* | osf5*)
5564   lt_cv_deplibs_check_method=pass_all
5565   ;;
5566
5567 sco3.2v5*)
5568   lt_cv_deplibs_check_method=pass_all
5569   ;;
5570
5571 solaris*)
5572   lt_cv_deplibs_check_method=pass_all
5573   ;;
5574
5575 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5576   case $host_vendor in
5577   motorola)
5578     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]'
5579     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5580     ;;
5581   ncr)
5582     lt_cv_deplibs_check_method=pass_all
5583     ;;
5584   sequent)
5585     lt_cv_file_magic_cmd='/bin/file'
5586     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5587     ;;
5588   sni)
5589     lt_cv_file_magic_cmd='/bin/file'
5590     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5591     lt_cv_file_magic_test_file=/lib/libc.so
5592     ;;
5593   siemens)
5594     lt_cv_deplibs_check_method=pass_all
5595     ;;
5596   esac
5597   ;;
5598
5599 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5600   lt_cv_deplibs_check_method=pass_all
5601   ;;
5602 esac
5603
5604 fi
5605 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5606 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5607 file_magic_cmd=$lt_cv_file_magic_cmd
5608 deplibs_check_method=$lt_cv_deplibs_check_method
5609 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5610
5611
5612
5613
5614 # If no C compiler was specified, use CC.
5615 LTCC=${LTCC-"$CC"}
5616
5617 # Allow CC to be a program name with arguments.
5618 compiler=$CC
5619
5620
5621 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5622 if test "${enable_libtool_lock+set}" = set; then
5623   enableval="$enable_libtool_lock"
5624
5625 fi;
5626 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5627
5628 # Some flags need to be propagated to the compiler or linker for good
5629 # libtool support.
5630 case $host in
5631 ia64-*-hpux*)
5632   # Find out which ABI we are using.
5633   echo 'int i;' > conftest.$ac_ext
5634   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635   (eval $ac_compile) 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); }; then
5639     case `/usr/bin/file conftest.$ac_objext` in
5640     *ELF-32*)
5641       HPUX_IA64_MODE="32"
5642       ;;
5643     *ELF-64*)
5644       HPUX_IA64_MODE="64"
5645       ;;
5646     esac
5647   fi
5648   rm -rf conftest*
5649   ;;
5650 *-*-irix6*)
5651   # Find out which ABI we are using.
5652   echo '#line 5652 "configure"' > conftest.$ac_ext
5653   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654   (eval $ac_compile) 2>&5
5655   ac_status=$?
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); }; then
5658    if test "$lt_cv_prog_gnu_ld" = yes; then
5659     case `/usr/bin/file conftest.$ac_objext` in
5660     *32-bit*)
5661       LD="${LD-ld} -melf32bsmip"
5662       ;;
5663     *N32*)
5664       LD="${LD-ld} -melf32bmipn32"
5665       ;;
5666     *64-bit*)
5667       LD="${LD-ld} -melf64bmip"
5668       ;;
5669     esac
5670    else
5671     case `/usr/bin/file conftest.$ac_objext` in
5672     *32-bit*)
5673       LD="${LD-ld} -32"
5674       ;;
5675     *N32*)
5676       LD="${LD-ld} -n32"
5677       ;;
5678     *64-bit*)
5679       LD="${LD-ld} -64"
5680       ;;
5681     esac
5682    fi
5683   fi
5684   rm -rf conftest*
5685   ;;
5686
5687 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5688   # Find out which ABI we are using.
5689   echo 'int i;' > conftest.$ac_ext
5690   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691   (eval $ac_compile) 2>&5
5692   ac_status=$?
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); }; then
5695     case `/usr/bin/file conftest.o` in
5696     *32-bit*)
5697       case $host in
5698         x86_64-*linux*)
5699           LD="${LD-ld} -m elf_i386"
5700           ;;
5701         ppc64-*linux*|powerpc64-*linux*)
5702           LD="${LD-ld} -m elf32ppclinux"
5703           ;;
5704         s390x-*linux*)
5705           LD="${LD-ld} -m elf_s390"
5706           ;;
5707         sparc64-*linux*)
5708           LD="${LD-ld} -m elf32_sparc"
5709           ;;
5710       esac
5711       ;;
5712     *64-bit*)
5713       case $host in
5714         x86_64-*linux*)
5715           LD="${LD-ld} -m elf_x86_64"
5716           ;;
5717         ppc*-*linux*|powerpc*-*linux*)
5718           LD="${LD-ld} -m elf64ppc"
5719           ;;
5720         s390*-*linux*)
5721           LD="${LD-ld} -m elf64_s390"
5722           ;;
5723         sparc*-*linux*)
5724           LD="${LD-ld} -m elf64_sparc"
5725           ;;
5726       esac
5727       ;;
5728     esac
5729   fi
5730   rm -rf conftest*
5731   ;;
5732
5733 *-*-sco3.2v5*)
5734   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5735   SAVE_CFLAGS="$CFLAGS"
5736   CFLAGS="$CFLAGS -belf"
5737   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5738 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5739 if test "${lt_cv_cc_needs_belf+set}" = set; then
5740   echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742   ac_ext=c
5743 ac_cpp='$CPP $CPPFLAGS'
5744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5747
5748      cat >conftest.$ac_ext <<_ACEOF
5749 /* confdefs.h.  */
5750 _ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h.  */
5754
5755 int
5756 main ()
5757 {
5758
5759   ;
5760   return 0;
5761 }
5762 _ACEOF
5763 rm -f conftest.$ac_objext conftest$ac_exeext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5765   (eval $ac_link) 2>conftest.er1
5766   ac_status=$?
5767   grep -v '^ *+' conftest.er1 >conftest.err
5768   rm -f conftest.er1
5769   cat conftest.err >&5
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); } &&
5772          { ac_try='test -z "$ac_c_werror_flag"
5773                          || test ! -s conftest.err'
5774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775   (eval $ac_try) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; } &&
5779          { ac_try='test -s conftest$ac_exeext'
5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781   (eval $ac_try) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; }; then
5785   lt_cv_cc_needs_belf=yes
5786 else
5787   echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5789
5790 lt_cv_cc_needs_belf=no
5791 fi
5792 rm -f conftest.err conftest.$ac_objext \
5793       conftest$ac_exeext conftest.$ac_ext
5794      ac_ext=c
5795 ac_cpp='$CPP $CPPFLAGS'
5796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5799
5800 fi
5801 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5802 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5803   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5804     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5805     CFLAGS="$SAVE_CFLAGS"
5806   fi
5807   ;;
5808 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5809   if test -n "$ac_tool_prefix"; then
5810   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5811 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5812 echo "$as_me:$LINENO: checking for $ac_word" >&5
5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5814 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5815   echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817   if test -n "$DLLTOOL"; then
5818   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5819 else
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5822 do
5823   IFS=$as_save_IFS
5824   test -z "$as_dir" && as_dir=.
5825   for ac_exec_ext in '' $ac_executable_extensions; do
5826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829     break 2
5830   fi
5831 done
5832 done
5833
5834 fi
5835 fi
5836 DLLTOOL=$ac_cv_prog_DLLTOOL
5837 if test -n "$DLLTOOL"; then
5838   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5839 echo "${ECHO_T}$DLLTOOL" >&6
5840 else
5841   echo "$as_me:$LINENO: result: no" >&5
5842 echo "${ECHO_T}no" >&6
5843 fi
5844
5845 fi
5846 if test -z "$ac_cv_prog_DLLTOOL"; then
5847   ac_ct_DLLTOOL=$DLLTOOL
5848   # Extract the first word of "dlltool", so it can be a program name with args.
5849 set dummy dlltool; ac_word=$2
5850 echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   if test -n "$ac_ct_DLLTOOL"; then
5856   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863   for ac_exec_ext in '' $ac_executable_extensions; do
5864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870 done
5871
5872   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5873 fi
5874 fi
5875 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5876 if test -n "$ac_ct_DLLTOOL"; then
5877   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5878 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5879 else
5880   echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6
5882 fi
5883
5884   DLLTOOL=$ac_ct_DLLTOOL
5885 else
5886   DLLTOOL="$ac_cv_prog_DLLTOOL"
5887 fi
5888
5889   if test -n "$ac_tool_prefix"; then
5890   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5891 set dummy ${ac_tool_prefix}as; ac_word=$2
5892 echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5894 if test "${ac_cv_prog_AS+set}" = set; then
5895   echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897   if test -n "$AS"; then
5898   ac_cv_prog_AS="$AS" # Let the user override the test.
5899 else
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903   IFS=$as_save_IFS
5904   test -z "$as_dir" && as_dir=.
5905   for ac_exec_ext in '' $ac_executable_extensions; do
5906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907     ac_cv_prog_AS="${ac_tool_prefix}as"
5908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909     break 2
5910   fi
5911 done
5912 done
5913
5914 fi
5915 fi
5916 AS=$ac_cv_prog_AS
5917 if test -n "$AS"; then
5918   echo "$as_me:$LINENO: result: $AS" >&5
5919 echo "${ECHO_T}$AS" >&6
5920 else
5921   echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6
5923 fi
5924
5925 fi
5926 if test -z "$ac_cv_prog_AS"; then
5927   ac_ct_AS=$AS
5928   # Extract the first word of "as", so it can be a program name with args.
5929 set dummy as; ac_word=$2
5930 echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5932 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5933   echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935   if test -n "$ac_ct_AS"; then
5936   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5937 else
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH
5940 do
5941   IFS=$as_save_IFS
5942   test -z "$as_dir" && as_dir=.
5943   for ac_exec_ext in '' $ac_executable_extensions; do
5944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945     ac_cv_prog_ac_ct_AS="as"
5946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5947     break 2
5948   fi
5949 done
5950 done
5951
5952   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5953 fi
5954 fi
5955 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5956 if test -n "$ac_ct_AS"; then
5957   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5958 echo "${ECHO_T}$ac_ct_AS" >&6
5959 else
5960   echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6
5962 fi
5963
5964   AS=$ac_ct_AS
5965 else
5966   AS="$ac_cv_prog_AS"
5967 fi
5968
5969   if test -n "$ac_tool_prefix"; then
5970   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5971 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5972 echo "$as_me:$LINENO: checking for $ac_word" >&5
5973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5974 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5975   echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977   if test -n "$OBJDUMP"; then
5978   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5979 else
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5982 do
5983   IFS=$as_save_IFS
5984   test -z "$as_dir" && as_dir=.
5985   for ac_exec_ext in '' $ac_executable_extensions; do
5986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5987     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989     break 2
5990   fi
5991 done
5992 done
5993
5994 fi
5995 fi
5996 OBJDUMP=$ac_cv_prog_OBJDUMP
5997 if test -n "$OBJDUMP"; then
5998   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5999 echo "${ECHO_T}$OBJDUMP" >&6
6000 else
6001   echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6
6003 fi
6004
6005 fi
6006 if test -z "$ac_cv_prog_OBJDUMP"; then
6007   ac_ct_OBJDUMP=$OBJDUMP
6008   # Extract the first word of "objdump", so it can be a program name with args.
6009 set dummy objdump; ac_word=$2
6010 echo "$as_me:$LINENO: checking for $ac_word" >&5
6011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6012 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6013   echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015   if test -n "$ac_ct_OBJDUMP"; then
6016   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6020 do
6021   IFS=$as_save_IFS
6022   test -z "$as_dir" && as_dir=.
6023   for ac_exec_ext in '' $ac_executable_extensions; do
6024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027     break 2
6028   fi
6029 done
6030 done
6031
6032   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6033 fi
6034 fi
6035 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6036 if test -n "$ac_ct_OBJDUMP"; then
6037   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6038 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6039 else
6040   echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6
6042 fi
6043
6044   OBJDUMP=$ac_ct_OBJDUMP
6045 else
6046   OBJDUMP="$ac_cv_prog_OBJDUMP"
6047 fi
6048
6049   ;;
6050
6051 esac
6052
6053 need_locks="$enable_libtool_lock"
6054
6055
6056 ac_ext=c
6057 ac_cpp='$CPP $CPPFLAGS'
6058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6062 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6063 # On Suns, sometimes $CPP names a directory.
6064 if test -n "$CPP" && test -d "$CPP"; then
6065   CPP=
6066 fi
6067 if test -z "$CPP"; then
6068   if test "${ac_cv_prog_CPP+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071       # Double quotes because CPP needs to be expanded
6072     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6073     do
6074       ac_preproc_ok=false
6075 for ac_c_preproc_warn_flag in '' yes
6076 do
6077   # Use a header file that comes with gcc, so configuring glibc
6078   # with a fresh cross-compiler works.
6079   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080   # <limits.h> exists even on freestanding compilers.
6081   # On the NeXT, cc -E runs the code through the compiler's parser,
6082   # not just through cpp. "Syntax error" is here to catch this case.
6083   cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h.  */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h.  */
6089 #ifdef __STDC__
6090 # include <limits.h>
6091 #else
6092 # include <assert.h>
6093 #endif
6094                      Syntax error
6095 _ACEOF
6096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6098   ac_status=$?
6099   grep -v '^ *+' conftest.er1 >conftest.err
6100   rm -f conftest.er1
6101   cat conftest.err >&5
6102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); } >/dev/null; then
6104   if test -s conftest.err; then
6105     ac_cpp_err=$ac_c_preproc_warn_flag
6106     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6107   else
6108     ac_cpp_err=
6109   fi
6110 else
6111   ac_cpp_err=yes
6112 fi
6113 if test -z "$ac_cpp_err"; then
6114   :
6115 else
6116   echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119   # Broken: fails on valid input.
6120 continue
6121 fi
6122 rm -f conftest.err conftest.$ac_ext
6123
6124   # OK, works on sane cases.  Now check whether non-existent headers
6125   # can be detected and how.
6126   cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h.  */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h.  */
6132 #include <ac_nonexistent.h>
6133 _ACEOF
6134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6136   ac_status=$?
6137   grep -v '^ *+' conftest.er1 >conftest.err
6138   rm -f conftest.er1
6139   cat conftest.err >&5
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); } >/dev/null; then
6142   if test -s conftest.err; then
6143     ac_cpp_err=$ac_c_preproc_warn_flag
6144     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6145   else
6146     ac_cpp_err=
6147   fi
6148 else
6149   ac_cpp_err=yes
6150 fi
6151 if test -z "$ac_cpp_err"; then
6152   # Broken: success on invalid input.
6153 continue
6154 else
6155   echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158   # Passes both tests.
6159 ac_preproc_ok=:
6160 break
6161 fi
6162 rm -f conftest.err conftest.$ac_ext
6163
6164 done
6165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6166 rm -f conftest.err conftest.$ac_ext
6167 if $ac_preproc_ok; then
6168   break
6169 fi
6170
6171     done
6172     ac_cv_prog_CPP=$CPP
6173
6174 fi
6175   CPP=$ac_cv_prog_CPP
6176 else
6177   ac_cv_prog_CPP=$CPP
6178 fi
6179 echo "$as_me:$LINENO: result: $CPP" >&5
6180 echo "${ECHO_T}$CPP" >&6
6181 ac_preproc_ok=false
6182 for ac_c_preproc_warn_flag in '' yes
6183 do
6184   # Use a header file that comes with gcc, so configuring glibc
6185   # with a fresh cross-compiler works.
6186   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6187   # <limits.h> exists even on freestanding compilers.
6188   # On the NeXT, cc -E runs the code through the compiler's parser,
6189   # not just through cpp. "Syntax error" is here to catch this case.
6190   cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h.  */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h.  */
6196 #ifdef __STDC__
6197 # include <limits.h>
6198 #else
6199 # include <assert.h>
6200 #endif
6201                      Syntax error
6202 _ACEOF
6203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6204   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6205   ac_status=$?
6206   grep -v '^ *+' conftest.er1 >conftest.err
6207   rm -f conftest.er1
6208   cat conftest.err >&5
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); } >/dev/null; then
6211   if test -s conftest.err; then
6212     ac_cpp_err=$ac_c_preproc_warn_flag
6213     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6214   else
6215     ac_cpp_err=
6216   fi
6217 else
6218   ac_cpp_err=yes
6219 fi
6220 if test -z "$ac_cpp_err"; then
6221   :
6222 else
6223   echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6225
6226   # Broken: fails on valid input.
6227 continue
6228 fi
6229 rm -f conftest.err conftest.$ac_ext
6230
6231   # OK, works on sane cases.  Now check whether non-existent headers
6232   # can be detected and how.
6233   cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h.  */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h.  */
6239 #include <ac_nonexistent.h>
6240 _ACEOF
6241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6243   ac_status=$?
6244   grep -v '^ *+' conftest.er1 >conftest.err
6245   rm -f conftest.er1
6246   cat conftest.err >&5
6247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248   (exit $ac_status); } >/dev/null; then
6249   if test -s conftest.err; then
6250     ac_cpp_err=$ac_c_preproc_warn_flag
6251     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6252   else
6253     ac_cpp_err=
6254   fi
6255 else
6256   ac_cpp_err=yes
6257 fi
6258 if test -z "$ac_cpp_err"; then
6259   # Broken: success on invalid input.
6260 continue
6261 else
6262   echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6264
6265   # Passes both tests.
6266 ac_preproc_ok=:
6267 break
6268 fi
6269 rm -f conftest.err conftest.$ac_ext
6270
6271 done
6272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6273 rm -f conftest.err conftest.$ac_ext
6274 if $ac_preproc_ok; then
6275   :
6276 else
6277   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6278 See \`config.log' for more details." >&5
6279 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6280 See \`config.log' for more details." >&2;}
6281    { (exit 1); exit 1; }; }
6282 fi
6283
6284 ac_ext=c
6285 ac_cpp='$CPP $CPPFLAGS'
6286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6289
6290
6291 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6292 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6293 if test "${ac_cv_header_stdc+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   cat >conftest.$ac_ext <<_ACEOF
6297 /* confdefs.h.  */
6298 _ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h.  */
6302 #include <stdlib.h>
6303 #include <stdarg.h>
6304 #include <string.h>
6305 #include <float.h>
6306
6307 int
6308 main ()
6309 {
6310
6311   ;
6312   return 0;
6313 }
6314 _ACEOF
6315 rm -f conftest.$ac_objext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317   (eval $ac_compile) 2>conftest.er1
6318   ac_status=$?
6319   grep -v '^ *+' conftest.er1 >conftest.err
6320   rm -f conftest.er1
6321   cat conftest.err >&5
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); } &&
6324          { ac_try='test -z "$ac_c_werror_flag"
6325                          || test ! -s conftest.err'
6326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327   (eval $ac_try) 2>&5
6328   ac_status=$?
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); }; } &&
6331          { ac_try='test -s conftest.$ac_objext'
6332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333   (eval $ac_try) 2>&5
6334   ac_status=$?
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); }; }; then
6337   ac_cv_header_stdc=yes
6338 else
6339   echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6341
6342 ac_cv_header_stdc=no
6343 fi
6344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6345
6346 if test $ac_cv_header_stdc = yes; then
6347   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6348   cat >conftest.$ac_ext <<_ACEOF
6349 /* confdefs.h.  */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h.  */
6354 #include <string.h>
6355
6356 _ACEOF
6357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6358   $EGREP "memchr" >/dev/null 2>&1; then
6359   :
6360 else
6361   ac_cv_header_stdc=no
6362 fi
6363 rm -f conftest*
6364
6365 fi
6366
6367 if test $ac_cv_header_stdc = yes; then
6368   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6369   cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h.  */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h.  */
6375 #include <stdlib.h>
6376
6377 _ACEOF
6378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6379   $EGREP "free" >/dev/null 2>&1; then
6380   :
6381 else
6382   ac_cv_header_stdc=no
6383 fi
6384 rm -f conftest*
6385
6386 fi
6387
6388 if test $ac_cv_header_stdc = yes; then
6389   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6390   if test "$cross_compiling" = yes; then
6391   :
6392 else
6393   cat >conftest.$ac_ext <<_ACEOF
6394 /* confdefs.h.  */
6395 _ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h.  */
6399 #include <ctype.h>
6400 #if ((' ' & 0x0FF) == 0x020)
6401 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6402 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6403 #else
6404 # define ISLOWER(c) \
6405                    (('a' <= (c) && (c) <= 'i') \
6406                      || ('j' <= (c) && (c) <= 'r') \
6407                      || ('s' <= (c) && (c) <= 'z'))
6408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6409 #endif
6410
6411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6412 int
6413 main ()
6414 {
6415   int i;
6416   for (i = 0; i < 256; i++)
6417     if (XOR (islower (i), ISLOWER (i))
6418         || toupper (i) != TOUPPER (i))
6419       exit(2);
6420   exit (0);
6421 }
6422 _ACEOF
6423 rm -f conftest$ac_exeext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425   (eval $ac_link) 2>&5
6426   ac_status=$?
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430   (eval $ac_try) 2>&5
6431   ac_status=$?
6432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433   (exit $ac_status); }; }; then
6434   :
6435 else
6436   echo "$as_me: program exited with status $ac_status" >&5
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6439
6440 ( exit $ac_status )
6441 ac_cv_header_stdc=no
6442 fi
6443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6444 fi
6445 fi
6446 fi
6447 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6448 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6449 if test $ac_cv_header_stdc = yes; then
6450
6451 cat >>confdefs.h <<\_ACEOF
6452 #define STDC_HEADERS 1
6453 _ACEOF
6454
6455 fi
6456
6457 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6468                   inttypes.h stdint.h unistd.h
6469 do
6470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6471 echo "$as_me:$LINENO: checking for $ac_header" >&5
6472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6474   echo $ECHO_N "(cached) $ECHO_C" >&6
6475 else
6476   cat >conftest.$ac_ext <<_ACEOF
6477 /* confdefs.h.  */
6478 _ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h.  */
6482 $ac_includes_default
6483
6484 #include <$ac_header>
6485 _ACEOF
6486 rm -f conftest.$ac_objext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488   (eval $ac_compile) 2>conftest.er1
6489   ac_status=$?
6490   grep -v '^ *+' conftest.er1 >conftest.err
6491   rm -f conftest.er1
6492   cat conftest.err >&5
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); } &&
6495          { ac_try='test -z "$ac_c_werror_flag"
6496                          || test ! -s conftest.err'
6497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498   (eval $ac_try) 2>&5
6499   ac_status=$?
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); }; } &&
6502          { ac_try='test -s conftest.$ac_objext'
6503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504   (eval $ac_try) 2>&5
6505   ac_status=$?
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); }; }; then
6508   eval "$as_ac_Header=yes"
6509 else
6510   echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6512
6513 eval "$as_ac_Header=no"
6514 fi
6515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6516 fi
6517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6520   cat >>confdefs.h <<_ACEOF
6521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6522 _ACEOF
6523
6524 fi
6525
6526 done
6527
6528
6529
6530 for ac_header in dlfcn.h
6531 do
6532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6534   echo "$as_me:$LINENO: checking for $ac_header" >&5
6535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537   echo $ECHO_N "(cached) $ECHO_C" >&6
6538 fi
6539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6541 else
6542   # Is the header compilable?
6543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6545 cat >conftest.$ac_ext <<_ACEOF
6546 /* confdefs.h.  */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h.  */
6551 $ac_includes_default
6552 #include <$ac_header>
6553 _ACEOF
6554 rm -f conftest.$ac_objext
6555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6556   (eval $ac_compile) 2>conftest.er1
6557   ac_status=$?
6558   grep -v '^ *+' conftest.er1 >conftest.err
6559   rm -f conftest.er1
6560   cat conftest.err >&5
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); } &&
6563          { ac_try='test -z "$ac_c_werror_flag"
6564                          || test ! -s conftest.err'
6565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566   (eval $ac_try) 2>&5
6567   ac_status=$?
6568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569   (exit $ac_status); }; } &&
6570          { ac_try='test -s conftest.$ac_objext'
6571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572   (eval $ac_try) 2>&5
6573   ac_status=$?
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); }; }; then
6576   ac_header_compiler=yes
6577 else
6578   echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6580
6581 ac_header_compiler=no
6582 fi
6583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6585 echo "${ECHO_T}$ac_header_compiler" >&6
6586
6587 # Is the header present?
6588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6590 cat >conftest.$ac_ext <<_ACEOF
6591 /* confdefs.h.  */
6592 _ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h.  */
6596 #include <$ac_header>
6597 _ACEOF
6598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6599   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6600   ac_status=$?
6601   grep -v '^ *+' conftest.er1 >conftest.err
6602   rm -f conftest.er1
6603   cat conftest.err >&5
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); } >/dev/null; then
6606   if test -s conftest.err; then
6607     ac_cpp_err=$ac_c_preproc_warn_flag
6608     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6609   else
6610     ac_cpp_err=
6611   fi
6612 else
6613   ac_cpp_err=yes
6614 fi
6615 if test -z "$ac_cpp_err"; then
6616   ac_header_preproc=yes
6617 else
6618   echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621   ac_header_preproc=no
6622 fi
6623 rm -f conftest.err conftest.$ac_ext
6624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6625 echo "${ECHO_T}$ac_header_preproc" >&6
6626
6627 # So?  What about this header?
6628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6629   yes:no: )
6630     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6634     ac_header_preproc=yes
6635     ;;
6636   no:yes:* )
6637     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6639     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6640 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6641     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6643     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6644 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6647     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6649     (
6650       cat <<\_ASBOX
6651 ## --------------------------------------------- ##
6652 ## Report this to <http://www.openldap.org/its/> ##
6653 ## --------------------------------------------- ##
6654 _ASBOX
6655     ) |
6656       sed "s/^/$as_me: WARNING:     /" >&2
6657     ;;
6658 esac
6659 echo "$as_me:$LINENO: checking for $ac_header" >&5
6660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6662   echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664   eval "$as_ac_Header=\$ac_header_preproc"
6665 fi
6666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6668
6669 fi
6670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6671   cat >>confdefs.h <<_ACEOF
6672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6673 _ACEOF
6674
6675 fi
6676
6677 done
6678
6679
6680 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6681
6682 # find the maximum length of command line arguments
6683 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6684 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6685 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6686   echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688     i=0
6689   teststring="ABCD"
6690
6691   case $build_os in
6692   msdosdjgpp*)
6693     # On DJGPP, this test can blow up pretty badly due to problems in libc
6694     # (any single argument exceeding 2000 bytes causes a buffer overrun
6695     # during glob expansion).  Even if it were fixed, the result of this
6696     # check would be larger than it should be.
6697     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6698     ;;
6699
6700   gnu*)
6701     # Under GNU Hurd, this test is not required because there is
6702     # no limit to the length of command line arguments.
6703     # Libtool will interpret -1 as no limit whatsoever
6704     lt_cv_sys_max_cmd_len=-1;
6705     ;;
6706
6707   cygwin* | mingw*)
6708     # On Win9x/ME, this test blows up -- it succeeds, but takes
6709     # about 5 minutes as the teststring grows exponentially.
6710     # Worse, since 9x/ME are not pre-emptively multitasking,
6711     # you end up with a "frozen" computer, even though with patience
6712     # the test eventually succeeds (with a max line length of 256k).
6713     # Instead, let's just punt: use the minimum linelength reported by
6714     # all of the supported platforms: 8192 (on NT/2K/XP).
6715     lt_cv_sys_max_cmd_len=8192;
6716     ;;
6717
6718   amigaos*)
6719     # On AmigaOS with pdksh, this test takes hours, literally.
6720     # So we just punt and use a minimum line length of 8192.
6721     lt_cv_sys_max_cmd_len=8192;
6722     ;;
6723
6724   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6725     # This has been around since 386BSD, at least.  Likely further.
6726     if test -x /sbin/sysctl; then
6727       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6728     elif test -x /usr/sbin/sysctl; then
6729       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6730     else
6731       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6732     fi
6733     # And add a safety zone
6734     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6735     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6736     ;;
6737   osf*)
6738     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6739     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6740     # nice to cause kernel panics so lets avoid the loop below.
6741     # First set a reasonable default.
6742     lt_cv_sys_max_cmd_len=16384
6743     #
6744     if test -x /sbin/sysconfig; then
6745       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6746         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6747       esac
6748     fi
6749     ;;
6750   *)
6751     # If test is not a shell built-in, we'll probably end up computing a
6752     # maximum length that is only half of the actual maximum length, but
6753     # we can't tell.
6754     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6755     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6756                = "XX$teststring") >/dev/null 2>&1 &&
6757             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6758             lt_cv_sys_max_cmd_len=$new_result &&
6759             test $i != 17 # 1/2 MB should be enough
6760     do
6761       i=`expr $i + 1`
6762       teststring=$teststring$teststring
6763     done
6764     teststring=
6765     # Add a significant safety factor because C++ compilers can tack on massive
6766     # amounts of additional arguments before passing them to the linker.
6767     # It appears as though 1/2 is a usable value.
6768     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6769     ;;
6770   esac
6771
6772 fi
6773
6774 if test -n $lt_cv_sys_max_cmd_len ; then
6775   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6776 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6777 else
6778   echo "$as_me:$LINENO: result: none" >&5
6779 echo "${ECHO_T}none" >&6
6780 fi
6781
6782
6783
6784
6785 # Check for command to grab the raw symbol name followed by C symbol from nm.
6786 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6787 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6788 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6789   echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791
6792 # These are sane defaults that work on at least a few old systems.
6793 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6794
6795 # Character class describing NM global symbol codes.
6796 symcode='[BCDEGRST]'
6797
6798 # Regexp to match symbols that can be accessed directly from C.
6799 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6800
6801 # Transform an extracted symbol line into a proper C declaration
6802 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6803
6804 # Transform an extracted symbol line into symbol name and symbol address
6805 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'"
6806
6807 # Define system-specific variables.
6808 case $host_os in
6809 aix*)
6810   symcode='[BCDT]'
6811   ;;
6812 cygwin* | mingw* | pw32*)
6813   symcode='[ABCDGISTW]'
6814   ;;
6815 hpux*) # Its linker distinguishes data from code symbols
6816   if test "$host_cpu" = ia64; then
6817     symcode='[ABCDEGRST]'
6818   fi
6819   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6820   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'"
6821   ;;
6822 linux*)
6823   if test "$host_cpu" = ia64; then
6824     symcode='[ABCDGIRSTW]'
6825     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6826     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'"
6827   fi
6828   ;;
6829 irix* | nonstopux*)
6830   symcode='[BCDEGRST]'
6831   ;;
6832 osf*)
6833   symcode='[BCDEGQRST]'
6834   ;;
6835 solaris* | sysv5*)
6836   symcode='[BDRT]'
6837   ;;
6838 sysv4)
6839   symcode='[DFNSTU]'
6840   ;;
6841 esac
6842
6843 # Handle CRLF in mingw tool chain
6844 opt_cr=
6845 case $build_os in
6846 mingw*)
6847   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6848   ;;
6849 esac
6850
6851 # If we're using GNU nm, then use its standard symbol codes.
6852 case `$NM -V 2>&1` in
6853 *GNU* | *'with BFD'*)
6854   symcode='[ABCDGIRSTW]' ;;
6855 esac
6856
6857 # Try without a prefix undercore, then with it.
6858 for ac_symprfx in "" "_"; do
6859
6860   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6861   symxfrm="\\1 $ac_symprfx\\2 \\2"
6862
6863   # Write the raw and C identifiers.
6864   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6865
6866   # Check to see that the pipe works correctly.
6867   pipe_works=no
6868
6869   rm -f conftest*
6870   cat > conftest.$ac_ext <<EOF
6871 #ifdef __cplusplus
6872 extern "C" {
6873 #endif
6874 char nm_test_var;
6875 void nm_test_func(){}
6876 #ifdef __cplusplus
6877 }
6878 #endif
6879 int main(){nm_test_var='a';nm_test_func();return(0);}
6880 EOF
6881
6882   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6883   (eval $ac_compile) 2>&5
6884   ac_status=$?
6885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886   (exit $ac_status); }; then
6887     # Now try to grab the symbols.
6888     nlist=conftest.nm
6889     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6890   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6891   ac_status=$?
6892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893   (exit $ac_status); } && test -s "$nlist"; then
6894       # Try sorting and uniquifying the output.
6895       if sort "$nlist" | uniq > "$nlist"T; then
6896         mv -f "$nlist"T "$nlist"
6897       else
6898         rm -f "$nlist"T
6899       fi
6900
6901       # Make sure that we snagged all the symbols we need.
6902       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6903         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6904           cat <<EOF > conftest.$ac_ext
6905 #ifdef __cplusplus
6906 extern "C" {
6907 #endif
6908
6909 EOF
6910           # Now generate the symbol file.
6911           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6912
6913           cat <<EOF >> conftest.$ac_ext
6914 #if defined (__STDC__) && __STDC__
6915 # define lt_ptr_t void *
6916 #else
6917 # define lt_ptr_t char *
6918 # define const
6919 #endif
6920
6921 /* The mapping between symbol names and symbols. */
6922 const struct {
6923   const char *name;
6924   lt_ptr_t address;
6925 }
6926 lt_preloaded_symbols[] =
6927 {
6928 EOF
6929           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6930           cat <<\EOF >> conftest.$ac_ext
6931   {0, (lt_ptr_t) 0}
6932 };
6933
6934 #ifdef __cplusplus
6935 }
6936 #endif
6937 EOF
6938           # Now try linking the two files.
6939           mv conftest.$ac_objext conftstm.$ac_objext
6940           lt_save_LIBS="$LIBS"
6941           lt_save_CFLAGS="$CFLAGS"
6942           LIBS="conftstm.$ac_objext"
6943           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6944           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945   (eval $ac_link) 2>&5
6946   ac_status=$?
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6949             pipe_works=yes
6950           fi
6951           LIBS="$lt_save_LIBS"
6952           CFLAGS="$lt_save_CFLAGS"
6953         else
6954           echo "cannot find nm_test_func in $nlist" >&5
6955         fi
6956       else
6957         echo "cannot find nm_test_var in $nlist" >&5
6958       fi
6959     else
6960       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6961     fi
6962   else
6963     echo "$progname: failed program was:" >&5
6964     cat conftest.$ac_ext >&5
6965   fi
6966   rm -f conftest* conftst*
6967
6968   # Do not use the global_symbol_pipe unless it works.
6969   if test "$pipe_works" = yes; then
6970     break
6971   else
6972     lt_cv_sys_global_symbol_pipe=
6973   fi
6974 done
6975
6976 fi
6977
6978 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6979   lt_cv_sys_global_symbol_to_cdecl=
6980 fi
6981 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6982   echo "$as_me:$LINENO: result: failed" >&5
6983 echo "${ECHO_T}failed" >&6
6984 else
6985   echo "$as_me:$LINENO: result: ok" >&5
6986 echo "${ECHO_T}ok" >&6
6987 fi
6988
6989 echo "$as_me:$LINENO: checking for objdir" >&5
6990 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6991 if test "${lt_cv_objdir+set}" = set; then
6992   echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994   rm -f .libs 2>/dev/null
6995 mkdir .libs 2>/dev/null
6996 if test -d .libs; then
6997   lt_cv_objdir=.libs
6998 else
6999   # MS-DOS does not allow filenames that begin with a dot.
7000   lt_cv_objdir=_libs
7001 fi
7002 rmdir .libs 2>/dev/null
7003 fi
7004 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7005 echo "${ECHO_T}$lt_cv_objdir" >&6
7006 objdir=$lt_cv_objdir
7007
7008
7009
7010
7011
7012 case $host_os in
7013 aix3*)
7014   # AIX sometimes has problems with the GCC collect2 program.  For some
7015   # reason, if we set the COLLECT_NAMES environment variable, the problems
7016   # vanish in a puff of smoke.
7017   if test "X${COLLECT_NAMES+set}" != Xset; then
7018     COLLECT_NAMES=
7019     export COLLECT_NAMES
7020   fi
7021   ;;
7022 esac
7023
7024 # Sed substitution that helps us do robust quoting.  It backslashifies
7025 # metacharacters that are still active within double-quoted strings.
7026 Xsed='sed -e 1s/^X//'
7027 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7028
7029 # Same as above, but do not quote variable references.
7030 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7031
7032 # Sed substitution to delay expansion of an escaped shell variable in a
7033 # double_quote_subst'ed string.
7034 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7035
7036 # Sed substitution to avoid accidental globbing in evaled expressions
7037 no_glob_subst='s/\*/\\\*/g'
7038
7039 # Constants:
7040 rm="rm -f"
7041
7042 # Global variables:
7043 default_ofile=libtool
7044 can_build_shared=yes
7045
7046 # All known linkers require a `.a' archive for static linking (except MSVC,
7047 # which needs '.lib').
7048 libext=a
7049 ltmain="$ac_aux_dir/ltmain.sh"
7050 ofile="$default_ofile"
7051 with_gnu_ld="$lt_cv_prog_gnu_ld"
7052
7053 if test -n "$ac_tool_prefix"; then
7054   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7055 set dummy ${ac_tool_prefix}ar; ac_word=$2
7056 echo "$as_me:$LINENO: checking for $ac_word" >&5
7057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7058 if test "${ac_cv_prog_AR+set}" = set; then
7059   echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061   if test -n "$AR"; then
7062   ac_cv_prog_AR="$AR" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067   IFS=$as_save_IFS
7068   test -z "$as_dir" && as_dir=.
7069   for ac_exec_ext in '' $ac_executable_extensions; do
7070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7071     ac_cv_prog_AR="${ac_tool_prefix}ar"
7072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073     break 2
7074   fi
7075 done
7076 done
7077
7078 fi
7079 fi
7080 AR=$ac_cv_prog_AR
7081 if test -n "$AR"; then
7082   echo "$as_me:$LINENO: result: $AR" >&5
7083 echo "${ECHO_T}$AR" >&6
7084 else
7085   echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6
7087 fi
7088
7089 fi
7090 if test -z "$ac_cv_prog_AR"; then
7091   ac_ct_AR=$AR
7092   # Extract the first word of "ar", so it can be a program name with args.
7093 set dummy ar; ac_word=$2
7094 echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7096 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7097   echo $ECHO_N "(cached) $ECHO_C" >&6
7098 else
7099   if test -n "$ac_ct_AR"; then
7100   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105   IFS=$as_save_IFS
7106   test -z "$as_dir" && as_dir=.
7107   for ac_exec_ext in '' $ac_executable_extensions; do
7108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109     ac_cv_prog_ac_ct_AR="ar"
7110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111     break 2
7112   fi
7113 done
7114 done
7115
7116   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7117 fi
7118 fi
7119 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7120 if test -n "$ac_ct_AR"; then
7121   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7122 echo "${ECHO_T}$ac_ct_AR" >&6
7123 else
7124   echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6
7126 fi
7127
7128   AR=$ac_ct_AR
7129 else
7130   AR="$ac_cv_prog_AR"
7131 fi
7132
7133 if test -n "$ac_tool_prefix"; then
7134   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7136 echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7138 if test "${ac_cv_prog_RANLIB+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   if test -n "$RANLIB"; then
7142   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149   for ac_exec_ext in '' $ac_executable_extensions; do
7150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156 done
7157
7158 fi
7159 fi
7160 RANLIB=$ac_cv_prog_RANLIB
7161 if test -n "$RANLIB"; then
7162   echo "$as_me:$LINENO: result: $RANLIB" >&5
7163 echo "${ECHO_T}$RANLIB" >&6
7164 else
7165   echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6
7167 fi
7168
7169 fi
7170 if test -z "$ac_cv_prog_RANLIB"; then
7171   ac_ct_RANLIB=$RANLIB
7172   # Extract the first word of "ranlib", so it can be a program name with args.
7173 set dummy ranlib; ac_word=$2
7174 echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7176 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179   if test -n "$ac_ct_RANLIB"; then
7180   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7181 else
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7184 do
7185   IFS=$as_save_IFS
7186   test -z "$as_dir" && as_dir=.
7187   for ac_exec_ext in '' $ac_executable_extensions; do
7188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189     ac_cv_prog_ac_ct_RANLIB="ranlib"
7190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191     break 2
7192   fi
7193 done
7194 done
7195
7196   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7197 fi
7198 fi
7199 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7200 if test -n "$ac_ct_RANLIB"; then
7201   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7202 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7203 else
7204   echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6
7206 fi
7207
7208   RANLIB=$ac_ct_RANLIB
7209 else
7210   RANLIB="$ac_cv_prog_RANLIB"
7211 fi
7212
7213 if test -n "$ac_tool_prefix"; then
7214   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7215 set dummy ${ac_tool_prefix}strip; ac_word=$2
7216 echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7218 if test "${ac_cv_prog_STRIP+set}" = set; then
7219   echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221   if test -n "$STRIP"; then
7222   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7223 else
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227   IFS=$as_save_IFS
7228   test -z "$as_dir" && as_dir=.
7229   for ac_exec_ext in '' $ac_executable_extensions; do
7230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233     break 2
7234   fi
7235 done
7236 done
7237
7238 fi
7239 fi
7240 STRIP=$ac_cv_prog_STRIP
7241 if test -n "$STRIP"; then
7242   echo "$as_me:$LINENO: result: $STRIP" >&5
7243 echo "${ECHO_T}$STRIP" >&6
7244 else
7245   echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6
7247 fi
7248
7249 fi
7250 if test -z "$ac_cv_prog_STRIP"; then
7251   ac_ct_STRIP=$STRIP
7252   # Extract the first word of "strip", so it can be a program name with args.
7253 set dummy strip; ac_word=$2
7254 echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7256 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259   if test -n "$ac_ct_STRIP"; then
7260   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7261 else
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7264 do
7265   IFS=$as_save_IFS
7266   test -z "$as_dir" && as_dir=.
7267   for ac_exec_ext in '' $ac_executable_extensions; do
7268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269     ac_cv_prog_ac_ct_STRIP="strip"
7270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271     break 2
7272   fi
7273 done
7274 done
7275
7276   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7277 fi
7278 fi
7279 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7280 if test -n "$ac_ct_STRIP"; then
7281   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7282 echo "${ECHO_T}$ac_ct_STRIP" >&6
7283 else
7284   echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6
7286 fi
7287
7288   STRIP=$ac_ct_STRIP
7289 else
7290   STRIP="$ac_cv_prog_STRIP"
7291 fi
7292
7293
7294 old_CC="$CC"
7295 old_CFLAGS="$CFLAGS"
7296
7297 # Set sane defaults for various variables
7298 test -z "$AR" && AR=ar
7299 test -z "$AR_FLAGS" && AR_FLAGS=cru
7300 test -z "$AS" && AS=as
7301 test -z "$CC" && CC=cc
7302 test -z "$LTCC" && LTCC=$CC
7303 test -z "$DLLTOOL" && DLLTOOL=dlltool
7304 test -z "$LD" && LD=ld
7305 test -z "$LN_S" && LN_S="ln -s"
7306 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7307 test -z "$NM" && NM=nm
7308 test -z "$SED" && SED=sed
7309 test -z "$OBJDUMP" && OBJDUMP=objdump
7310 test -z "$RANLIB" && RANLIB=:
7311 test -z "$STRIP" && STRIP=:
7312 test -z "$ac_objext" && ac_objext=o
7313
7314 # Determine commands to create old-style static archives.
7315 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7316 old_postinstall_cmds='chmod 644 $oldlib'
7317 old_postuninstall_cmds=
7318
7319 if test -n "$RANLIB"; then
7320   case $host_os in
7321   openbsd*)
7322     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7323     ;;
7324   *)
7325     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7326     ;;
7327   esac
7328   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7329 fi
7330
7331 for cc_temp in $compiler""; do
7332   case $cc_temp in
7333     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7334     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7335     \-*) ;;
7336     *) break;;
7337   esac
7338 done
7339 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7340
7341
7342 # Only perform the check for file, if the check method requires it
7343 case $deplibs_check_method in
7344 file_magic*)
7345   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7346     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7347 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7348 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7349   echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351   case $MAGIC_CMD in
7352 [\\/*] |  ?:[\\/]*)
7353   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7354   ;;
7355 *)
7356   lt_save_MAGIC_CMD="$MAGIC_CMD"
7357   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7358   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7359   for ac_dir in $ac_dummy; do
7360     IFS="$lt_save_ifs"
7361     test -z "$ac_dir" && ac_dir=.
7362     if test -f $ac_dir/${ac_tool_prefix}file; then
7363       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7364       if test -n "$file_magic_test_file"; then
7365         case $deplibs_check_method in
7366         "file_magic "*)
7367           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7368           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7369           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7370             $EGREP "$file_magic_regex" > /dev/null; then
7371             :
7372           else
7373             cat <<EOF 1>&2
7374
7375 *** Warning: the command libtool uses to detect shared libraries,
7376 *** $file_magic_cmd, produces output that libtool cannot recognize.
7377 *** The result is that libtool may fail to recognize shared libraries
7378 *** as such.  This will affect the creation of libtool libraries that
7379 *** depend on shared libraries, but programs linked with such libtool
7380 *** libraries will work regardless of this problem.  Nevertheless, you
7381 *** may want to report the problem to your system manager and/or to
7382 *** bug-libtool@gnu.org
7383
7384 EOF
7385           fi ;;
7386         esac
7387       fi
7388       break
7389     fi
7390   done
7391   IFS="$lt_save_ifs"
7392   MAGIC_CMD="$lt_save_MAGIC_CMD"
7393   ;;
7394 esac
7395 fi
7396
7397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7398 if test -n "$MAGIC_CMD"; then
7399   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7400 echo "${ECHO_T}$MAGIC_CMD" >&6
7401 else
7402   echo "$as_me:$LINENO: result: no" >&5
7403 echo "${ECHO_T}no" >&6
7404 fi
7405
7406 if test -z "$lt_cv_path_MAGIC_CMD"; then
7407   if test -n "$ac_tool_prefix"; then
7408     echo "$as_me:$LINENO: checking for file" >&5
7409 echo $ECHO_N "checking for file... $ECHO_C" >&6
7410 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7411   echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413   case $MAGIC_CMD in
7414 [\\/*] |  ?:[\\/]*)
7415   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7416   ;;
7417 *)
7418   lt_save_MAGIC_CMD="$MAGIC_CMD"
7419   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7420   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7421   for ac_dir in $ac_dummy; do
7422     IFS="$lt_save_ifs"
7423     test -z "$ac_dir" && ac_dir=.
7424     if test -f $ac_dir/file; then
7425       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7426       if test -n "$file_magic_test_file"; then
7427         case $deplibs_check_method in
7428         "file_magic "*)
7429           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7430           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7431           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7432             $EGREP "$file_magic_regex" > /dev/null; then
7433             :
7434           else
7435             cat <<EOF 1>&2
7436
7437 *** Warning: the command libtool uses to detect shared libraries,
7438 *** $file_magic_cmd, produces output that libtool cannot recognize.
7439 *** The result is that libtool may fail to recognize shared libraries
7440 *** as such.  This will affect the creation of libtool libraries that
7441 *** depend on shared libraries, but programs linked with such libtool
7442 *** libraries will work regardless of this problem.  Nevertheless, you
7443 *** may want to report the problem to your system manager and/or to
7444 *** bug-libtool@gnu.org
7445
7446 EOF
7447           fi ;;
7448         esac
7449       fi
7450       break
7451     fi
7452   done
7453   IFS="$lt_save_ifs"
7454   MAGIC_CMD="$lt_save_MAGIC_CMD"
7455   ;;
7456 esac
7457 fi
7458
7459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7460 if test -n "$MAGIC_CMD"; then
7461   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7462 echo "${ECHO_T}$MAGIC_CMD" >&6
7463 else
7464   echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6
7466 fi
7467
7468   else
7469     MAGIC_CMD=:
7470   fi
7471 fi
7472
7473   fi
7474   ;;
7475 esac
7476
7477 enable_dlopen=yes
7478 enable_win32_dll=yes
7479
7480 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7481 if test "${enable_libtool_lock+set}" = set; then
7482   enableval="$enable_libtool_lock"
7483
7484 fi;
7485 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7486
7487
7488 # Check whether --with-pic or --without-pic was given.
7489 if test "${with_pic+set}" = set; then
7490   withval="$with_pic"
7491   pic_mode="$withval"
7492 else
7493   pic_mode=default
7494 fi;
7495 test -z "$pic_mode" && pic_mode=default
7496
7497 # Use C for the default configuration in the libtool script
7498 tagname=
7499 lt_save_CC="$CC"
7500 ac_ext=c
7501 ac_cpp='$CPP $CPPFLAGS'
7502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7505
7506
7507 # Source file extension for C test sources.
7508 ac_ext=c
7509
7510 # Object file extension for compiled C test sources.
7511 objext=o
7512 objext=$objext
7513
7514 # Code to be used in simple compile tests
7515 lt_simple_compile_test_code="int some_variable = 0;\n"
7516
7517 # Code to be used in simple link tests
7518 lt_simple_link_test_code='int main(){return(0);}\n'
7519
7520
7521 # If no C compiler was specified, use CC.
7522 LTCC=${LTCC-"$CC"}
7523
7524 # Allow CC to be a program name with arguments.
7525 compiler=$CC
7526
7527
7528 # save warnings/boilerplate of simple test code
7529 ac_outfile=conftest.$ac_objext
7530 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7531 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7532 _lt_compiler_boilerplate=`cat conftest.err`
7533 $rm conftest*
7534
7535 ac_outfile=conftest.$ac_objext
7536 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7537 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7538 _lt_linker_boilerplate=`cat conftest.err`
7539 $rm conftest*
7540
7541
7542 #
7543 # Check for any special shared library compilation flags.
7544 #
7545 lt_prog_cc_shlib=
7546 if test "$GCC" = no; then
7547   case $host_os in
7548   sco3.2v5*)
7549     lt_prog_cc_shlib='-belf'
7550     ;;
7551   esac
7552 fi
7553 if test -n "$lt_prog_cc_shlib"; then
7554   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7555 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7556   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7557   else
7558     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7559 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7560     lt_cv_prog_cc_can_build_shared=no
7561   fi
7562 fi
7563
7564
7565 #
7566 # Check to make sure the static flag actually works.
7567 #
7568 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7569 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7570 if test "${lt_prog_compiler_static_works+set}" = set; then
7571   echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573   lt_prog_compiler_static_works=no
7574    save_LDFLAGS="$LDFLAGS"
7575    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7576    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7577    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7578      # The linker can only warn and ignore the option if not recognized
7579      # So say no if there are warnings
7580      if test -s conftest.err; then
7581        # Append any errors to the config.log.
7582        cat conftest.err 1>&5
7583        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7584        $SED '/^$/d' conftest.err >conftest.er2
7585        if diff conftest.exp conftest.er2 >/dev/null; then
7586          lt_prog_compiler_static_works=yes
7587        fi
7588      else
7589        lt_prog_compiler_static_works=yes
7590      fi
7591    fi
7592    $rm conftest*
7593    LDFLAGS="$save_LDFLAGS"
7594
7595 fi
7596 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7597 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7598
7599 if test x"$lt_prog_compiler_static_works" = xyes; then
7600     :
7601 else
7602     lt_prog_compiler_static=
7603 fi
7604
7605
7606
7607
7608 lt_prog_compiler_no_builtin_flag=
7609
7610 if test "$GCC" = yes; then
7611   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7612
7613
7614 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7615 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7616 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7617   echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619   lt_cv_prog_compiler_rtti_exceptions=no
7620   ac_outfile=conftest.$ac_objext
7621    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7622    lt_compiler_flag="-fno-rtti -fno-exceptions"
7623    # Insert the option either (1) after the last *FLAGS variable, or
7624    # (2) before a word containing "conftest.", or (3) at the end.
7625    # Note that $ac_compile itself does not contain backslashes and begins
7626    # with a dollar sign (not a hyphen), so the echo should work correctly.
7627    # The option is referenced via a variable to avoid confusing sed.
7628    lt_compile=`echo "$ac_compile" | $SED \
7629    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7630    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7631    -e 's:$: $lt_compiler_flag:'`
7632    (eval echo "\"\$as_me:7632: $lt_compile\"" >&5)
7633    (eval "$lt_compile" 2>conftest.err)
7634    ac_status=$?
7635    cat conftest.err >&5
7636    echo "$as_me:7636: \$? = $ac_status" >&5
7637    if (exit $ac_status) && test -s "$ac_outfile"; then
7638      # The compiler can only warn and ignore the option if not recognized
7639      # So say no if there are warnings other than the usual output.
7640      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7641      $SED '/^$/d' conftest.err >conftest.er2
7642      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7643        lt_cv_prog_compiler_rtti_exceptions=yes
7644      fi
7645    fi
7646    $rm conftest*
7647
7648 fi
7649 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7650 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7651
7652 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7653     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7654 else
7655     :
7656 fi
7657
7658 fi
7659
7660 lt_prog_compiler_wl=
7661 lt_prog_compiler_pic=
7662 lt_prog_compiler_static=
7663
7664 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7665 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7666
7667   if test "$GCC" = yes; then
7668     lt_prog_compiler_wl='-Wl,'
7669     lt_prog_compiler_static='-static'
7670
7671     case $host_os in
7672       aix*)
7673       # All AIX code is PIC.
7674       if test "$host_cpu" = ia64; then
7675         # AIX 5 now supports IA64 processor
7676         lt_prog_compiler_static='-Bstatic'
7677       fi
7678       ;;
7679
7680     amigaos*)
7681       # FIXME: we need at least 68020 code to build shared libraries, but
7682       # adding the `-m68020' flag to GCC prevents building anything better,
7683       # like `-m68040'.
7684       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7685       ;;
7686
7687     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7688       # PIC is the default for these OSes.
7689       ;;
7690
7691     mingw* | pw32* | os2*)
7692       # This hack is so that the source file can tell whether it is being
7693       # built for inclusion in a dll (and should export symbols for example).
7694       lt_prog_compiler_pic='-DDLL_EXPORT'
7695       ;;
7696
7697     darwin* | rhapsody*)
7698       # PIC is the default on this platform
7699       # Common symbols not allowed in MH_DYLIB files
7700       lt_prog_compiler_pic='-fno-common'
7701       ;;
7702
7703     msdosdjgpp*)
7704       # Just because we use GCC doesn't mean we suddenly get shared libraries
7705       # on systems that don't support them.
7706       lt_prog_compiler_can_build_shared=no
7707       enable_shared=no
7708       ;;
7709
7710     sysv4*MP*)
7711       if test -d /usr/nec; then
7712         lt_prog_compiler_pic=-Kconform_pic
7713       fi
7714       ;;
7715
7716     hpux*)
7717       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7718       # not for PA HP-UX.
7719       case $host_cpu in
7720       hppa*64*|ia64*)
7721         # +Z the default
7722         ;;
7723       *)
7724         lt_prog_compiler_pic='-fPIC'
7725         ;;
7726       esac
7727       ;;
7728
7729     *)
7730       lt_prog_compiler_pic='-fPIC'
7731       ;;
7732     esac
7733   else
7734     # PORTME Check for flag to pass linker flags through the system compiler.
7735     case $host_os in
7736     aix*)
7737       lt_prog_compiler_wl='-Wl,'
7738       if test "$host_cpu" = ia64; then
7739         # AIX 5 now supports IA64 processor
7740         lt_prog_compiler_static='-Bstatic'
7741       else
7742         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7743       fi
7744       ;;
7745       darwin*)
7746         # PIC is the default on this platform
7747         # Common symbols not allowed in MH_DYLIB files
7748        case $cc_basename in
7749          xlc*)
7750          lt_prog_compiler_pic='-qnocommon'
7751          lt_prog_compiler_wl='-Wl,'
7752          ;;
7753        esac
7754        ;;
7755
7756     mingw* | pw32* | os2*)
7757       # This hack is so that the source file can tell whether it is being
7758       # built for inclusion in a dll (and should export symbols for example).
7759       lt_prog_compiler_pic='-DDLL_EXPORT'
7760       ;;
7761
7762     hpux9* | hpux10* | hpux11*)
7763       lt_prog_compiler_wl='-Wl,'
7764       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7765       # not for PA HP-UX.
7766       case $host_cpu in
7767       hppa*64*|ia64*)
7768         # +Z the default
7769         ;;
7770       *)
7771         lt_prog_compiler_pic='+Z'
7772         ;;
7773       esac
7774       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7775       lt_prog_compiler_static='${wl}-a ${wl}archive'
7776       ;;
7777
7778     irix5* | irix6* | nonstopux*)
7779       lt_prog_compiler_wl='-Wl,'
7780       # PIC (with -KPIC) is the default.
7781       lt_prog_compiler_static='-non_shared'
7782       ;;
7783
7784     newsos6)
7785       lt_prog_compiler_pic='-KPIC'
7786       lt_prog_compiler_static='-Bstatic'
7787       ;;
7788
7789     linux*)
7790       case $cc_basename in
7791       icc* | ecc*)
7792         lt_prog_compiler_wl='-Wl,'
7793         lt_prog_compiler_pic='-KPIC'
7794         lt_prog_compiler_static='-static'
7795         ;;
7796       pgcc* | pgf77* | pgf90* | pgf95*)
7797         # Portland Group compilers (*not* the Pentium gcc compiler,
7798         # which looks to be a dead project)
7799         lt_prog_compiler_wl='-Wl,'
7800         lt_prog_compiler_pic='-fpic'
7801         lt_prog_compiler_static='-Bstatic'
7802         ;;
7803       ccc*)
7804         lt_prog_compiler_wl='-Wl,'
7805         # All Alpha code is PIC.
7806         lt_prog_compiler_static='-non_shared'
7807         ;;
7808       esac
7809       ;;
7810
7811     osf3* | osf4* | osf5*)
7812       lt_prog_compiler_wl='-Wl,'
7813       # All OSF/1 code is PIC.
7814       lt_prog_compiler_static='-non_shared'
7815       ;;
7816
7817     sco3.2v5*)
7818       lt_prog_compiler_pic='-Kpic'
7819       lt_prog_compiler_static='-dn'
7820       ;;
7821
7822     solaris*)
7823       lt_prog_compiler_pic='-KPIC'
7824       lt_prog_compiler_static='-Bstatic'
7825       case $cc_basename in
7826       f77* | f90* | f95*)
7827         lt_prog_compiler_wl='-Qoption ld ';;
7828       *)
7829         lt_prog_compiler_wl='-Wl,';;
7830       esac
7831       ;;
7832
7833     sunos4*)
7834       lt_prog_compiler_wl='-Qoption ld '
7835       lt_prog_compiler_pic='-PIC'
7836       lt_prog_compiler_static='-Bstatic'
7837       ;;
7838
7839     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7840       lt_prog_compiler_wl='-Wl,'
7841       lt_prog_compiler_pic='-KPIC'
7842       lt_prog_compiler_static='-Bstatic'
7843       ;;
7844
7845     sysv4*MP*)
7846       if test -d /usr/nec ;then
7847         lt_prog_compiler_pic='-Kconform_pic'
7848         lt_prog_compiler_static='-Bstatic'
7849       fi
7850       ;;
7851
7852     unicos*)
7853       lt_prog_compiler_wl='-Wl,'
7854       lt_prog_compiler_can_build_shared=no
7855       ;;
7856
7857     uts4*)
7858       lt_prog_compiler_pic='-pic'
7859       lt_prog_compiler_static='-Bstatic'
7860       ;;
7861
7862     *)
7863       lt_prog_compiler_can_build_shared=no
7864       ;;
7865     esac
7866   fi
7867
7868 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7869 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7870
7871 #
7872 # Check to make sure the PIC flag actually works.
7873 #
7874 if test -n "$lt_prog_compiler_pic"; then
7875
7876 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7877 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7878 if test "${lt_prog_compiler_pic_works+set}" = set; then
7879   echo $ECHO_N "(cached) $ECHO_C" >&6
7880 else
7881   lt_prog_compiler_pic_works=no
7882   ac_outfile=conftest.$ac_objext
7883    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7884    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7885    # Insert the option either (1) after the last *FLAGS variable, or
7886    # (2) before a word containing "conftest.", or (3) at the end.
7887    # Note that $ac_compile itself does not contain backslashes and begins
7888    # with a dollar sign (not a hyphen), so the echo should work correctly.
7889    # The option is referenced via a variable to avoid confusing sed.
7890    lt_compile=`echo "$ac_compile" | $SED \
7891    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7892    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7893    -e 's:$: $lt_compiler_flag:'`
7894    (eval echo "\"\$as_me:7894: $lt_compile\"" >&5)
7895    (eval "$lt_compile" 2>conftest.err)
7896    ac_status=$?
7897    cat conftest.err >&5
7898    echo "$as_me:7898: \$? = $ac_status" >&5
7899    if (exit $ac_status) && test -s "$ac_outfile"; then
7900      # The compiler can only warn and ignore the option if not recognized
7901      # So say no if there are warnings other than the usual output.
7902      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7903      $SED '/^$/d' conftest.err >conftest.er2
7904      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7905        lt_prog_compiler_pic_works=yes
7906      fi
7907    fi
7908    $rm conftest*
7909
7910 fi
7911 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7912 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7913
7914 if test x"$lt_prog_compiler_pic_works" = xyes; then
7915     case $lt_prog_compiler_pic in
7916      "" | " "*) ;;
7917      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7918      esac
7919 else
7920     lt_prog_compiler_pic=
7921      lt_prog_compiler_can_build_shared=no
7922 fi
7923
7924 fi
7925 case $host_os in
7926   # For platforms which do not support PIC, -DPIC is meaningless:
7927   *djgpp*)
7928     lt_prog_compiler_pic=
7929     ;;
7930   *)
7931     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7932     ;;
7933 esac
7934
7935 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7936 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7937 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7938   echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940   lt_cv_prog_compiler_c_o=no
7941    $rm -r conftest 2>/dev/null
7942    mkdir conftest
7943    cd conftest
7944    mkdir out
7945    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7946
7947    lt_compiler_flag="-o out/conftest2.$ac_objext"
7948    # Insert the option either (1) after the last *FLAGS variable, or
7949    # (2) before a word containing "conftest.", or (3) at the end.
7950    # Note that $ac_compile itself does not contain backslashes and begins
7951    # with a dollar sign (not a hyphen), so the echo should work correctly.
7952    lt_compile=`echo "$ac_compile" | $SED \
7953    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7954    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7955    -e 's:$: $lt_compiler_flag:'`
7956    (eval echo "\"\$as_me:7956: $lt_compile\"" >&5)
7957    (eval "$lt_compile" 2>out/conftest.err)
7958    ac_status=$?
7959    cat out/conftest.err >&5
7960    echo "$as_me:7960: \$? = $ac_status" >&5
7961    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7962    then
7963      # The compiler can only warn and ignore the option if not recognized
7964      # So say no if there are warnings
7965      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7966      $SED '/^$/d' out/conftest.err >out/conftest.er2
7967      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7968        lt_cv_prog_compiler_c_o=yes
7969      fi
7970    fi
7971    chmod u+w . 2>&5
7972    $rm conftest*
7973    # SGI C++ compiler will create directory out/ii_files/ for
7974    # template instantiation
7975    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7976    $rm out/* && rmdir out
7977    cd ..
7978    rmdir conftest
7979    $rm conftest*
7980
7981 fi
7982 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7983 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7984
7985
7986 hard_links="nottested"
7987 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7988   # do not overwrite the value of need_locks provided by the user
7989   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7990 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7991   hard_links=yes
7992   $rm conftest*
7993   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7994   touch conftest.a
7995   ln conftest.a conftest.b 2>&5 || hard_links=no
7996   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7997   echo "$as_me:$LINENO: result: $hard_links" >&5
7998 echo "${ECHO_T}$hard_links" >&6
7999   if test "$hard_links" = no; then
8000     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8001 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8002     need_locks=warn
8003   fi
8004 else
8005   need_locks=no
8006 fi
8007
8008 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8009 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8010
8011   runpath_var=
8012   allow_undefined_flag=
8013   enable_shared_with_static_runtimes=no
8014   archive_cmds=
8015   archive_expsym_cmds=
8016   old_archive_From_new_cmds=
8017   old_archive_from_expsyms_cmds=
8018   export_dynamic_flag_spec=
8019   whole_archive_flag_spec=
8020   thread_safe_flag_spec=
8021   hardcode_libdir_flag_spec=
8022   hardcode_libdir_flag_spec_ld=
8023   hardcode_libdir_separator=
8024   hardcode_direct=no
8025   hardcode_minus_L=no
8026   hardcode_shlibpath_var=unsupported
8027   link_all_deplibs=unknown
8028   hardcode_automatic=no
8029   module_cmds=
8030   module_expsym_cmds=
8031   always_export_symbols=no
8032   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8033   # include_expsyms should be a list of space-separated symbols to be *always*
8034   # included in the symbol list
8035   include_expsyms=
8036   # exclude_expsyms can be an extended regexp of symbols to exclude
8037   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8038   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8039   # as well as any symbol that contains `d'.
8040   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8041   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8042   # platforms (ab)use it in PIC code, but their linkers get confused if
8043   # the symbol is explicitly referenced.  Since portable code cannot
8044   # rely on this symbol name, it's probably fine to never include it in
8045   # preloaded symbol tables.
8046   extract_expsyms_cmds=
8047   # Just being paranoid about ensuring that cc_basename is set.
8048   for cc_temp in $compiler""; do
8049   case $cc_temp in
8050     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8051     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8052     \-*) ;;
8053     *) break;;
8054   esac
8055 done
8056 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8057
8058   case $host_os in
8059   cygwin* | mingw* | pw32*)
8060     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8061     # When not using gcc, we currently assume that we are using
8062     # Microsoft Visual C++.
8063     if test "$GCC" != yes; then
8064       with_gnu_ld=no
8065     fi
8066     ;;
8067   openbsd*)
8068     with_gnu_ld=no
8069     ;;
8070   esac
8071
8072   ld_shlibs=yes
8073   if test "$with_gnu_ld" = yes; then
8074     # If archive_cmds runs LD, not CC, wlarc should be empty
8075     wlarc='${wl}'
8076
8077     # Set some defaults for GNU ld with shared library support. These
8078     # are reset later if shared libraries are not supported. Putting them
8079     # here allows them to be overridden if necessary.
8080     runpath_var=LD_RUN_PATH
8081     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8082     export_dynamic_flag_spec='${wl}--export-dynamic'
8083     # ancient GNU ld didn't support --whole-archive et. al.
8084     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8085         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8086       else
8087         whole_archive_flag_spec=
8088     fi
8089     supports_anon_versioning=no
8090     case `$LD -v 2>/dev/null` in
8091       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8092       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8093       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8094       *\ 2.11.*) ;; # other 2.11 versions
8095       *) supports_anon_versioning=yes ;;
8096     esac
8097
8098     # See if GNU ld supports shared libraries.
8099     case $host_os in
8100     aix3* | aix4* | aix5*)
8101       # On AIX/PPC, the GNU linker is very broken
8102       if test "$host_cpu" != ia64; then
8103         ld_shlibs=no
8104         cat <<EOF 1>&2
8105
8106 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8107 *** to be unable to reliably create shared libraries on AIX.
8108 *** Therefore, libtool is disabling shared libraries support.  If you
8109 *** really care for shared libraries, you may want to modify your PATH
8110 *** so that a non-GNU linker is found, and then restart.
8111
8112 EOF
8113       fi
8114       ;;
8115
8116     amigaos*)
8117       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)'
8118       hardcode_libdir_flag_spec='-L$libdir'
8119       hardcode_minus_L=yes
8120
8121       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8122       # that the semantics of dynamic libraries on AmigaOS, at least up
8123       # to version 4, is to share data among multiple programs linked
8124       # with the same dynamic library.  Since this doesn't match the
8125       # behavior of shared libraries on other platforms, we can't use
8126       # them.
8127       ld_shlibs=no
8128       ;;
8129
8130     beos*)
8131       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8132         allow_undefined_flag=unsupported
8133         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8134         # support --undefined.  This deserves some investigation.  FIXME
8135         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8136       else
8137         ld_shlibs=no
8138       fi
8139       ;;
8140
8141     cygwin* | mingw* | pw32*)
8142       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8143       # as there is no search path for DLLs.
8144       hardcode_libdir_flag_spec='-L$libdir'
8145       allow_undefined_flag=unsupported
8146       always_export_symbols=no
8147       enable_shared_with_static_runtimes=yes
8148       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8149
8150       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8151         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8152         # If the export-symbols file already is a .def file (1st line
8153         # is EXPORTS), use it as is; otherwise, prepend...
8154         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8155           cp $export_symbols $output_objdir/$soname.def;
8156         else
8157           echo EXPORTS > $output_objdir/$soname.def;
8158           cat $export_symbols >> $output_objdir/$soname.def;
8159         fi~
8160         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8161       else
8162         ld_shlibs=no
8163       fi
8164       ;;
8165
8166     linux*)
8167       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8168         tmp_addflag=
8169         case $cc_basename,$host_cpu in
8170         pgcc*)                          # Portland Group C compiler
8171           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'
8172           tmp_addflag=' $pic_flag'
8173           ;;
8174         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8175           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'
8176           tmp_addflag=' $pic_flag -Mnomain' ;;
8177         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8178           tmp_addflag=' -i_dynamic' ;;
8179         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8180           tmp_addflag=' -i_dynamic -nofor_main' ;;
8181         ifc* | ifort*)                  # Intel Fortran compiler
8182           tmp_addflag=' -nofor_main' ;;
8183         esac
8184         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8185
8186         if test $supports_anon_versioning = yes; then
8187           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8188   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8189   $echo "local: *; };" >> $output_objdir/$libname.ver~
8190           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8191         fi
8192       else
8193         ld_shlibs=no
8194       fi
8195       ;;
8196
8197     netbsd*)
8198       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8199         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8200         wlarc=
8201       else
8202         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8203         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8204       fi
8205       ;;
8206
8207     solaris* | sysv5*)
8208       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8209         ld_shlibs=no
8210         cat <<EOF 1>&2
8211
8212 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8213 *** create shared libraries on Solaris systems.  Therefore, libtool
8214 *** is disabling shared libraries support.  We urge you to upgrade GNU
8215 *** binutils to release 2.9.1 or newer.  Another option is to modify
8216 *** your PATH or compiler configuration so that the native linker is
8217 *** used, and then restart.
8218
8219 EOF
8220       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8221         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8222         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8223       else
8224         ld_shlibs=no
8225       fi
8226       ;;
8227
8228     sunos4*)
8229       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8230       wlarc=
8231       hardcode_direct=yes
8232       hardcode_shlibpath_var=no
8233       ;;
8234
8235     *)
8236       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8237         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8238         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8239       else
8240         ld_shlibs=no
8241       fi
8242       ;;
8243     esac
8244
8245     if test "$ld_shlibs" = no; then
8246       runpath_var=
8247       hardcode_libdir_flag_spec=
8248       export_dynamic_flag_spec=
8249       whole_archive_flag_spec=
8250     fi
8251   else
8252     # PORTME fill in a description of your system's linker (not GNU ld)
8253     case $host_os in
8254     aix3*)
8255       allow_undefined_flag=unsupported
8256       always_export_symbols=yes
8257       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'
8258       # Note: this linker hardcodes the directories in LIBPATH if there
8259       # are no directories specified by -L.
8260       hardcode_minus_L=yes
8261       if test "$GCC" = yes && test -z "$link_static_flag"; then
8262         # Neither direct hardcoding nor static linking is supported with a
8263         # broken collect2.
8264         hardcode_direct=unsupported
8265       fi
8266       ;;
8267
8268     aix4* | aix5*)
8269       if test "$host_cpu" = ia64; then
8270         # On IA64, the linker does run time linking by default, so we don't
8271         # have to do anything special.
8272         aix_use_runtimelinking=no
8273         exp_sym_flag='-Bexport'
8274         no_entry_flag=""
8275       else
8276         # If we're using GNU nm, then we don't want the "-C" option.
8277         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8278         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8279           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'
8280         else
8281           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'
8282         fi
8283         aix_use_runtimelinking=no
8284
8285         # Test if we are trying to use run time linking or normal
8286         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8287         # need to do runtime linking.
8288         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8289           for ld_flag in $LDFLAGS; do
8290           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8291             aix_use_runtimelinking=yes
8292             break
8293           fi
8294           done
8295         esac
8296
8297         exp_sym_flag='-bexport'
8298         no_entry_flag='-bnoentry'
8299       fi
8300
8301       # When large executables or shared objects are built, AIX ld can
8302       # have problems creating the table of contents.  If linking a library
8303       # or program results in "error TOC overflow" add -mminimal-toc to
8304       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8305       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8306
8307       archive_cmds=''
8308       hardcode_direct=yes
8309       hardcode_libdir_separator=':'
8310       link_all_deplibs=yes
8311
8312       if test "$GCC" = yes; then
8313         case $host_os in aix4.[012]|aix4.[012].*)
8314         # We only want to do this on AIX 4.2 and lower, the check
8315         # below for broken collect2 doesn't work under 4.3+
8316           collect2name=`${CC} -print-prog-name=collect2`
8317           if test -f "$collect2name" && \
8318            strings "$collect2name" | grep resolve_lib_name >/dev/null
8319           then
8320           # We have reworked collect2
8321           hardcode_direct=yes
8322           else
8323           # We have old collect2
8324           hardcode_direct=unsupported
8325           # It fails to find uninstalled libraries when the uninstalled
8326           # path is not listed in the libpath.  Setting hardcode_minus_L
8327           # to unsupported forces relinking
8328           hardcode_minus_L=yes
8329           hardcode_libdir_flag_spec='-L$libdir'
8330           hardcode_libdir_separator=
8331           fi
8332         esac
8333         shared_flag='-shared'
8334         if test "$aix_use_runtimelinking" = yes; then
8335           shared_flag="$shared_flag "'${wl}-G'
8336         fi
8337       else
8338         # not using gcc
8339         if test "$host_cpu" = ia64; then
8340         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8341         # chokes on -Wl,-G. The following line is correct:
8342           shared_flag='-G'
8343         else
8344         if test "$aix_use_runtimelinking" = yes; then
8345             shared_flag='${wl}-G'
8346           else
8347             shared_flag='${wl}-bM:SRE'
8348         fi
8349         fi
8350       fi
8351
8352       # It seems that -bexpall does not export symbols beginning with
8353       # underscore (_), so it is better to generate a list of symbols to export.
8354       always_export_symbols=yes
8355       if test "$aix_use_runtimelinking" = yes; then
8356         # Warning - without using the other runtime loading flags (-brtl),
8357         # -berok will link without error, but may produce a broken library.
8358         allow_undefined_flag='-berok'
8359        # Determine the default libpath from the value encoded in an empty executable.
8360        cat >conftest.$ac_ext <<_ACEOF
8361 /* confdefs.h.  */
8362 _ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h.  */
8366
8367 int
8368 main ()
8369 {
8370
8371   ;
8372   return 0;
8373 }
8374 _ACEOF
8375 rm -f conftest.$ac_objext conftest$ac_exeext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8377   (eval $ac_link) 2>conftest.er1
8378   ac_status=$?
8379   grep -v '^ *+' conftest.er1 >conftest.err
8380   rm -f conftest.er1
8381   cat conftest.err >&5
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); } &&
8384          { ac_try='test -z "$ac_c_werror_flag"
8385                          || test ! -s conftest.err'
8386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387   (eval $ac_try) 2>&5
8388   ac_status=$?
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); }; } &&
8391          { ac_try='test -s conftest$ac_exeext'
8392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393   (eval $ac_try) 2>&5
8394   ac_status=$?
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); }; }; then
8397
8398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8399 }'`
8400 # Check for a 64-bit object if we didn't find anything.
8401 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; }
8402 }'`; fi
8403 else
8404   echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8406
8407 fi
8408 rm -f conftest.err conftest.$ac_objext \
8409       conftest$ac_exeext conftest.$ac_ext
8410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8411
8412        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8413         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"
8414        else
8415         if test "$host_cpu" = ia64; then
8416           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8417           allow_undefined_flag="-z nodefs"
8418           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"
8419         else
8420          # Determine the default libpath from the value encoded in an empty executable.
8421          cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h.  */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h.  */
8427
8428 int
8429 main ()
8430 {
8431
8432   ;
8433   return 0;
8434 }
8435 _ACEOF
8436 rm -f conftest.$ac_objext conftest$ac_exeext
8437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8438   (eval $ac_link) 2>conftest.er1
8439   ac_status=$?
8440   grep -v '^ *+' conftest.er1 >conftest.err
8441   rm -f conftest.er1
8442   cat conftest.err >&5
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); } &&
8445          { ac_try='test -z "$ac_c_werror_flag"
8446                          || test ! -s conftest.err'
8447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448   (eval $ac_try) 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }; } &&
8452          { ac_try='test -s conftest$ac_exeext'
8453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454   (eval $ac_try) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; }; then
8458
8459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8460 }'`
8461 # Check for a 64-bit object if we didn't find anything.
8462 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; }
8463 }'`; fi
8464 else
8465   echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8467
8468 fi
8469 rm -f conftest.err conftest.$ac_objext \
8470       conftest$ac_exeext conftest.$ac_ext
8471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8472
8473          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8474           # Warning - without using the other run time loading flags,
8475           # -berok will link without error, but may produce a broken library.
8476           no_undefined_flag=' ${wl}-bernotok'
8477           allow_undefined_flag=' ${wl}-berok'
8478           # -bexpall does not export symbols beginning with underscore (_)
8479           always_export_symbols=yes
8480           # Exported symbols can be pulled into shared objects from archives
8481           whole_archive_flag_spec=' '
8482           archive_cmds_need_lc=yes
8483           # This is similar to how AIX traditionally builds its shared libraries.
8484           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'
8485         fi
8486       fi
8487       ;;
8488
8489     amigaos*)
8490       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)'
8491       hardcode_libdir_flag_spec='-L$libdir'
8492       hardcode_minus_L=yes
8493       # see comment about different semantics on the GNU ld section
8494       ld_shlibs=no
8495       ;;
8496
8497     bsdi[45]*)
8498       export_dynamic_flag_spec=-rdynamic
8499       ;;
8500
8501     cygwin* | mingw* | pw32*)
8502       # When not using gcc, we currently assume that we are using
8503       # Microsoft Visual C++.
8504       # hardcode_libdir_flag_spec is actually meaningless, as there is
8505       # no search path for DLLs.
8506       hardcode_libdir_flag_spec=' '
8507       allow_undefined_flag=unsupported
8508       # Tell ltmain to make .lib files, not .a files.
8509       libext=lib
8510       # Tell ltmain to make .dll files, not .so files.
8511       shrext_cmds=".dll"
8512       # FIXME: Setting linknames here is a bad hack.
8513       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8514       # The linker will automatically build a .lib file if we build a DLL.
8515       old_archive_From_new_cmds='true'
8516       # FIXME: Should let the user specify the lib program.
8517       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8518       fix_srcfile_path='`cygpath -w "$srcfile"`'
8519       enable_shared_with_static_runtimes=yes
8520       ;;
8521
8522     darwin* | rhapsody*)
8523       case $host_os in
8524         rhapsody* | darwin1.[012])
8525          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8526          ;;
8527        *) # Darwin 1.3 on
8528          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8529            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8530          else
8531            case ${MACOSX_DEPLOYMENT_TARGET} in
8532              10.[012])
8533                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8534                ;;
8535              10.*)
8536                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8537                ;;
8538            esac
8539          fi
8540          ;;
8541       esac
8542       archive_cmds_need_lc=no
8543       hardcode_direct=no
8544       hardcode_automatic=yes
8545       hardcode_shlibpath_var=unsupported
8546       whole_archive_flag_spec=''
8547       link_all_deplibs=yes
8548     if test "$GCC" = yes ; then
8549         output_verbose_link_cmd='echo'
8550         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8551       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8552       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8553       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}'
8554       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}'
8555     else
8556       case $cc_basename in
8557         xlc*)
8558          output_verbose_link_cmd='echo'
8559          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8560          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8561           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8562          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}'
8563           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}'
8564           ;;
8565        *)
8566          ld_shlibs=no
8567           ;;
8568       esac
8569     fi
8570       ;;
8571
8572     dgux*)
8573       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8574       hardcode_libdir_flag_spec='-L$libdir'
8575       hardcode_shlibpath_var=no
8576       ;;
8577
8578     freebsd1*)
8579       ld_shlibs=no
8580       ;;
8581
8582     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8583     # support.  Future versions do this automatically, but an explicit c++rt0.o
8584     # does not break anything, and helps significantly (at the cost of a little
8585     # extra space).
8586     freebsd2.2*)
8587       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8588       hardcode_libdir_flag_spec='-R$libdir'
8589       hardcode_direct=yes
8590       hardcode_shlibpath_var=no
8591       ;;
8592
8593     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8594     freebsd2*)
8595       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8596       hardcode_direct=yes
8597       hardcode_minus_L=yes
8598       hardcode_shlibpath_var=no
8599       ;;
8600
8601     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8602     freebsd* | kfreebsd*-gnu | dragonfly*)
8603       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8604       hardcode_libdir_flag_spec='-R$libdir'
8605       hardcode_direct=yes
8606       hardcode_shlibpath_var=no
8607       ;;
8608
8609     hpux9*)
8610       if test "$GCC" = yes; then
8611         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'
8612       else
8613         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'
8614       fi
8615       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8616       hardcode_libdir_separator=:
8617       hardcode_direct=yes
8618
8619       # hardcode_minus_L: Not really in the search PATH,
8620       # but as the default location of the library.
8621       hardcode_minus_L=yes
8622       export_dynamic_flag_spec='${wl}-E'
8623       ;;
8624
8625     hpux10* | hpux11*)
8626       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8627         case $host_cpu in
8628         hppa*64*|ia64*)
8629           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8630           ;;
8631         *)
8632           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8633           ;;
8634         esac
8635       else
8636         case $host_cpu in
8637         hppa*64*|ia64*)
8638           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8639           ;;
8640         *)
8641           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8642           ;;
8643         esac
8644       fi
8645       if test "$with_gnu_ld" = no; then
8646         case $host_cpu in
8647         hppa*64*)
8648           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8649           hardcode_libdir_flag_spec_ld='+b $libdir'
8650           hardcode_libdir_separator=:
8651           hardcode_direct=no
8652           hardcode_shlibpath_var=no
8653           ;;
8654         ia64*)
8655           hardcode_libdir_flag_spec='-L$libdir'
8656           hardcode_direct=no
8657           hardcode_shlibpath_var=no
8658
8659           # hardcode_minus_L: Not really in the search PATH,
8660           # but as the default location of the library.
8661           hardcode_minus_L=yes
8662           ;;
8663         *)
8664           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8665           hardcode_libdir_separator=:
8666           hardcode_direct=yes
8667           export_dynamic_flag_spec='${wl}-E'
8668
8669           # hardcode_minus_L: Not really in the search PATH,
8670           # but as the default location of the library.
8671           hardcode_minus_L=yes
8672           ;;
8673         esac
8674       fi
8675       ;;
8676
8677     irix5* | irix6* | nonstopux*)
8678       if test "$GCC" = yes; then
8679         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'
8680       else
8681         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'
8682         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8683       fi
8684       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8685       hardcode_libdir_separator=:
8686       link_all_deplibs=yes
8687       ;;
8688
8689     netbsd*)
8690       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8691         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8692       else
8693         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8694       fi
8695       hardcode_libdir_flag_spec='-R$libdir'
8696       hardcode_direct=yes
8697       hardcode_shlibpath_var=no
8698       ;;
8699
8700     newsos6)
8701       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8702       hardcode_direct=yes
8703       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8704       hardcode_libdir_separator=:
8705       hardcode_shlibpath_var=no
8706       ;;
8707
8708     openbsd*)
8709       hardcode_direct=yes
8710       hardcode_shlibpath_var=no
8711       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8712         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8713         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8714         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8715         export_dynamic_flag_spec='${wl}-E'
8716       else
8717        case $host_os in
8718          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8719            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8720            hardcode_libdir_flag_spec='-R$libdir'
8721            ;;
8722          *)
8723            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8724            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8725            ;;
8726        esac
8727       fi
8728       ;;
8729
8730     os2*)
8731       hardcode_libdir_flag_spec='-L$libdir'
8732       hardcode_minus_L=yes
8733       allow_undefined_flag=unsupported
8734       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'
8735       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8736       ;;
8737
8738     osf3*)
8739       if test "$GCC" = yes; then
8740         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8741         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'
8742       else
8743         allow_undefined_flag=' -expect_unresolved \*'
8744         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'
8745       fi
8746       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8747       hardcode_libdir_separator=:
8748       ;;
8749
8750     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8751       if test "$GCC" = yes; then
8752         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8753         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'
8754         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8755       else
8756         allow_undefined_flag=' -expect_unresolved \*'
8757         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'
8758         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8759         $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'
8760
8761         # Both c and cxx compiler support -rpath directly
8762         hardcode_libdir_flag_spec='-rpath $libdir'
8763       fi
8764       hardcode_libdir_separator=:
8765       ;;
8766
8767     sco3.2v5*)
8768       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8769       hardcode_shlibpath_var=no
8770       export_dynamic_flag_spec='${wl}-Bexport'
8771       runpath_var=LD_RUN_PATH
8772       hardcode_runpath_var=yes
8773       ;;
8774
8775     solaris*)
8776       no_undefined_flag=' -z text'
8777       if test "$GCC" = yes; then
8778         wlarc='${wl}'
8779         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8780         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8781           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8782       else
8783         wlarc=''
8784         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8785         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8786         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8787       fi
8788       hardcode_libdir_flag_spec='-R$libdir'
8789       hardcode_shlibpath_var=no
8790       case $host_os in
8791       solaris2.[0-5] | solaris2.[0-5].*) ;;
8792       *)
8793         # The compiler driver will combine linker options so we
8794         # cannot just pass the convience library names through
8795         # without $wl, iff we do not link with $LD.
8796         # Luckily, gcc supports the same syntax we need for Sun Studio.
8797         # Supported since Solaris 2.6 (maybe 2.5.1?)
8798         case $wlarc in
8799         '')
8800           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8801         *)
8802           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' ;;
8803         esac ;;
8804       esac
8805       link_all_deplibs=yes
8806       ;;
8807
8808     sunos4*)
8809       if test "x$host_vendor" = xsequent; then
8810         # Use $CC to link under sequent, because it throws in some extra .o
8811         # files that make .init and .fini sections work.
8812         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8813       else
8814         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8815       fi
8816       hardcode_libdir_flag_spec='-L$libdir'
8817       hardcode_direct=yes
8818       hardcode_minus_L=yes
8819       hardcode_shlibpath_var=no
8820       ;;
8821
8822     sysv4)
8823       case $host_vendor in
8824         sni)
8825           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8826           hardcode_direct=yes # is this really true???
8827         ;;
8828         siemens)
8829           ## LD is ld it makes a PLAMLIB
8830           ## CC just makes a GrossModule.
8831           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8832           reload_cmds='$CC -r -o $output$reload_objs'
8833           hardcode_direct=no
8834         ;;
8835         motorola)
8836           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8837           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8838         ;;
8839       esac
8840       runpath_var='LD_RUN_PATH'
8841       hardcode_shlibpath_var=no
8842       ;;
8843
8844     sysv4.3*)
8845       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8846       hardcode_shlibpath_var=no
8847       export_dynamic_flag_spec='-Bexport'
8848       ;;
8849
8850     sysv4*MP*)
8851       if test -d /usr/nec; then
8852         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8853         hardcode_shlibpath_var=no
8854         runpath_var=LD_RUN_PATH
8855         hardcode_runpath_var=yes
8856         ld_shlibs=yes
8857       fi
8858       ;;
8859
8860     sysv4.2uw2*)
8861       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8862       hardcode_direct=yes
8863       hardcode_minus_L=no
8864       hardcode_shlibpath_var=no
8865       hardcode_runpath_var=yes
8866       runpath_var=LD_RUN_PATH
8867       ;;
8868
8869    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8870       no_undefined_flag='${wl}-z ${wl}text'
8871       if test "$GCC" = yes; then
8872         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8873       else
8874         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8875       fi
8876       runpath_var='LD_RUN_PATH'
8877       hardcode_shlibpath_var=no
8878       ;;
8879
8880     sysv5*)
8881       no_undefined_flag=' -z text'
8882       # $CC -shared without GNU ld will not create a library from C++
8883       # object files and a static libstdc++, better avoid it by now
8884       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8885       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8886                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8887       hardcode_libdir_flag_spec=
8888       hardcode_shlibpath_var=no
8889       runpath_var='LD_RUN_PATH'
8890       ;;
8891
8892     uts4*)
8893       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8894       hardcode_libdir_flag_spec='-L$libdir'
8895       hardcode_shlibpath_var=no
8896       ;;
8897
8898     *)
8899       ld_shlibs=no
8900       ;;
8901     esac
8902   fi
8903
8904 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8905 echo "${ECHO_T}$ld_shlibs" >&6
8906 test "$ld_shlibs" = no && can_build_shared=no
8907
8908 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8909 if test "$GCC" = yes; then
8910   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8911 fi
8912
8913 #
8914 # Do we need to explicitly link libc?
8915 #
8916 case "x$archive_cmds_need_lc" in
8917 x|xyes)
8918   # Assume -lc should be added
8919   archive_cmds_need_lc=yes
8920
8921   if test "$enable_shared" = yes && test "$GCC" = yes; then
8922     case $archive_cmds in
8923     *'~'*)
8924       # FIXME: we may have to deal with multi-command sequences.
8925       ;;
8926     '$CC '*)
8927       # Test whether the compiler implicitly links with -lc since on some
8928       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8929       # to ld, don't add -lc before -lgcc.
8930       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8931 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8932       $rm conftest*
8933       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8934
8935       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8936   (eval $ac_compile) 2>&5
8937   ac_status=$?
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); } 2>conftest.err; then
8940         soname=conftest
8941         lib=conftest
8942         libobjs=conftest.$ac_objext
8943         deplibs=
8944         wl=$lt_prog_compiler_wl
8945         compiler_flags=-v
8946         linker_flags=-v
8947         verstring=
8948         output_objdir=.
8949         libname=conftest
8950         lt_save_allow_undefined_flag=$allow_undefined_flag
8951         allow_undefined_flag=
8952         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8953   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8954   ac_status=$?
8955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); }
8957         then
8958           archive_cmds_need_lc=no
8959         else
8960           archive_cmds_need_lc=yes
8961         fi
8962         allow_undefined_flag=$lt_save_allow_undefined_flag
8963       else
8964         cat conftest.err 1>&5
8965       fi
8966       $rm conftest*
8967       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8968 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8969       ;;
8970     esac
8971   fi
8972   ;;
8973 esac
8974
8975 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8976 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8977 library_names_spec=
8978 libname_spec='lib$name'
8979 soname_spec=
8980 shrext_cmds=".so"
8981 postinstall_cmds=
8982 postuninstall_cmds=
8983 finish_cmds=
8984 finish_eval=
8985 shlibpath_var=
8986 shlibpath_overrides_runpath=unknown
8987 version_type=none
8988 dynamic_linker="$host_os ld.so"
8989 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8990 if test "$GCC" = yes; then
8991   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8992   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8993     # if the path contains ";" then we assume it to be the separator
8994     # otherwise default to the standard path separator (i.e. ":") - it is
8995     # assumed that no part of a normal pathname contains ";" but that should
8996     # okay in the real world where ";" in dirpaths is itself problematic.
8997     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8998   else
8999     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9000   fi
9001 else
9002   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9003 fi
9004 need_lib_prefix=unknown
9005 hardcode_into_libs=no
9006
9007 # when you set need_version to no, make sure it does not cause -set_version
9008 # flags to be left without arguments
9009 need_version=unknown
9010
9011 case $host_os in
9012 aix3*)
9013   version_type=linux
9014   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9015   shlibpath_var=LIBPATH
9016
9017   # AIX 3 has no versioning support, so we append a major version to the name.
9018   soname_spec='${libname}${release}${shared_ext}$major'
9019   ;;
9020
9021 aix4* | aix5*)
9022   version_type=linux
9023   need_lib_prefix=no
9024   need_version=no
9025   hardcode_into_libs=yes
9026   if test "$host_cpu" = ia64; then
9027     # AIX 5 supports IA64
9028     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9029     shlibpath_var=LD_LIBRARY_PATH
9030   else
9031     # With GCC up to 2.95.x, collect2 would create an import file
9032     # for dependence libraries.  The import file would start with
9033     # the line `#! .'.  This would cause the generated library to
9034     # depend on `.', always an invalid library.  This was fixed in
9035     # development snapshots of GCC prior to 3.0.
9036     case $host_os in
9037       aix4 | aix4.[01] | aix4.[01].*)
9038       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9039            echo ' yes '
9040            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9041         :
9042       else
9043         can_build_shared=no
9044       fi
9045       ;;
9046     esac
9047     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9048     # soname into executable. Probably we can add versioning support to
9049     # collect2, so additional links can be useful in future.
9050     if test "$aix_use_runtimelinking" = yes; then
9051       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9052       # instead of lib<name>.a to let people know that these are not
9053       # typical AIX shared libraries.
9054       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055     else
9056       # We preserve .a as extension for shared libraries through AIX4.2
9057       # and later when we are not doing run time linking.
9058       library_names_spec='${libname}${release}.a $libname.a'
9059       soname_spec='${libname}${release}${shared_ext}$major'
9060     fi
9061     shlibpath_var=LIBPATH
9062   fi
9063   ;;
9064
9065 amigaos*)
9066   library_names_spec='$libname.ixlibrary $libname.a'
9067   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9068   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'
9069   ;;
9070
9071 beos*)
9072   library_names_spec='${libname}${shared_ext}'
9073   dynamic_linker="$host_os ld.so"
9074   shlibpath_var=LIBRARY_PATH
9075   ;;
9076
9077 bsdi[45]*)
9078   version_type=linux
9079   need_version=no
9080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081   soname_spec='${libname}${release}${shared_ext}$major'
9082   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9083   shlibpath_var=LD_LIBRARY_PATH
9084   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9085   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9086   # the default ld.so.conf also contains /usr/contrib/lib and
9087   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9088   # libtool to hard-code these into programs
9089   ;;
9090
9091 cygwin* | mingw* | pw32*)
9092   version_type=windows
9093   shrext_cmds=".dll"
9094   need_version=no
9095   need_lib_prefix=no
9096
9097   case $GCC,$host_os in
9098   yes,cygwin* | yes,mingw* | yes,pw32*)
9099     library_names_spec='$libname.dll.a'
9100     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9101     postinstall_cmds='base_file=`basename \${file}`~
9102       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9103       dldir=$destdir/`dirname \$dlpath`~
9104       test -d \$dldir || mkdir -p \$dldir~
9105       $install_prog $dir/$dlname \$dldir/$dlname~
9106       chmod a+x \$dldir/$dlname'
9107     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9108       dlpath=$dir/\$dldll~
9109        $rm \$dlpath'
9110     shlibpath_overrides_runpath=yes
9111
9112     case $host_os in
9113     cygwin*)
9114       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9115       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9116       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9117       ;;
9118     mingw*)
9119       # MinGW DLLs use traditional 'lib' prefix
9120       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9121       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9122       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9123         # It is most probably a Windows format PATH printed by
9124         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9125         # path with ; separators, and with drive letters. We can handle the
9126         # drive letters (cygwin fileutils understands them), so leave them,
9127         # especially as we might pass files found there to a mingw objdump,
9128         # which wouldn't understand a cygwinified path. Ahh.
9129         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9130       else
9131         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9132       fi
9133       ;;
9134     pw32*)
9135       # pw32 DLLs use 'pw' prefix rather than 'lib'
9136       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9137       ;;
9138     esac
9139     ;;
9140
9141   *)
9142     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9143     ;;
9144   esac
9145   dynamic_linker='Win32 ld.exe'
9146   # FIXME: first we should search . and the directory the executable is in
9147   shlibpath_var=PATH
9148   ;;
9149
9150 darwin* | rhapsody*)
9151   dynamic_linker="$host_os dyld"
9152   version_type=darwin
9153   need_lib_prefix=no
9154   need_version=no
9155   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9156   soname_spec='${libname}${release}${major}$shared_ext'
9157   shlibpath_overrides_runpath=yes
9158   shlibpath_var=DYLD_LIBRARY_PATH
9159   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9160   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9161   if test "$GCC" = yes; then
9162     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"`
9163   else
9164     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9165   fi
9166   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9167   ;;
9168
9169 dgux*)
9170   version_type=linux
9171   need_lib_prefix=no
9172   need_version=no
9173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9174   soname_spec='${libname}${release}${shared_ext}$major'
9175   shlibpath_var=LD_LIBRARY_PATH
9176   ;;
9177
9178 freebsd1*)
9179   dynamic_linker=no
9180   ;;
9181
9182 kfreebsd*-gnu)
9183   version_type=linux
9184   need_lib_prefix=no
9185   need_version=no
9186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9187   soname_spec='${libname}${release}${shared_ext}$major'
9188   shlibpath_var=LD_LIBRARY_PATH
9189   shlibpath_overrides_runpath=no
9190   hardcode_into_libs=yes
9191   dynamic_linker='GNU ld.so'
9192   ;;
9193
9194 freebsd* | dragonfly*)
9195   # DragonFly does not have aout.  When/if they implement a new
9196   # versioning mechanism, adjust this.
9197   if test -x /usr/bin/objformat; then
9198     objformat=`/usr/bin/objformat`
9199   else
9200     case $host_os in
9201     freebsd[123]*) objformat=aout ;;
9202     *) objformat=elf ;;
9203     esac
9204   fi
9205   version_type=freebsd-$objformat
9206   case $version_type in
9207     freebsd-elf*)
9208       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9209       need_version=no
9210       need_lib_prefix=no
9211       ;;
9212     freebsd-*)
9213       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9214       need_version=yes
9215       ;;
9216   esac
9217   shlibpath_var=LD_LIBRARY_PATH
9218   case $host_os in
9219   freebsd2*)
9220     shlibpath_overrides_runpath=yes
9221     ;;
9222   freebsd3.[01]* | freebsdelf3.[01]*)
9223     shlibpath_overrides_runpath=yes
9224     hardcode_into_libs=yes
9225     ;;
9226   *) # from 3.2 on
9227     shlibpath_overrides_runpath=no
9228     hardcode_into_libs=yes
9229     ;;
9230   esac
9231   ;;
9232
9233 gnu*)
9234   version_type=linux
9235   need_lib_prefix=no
9236   need_version=no
9237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9238   soname_spec='${libname}${release}${shared_ext}$major'
9239   shlibpath_var=LD_LIBRARY_PATH
9240   hardcode_into_libs=yes
9241   ;;
9242
9243 hpux9* | hpux10* | hpux11*)
9244   # Give a soname corresponding to the major version so that dld.sl refuses to
9245   # link against other versions.
9246   version_type=sunos
9247   need_lib_prefix=no
9248   need_version=no
9249   case $host_cpu in
9250   ia64*)
9251     shrext_cmds='.so'
9252     hardcode_into_libs=yes
9253     dynamic_linker="$host_os dld.so"
9254     shlibpath_var=LD_LIBRARY_PATH
9255     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9256     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9257     soname_spec='${libname}${release}${shared_ext}$major'
9258     if test "X$HPUX_IA64_MODE" = X32; then
9259       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9260     else
9261       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9262     fi
9263     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9264     ;;
9265    hppa*64*)
9266      shrext_cmds='.sl'
9267      hardcode_into_libs=yes
9268      dynamic_linker="$host_os dld.sl"
9269      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9270      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9271      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272      soname_spec='${libname}${release}${shared_ext}$major'
9273      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9274      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9275      ;;
9276    *)
9277     shrext_cmds='.sl'
9278     dynamic_linker="$host_os dld.sl"
9279     shlibpath_var=SHLIB_PATH
9280     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9281     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9282     soname_spec='${libname}${release}${shared_ext}$major'
9283     ;;
9284   esac
9285   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9286   postinstall_cmds='chmod 555 $lib'
9287   ;;
9288
9289 irix5* | irix6* | nonstopux*)
9290   case $host_os in
9291     nonstopux*) version_type=nonstopux ;;
9292     *)
9293         if test "$lt_cv_prog_gnu_ld" = yes; then
9294                 version_type=linux
9295         else
9296                 version_type=irix
9297         fi ;;
9298   esac
9299   need_lib_prefix=no
9300   need_version=no
9301   soname_spec='${libname}${release}${shared_ext}$major'
9302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9303   case $host_os in
9304   irix5* | nonstopux*)
9305     libsuff= shlibsuff=
9306     ;;
9307   *)
9308     case $LD in # libtool.m4 will add one of these switches to LD
9309     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9310       libsuff= shlibsuff= libmagic=32-bit;;
9311     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9312       libsuff=32 shlibsuff=N32 libmagic=N32;;
9313     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9314       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9315     *) libsuff= shlibsuff= libmagic=never-match;;
9316     esac
9317     ;;
9318   esac
9319   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9320   shlibpath_overrides_runpath=no
9321   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9322   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9323   hardcode_into_libs=yes
9324   ;;
9325
9326 # No shared lib support for Linux oldld, aout, or coff.
9327 linux*oldld* | linux*aout* | linux*coff*)
9328   dynamic_linker=no
9329   ;;
9330
9331 # This must be Linux ELF.
9332 linux*)
9333   version_type=linux
9334   need_lib_prefix=no
9335   need_version=no
9336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337   soname_spec='${libname}${release}${shared_ext}$major'
9338   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9339   shlibpath_var=LD_LIBRARY_PATH
9340   shlibpath_overrides_runpath=no
9341   # This implies no fast_install, which is unacceptable.
9342   # Some rework will be needed to allow for fast_install
9343   # before this can be enabled.
9344   hardcode_into_libs=yes
9345
9346   # Append ld.so.conf contents to the search path
9347   if test -f /etc/ld.so.conf; then
9348     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' ' '`
9349     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9350   fi
9351
9352   # We used to test for /lib/ld.so.1 and disable shared libraries on
9353   # powerpc, because MkLinux only supported shared libraries with the
9354   # GNU dynamic linker.  Since this was broken with cross compilers,
9355   # most powerpc-linux boxes support dynamic linking these days and
9356   # people can always --disable-shared, the test was removed, and we
9357   # assume the GNU/Linux dynamic linker is in use.
9358   dynamic_linker='GNU/Linux ld.so'
9359   ;;
9360
9361 knetbsd*-gnu)
9362   version_type=linux
9363   need_lib_prefix=no
9364   need_version=no
9365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9366   soname_spec='${libname}${release}${shared_ext}$major'
9367   shlibpath_var=LD_LIBRARY_PATH
9368   shlibpath_overrides_runpath=no
9369   hardcode_into_libs=yes
9370   dynamic_linker='GNU ld.so'
9371   ;;
9372
9373 netbsd*)
9374   version_type=sunos
9375   need_lib_prefix=no
9376   need_version=no
9377   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9378     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9379     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9380     dynamic_linker='NetBSD (a.out) ld.so'
9381   else
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     dynamic_linker='NetBSD ld.elf_so'
9385   fi
9386   shlibpath_var=LD_LIBRARY_PATH
9387   shlibpath_overrides_runpath=yes
9388   hardcode_into_libs=yes
9389   ;;
9390
9391 newsos6)
9392   version_type=linux
9393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394   shlibpath_var=LD_LIBRARY_PATH
9395   shlibpath_overrides_runpath=yes
9396   ;;
9397
9398 nto-qnx*)
9399   version_type=linux
9400   need_lib_prefix=no
9401   need_version=no
9402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9403   soname_spec='${libname}${release}${shared_ext}$major'
9404   shlibpath_var=LD_LIBRARY_PATH
9405   shlibpath_overrides_runpath=yes
9406   ;;
9407
9408 openbsd*)
9409   version_type=sunos
9410   need_lib_prefix=no
9411   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9412   case $host_os in
9413     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9414     *)                         need_version=no  ;;
9415   esac
9416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9417   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9418   shlibpath_var=LD_LIBRARY_PATH
9419   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9420     case $host_os in
9421       openbsd2.[89] | openbsd2.[89].*)
9422         shlibpath_overrides_runpath=no
9423         ;;
9424       *)
9425         shlibpath_overrides_runpath=yes
9426         ;;
9427       esac
9428   else
9429     shlibpath_overrides_runpath=yes
9430   fi
9431   ;;
9432
9433 os2*)
9434   libname_spec='$name'
9435   shrext_cmds=".dll"
9436   need_lib_prefix=no
9437   library_names_spec='$libname${shared_ext} $libname.a'
9438   dynamic_linker='OS/2 ld.exe'
9439   shlibpath_var=LIBPATH
9440   ;;
9441
9442 osf3* | osf4* | osf5*)
9443   version_type=osf
9444   need_lib_prefix=no
9445   need_version=no
9446   soname_spec='${libname}${release}${shared_ext}$major'
9447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9448   shlibpath_var=LD_LIBRARY_PATH
9449   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9450   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9451   ;;
9452
9453 sco3.2v5*)
9454   version_type=osf
9455   soname_spec='${libname}${release}${shared_ext}$major'
9456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457   shlibpath_var=LD_LIBRARY_PATH
9458   ;;
9459
9460 solaris*)
9461   version_type=linux
9462   need_lib_prefix=no
9463   need_version=no
9464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465   soname_spec='${libname}${release}${shared_ext}$major'
9466   shlibpath_var=LD_LIBRARY_PATH
9467   shlibpath_overrides_runpath=yes
9468   hardcode_into_libs=yes
9469   # ldd complains unless libraries are executable
9470   postinstall_cmds='chmod +x $lib'
9471   ;;
9472
9473 sunos4*)
9474   version_type=sunos
9475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9476   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9477   shlibpath_var=LD_LIBRARY_PATH
9478   shlibpath_overrides_runpath=yes
9479   if test "$with_gnu_ld" = yes; then
9480     need_lib_prefix=no
9481   fi
9482   need_version=yes
9483   ;;
9484
9485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9486   version_type=linux
9487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488   soname_spec='${libname}${release}${shared_ext}$major'
9489   shlibpath_var=LD_LIBRARY_PATH
9490   case $host_vendor in
9491     sni)
9492       shlibpath_overrides_runpath=no
9493       need_lib_prefix=no
9494       export_dynamic_flag_spec='${wl}-Blargedynsym'
9495       runpath_var=LD_RUN_PATH
9496       ;;
9497     siemens)
9498       need_lib_prefix=no
9499       ;;
9500     motorola)
9501       need_lib_prefix=no
9502       need_version=no
9503       shlibpath_overrides_runpath=no
9504       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9505       ;;
9506   esac
9507   ;;
9508
9509 sysv4*MP*)
9510   if test -d /usr/nec ;then
9511     version_type=linux
9512     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9513     soname_spec='$libname${shared_ext}.$major'
9514     shlibpath_var=LD_LIBRARY_PATH
9515   fi
9516   ;;
9517
9518 uts4*)
9519   version_type=linux
9520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521   soname_spec='${libname}${release}${shared_ext}$major'
9522   shlibpath_var=LD_LIBRARY_PATH
9523   ;;
9524
9525 *)
9526   dynamic_linker=no
9527   ;;
9528 esac
9529 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9530 echo "${ECHO_T}$dynamic_linker" >&6
9531 test "$dynamic_linker" = no && can_build_shared=no
9532
9533 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9535 hardcode_action=
9536 if test -n "$hardcode_libdir_flag_spec" || \
9537    test -n "$runpath_var" || \
9538    test "X$hardcode_automatic" = "Xyes" ; then
9539
9540   # We can hardcode non-existant directories.
9541   if test "$hardcode_direct" != no &&
9542      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9543      # have to relink, otherwise we might link with an installed library
9544      # when we should be linking with a yet-to-be-installed one
9545      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9546      test "$hardcode_minus_L" != no; then
9547     # Linking always hardcodes the temporary library directory.
9548     hardcode_action=relink
9549   else
9550     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9551     hardcode_action=immediate
9552   fi
9553 else
9554   # We cannot hardcode anything, or else we can only hardcode existing
9555   # directories.
9556   hardcode_action=unsupported
9557 fi
9558 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9559 echo "${ECHO_T}$hardcode_action" >&6
9560
9561 if test "$hardcode_action" = relink; then
9562   # Fast installation is not supported
9563   enable_fast_install=no
9564 elif test "$shlibpath_overrides_runpath" = yes ||
9565      test "$enable_shared" = no; then
9566   # Fast installation is not necessary
9567   enable_fast_install=needless
9568 fi
9569
9570 striplib=
9571 old_striplib=
9572 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9573 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9574 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9575   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9576   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9577   echo "$as_me:$LINENO: result: yes" >&5
9578 echo "${ECHO_T}yes" >&6
9579 else
9580 # FIXME - insert some real tests, host_os isn't really good enough
9581   case $host_os in
9582    darwin*)
9583        if test -n "$STRIP" ; then
9584          striplib="$STRIP -x"
9585          echo "$as_me:$LINENO: result: yes" >&5
9586 echo "${ECHO_T}yes" >&6
9587        else
9588   echo "$as_me:$LINENO: result: no" >&5
9589 echo "${ECHO_T}no" >&6
9590 fi
9591        ;;
9592    *)
9593   echo "$as_me:$LINENO: result: no" >&5
9594 echo "${ECHO_T}no" >&6
9595     ;;
9596   esac
9597 fi
9598
9599 if test "x$enable_dlopen" != xyes; then
9600   enable_dlopen=unknown
9601   enable_dlopen_self=unknown
9602   enable_dlopen_self_static=unknown
9603 else
9604   lt_cv_dlopen=no
9605   lt_cv_dlopen_libs=
9606
9607   case $host_os in
9608   beos*)
9609     lt_cv_dlopen="load_add_on"
9610     lt_cv_dlopen_libs=
9611     lt_cv_dlopen_self=yes
9612     ;;
9613
9614   mingw* | pw32*)
9615     lt_cv_dlopen="LoadLibrary"
9616     lt_cv_dlopen_libs=
9617    ;;
9618
9619   cygwin*)
9620     lt_cv_dlopen="dlopen"
9621     lt_cv_dlopen_libs=
9622    ;;
9623
9624   darwin*)
9625   # if libdl is installed we need to link against it
9626     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9627 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9629   echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631   ac_check_lib_save_LIBS=$LIBS
9632 LIBS="-ldl  $LIBS"
9633 cat >conftest.$ac_ext <<_ACEOF
9634 /* confdefs.h.  */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h.  */
9639
9640 /* Override any gcc2 internal prototype to avoid an error.  */
9641 #ifdef __cplusplus
9642 extern "C"
9643 #endif
9644 /* We use char because int might match the return type of a gcc2
9645    builtin and then its argument prototype would still apply.  */
9646 char dlopen ();
9647 int
9648 main ()
9649 {
9650 dlopen ();
9651   ;
9652   return 0;
9653 }
9654 _ACEOF
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657   (eval $ac_link) 2>conftest.er1
9658   ac_status=$?
9659   grep -v '^ *+' conftest.er1 >conftest.err
9660   rm -f conftest.er1
9661   cat conftest.err >&5
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); } &&
9664          { ac_try='test -z "$ac_c_werror_flag"
9665                          || test ! -s conftest.err'
9666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667   (eval $ac_try) 2>&5
9668   ac_status=$?
9669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670   (exit $ac_status); }; } &&
9671          { ac_try='test -s conftest$ac_exeext'
9672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673   (eval $ac_try) 2>&5
9674   ac_status=$?
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); }; }; then
9677   ac_cv_lib_dl_dlopen=yes
9678 else
9679   echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9681
9682 ac_cv_lib_dl_dlopen=no
9683 fi
9684 rm -f conftest.err conftest.$ac_objext \
9685       conftest$ac_exeext conftest.$ac_ext
9686 LIBS=$ac_check_lib_save_LIBS
9687 fi
9688 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9689 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9690 if test $ac_cv_lib_dl_dlopen = yes; then
9691   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9692 else
9693
9694     lt_cv_dlopen="dyld"
9695     lt_cv_dlopen_libs=
9696     lt_cv_dlopen_self=yes
9697
9698 fi
9699
9700    ;;
9701
9702   *)
9703     echo "$as_me:$LINENO: checking for shl_load" >&5
9704 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9705 if test "${ac_cv_func_shl_load+set}" = set; then
9706   echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708   cat >conftest.$ac_ext <<_ACEOF
9709 /* confdefs.h.  */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h.  */
9714 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9716 #define shl_load innocuous_shl_load
9717
9718 /* System header to define __stub macros and hopefully few prototypes,
9719     which can conflict with char shl_load (); below.
9720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9721     <limits.h> exists even on freestanding compilers.  */
9722
9723 #ifdef __STDC__
9724 # include <limits.h>
9725 #else
9726 # include <assert.h>
9727 #endif
9728
9729 #undef shl_load
9730
9731 /* Override any gcc2 internal prototype to avoid an error.  */
9732 #ifdef __cplusplus
9733 extern "C"
9734 {
9735 #endif
9736 /* We use char because int might match the return type of a gcc2
9737    builtin and then its argument prototype would still apply.  */
9738 char shl_load ();
9739 /* The GNU C library defines this for functions which it implements
9740     to always fail with ENOSYS.  Some functions are actually named
9741     something starting with __ and the normal name is an alias.  */
9742 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9743 choke me
9744 #else
9745 char (*f) () = shl_load;
9746 #endif
9747 #ifdef __cplusplus
9748 }
9749 #endif
9750
9751 int
9752 main ()
9753 {
9754 return f != shl_load;
9755   ;
9756   return 0;
9757 }
9758 _ACEOF
9759 rm -f conftest.$ac_objext conftest$ac_exeext
9760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9761   (eval $ac_link) 2>conftest.er1
9762   ac_status=$?
9763   grep -v '^ *+' conftest.er1 >conftest.err
9764   rm -f conftest.er1
9765   cat conftest.err >&5
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); } &&
9768          { ac_try='test -z "$ac_c_werror_flag"
9769                          || test ! -s conftest.err'
9770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771   (eval $ac_try) 2>&5
9772   ac_status=$?
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); }; } &&
9775          { ac_try='test -s conftest$ac_exeext'
9776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777   (eval $ac_try) 2>&5
9778   ac_status=$?
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); }; }; then
9781   ac_cv_func_shl_load=yes
9782 else
9783   echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9785
9786 ac_cv_func_shl_load=no
9787 fi
9788 rm -f conftest.err conftest.$ac_objext \
9789       conftest$ac_exeext conftest.$ac_ext
9790 fi
9791 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9792 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9793 if test $ac_cv_func_shl_load = yes; then
9794   lt_cv_dlopen="shl_load"
9795 else
9796   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9797 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9798 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9799   echo $ECHO_N "(cached) $ECHO_C" >&6
9800 else
9801   ac_check_lib_save_LIBS=$LIBS
9802 LIBS="-ldld  $LIBS"
9803 cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h.  */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h.  */
9809
9810 /* Override any gcc2 internal prototype to avoid an error.  */
9811 #ifdef __cplusplus
9812 extern "C"
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 shl_load ();
9817 int
9818 main ()
9819 {
9820 shl_load ();
9821   ;
9822   return 0;
9823 }
9824 _ACEOF
9825 rm -f conftest.$ac_objext conftest$ac_exeext
9826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9827   (eval $ac_link) 2>conftest.er1
9828   ac_status=$?
9829   grep -v '^ *+' conftest.er1 >conftest.err
9830   rm -f conftest.er1
9831   cat conftest.err >&5
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); } &&
9834          { ac_try='test -z "$ac_c_werror_flag"
9835                          || test ! -s conftest.err'
9836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837   (eval $ac_try) 2>&5
9838   ac_status=$?
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); }; } &&
9841          { ac_try='test -s conftest$ac_exeext'
9842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843   (eval $ac_try) 2>&5
9844   ac_status=$?
9845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); }; }; then
9847   ac_cv_lib_dld_shl_load=yes
9848 else
9849   echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852 ac_cv_lib_dld_shl_load=no
9853 fi
9854 rm -f conftest.err conftest.$ac_objext \
9855       conftest$ac_exeext conftest.$ac_ext
9856 LIBS=$ac_check_lib_save_LIBS
9857 fi
9858 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9859 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9860 if test $ac_cv_lib_dld_shl_load = yes; then
9861   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9862 else
9863   echo "$as_me:$LINENO: checking for dlopen" >&5
9864 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9865 if test "${ac_cv_func_dlopen+set}" = set; then
9866   echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868   cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h.  */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h.  */
9874 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9876 #define dlopen innocuous_dlopen
9877
9878 /* System header to define __stub macros and hopefully few prototypes,
9879     which can conflict with char dlopen (); below.
9880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9881     <limits.h> exists even on freestanding compilers.  */
9882
9883 #ifdef __STDC__
9884 # include <limits.h>
9885 #else
9886 # include <assert.h>
9887 #endif
9888
9889 #undef dlopen
9890
9891 /* Override any gcc2 internal prototype to avoid an error.  */
9892 #ifdef __cplusplus
9893 extern "C"
9894 {
9895 #endif
9896 /* We use char because int might match the return type of a gcc2
9897    builtin and then its argument prototype would still apply.  */
9898 char dlopen ();
9899 /* The GNU C library defines this for functions which it implements
9900     to always fail with ENOSYS.  Some functions are actually named
9901     something starting with __ and the normal name is an alias.  */
9902 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9903 choke me
9904 #else
9905 char (*f) () = dlopen;
9906 #endif
9907 #ifdef __cplusplus
9908 }
9909 #endif
9910
9911 int
9912 main ()
9913 {
9914 return f != dlopen;
9915   ;
9916   return 0;
9917 }
9918 _ACEOF
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921   (eval $ac_link) 2>conftest.er1
9922   ac_status=$?
9923   grep -v '^ *+' conftest.er1 >conftest.err
9924   rm -f conftest.er1
9925   cat conftest.err >&5
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); } &&
9928          { ac_try='test -z "$ac_c_werror_flag"
9929                          || test ! -s conftest.err'
9930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931   (eval $ac_try) 2>&5
9932   ac_status=$?
9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934   (exit $ac_status); }; } &&
9935          { ac_try='test -s conftest$ac_exeext'
9936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937   (eval $ac_try) 2>&5
9938   ac_status=$?
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); }; }; then
9941   ac_cv_func_dlopen=yes
9942 else
9943   echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9945
9946 ac_cv_func_dlopen=no
9947 fi
9948 rm -f conftest.err conftest.$ac_objext \
9949       conftest$ac_exeext conftest.$ac_ext
9950 fi
9951 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9952 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9953 if test $ac_cv_func_dlopen = yes; then
9954   lt_cv_dlopen="dlopen"
9955 else
9956   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9957 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9958 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9959   echo $ECHO_N "(cached) $ECHO_C" >&6
9960 else
9961   ac_check_lib_save_LIBS=$LIBS
9962 LIBS="-ldl  $LIBS"
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h.  */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h.  */
9969
9970 /* Override any gcc2 internal prototype to avoid an error.  */
9971 #ifdef __cplusplus
9972 extern "C"
9973 #endif
9974 /* We use char because int might match the return type of a gcc2
9975    builtin and then its argument prototype would still apply.  */
9976 char dlopen ();
9977 int
9978 main ()
9979 {
9980 dlopen ();
9981   ;
9982   return 0;
9983 }
9984 _ACEOF
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987   (eval $ac_link) 2>conftest.er1
9988   ac_status=$?
9989   grep -v '^ *+' conftest.er1 >conftest.err
9990   rm -f conftest.er1
9991   cat conftest.err >&5
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); } &&
9994          { ac_try='test -z "$ac_c_werror_flag"
9995                          || test ! -s conftest.err'
9996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997   (eval $ac_try) 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; } &&
10001          { ac_try='test -s conftest$ac_exeext'
10002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003   (eval $ac_try) 2>&5
10004   ac_status=$?
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); }; }; then
10007   ac_cv_lib_dl_dlopen=yes
10008 else
10009   echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10011
10012 ac_cv_lib_dl_dlopen=no
10013 fi
10014 rm -f conftest.err conftest.$ac_objext \
10015       conftest$ac_exeext conftest.$ac_ext
10016 LIBS=$ac_check_lib_save_LIBS
10017 fi
10018 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10019 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10020 if test $ac_cv_lib_dl_dlopen = yes; then
10021   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10022 else
10023   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10024 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10025 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10026   echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028   ac_check_lib_save_LIBS=$LIBS
10029 LIBS="-lsvld  $LIBS"
10030 cat >conftest.$ac_ext <<_ACEOF
10031 /* confdefs.h.  */
10032 _ACEOF
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h.  */
10036
10037 /* Override any gcc2 internal prototype to avoid an error.  */
10038 #ifdef __cplusplus
10039 extern "C"
10040 #endif
10041 /* We use char because int might match the return type of a gcc2
10042    builtin and then its argument prototype would still apply.  */
10043 char dlopen ();
10044 int
10045 main ()
10046 {
10047 dlopen ();
10048   ;
10049   return 0;
10050 }
10051 _ACEOF
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10054   (eval $ac_link) 2>conftest.er1
10055   ac_status=$?
10056   grep -v '^ *+' conftest.er1 >conftest.err
10057   rm -f conftest.er1
10058   cat conftest.err >&5
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); } &&
10061          { ac_try='test -z "$ac_c_werror_flag"
10062                          || test ! -s conftest.err'
10063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064   (eval $ac_try) 2>&5
10065   ac_status=$?
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); }; } &&
10068          { ac_try='test -s conftest$ac_exeext'
10069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070   (eval $ac_try) 2>&5
10071   ac_status=$?
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); }; }; then
10074   ac_cv_lib_svld_dlopen=yes
10075 else
10076   echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10078
10079 ac_cv_lib_svld_dlopen=no
10080 fi
10081 rm -f conftest.err conftest.$ac_objext \
10082       conftest$ac_exeext conftest.$ac_ext
10083 LIBS=$ac_check_lib_save_LIBS
10084 fi
10085 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10086 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10087 if test $ac_cv_lib_svld_dlopen = yes; then
10088   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10089 else
10090   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10091 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10092 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10093   echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095   ac_check_lib_save_LIBS=$LIBS
10096 LIBS="-ldld  $LIBS"
10097 cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h.  */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h.  */
10103
10104 /* Override any gcc2 internal prototype to avoid an error.  */
10105 #ifdef __cplusplus
10106 extern "C"
10107 #endif
10108 /* We use char because int might match the return type of a gcc2
10109    builtin and then its argument prototype would still apply.  */
10110 char dld_link ();
10111 int
10112 main ()
10113 {
10114 dld_link ();
10115   ;
10116   return 0;
10117 }
10118 _ACEOF
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10121   (eval $ac_link) 2>conftest.er1
10122   ac_status=$?
10123   grep -v '^ *+' conftest.er1 >conftest.err
10124   rm -f conftest.er1
10125   cat conftest.err >&5
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); } &&
10128          { ac_try='test -z "$ac_c_werror_flag"
10129                          || test ! -s conftest.err'
10130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131   (eval $ac_try) 2>&5
10132   ac_status=$?
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   (exit $ac_status); }; } &&
10135          { ac_try='test -s conftest$ac_exeext'
10136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137   (eval $ac_try) 2>&5
10138   ac_status=$?
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); }; }; then
10141   ac_cv_lib_dld_dld_link=yes
10142 else
10143   echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10145
10146 ac_cv_lib_dld_dld_link=no
10147 fi
10148 rm -f conftest.err conftest.$ac_objext \
10149       conftest$ac_exeext conftest.$ac_ext
10150 LIBS=$ac_check_lib_save_LIBS
10151 fi
10152 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10153 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10154 if test $ac_cv_lib_dld_dld_link = yes; then
10155   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10156 fi
10157
10158
10159 fi
10160
10161
10162 fi
10163
10164
10165 fi
10166
10167
10168 fi
10169
10170
10171 fi
10172
10173     ;;
10174   esac
10175
10176   if test "x$lt_cv_dlopen" != xno; then
10177     enable_dlopen=yes
10178   else
10179     enable_dlopen=no
10180   fi
10181
10182   case $lt_cv_dlopen in
10183   dlopen)
10184     save_CPPFLAGS="$CPPFLAGS"
10185     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10186
10187     save_LDFLAGS="$LDFLAGS"
10188     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10189
10190     save_LIBS="$LIBS"
10191     LIBS="$lt_cv_dlopen_libs $LIBS"
10192
10193     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10194 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10195 if test "${lt_cv_dlopen_self+set}" = set; then
10196   echo $ECHO_N "(cached) $ECHO_C" >&6
10197 else
10198           if test "$cross_compiling" = yes; then :
10199   lt_cv_dlopen_self=cross
10200 else
10201   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10202   lt_status=$lt_dlunknown
10203   cat > conftest.$ac_ext <<EOF
10204 #line 10204 "configure"
10205 #include "confdefs.h"
10206
10207 #if HAVE_DLFCN_H
10208 #include <dlfcn.h>
10209 #endif
10210
10211 #include <stdio.h>
10212
10213 #ifdef RTLD_GLOBAL
10214 #  define LT_DLGLOBAL           RTLD_GLOBAL
10215 #else
10216 #  ifdef DL_GLOBAL
10217 #    define LT_DLGLOBAL         DL_GLOBAL
10218 #  else
10219 #    define LT_DLGLOBAL         0
10220 #  endif
10221 #endif
10222
10223 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10224    find out it does not work in some platform. */
10225 #ifndef LT_DLLAZY_OR_NOW
10226 #  ifdef RTLD_LAZY
10227 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10228 #  else
10229 #    ifdef DL_LAZY
10230 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10231 #    else
10232 #      ifdef RTLD_NOW
10233 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10234 #      else
10235 #        ifdef DL_NOW
10236 #          define LT_DLLAZY_OR_NOW      DL_NOW
10237 #        else
10238 #          define LT_DLLAZY_OR_NOW      0
10239 #        endif
10240 #      endif
10241 #    endif
10242 #  endif
10243 #endif
10244
10245 #ifdef __cplusplus
10246 extern "C" void exit (int);
10247 #endif
10248
10249 void fnord() { int i=42;}
10250 int main ()
10251 {
10252   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10253   int status = $lt_dlunknown;
10254
10255   if (self)
10256     {
10257       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10258       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10259       /* dlclose (self); */
10260     }
10261
10262     exit (status);
10263 }
10264 EOF
10265   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10266   (eval $ac_link) 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10270     (./conftest; exit; ) >&5 2>/dev/null
10271     lt_status=$?
10272     case x$lt_status in
10273       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10274       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10275       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10276     esac
10277   else :
10278     # compilation failed
10279     lt_cv_dlopen_self=no
10280   fi
10281 fi
10282 rm -fr conftest*
10283
10284
10285 fi
10286 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10287 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10288
10289     if test "x$lt_cv_dlopen_self" = xyes; then
10290       LDFLAGS="$LDFLAGS $link_static_flag"
10291       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10292 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10293 if test "${lt_cv_dlopen_self_static+set}" = set; then
10294   echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296           if test "$cross_compiling" = yes; then :
10297   lt_cv_dlopen_self_static=cross
10298 else
10299   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10300   lt_status=$lt_dlunknown
10301   cat > conftest.$ac_ext <<EOF
10302 #line 10302 "configure"
10303 #include "confdefs.h"
10304
10305 #if HAVE_DLFCN_H
10306 #include <dlfcn.h>
10307 #endif
10308
10309 #include <stdio.h>
10310
10311 #ifdef RTLD_GLOBAL
10312 #  define LT_DLGLOBAL           RTLD_GLOBAL
10313 #else
10314 #  ifdef DL_GLOBAL
10315 #    define LT_DLGLOBAL         DL_GLOBAL
10316 #  else
10317 #    define LT_DLGLOBAL         0
10318 #  endif
10319 #endif
10320
10321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10322    find out it does not work in some platform. */
10323 #ifndef LT_DLLAZY_OR_NOW
10324 #  ifdef RTLD_LAZY
10325 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10326 #  else
10327 #    ifdef DL_LAZY
10328 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10329 #    else
10330 #      ifdef RTLD_NOW
10331 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10332 #      else
10333 #        ifdef DL_NOW
10334 #          define LT_DLLAZY_OR_NOW      DL_NOW
10335 #        else
10336 #          define LT_DLLAZY_OR_NOW      0
10337 #        endif
10338 #      endif
10339 #    endif
10340 #  endif
10341 #endif
10342
10343 #ifdef __cplusplus
10344 extern "C" void exit (int);
10345 #endif
10346
10347 void fnord() { int i=42;}
10348 int main ()
10349 {
10350   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10351   int status = $lt_dlunknown;
10352
10353   if (self)
10354     {
10355       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10356       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10357       /* dlclose (self); */
10358     }
10359
10360     exit (status);
10361 }
10362 EOF
10363   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10364   (eval $ac_link) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10368     (./conftest; exit; ) >&5 2>/dev/null
10369     lt_status=$?
10370     case x$lt_status in
10371       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10372       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10373       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10374     esac
10375   else :
10376     # compilation failed
10377     lt_cv_dlopen_self_static=no
10378   fi
10379 fi
10380 rm -fr conftest*
10381
10382
10383 fi
10384 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10385 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10386     fi
10387
10388     CPPFLAGS="$save_CPPFLAGS"
10389     LDFLAGS="$save_LDFLAGS"
10390     LIBS="$save_LIBS"
10391     ;;
10392   esac
10393
10394   case $lt_cv_dlopen_self in
10395   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10396   *) enable_dlopen_self=unknown ;;
10397   esac
10398
10399   case $lt_cv_dlopen_self_static in
10400   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10401   *) enable_dlopen_self_static=unknown ;;
10402   esac
10403 fi
10404
10405
10406 # Report which librarie types wil actually be built
10407 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10408 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10409 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10410 echo "${ECHO_T}$can_build_shared" >&6
10411
10412 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10413 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10414 test "$can_build_shared" = "no" && enable_shared=no
10415
10416 # On AIX, shared libraries and static libraries use the same namespace, and
10417 # are all built from PIC.
10418 case $host_os in
10419 aix3*)
10420   test "$enable_shared" = yes && enable_static=no
10421   if test -n "$RANLIB"; then
10422     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10423     postinstall_cmds='$RANLIB $lib'
10424   fi
10425   ;;
10426
10427 aix4* | aix5*)
10428   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10429     test "$enable_shared" = yes && enable_static=no
10430   fi
10431     ;;
10432 esac
10433 echo "$as_me:$LINENO: result: $enable_shared" >&5
10434 echo "${ECHO_T}$enable_shared" >&6
10435
10436 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10437 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10438 # Make sure either enable_shared or enable_static is yes.
10439 test "$enable_shared" = yes || enable_static=yes
10440 echo "$as_me:$LINENO: result: $enable_static" >&5
10441 echo "${ECHO_T}$enable_static" >&6
10442
10443 # The else clause should only fire when bootstrapping the
10444 # libtool distribution, otherwise you forgot to ship ltmain.sh
10445 # with your package, and you will get complaints that there are
10446 # no rules to generate ltmain.sh.
10447 if test -f "$ltmain"; then
10448   # See if we are running on zsh, and set the options which allow our commands through
10449   # without removal of \ escapes.
10450   if test -n "${ZSH_VERSION+set}" ; then
10451     setopt NO_GLOB_SUBST
10452   fi
10453   # Now quote all the things that may contain metacharacters while being
10454   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10455   # variables and quote the copies for generation of the libtool script.
10456   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10457     SED SHELL STRIP \
10458     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10459     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10460     deplibs_check_method reload_flag reload_cmds need_locks \
10461     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10462     lt_cv_sys_global_symbol_to_c_name_address \
10463     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10464     old_postinstall_cmds old_postuninstall_cmds \
10465     compiler \
10466     CC \
10467     LD \
10468     lt_prog_compiler_wl \
10469     lt_prog_compiler_pic \
10470     lt_prog_compiler_static \
10471     lt_prog_compiler_no_builtin_flag \
10472     export_dynamic_flag_spec \
10473     thread_safe_flag_spec \
10474     whole_archive_flag_spec \
10475     enable_shared_with_static_runtimes \
10476     old_archive_cmds \
10477     old_archive_from_new_cmds \
10478     predep_objects \
10479     postdep_objects \
10480     predeps \
10481     postdeps \
10482     compiler_lib_search_path \
10483     archive_cmds \
10484     archive_expsym_cmds \
10485     postinstall_cmds \
10486     postuninstall_cmds \
10487     old_archive_from_expsyms_cmds \
10488     allow_undefined_flag \
10489     no_undefined_flag \
10490     export_symbols_cmds \
10491     hardcode_libdir_flag_spec \
10492     hardcode_libdir_flag_spec_ld \
10493     hardcode_libdir_separator \
10494     hardcode_automatic \
10495     module_cmds \
10496     module_expsym_cmds \
10497     lt_cv_prog_compiler_c_o \
10498     exclude_expsyms \
10499     include_expsyms; do
10500
10501     case $var in
10502     old_archive_cmds | \
10503     old_archive_from_new_cmds | \
10504     archive_cmds | \
10505     archive_expsym_cmds | \
10506     module_cmds | \
10507     module_expsym_cmds | \
10508     old_archive_from_expsyms_cmds | \
10509     export_symbols_cmds | \
10510     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10511     postinstall_cmds | postuninstall_cmds | \
10512     old_postinstall_cmds | old_postuninstall_cmds | \
10513     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10514       # Double-quote double-evaled strings.
10515       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10516       ;;
10517     *)
10518       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10519       ;;
10520     esac
10521   done
10522
10523   case $lt_echo in
10524   *'\$0 --fallback-echo"')
10525     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10526     ;;
10527   esac
10528
10529 cfgfile="${ofile}T"
10530   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10531   $rm -f "$cfgfile"
10532   { echo "$as_me:$LINENO: creating $ofile" >&5
10533 echo "$as_me: creating $ofile" >&6;}
10534
10535   cat <<__EOF__ >> "$cfgfile"
10536 #! $SHELL
10537
10538 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10539 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10540 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10541 #
10542 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10543 # Free Software Foundation, Inc.
10544 #
10545 # This file is part of GNU Libtool:
10546 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10547 #
10548 # This program is free software; you can redistribute it and/or modify
10549 # it under the terms of the GNU General Public License as published by
10550 # the Free Software Foundation; either version 2 of the License, or
10551 # (at your option) any later version.
10552 #
10553 # This program is distributed in the hope that it will be useful, but
10554 # WITHOUT ANY WARRANTY; without even the implied warranty of
10555 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10556 # General Public License for more details.
10557 #
10558 # You should have received a copy of the GNU General Public License
10559 # along with this program; if not, write to the Free Software
10560 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10561 #
10562 # As a special exception to the GNU General Public License, if you
10563 # distribute this file as part of a program that contains a
10564 # configuration script generated by Autoconf, you may include it under
10565 # the same distribution terms that you use for the rest of that program.
10566
10567 # A sed program that does not truncate output.
10568 SED=$lt_SED
10569
10570 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10571 Xsed="$SED -e 1s/^X//"
10572
10573 # The HP-UX ksh and POSIX shell print the target directory to stdout
10574 # if CDPATH is set.
10575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10576
10577 # The names of the tagged configurations supported by this script.
10578 available_tags=
10579
10580 # ### BEGIN LIBTOOL CONFIG
10581
10582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10583
10584 # Shell to use when invoking shell scripts.
10585 SHELL=$lt_SHELL
10586
10587 # Whether or not to build shared libraries.
10588 build_libtool_libs=$enable_shared
10589
10590 # Whether or not to build static libraries.
10591 build_old_libs=$enable_static
10592
10593 # Whether or not to add -lc for building shared libraries.
10594 build_libtool_need_lc=$archive_cmds_need_lc
10595
10596 # Whether or not to disallow shared libs when runtime libs are static
10597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10598
10599 # Whether or not to optimize for fast installation.
10600 fast_install=$enable_fast_install
10601
10602 # The host system.
10603 host_alias=$host_alias
10604 host=$host
10605 host_os=$host_os
10606
10607 # The build system.
10608 build_alias=$build_alias
10609 build=$build
10610 build_os=$build_os
10611
10612 # An echo program that does not interpret backslashes.
10613 echo=$lt_echo
10614
10615 # The archiver.
10616 AR=$lt_AR
10617 AR_FLAGS=$lt_AR_FLAGS
10618
10619 # A C compiler.
10620 LTCC=$lt_LTCC
10621
10622 # A language-specific compiler.
10623 CC=$lt_compiler
10624
10625 # Is the compiler the GNU C compiler?
10626 with_gcc=$GCC
10627
10628 # An ERE matcher.
10629 EGREP=$lt_EGREP
10630
10631 # The linker used to build libraries.
10632 LD=$lt_LD
10633
10634 # Whether we need hard or soft links.
10635 LN_S=$lt_LN_S
10636
10637 # A BSD-compatible nm program.
10638 NM=$lt_NM
10639
10640 # A symbol stripping program
10641 STRIP=$lt_STRIP
10642
10643 # Used to examine libraries when file_magic_cmd begins "file"
10644 MAGIC_CMD=$MAGIC_CMD
10645
10646 # Used on cygwin: DLL creation program.
10647 DLLTOOL="$DLLTOOL"
10648
10649 # Used on cygwin: object dumper.
10650 OBJDUMP="$OBJDUMP"
10651
10652 # Used on cygwin: assembler.
10653 AS="$AS"
10654
10655 # The name of the directory that contains temporary libtool files.
10656 objdir=$objdir
10657
10658 # How to create reloadable object files.
10659 reload_flag=$lt_reload_flag
10660 reload_cmds=$lt_reload_cmds
10661
10662 # How to pass a linker flag through the compiler.
10663 wl=$lt_lt_prog_compiler_wl
10664
10665 # Object file suffix (normally "o").
10666 objext="$ac_objext"
10667
10668 # Old archive suffix (normally "a").
10669 libext="$libext"
10670
10671 # Shared library suffix (normally ".so").
10672 shrext_cmds='$shrext_cmds'
10673
10674 # Executable file suffix (normally "").
10675 exeext="$exeext"
10676
10677 # Additional compiler flags for building library objects.
10678 pic_flag=$lt_lt_prog_compiler_pic
10679 pic_mode=$pic_mode
10680
10681 # What is the maximum length of a command?
10682 max_cmd_len=$lt_cv_sys_max_cmd_len
10683
10684 # Does compiler simultaneously support -c and -o options?
10685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10686
10687 # Must we lock files when doing compilation?
10688 need_locks=$lt_need_locks
10689
10690 # Do we need the lib prefix for modules?
10691 need_lib_prefix=$need_lib_prefix
10692
10693 # Do we need a version for libraries?
10694 need_version=$need_version
10695
10696 # Whether dlopen is supported.
10697 dlopen_support=$enable_dlopen
10698
10699 # Whether dlopen of programs is supported.
10700 dlopen_self=$enable_dlopen_self
10701
10702 # Whether dlopen of statically linked programs is supported.
10703 dlopen_self_static=$enable_dlopen_self_static
10704
10705 # Compiler flag to prevent dynamic linking.
10706 link_static_flag=$lt_lt_prog_compiler_static
10707
10708 # Compiler flag to turn off builtin functions.
10709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10710
10711 # Compiler flag to allow reflexive dlopens.
10712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10713
10714 # Compiler flag to generate shared objects directly from archives.
10715 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10716
10717 # Compiler flag to generate thread-safe objects.
10718 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10719
10720 # Library versioning type.
10721 version_type=$version_type
10722
10723 # Format of library name prefix.
10724 libname_spec=$lt_libname_spec
10725
10726 # List of archive names.  First name is the real one, the rest are links.
10727 # The last name is the one that the linker finds with -lNAME.
10728 library_names_spec=$lt_library_names_spec
10729
10730 # The coded name of the library, if different from the real name.
10731 soname_spec=$lt_soname_spec
10732
10733 # Commands used to build and install an old-style archive.
10734 RANLIB=$lt_RANLIB
10735 old_archive_cmds=$lt_old_archive_cmds
10736 old_postinstall_cmds=$lt_old_postinstall_cmds
10737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10738
10739 # Create an old-style archive from a shared archive.
10740 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10741
10742 # Create a temporary old-style archive to link instead of a shared archive.
10743 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10744
10745 # Commands used to build and install a shared archive.
10746 archive_cmds=$lt_archive_cmds
10747 archive_expsym_cmds=$lt_archive_expsym_cmds
10748 postinstall_cmds=$lt_postinstall_cmds
10749 postuninstall_cmds=$lt_postuninstall_cmds
10750
10751 # Commands used to build a loadable module (assumed same as above if empty)
10752 module_cmds=$lt_module_cmds
10753 module_expsym_cmds=$lt_module_expsym_cmds
10754
10755 # Commands to strip libraries.
10756 old_striplib=$lt_old_striplib
10757 striplib=$lt_striplib
10758
10759 # Dependencies to place before the objects being linked to create a
10760 # shared library.
10761 predep_objects=$lt_predep_objects
10762
10763 # Dependencies to place after the objects being linked to create a
10764 # shared library.
10765 postdep_objects=$lt_postdep_objects
10766
10767 # Dependencies to place before the objects being linked to create a
10768 # shared library.
10769 predeps=$lt_predeps
10770
10771 # Dependencies to place after the objects being linked to create a
10772 # shared library.
10773 postdeps=$lt_postdeps
10774
10775 # The library search path used internally by the compiler when linking
10776 # a shared library.
10777 compiler_lib_search_path=$lt_compiler_lib_search_path
10778
10779 # Method to check whether dependent libraries are shared objects.
10780 deplibs_check_method=$lt_deplibs_check_method
10781
10782 # Command to use when deplibs_check_method == file_magic.
10783 file_magic_cmd=$lt_file_magic_cmd
10784
10785 # Flag that allows shared libraries with undefined symbols to be built.
10786 allow_undefined_flag=$lt_allow_undefined_flag
10787
10788 # Flag that forces no undefined symbols.
10789 no_undefined_flag=$lt_no_undefined_flag
10790
10791 # Commands used to finish a libtool library installation in a directory.
10792 finish_cmds=$lt_finish_cmds
10793
10794 # Same as above, but a single script fragment to be evaled but not shown.
10795 finish_eval=$lt_finish_eval
10796
10797 # Take the output of nm and produce a listing of raw symbols and C names.
10798 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10799
10800 # Transform the output of nm in a proper C declaration
10801 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10802
10803 # Transform the output of nm in a C name address pair
10804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10805
10806 # This is the shared library runtime path variable.
10807 runpath_var=$runpath_var
10808
10809 # This is the shared library path variable.
10810 shlibpath_var=$shlibpath_var
10811
10812 # Is shlibpath searched before the hard-coded library search path?
10813 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10814
10815 # How to hardcode a shared library path into an executable.
10816 hardcode_action=$hardcode_action
10817
10818 # Whether we should hardcode library paths into libraries.
10819 hardcode_into_libs=$hardcode_into_libs
10820
10821 # Flag to hardcode \$libdir into a binary during linking.
10822 # This must work even if \$libdir does not exist.
10823 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10824
10825 # If ld is used when linking, flag to hardcode \$libdir into
10826 # a binary during linking. This must work even if \$libdir does
10827 # not exist.
10828 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10829
10830 # Whether we need a single -rpath flag with a separated argument.
10831 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10832
10833 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10834 # resulting binary.
10835 hardcode_direct=$hardcode_direct
10836
10837 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10838 # resulting binary.
10839 hardcode_minus_L=$hardcode_minus_L
10840
10841 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10842 # the resulting binary.
10843 hardcode_shlibpath_var=$hardcode_shlibpath_var
10844
10845 # Set to yes if building a shared library automatically hardcodes DIR into the library
10846 # and all subsequent libraries and executables linked against it.
10847 hardcode_automatic=$hardcode_automatic
10848
10849 # Variables whose values should be saved in libtool wrapper scripts and
10850 # restored at relink time.
10851 variables_saved_for_relink="$variables_saved_for_relink"
10852
10853 # Whether libtool must link a program against all its dependency libraries.
10854 link_all_deplibs=$link_all_deplibs
10855
10856 # Compile-time system search path for libraries
10857 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10858
10859 # Run-time system search path for libraries
10860 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10861
10862 # Fix the shell variable \$srcfile for the compiler.
10863 fix_srcfile_path="$fix_srcfile_path"
10864
10865 # Set to yes if exported symbols are required.
10866 always_export_symbols=$always_export_symbols
10867
10868 # The commands to list exported symbols.
10869 export_symbols_cmds=$lt_export_symbols_cmds
10870
10871 # The commands to extract the exported symbol list from a shared archive.
10872 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10873
10874 # Symbols that should not be listed in the preloaded symbols.
10875 exclude_expsyms=$lt_exclude_expsyms
10876
10877 # Symbols that must always be exported.
10878 include_expsyms=$lt_include_expsyms
10879
10880 # ### END LIBTOOL CONFIG
10881
10882 __EOF__
10883
10884
10885   case $host_os in
10886   aix3*)
10887     cat <<\EOF >> "$cfgfile"
10888
10889 # AIX sometimes has problems with the GCC collect2 program.  For some
10890 # reason, if we set the COLLECT_NAMES environment variable, the problems
10891 # vanish in a puff of smoke.
10892 if test "X${COLLECT_NAMES+set}" != Xset; then
10893   COLLECT_NAMES=
10894   export COLLECT_NAMES
10895 fi
10896 EOF
10897     ;;
10898   esac
10899
10900   # We use sed instead of cat because bash on DJGPP gets confused if
10901   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10902   # text mode, it properly converts lines to CR/LF.  This bash problem
10903   # is reportedly fixed, but why not run on old versions too?
10904   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10905
10906   mv -f "$cfgfile" "$ofile" || \
10907     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10908   chmod +x "$ofile"
10909
10910 else
10911   # If there is no Makefile yet, we rely on a make rule to execute
10912   # `config.status --recheck' to rerun these tests and create the
10913   # libtool script then.
10914   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10915   if test -f "$ltmain_in"; then
10916     test -f Makefile && make "$ltmain"
10917   fi
10918 fi
10919
10920
10921 ac_ext=c
10922 ac_cpp='$CPP $CPPFLAGS'
10923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10926
10927 CC="$lt_save_CC"
10928
10929
10930 # Check whether --with-tags or --without-tags was given.
10931 if test "${with_tags+set}" = set; then
10932   withval="$with_tags"
10933   tagnames="$withval"
10934 fi;
10935
10936 if test -f "$ltmain" && test -n "$tagnames"; then
10937   if test ! -f "${ofile}"; then
10938     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10939 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10940   fi
10941
10942   if test -z "$LTCC"; then
10943     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10944     if test -z "$LTCC"; then
10945       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10946 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10947     else
10948       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10949 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10950     fi
10951   fi
10952
10953   # Extract list of available tagged configurations in $ofile.
10954   # Note that this assumes the entire list is on one line.
10955   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10956
10957   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10958   for tagname in $tagnames; do
10959     IFS="$lt_save_ifs"
10960     # Check whether tagname contains only valid characters
10961     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10962     "") ;;
10963     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10964 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10965    { (exit 1); exit 1; }; }
10966         ;;
10967     esac
10968
10969     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10970     then
10971       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10972 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10973    { (exit 1); exit 1; }; }
10974     fi
10975
10976     # Update the list of available tags.
10977     if test -n "$tagname"; then
10978       echo appending configuration tag \"$tagname\" to $ofile
10979
10980       case $tagname in
10981       CXX)
10982         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10983             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10984             (test "X$CXX" != "Xg++"))) ; then
10985           :
10986         else
10987           tagname=""
10988         fi
10989         ;;
10990
10991       F77)
10992         if test -n "$F77" && test "X$F77" != "Xno"; then
10993           :
10994         else
10995           tagname=""
10996         fi
10997         ;;
10998
10999       GCJ)
11000         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11001           :
11002         else
11003           tagname=""
11004         fi
11005         ;;
11006
11007       RC)
11008
11009
11010
11011 # Source file extension for RC test sources.
11012 ac_ext=rc
11013
11014 # Object file extension for compiled RC test sources.
11015 objext=o
11016 objext_RC=$objext
11017
11018 # Code to be used in simple compile tests
11019 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11020
11021 # Code to be used in simple link tests
11022 lt_simple_link_test_code="$lt_simple_compile_test_code"
11023
11024 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11025
11026 # If no C compiler was specified, use CC.
11027 LTCC=${LTCC-"$CC"}
11028
11029 # Allow CC to be a program name with arguments.
11030 compiler=$CC
11031
11032
11033 # save warnings/boilerplate of simple test code
11034 ac_outfile=conftest.$ac_objext
11035 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11036 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11037 _lt_compiler_boilerplate=`cat conftest.err`
11038 $rm conftest*
11039
11040 ac_outfile=conftest.$ac_objext
11041 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11042 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11043 _lt_linker_boilerplate=`cat conftest.err`
11044 $rm conftest*
11045
11046
11047 # Allow CC to be a program name with arguments.
11048 lt_save_CC="$CC"
11049 CC=${RC-"windres"}
11050 compiler=$CC
11051 compiler_RC=$CC
11052 for cc_temp in $compiler""; do
11053   case $cc_temp in
11054     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11055     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11056     \-*) ;;
11057     *) break;;
11058   esac
11059 done
11060 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11061
11062 lt_cv_prog_compiler_c_o_RC=yes
11063
11064 # The else clause should only fire when bootstrapping the
11065 # libtool distribution, otherwise you forgot to ship ltmain.sh
11066 # with your package, and you will get complaints that there are
11067 # no rules to generate ltmain.sh.
11068 if test -f "$ltmain"; then
11069   # See if we are running on zsh, and set the options which allow our commands through
11070   # without removal of \ escapes.
11071   if test -n "${ZSH_VERSION+set}" ; then
11072     setopt NO_GLOB_SUBST
11073   fi
11074   # Now quote all the things that may contain metacharacters while being
11075   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11076   # variables and quote the copies for generation of the libtool script.
11077   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11078     SED SHELL STRIP \
11079     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11080     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11081     deplibs_check_method reload_flag reload_cmds need_locks \
11082     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11083     lt_cv_sys_global_symbol_to_c_name_address \
11084     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11085     old_postinstall_cmds old_postuninstall_cmds \
11086     compiler_RC \
11087     CC_RC \
11088     LD_RC \
11089     lt_prog_compiler_wl_RC \
11090     lt_prog_compiler_pic_RC \
11091     lt_prog_compiler_static_RC \
11092     lt_prog_compiler_no_builtin_flag_RC \
11093     export_dynamic_flag_spec_RC \
11094     thread_safe_flag_spec_RC \
11095     whole_archive_flag_spec_RC \
11096     enable_shared_with_static_runtimes_RC \
11097     old_archive_cmds_RC \
11098     old_archive_from_new_cmds_RC \
11099     predep_objects_RC \
11100     postdep_objects_RC \
11101     predeps_RC \
11102     postdeps_RC \
11103     compiler_lib_search_path_RC \
11104     archive_cmds_RC \
11105     archive_expsym_cmds_RC \
11106     postinstall_cmds_RC \
11107     postuninstall_cmds_RC \
11108     old_archive_from_expsyms_cmds_RC \
11109     allow_undefined_flag_RC \
11110     no_undefined_flag_RC \
11111     export_symbols_cmds_RC \
11112     hardcode_libdir_flag_spec_RC \
11113     hardcode_libdir_flag_spec_ld_RC \
11114     hardcode_libdir_separator_RC \
11115     hardcode_automatic_RC \
11116     module_cmds_RC \
11117     module_expsym_cmds_RC \
11118     lt_cv_prog_compiler_c_o_RC \
11119     exclude_expsyms_RC \
11120     include_expsyms_RC; do
11121
11122     case $var in
11123     old_archive_cmds_RC | \
11124     old_archive_from_new_cmds_RC | \
11125     archive_cmds_RC | \
11126     archive_expsym_cmds_RC | \
11127     module_cmds_RC | \
11128     module_expsym_cmds_RC | \
11129     old_archive_from_expsyms_cmds_RC | \
11130     export_symbols_cmds_RC | \
11131     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11132     postinstall_cmds | postuninstall_cmds | \
11133     old_postinstall_cmds | old_postuninstall_cmds | \
11134     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11135       # Double-quote double-evaled strings.
11136       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11137       ;;
11138     *)
11139       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11140       ;;
11141     esac
11142   done
11143
11144   case $lt_echo in
11145   *'\$0 --fallback-echo"')
11146     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11147     ;;
11148   esac
11149
11150 cfgfile="$ofile"
11151
11152   cat <<__EOF__ >> "$cfgfile"
11153 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11154
11155 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11156
11157 # Shell to use when invoking shell scripts.
11158 SHELL=$lt_SHELL
11159
11160 # Whether or not to build shared libraries.
11161 build_libtool_libs=$enable_shared
11162
11163 # Whether or not to build static libraries.
11164 build_old_libs=$enable_static
11165
11166 # Whether or not to add -lc for building shared libraries.
11167 build_libtool_need_lc=$archive_cmds_need_lc_RC
11168
11169 # Whether or not to disallow shared libs when runtime libs are static
11170 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11171
11172 # Whether or not to optimize for fast installation.
11173 fast_install=$enable_fast_install
11174
11175 # The host system.
11176 host_alias=$host_alias
11177 host=$host
11178 host_os=$host_os
11179
11180 # The build system.
11181 build_alias=$build_alias
11182 build=$build
11183 build_os=$build_os
11184
11185 # An echo program that does not interpret backslashes.
11186 echo=$lt_echo
11187
11188 # The archiver.
11189 AR=$lt_AR
11190 AR_FLAGS=$lt_AR_FLAGS
11191
11192 # A C compiler.
11193 LTCC=$lt_LTCC
11194
11195 # A language-specific compiler.
11196 CC=$lt_compiler_RC
11197
11198 # Is the compiler the GNU C compiler?
11199 with_gcc=$GCC_RC
11200
11201 # An ERE matcher.
11202 EGREP=$lt_EGREP
11203
11204 # The linker used to build libraries.
11205 LD=$lt_LD_RC
11206
11207 # Whether we need hard or soft links.
11208 LN_S=$lt_LN_S
11209
11210 # A BSD-compatible nm program.
11211 NM=$lt_NM
11212
11213 # A symbol stripping program
11214 STRIP=$lt_STRIP
11215
11216 # Used to examine libraries when file_magic_cmd begins "file"
11217 MAGIC_CMD=$MAGIC_CMD
11218
11219 # Used on cygwin: DLL creation program.
11220 DLLTOOL="$DLLTOOL"
11221
11222 # Used on cygwin: object dumper.
11223 OBJDUMP="$OBJDUMP"
11224
11225 # Used on cygwin: assembler.
11226 AS="$AS"
11227
11228 # The name of the directory that contains temporary libtool files.
11229 objdir=$objdir
11230
11231 # How to create reloadable object files.
11232 reload_flag=$lt_reload_flag
11233 reload_cmds=$lt_reload_cmds
11234
11235 # How to pass a linker flag through the compiler.
11236 wl=$lt_lt_prog_compiler_wl_RC
11237
11238 # Object file suffix (normally "o").
11239 objext="$ac_objext"
11240
11241 # Old archive suffix (normally "a").
11242 libext="$libext"
11243
11244 # Shared library suffix (normally ".so").
11245 shrext_cmds='$shrext_cmds'
11246
11247 # Executable file suffix (normally "").
11248 exeext="$exeext"
11249
11250 # Additional compiler flags for building library objects.
11251 pic_flag=$lt_lt_prog_compiler_pic_RC
11252 pic_mode=$pic_mode
11253
11254 # What is the maximum length of a command?
11255 max_cmd_len=$lt_cv_sys_max_cmd_len
11256
11257 # Does compiler simultaneously support -c and -o options?
11258 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11259
11260 # Must we lock files when doing compilation?
11261 need_locks=$lt_need_locks
11262
11263 # Do we need the lib prefix for modules?
11264 need_lib_prefix=$need_lib_prefix
11265
11266 # Do we need a version for libraries?
11267 need_version=$need_version
11268
11269 # Whether dlopen is supported.
11270 dlopen_support=$enable_dlopen
11271
11272 # Whether dlopen of programs is supported.
11273 dlopen_self=$enable_dlopen_self
11274
11275 # Whether dlopen of statically linked programs is supported.
11276 dlopen_self_static=$enable_dlopen_self_static
11277
11278 # Compiler flag to prevent dynamic linking.
11279 link_static_flag=$lt_lt_prog_compiler_static_RC
11280
11281 # Compiler flag to turn off builtin functions.
11282 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11283
11284 # Compiler flag to allow reflexive dlopens.
11285 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11286
11287 # Compiler flag to generate shared objects directly from archives.
11288 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11289
11290 # Compiler flag to generate thread-safe objects.
11291 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11292
11293 # Library versioning type.
11294 version_type=$version_type
11295
11296 # Format of library name prefix.
11297 libname_spec=$lt_libname_spec
11298
11299 # List of archive names.  First name is the real one, the rest are links.
11300 # The last name is the one that the linker finds with -lNAME.
11301 library_names_spec=$lt_library_names_spec
11302
11303 # The coded name of the library, if different from the real name.
11304 soname_spec=$lt_soname_spec
11305
11306 # Commands used to build and install an old-style archive.
11307 RANLIB=$lt_RANLIB
11308 old_archive_cmds=$lt_old_archive_cmds_RC
11309 old_postinstall_cmds=$lt_old_postinstall_cmds
11310 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11311
11312 # Create an old-style archive from a shared archive.
11313 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11314
11315 # Create a temporary old-style archive to link instead of a shared archive.
11316 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11317
11318 # Commands used to build and install a shared archive.
11319 archive_cmds=$lt_archive_cmds_RC
11320 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11321 postinstall_cmds=$lt_postinstall_cmds
11322 postuninstall_cmds=$lt_postuninstall_cmds
11323
11324 # Commands used to build a loadable module (assumed same as above if empty)
11325 module_cmds=$lt_module_cmds_RC
11326 module_expsym_cmds=$lt_module_expsym_cmds_RC
11327
11328 # Commands to strip libraries.
11329 old_striplib=$lt_old_striplib
11330 striplib=$lt_striplib
11331
11332 # Dependencies to place before the objects being linked to create a
11333 # shared library.
11334 predep_objects=$lt_predep_objects_RC
11335
11336 # Dependencies to place after the objects being linked to create a
11337 # shared library.
11338 postdep_objects=$lt_postdep_objects_RC
11339
11340 # Dependencies to place before the objects being linked to create a
11341 # shared library.
11342 predeps=$lt_predeps_RC
11343
11344 # Dependencies to place after the objects being linked to create a
11345 # shared library.
11346 postdeps=$lt_postdeps_RC
11347
11348 # The library search path used internally by the compiler when linking
11349 # a shared library.
11350 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11351
11352 # Method to check whether dependent libraries are shared objects.
11353 deplibs_check_method=$lt_deplibs_check_method
11354
11355 # Command to use when deplibs_check_method == file_magic.
11356 file_magic_cmd=$lt_file_magic_cmd
11357
11358 # Flag that allows shared libraries with undefined symbols to be built.
11359 allow_undefined_flag=$lt_allow_undefined_flag_RC
11360
11361 # Flag that forces no undefined symbols.
11362 no_undefined_flag=$lt_no_undefined_flag_RC
11363
11364 # Commands used to finish a libtool library installation in a directory.
11365 finish_cmds=$lt_finish_cmds
11366
11367 # Same as above, but a single script fragment to be evaled but not shown.
11368 finish_eval=$lt_finish_eval
11369
11370 # Take the output of nm and produce a listing of raw symbols and C names.
11371 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11372
11373 # Transform the output of nm in a proper C declaration
11374 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11375
11376 # Transform the output of nm in a C name address pair
11377 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11378
11379 # This is the shared library runtime path variable.
11380 runpath_var=$runpath_var
11381
11382 # This is the shared library path variable.
11383 shlibpath_var=$shlibpath_var
11384
11385 # Is shlibpath searched before the hard-coded library search path?
11386 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11387
11388 # How to hardcode a shared library path into an executable.
11389 hardcode_action=$hardcode_action_RC
11390
11391 # Whether we should hardcode library paths into libraries.
11392 hardcode_into_libs=$hardcode_into_libs
11393
11394 # Flag to hardcode \$libdir into a binary during linking.
11395 # This must work even if \$libdir does not exist.
11396 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11397
11398 # If ld is used when linking, flag to hardcode \$libdir into
11399 # a binary during linking. This must work even if \$libdir does
11400 # not exist.
11401 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11402
11403 # Whether we need a single -rpath flag with a separated argument.
11404 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11405
11406 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11407 # resulting binary.
11408 hardcode_direct=$hardcode_direct_RC
11409
11410 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11411 # resulting binary.
11412 hardcode_minus_L=$hardcode_minus_L_RC
11413
11414 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11415 # the resulting binary.
11416 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11417
11418 # Set to yes if building a shared library automatically hardcodes DIR into the library
11419 # and all subsequent libraries and executables linked against it.
11420 hardcode_automatic=$hardcode_automatic_RC
11421
11422 # Variables whose values should be saved in libtool wrapper scripts and
11423 # restored at relink time.
11424 variables_saved_for_relink="$variables_saved_for_relink"
11425
11426 # Whether libtool must link a program against all its dependency libraries.
11427 link_all_deplibs=$link_all_deplibs_RC
11428
11429 # Compile-time system search path for libraries
11430 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11431
11432 # Run-time system search path for libraries
11433 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11434
11435 # Fix the shell variable \$srcfile for the compiler.
11436 fix_srcfile_path="$fix_srcfile_path_RC"
11437
11438 # Set to yes if exported symbols are required.
11439 always_export_symbols=$always_export_symbols_RC
11440
11441 # The commands to list exported symbols.
11442 export_symbols_cmds=$lt_export_symbols_cmds_RC
11443
11444 # The commands to extract the exported symbol list from a shared archive.
11445 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11446
11447 # Symbols that should not be listed in the preloaded symbols.
11448 exclude_expsyms=$lt_exclude_expsyms_RC
11449
11450 # Symbols that must always be exported.
11451 include_expsyms=$lt_include_expsyms_RC
11452
11453 # ### END LIBTOOL TAG CONFIG: $tagname
11454
11455 __EOF__
11456
11457
11458 else
11459   # If there is no Makefile yet, we rely on a make rule to execute
11460   # `config.status --recheck' to rerun these tests and create the
11461   # libtool script then.
11462   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11463   if test -f "$ltmain_in"; then
11464     test -f Makefile && make "$ltmain"
11465   fi
11466 fi
11467
11468
11469 ac_ext=c
11470 ac_cpp='$CPP $CPPFLAGS'
11471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11474
11475 CC="$lt_save_CC"
11476
11477         ;;
11478
11479       *)
11480         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11481 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11482    { (exit 1); exit 1; }; }
11483         ;;
11484       esac
11485
11486       # Append the new tag name to the list of available tags.
11487       if test -n "$tagname" ; then
11488       available_tags="$available_tags $tagname"
11489     fi
11490     fi
11491   done
11492   IFS="$lt_save_ifs"
11493
11494   # Now substitute the updated list of available tags.
11495   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11496     mv "${ofile}T" "$ofile"
11497     chmod +x "$ofile"
11498   else
11499     rm -f "${ofile}T"
11500     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11501 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11502    { (exit 1); exit 1; }; }
11503   fi
11504 fi
11505
11506
11507
11508 # This can be used to rebuild libtool when needed
11509 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11510
11511 # Always use our own libtool.
11512 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11513
11514 # Prevent multiple expansion
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525 ol_link_perl=no
11526 if test $ol_enable_perl != no ; then
11527         # Extract the first word of "perl", so it can be a program name with args.
11528 set dummy perl; ac_word=$2
11529 echo "$as_me:$LINENO: checking for $ac_word" >&5
11530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11531 if test "${ac_cv_path_PERLBIN+set}" = set; then
11532   echo $ECHO_N "(cached) $ECHO_C" >&6
11533 else
11534   case $PERLBIN in
11535   [\\/]* | ?:[\\/]*)
11536   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11537   ;;
11538   *)
11539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in $PATH
11541 do
11542   IFS=$as_save_IFS
11543   test -z "$as_dir" && as_dir=.
11544   for ac_exec_ext in '' $ac_executable_extensions; do
11545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11546     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11548     break 2
11549   fi
11550 done
11551 done
11552
11553   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11554   ;;
11555 esac
11556 fi
11557 PERLBIN=$ac_cv_path_PERLBIN
11558
11559 if test -n "$PERLBIN"; then
11560   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11561 echo "${ECHO_T}$PERLBIN" >&6
11562 else
11563   echo "$as_me:$LINENO: result: no" >&5
11564 echo "${ECHO_T}no" >&6
11565 fi
11566
11567
11568         if test "no$PERLBIN" = "no" ; then
11569                 if test $ol_enable_perl = yes ; then
11570                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11571 echo "$as_me: error: could not locate perl" >&2;}
11572    { (exit 1); exit 1; }; }
11573                 fi
11574
11575         else
11576                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11577                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11578
11579                 if test x"$ol_enable_perl" = "xyes" ; then
11580                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11581                 else
11582                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11583                 fi
11584                                 ol_link_perl=yes
11585         fi
11586 fi
11587
11588 ac_ext=c
11589 ac_cpp='$CPP $CPPFLAGS'
11590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11593 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11594 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11595 # On Suns, sometimes $CPP names a directory.
11596 if test -n "$CPP" && test -d "$CPP"; then
11597   CPP=
11598 fi
11599 if test -z "$CPP"; then
11600   if test "${ac_cv_prog_CPP+set}" = set; then
11601   echo $ECHO_N "(cached) $ECHO_C" >&6
11602 else
11603       # Double quotes because CPP needs to be expanded
11604     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11605     do
11606       ac_preproc_ok=false
11607 for ac_c_preproc_warn_flag in '' yes
11608 do
11609   # Use a header file that comes with gcc, so configuring glibc
11610   # with a fresh cross-compiler works.
11611   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11612   # <limits.h> exists even on freestanding compilers.
11613   # On the NeXT, cc -E runs the code through the compiler's parser,
11614   # not just through cpp. "Syntax error" is here to catch this case.
11615   cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h.  */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h.  */
11621 #ifdef __STDC__
11622 # include <limits.h>
11623 #else
11624 # include <assert.h>
11625 #endif
11626                      Syntax error
11627 _ACEOF
11628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11629   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11630   ac_status=$?
11631   grep -v '^ *+' conftest.er1 >conftest.err
11632   rm -f conftest.er1
11633   cat conftest.err >&5
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); } >/dev/null; then
11636   if test -s conftest.err; then
11637     ac_cpp_err=$ac_c_preproc_warn_flag
11638     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11639   else
11640     ac_cpp_err=
11641   fi
11642 else
11643   ac_cpp_err=yes
11644 fi
11645 if test -z "$ac_cpp_err"; then
11646   :
11647 else
11648   echo "$as_me: failed program was:" >&5
11649 sed 's/^/| /' conftest.$ac_ext >&5
11650
11651   # Broken: fails on valid input.
11652 continue
11653 fi
11654 rm -f conftest.err conftest.$ac_ext
11655
11656   # OK, works on sane cases.  Now check whether non-existent headers
11657   # can be detected and how.
11658   cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h.  */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h.  */
11664 #include <ac_nonexistent.h>
11665 _ACEOF
11666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11668   ac_status=$?
11669   grep -v '^ *+' conftest.er1 >conftest.err
11670   rm -f conftest.er1
11671   cat conftest.err >&5
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); } >/dev/null; then
11674   if test -s conftest.err; then
11675     ac_cpp_err=$ac_c_preproc_warn_flag
11676     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11677   else
11678     ac_cpp_err=
11679   fi
11680 else
11681   ac_cpp_err=yes
11682 fi
11683 if test -z "$ac_cpp_err"; then
11684   # Broken: success on invalid input.
11685 continue
11686 else
11687   echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690   # Passes both tests.
11691 ac_preproc_ok=:
11692 break
11693 fi
11694 rm -f conftest.err conftest.$ac_ext
11695
11696 done
11697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11698 rm -f conftest.err conftest.$ac_ext
11699 if $ac_preproc_ok; then
11700   break
11701 fi
11702
11703     done
11704     ac_cv_prog_CPP=$CPP
11705
11706 fi
11707   CPP=$ac_cv_prog_CPP
11708 else
11709   ac_cv_prog_CPP=$CPP
11710 fi
11711 echo "$as_me:$LINENO: result: $CPP" >&5
11712 echo "${ECHO_T}$CPP" >&6
11713 ac_preproc_ok=false
11714 for ac_c_preproc_warn_flag in '' yes
11715 do
11716   # Use a header file that comes with gcc, so configuring glibc
11717   # with a fresh cross-compiler works.
11718   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11719   # <limits.h> exists even on freestanding compilers.
11720   # On the NeXT, cc -E runs the code through the compiler's parser,
11721   # not just through cpp. "Syntax error" is here to catch this case.
11722   cat >conftest.$ac_ext <<_ACEOF
11723 /* confdefs.h.  */
11724 _ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h.  */
11728 #ifdef __STDC__
11729 # include <limits.h>
11730 #else
11731 # include <assert.h>
11732 #endif
11733                      Syntax error
11734 _ACEOF
11735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11736   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11737   ac_status=$?
11738   grep -v '^ *+' conftest.er1 >conftest.err
11739   rm -f conftest.er1
11740   cat conftest.err >&5
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); } >/dev/null; then
11743   if test -s conftest.err; then
11744     ac_cpp_err=$ac_c_preproc_warn_flag
11745     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11746   else
11747     ac_cpp_err=
11748   fi
11749 else
11750   ac_cpp_err=yes
11751 fi
11752 if test -z "$ac_cpp_err"; then
11753   :
11754 else
11755   echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11757
11758   # Broken: fails on valid input.
11759 continue
11760 fi
11761 rm -f conftest.err conftest.$ac_ext
11762
11763   # OK, works on sane cases.  Now check whether non-existent headers
11764   # can be detected and how.
11765   cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h.  */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h.  */
11771 #include <ac_nonexistent.h>
11772 _ACEOF
11773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11774   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11775   ac_status=$?
11776   grep -v '^ *+' conftest.er1 >conftest.err
11777   rm -f conftest.er1
11778   cat conftest.err >&5
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); } >/dev/null; then
11781   if test -s conftest.err; then
11782     ac_cpp_err=$ac_c_preproc_warn_flag
11783     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11784   else
11785     ac_cpp_err=
11786   fi
11787 else
11788   ac_cpp_err=yes
11789 fi
11790 if test -z "$ac_cpp_err"; then
11791   # Broken: success on invalid input.
11792 continue
11793 else
11794   echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11796
11797   # Passes both tests.
11798 ac_preproc_ok=:
11799 break
11800 fi
11801 rm -f conftest.err conftest.$ac_ext
11802
11803 done
11804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11805 rm -f conftest.err conftest.$ac_ext
11806 if $ac_preproc_ok; then
11807   :
11808 else
11809   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11810 See \`config.log' for more details." >&5
11811 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11812 See \`config.log' for more details." >&2;}
11813    { (exit 1); exit 1; }; }
11814 fi
11815
11816 ac_ext=c
11817 ac_cpp='$CPP $CPPFLAGS'
11818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11821
11822
11823 case $host_os in
11824   *mingw32* ) ac_cv_mingw32=yes ;;
11825   *cygwin* ) ac_cv_cygwin=yes ;;
11826 esac
11827
11828
11829
11830
11831 cat >>confdefs.h <<_ACEOF
11832 #define EXEEXT "${EXEEXT}"
11833 _ACEOF
11834
11835
11836 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11837 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11838 if test "${ac_cv_lib_be_be_app+set}" = set; then
11839   echo $ECHO_N "(cached) $ECHO_C" >&6
11840 else
11841   ac_check_lib_save_LIBS=$LIBS
11842 LIBS="-lbe -lroot -lnet $LIBS"
11843 cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h.  */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h.  */
11849
11850 /* Override any gcc2 internal prototype to avoid an error.  */
11851 #ifdef __cplusplus
11852 extern "C"
11853 #endif
11854 /* We use char because int might match the return type of a gcc2
11855    builtin and then its argument prototype would still apply.  */
11856 char be_app ();
11857 int
11858 main ()
11859 {
11860 be_app ();
11861   ;
11862   return 0;
11863 }
11864 _ACEOF
11865 rm -f conftest.$ac_objext conftest$ac_exeext
11866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11867   (eval $ac_link) 2>conftest.er1
11868   ac_status=$?
11869   grep -v '^ *+' conftest.er1 >conftest.err
11870   rm -f conftest.er1
11871   cat conftest.err >&5
11872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); } &&
11874          { ac_try='test -z "$ac_c_werror_flag"
11875                          || test ! -s conftest.err'
11876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877   (eval $ac_try) 2>&5
11878   ac_status=$?
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); }; } &&
11881          { ac_try='test -s conftest$ac_exeext'
11882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883   (eval $ac_try) 2>&5
11884   ac_status=$?
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); }; }; then
11887   ac_cv_lib_be_be_app=yes
11888 else
11889   echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11891
11892 ac_cv_lib_be_be_app=no
11893 fi
11894 rm -f conftest.err conftest.$ac_objext \
11895       conftest$ac_exeext conftest.$ac_ext
11896 LIBS=$ac_check_lib_save_LIBS
11897 fi
11898 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11899 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11900 if test $ac_cv_lib_be_be_app = yes; then
11901   LIBS="$LIBS -lbe -lroot -lnet"
11902 else
11903   :
11904 fi
11905
11906
11907 ac_ext=c
11908 ac_cpp='$CPP $CPPFLAGS'
11909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11912 if test -n "$ac_tool_prefix"; then
11913   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11915 echo "$as_me:$LINENO: checking for $ac_word" >&5
11916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11917 if test "${ac_cv_prog_CC+set}" = set; then
11918   echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920   if test -n "$CC"; then
11921   ac_cv_prog_CC="$CC" # Let the user override the test.
11922 else
11923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924 for as_dir in $PATH
11925 do
11926   IFS=$as_save_IFS
11927   test -z "$as_dir" && as_dir=.
11928   for ac_exec_ext in '' $ac_executable_extensions; do
11929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11930     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11932     break 2
11933   fi
11934 done
11935 done
11936
11937 fi
11938 fi
11939 CC=$ac_cv_prog_CC
11940 if test -n "$CC"; then
11941   echo "$as_me:$LINENO: result: $CC" >&5
11942 echo "${ECHO_T}$CC" >&6
11943 else
11944   echo "$as_me:$LINENO: result: no" >&5
11945 echo "${ECHO_T}no" >&6
11946 fi
11947
11948 fi
11949 if test -z "$ac_cv_prog_CC"; then
11950   ac_ct_CC=$CC
11951   # Extract the first word of "gcc", so it can be a program name with args.
11952 set dummy gcc; ac_word=$2
11953 echo "$as_me:$LINENO: checking for $ac_word" >&5
11954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11956   echo $ECHO_N "(cached) $ECHO_C" >&6
11957 else
11958   if test -n "$ac_ct_CC"; then
11959   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11960 else
11961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962 for as_dir in $PATH
11963 do
11964   IFS=$as_save_IFS
11965   test -z "$as_dir" && as_dir=.
11966   for ac_exec_ext in '' $ac_executable_extensions; do
11967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11968     ac_cv_prog_ac_ct_CC="gcc"
11969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11970     break 2
11971   fi
11972 done
11973 done
11974
11975 fi
11976 fi
11977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11978 if test -n "$ac_ct_CC"; then
11979   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11980 echo "${ECHO_T}$ac_ct_CC" >&6
11981 else
11982   echo "$as_me:$LINENO: result: no" >&5
11983 echo "${ECHO_T}no" >&6
11984 fi
11985
11986   CC=$ac_ct_CC
11987 else
11988   CC="$ac_cv_prog_CC"
11989 fi
11990
11991 if test -z "$CC"; then
11992   if test -n "$ac_tool_prefix"; then
11993   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11994 set dummy ${ac_tool_prefix}cc; ac_word=$2
11995 echo "$as_me:$LINENO: checking for $ac_word" >&5
11996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11997 if test "${ac_cv_prog_CC+set}" = set; then
11998   echo $ECHO_N "(cached) $ECHO_C" >&6
11999 else
12000   if test -n "$CC"; then
12001   ac_cv_prog_CC="$CC" # Let the user override the test.
12002 else
12003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004 for as_dir in $PATH
12005 do
12006   IFS=$as_save_IFS
12007   test -z "$as_dir" && as_dir=.
12008   for ac_exec_ext in '' $ac_executable_extensions; do
12009   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12010     ac_cv_prog_CC="${ac_tool_prefix}cc"
12011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12012     break 2
12013   fi
12014 done
12015 done
12016
12017 fi
12018 fi
12019 CC=$ac_cv_prog_CC
12020 if test -n "$CC"; then
12021   echo "$as_me:$LINENO: result: $CC" >&5
12022 echo "${ECHO_T}$CC" >&6
12023 else
12024   echo "$as_me:$LINENO: result: no" >&5
12025 echo "${ECHO_T}no" >&6
12026 fi
12027
12028 fi
12029 if test -z "$ac_cv_prog_CC"; then
12030   ac_ct_CC=$CC
12031   # Extract the first word of "cc", so it can be a program name with args.
12032 set dummy cc; ac_word=$2
12033 echo "$as_me:$LINENO: checking for $ac_word" >&5
12034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12036   echo $ECHO_N "(cached) $ECHO_C" >&6
12037 else
12038   if test -n "$ac_ct_CC"; then
12039   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12040 else
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12043 do
12044   IFS=$as_save_IFS
12045   test -z "$as_dir" && as_dir=.
12046   for ac_exec_ext in '' $ac_executable_extensions; do
12047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12048     ac_cv_prog_ac_ct_CC="cc"
12049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12050     break 2
12051   fi
12052 done
12053 done
12054
12055 fi
12056 fi
12057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12058 if test -n "$ac_ct_CC"; then
12059   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12060 echo "${ECHO_T}$ac_ct_CC" >&6
12061 else
12062   echo "$as_me:$LINENO: result: no" >&5
12063 echo "${ECHO_T}no" >&6
12064 fi
12065
12066   CC=$ac_ct_CC
12067 else
12068   CC="$ac_cv_prog_CC"
12069 fi
12070
12071 fi
12072 if test -z "$CC"; then
12073   # Extract the first word of "cc", so it can be a program name with args.
12074 set dummy cc; ac_word=$2
12075 echo "$as_me:$LINENO: checking for $ac_word" >&5
12076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12077 if test "${ac_cv_prog_CC+set}" = set; then
12078   echo $ECHO_N "(cached) $ECHO_C" >&6
12079 else
12080   if test -n "$CC"; then
12081   ac_cv_prog_CC="$CC" # Let the user override the test.
12082 else
12083   ac_prog_rejected=no
12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085 for as_dir in $PATH
12086 do
12087   IFS=$as_save_IFS
12088   test -z "$as_dir" && as_dir=.
12089   for ac_exec_ext in '' $ac_executable_extensions; do
12090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12091     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12092        ac_prog_rejected=yes
12093        continue
12094      fi
12095     ac_cv_prog_CC="cc"
12096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12097     break 2
12098   fi
12099 done
12100 done
12101
12102 if test $ac_prog_rejected = yes; then
12103   # We found a bogon in the path, so make sure we never use it.
12104   set dummy $ac_cv_prog_CC
12105   shift
12106   if test $# != 0; then
12107     # We chose a different compiler from the bogus one.
12108     # However, it has the same basename, so the bogon will be chosen
12109     # first if we set CC to just the basename; use the full file name.
12110     shift
12111     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12112   fi
12113 fi
12114 fi
12115 fi
12116 CC=$ac_cv_prog_CC
12117 if test -n "$CC"; then
12118   echo "$as_me:$LINENO: result: $CC" >&5
12119 echo "${ECHO_T}$CC" >&6
12120 else
12121   echo "$as_me:$LINENO: result: no" >&5
12122 echo "${ECHO_T}no" >&6
12123 fi
12124
12125 fi
12126 if test -z "$CC"; then
12127   if test -n "$ac_tool_prefix"; then
12128   for ac_prog in cl
12129   do
12130     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12132 echo "$as_me:$LINENO: checking for $ac_word" >&5
12133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12134 if test "${ac_cv_prog_CC+set}" = set; then
12135   echo $ECHO_N "(cached) $ECHO_C" >&6
12136 else
12137   if test -n "$CC"; then
12138   ac_cv_prog_CC="$CC" # Let the user override the test.
12139 else
12140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141 for as_dir in $PATH
12142 do
12143   IFS=$as_save_IFS
12144   test -z "$as_dir" && as_dir=.
12145   for ac_exec_ext in '' $ac_executable_extensions; do
12146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12147     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12149     break 2
12150   fi
12151 done
12152 done
12153
12154 fi
12155 fi
12156 CC=$ac_cv_prog_CC
12157 if test -n "$CC"; then
12158   echo "$as_me:$LINENO: result: $CC" >&5
12159 echo "${ECHO_T}$CC" >&6
12160 else
12161   echo "$as_me:$LINENO: result: no" >&5
12162 echo "${ECHO_T}no" >&6
12163 fi
12164
12165     test -n "$CC" && break
12166   done
12167 fi
12168 if test -z "$CC"; then
12169   ac_ct_CC=$CC
12170   for ac_prog in cl
12171 do
12172   # Extract the first word of "$ac_prog", so it can be a program name with args.
12173 set dummy $ac_prog; ac_word=$2
12174 echo "$as_me:$LINENO: checking for $ac_word" >&5
12175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12177   echo $ECHO_N "(cached) $ECHO_C" >&6
12178 else
12179   if test -n "$ac_ct_CC"; then
12180   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12181 else
12182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183 for as_dir in $PATH
12184 do
12185   IFS=$as_save_IFS
12186   test -z "$as_dir" && as_dir=.
12187   for ac_exec_ext in '' $ac_executable_extensions; do
12188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12189     ac_cv_prog_ac_ct_CC="$ac_prog"
12190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12191     break 2
12192   fi
12193 done
12194 done
12195
12196 fi
12197 fi
12198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12199 if test -n "$ac_ct_CC"; then
12200   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12201 echo "${ECHO_T}$ac_ct_CC" >&6
12202 else
12203   echo "$as_me:$LINENO: result: no" >&5
12204 echo "${ECHO_T}no" >&6
12205 fi
12206
12207   test -n "$ac_ct_CC" && break
12208 done
12209
12210   CC=$ac_ct_CC
12211 fi
12212
12213 fi
12214
12215
12216 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12217 See \`config.log' for more details." >&5
12218 echo "$as_me: error: no acceptable C compiler found in \$PATH
12219 See \`config.log' for more details." >&2;}
12220    { (exit 1); exit 1; }; }
12221
12222 # Provide some information about the compiler.
12223 echo "$as_me:$LINENO:" \
12224      "checking for C compiler version" >&5
12225 ac_compiler=`set X $ac_compile; echo $2`
12226 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12227   (eval $ac_compiler --version </dev/null >&5) 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); }
12231 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12232   (eval $ac_compiler -v </dev/null >&5) 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); }
12236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12237   (eval $ac_compiler -V </dev/null >&5) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); }
12241
12242 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12243 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12244 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12245   echo $ECHO_N "(cached) $ECHO_C" >&6
12246 else
12247   cat >conftest.$ac_ext <<_ACEOF
12248 /* confdefs.h.  */
12249 _ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h.  */
12253
12254 int
12255 main ()
12256 {
12257 #ifndef __GNUC__
12258        choke me
12259 #endif
12260
12261   ;
12262   return 0;
12263 }
12264 _ACEOF
12265 rm -f conftest.$ac_objext
12266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267   (eval $ac_compile) 2>conftest.er1
12268   ac_status=$?
12269   grep -v '^ *+' conftest.er1 >conftest.err
12270   rm -f conftest.er1
12271   cat conftest.err >&5
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); } &&
12274          { ac_try='test -z "$ac_c_werror_flag"
12275                          || test ! -s conftest.err'
12276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277   (eval $ac_try) 2>&5
12278   ac_status=$?
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); }; } &&
12281          { ac_try='test -s conftest.$ac_objext'
12282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283   (eval $ac_try) 2>&5
12284   ac_status=$?
12285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286   (exit $ac_status); }; }; then
12287   ac_compiler_gnu=yes
12288 else
12289   echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12291
12292 ac_compiler_gnu=no
12293 fi
12294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12295 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12296
12297 fi
12298 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12299 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12300 GCC=`test $ac_compiler_gnu = yes && echo yes`
12301 ac_test_CFLAGS=${CFLAGS+set}
12302 ac_save_CFLAGS=$CFLAGS
12303 CFLAGS="-g"
12304 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12305 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12306 if test "${ac_cv_prog_cc_g+set}" = set; then
12307   echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309   cat >conftest.$ac_ext <<_ACEOF
12310 /* confdefs.h.  */
12311 _ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h.  */
12315
12316 int
12317 main ()
12318 {
12319
12320   ;
12321   return 0;
12322 }
12323 _ACEOF
12324 rm -f conftest.$ac_objext
12325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12326   (eval $ac_compile) 2>conftest.er1
12327   ac_status=$?
12328   grep -v '^ *+' conftest.er1 >conftest.err
12329   rm -f conftest.er1
12330   cat conftest.err >&5
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); } &&
12333          { ac_try='test -z "$ac_c_werror_flag"
12334                          || test ! -s conftest.err'
12335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336   (eval $ac_try) 2>&5
12337   ac_status=$?
12338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339   (exit $ac_status); }; } &&
12340          { ac_try='test -s conftest.$ac_objext'
12341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342   (eval $ac_try) 2>&5
12343   ac_status=$?
12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); }; }; then
12346   ac_cv_prog_cc_g=yes
12347 else
12348   echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12350
12351 ac_cv_prog_cc_g=no
12352 fi
12353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12354 fi
12355 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12356 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12357 if test "$ac_test_CFLAGS" = set; then
12358   CFLAGS=$ac_save_CFLAGS
12359 elif test $ac_cv_prog_cc_g = yes; then
12360   if test "$GCC" = yes; then
12361     CFLAGS="-g -O2"
12362   else
12363     CFLAGS="-g"
12364   fi
12365 else
12366   if test "$GCC" = yes; then
12367     CFLAGS="-O2"
12368   else
12369     CFLAGS=
12370   fi
12371 fi
12372 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12373 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12374 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12375   echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377   ac_cv_prog_cc_stdc=no
12378 ac_save_CC=$CC
12379 cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h.  */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h.  */
12385 #include <stdarg.h>
12386 #include <stdio.h>
12387 #include <sys/types.h>
12388 #include <sys/stat.h>
12389 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12390 struct buf { int x; };
12391 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12392 static char *e (p, i)
12393      char **p;
12394      int i;
12395 {
12396   return p[i];
12397 }
12398 static char *f (char * (*g) (char **, int), char **p, ...)
12399 {
12400   char *s;
12401   va_list v;
12402   va_start (v,p);
12403   s = g (p, va_arg (v,int));
12404   va_end (v);
12405   return s;
12406 }
12407
12408 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12409    function prototypes and stuff, but not '\xHH' hex character constants.
12410    These don't provoke an error unfortunately, instead are silently treated
12411    as 'x'.  The following induces an error, until -std1 is added to get
12412    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12413    array size at least.  It's necessary to write '\x00'==0 to get something
12414    that's true only with -std1.  */
12415 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12416
12417 int test (int i, double x);
12418 struct s1 {int (*f) (int a);};
12419 struct s2 {int (*f) (double a);};
12420 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12421 int argc;
12422 char **argv;
12423 int
12424 main ()
12425 {
12426 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12427   ;
12428   return 0;
12429 }
12430 _ACEOF
12431 # Don't try gcc -ansi; that turns off useful extensions and
12432 # breaks some systems' header files.
12433 # AIX                   -qlanglvl=ansi
12434 # Ultrix and OSF/1      -std1
12435 # HP-UX 10.20 and later -Ae
12436 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12437 # SVR4                  -Xc -D__EXTENSIONS__
12438 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12439 do
12440   CC="$ac_save_CC $ac_arg"
12441   rm -f conftest.$ac_objext
12442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12443   (eval $ac_compile) 2>conftest.er1
12444   ac_status=$?
12445   grep -v '^ *+' conftest.er1 >conftest.err
12446   rm -f conftest.er1
12447   cat conftest.err >&5
12448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449   (exit $ac_status); } &&
12450          { ac_try='test -z "$ac_c_werror_flag"
12451                          || test ! -s conftest.err'
12452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453   (eval $ac_try) 2>&5
12454   ac_status=$?
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); }; } &&
12457          { ac_try='test -s conftest.$ac_objext'
12458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459   (eval $ac_try) 2>&5
12460   ac_status=$?
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); }; }; then
12463   ac_cv_prog_cc_stdc=$ac_arg
12464 break
12465 else
12466   echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12468
12469 fi
12470 rm -f conftest.err conftest.$ac_objext
12471 done
12472 rm -f conftest.$ac_ext conftest.$ac_objext
12473 CC=$ac_save_CC
12474
12475 fi
12476
12477 case "x$ac_cv_prog_cc_stdc" in
12478   x|xno)
12479     echo "$as_me:$LINENO: result: none needed" >&5
12480 echo "${ECHO_T}none needed" >&6 ;;
12481   *)
12482     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12483 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12484     CC="$CC $ac_cv_prog_cc_stdc" ;;
12485 esac
12486
12487 # Some people use a C++ compiler to compile C.  Since we use `exit',
12488 # in C++ we need to declare it.  In case someone uses the same compiler
12489 # for both compiling C and C++ we need to have the C++ compiler decide
12490 # the declaration of exit, since it's the most demanding environment.
12491 cat >conftest.$ac_ext <<_ACEOF
12492 #ifndef __cplusplus
12493   choke me
12494 #endif
12495 _ACEOF
12496 rm -f conftest.$ac_objext
12497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12498   (eval $ac_compile) 2>conftest.er1
12499   ac_status=$?
12500   grep -v '^ *+' conftest.er1 >conftest.err
12501   rm -f conftest.er1
12502   cat conftest.err >&5
12503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504   (exit $ac_status); } &&
12505          { ac_try='test -z "$ac_c_werror_flag"
12506                          || test ! -s conftest.err'
12507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508   (eval $ac_try) 2>&5
12509   ac_status=$?
12510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511   (exit $ac_status); }; } &&
12512          { ac_try='test -s conftest.$ac_objext'
12513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514   (eval $ac_try) 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); }; }; then
12518   for ac_declaration in \
12519    '' \
12520    'extern "C" void std::exit (int) throw (); using std::exit;' \
12521    'extern "C" void std::exit (int); using std::exit;' \
12522    'extern "C" void exit (int) throw ();' \
12523    'extern "C" void exit (int);' \
12524    'void exit (int);'
12525 do
12526   cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h.  */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h.  */
12532 $ac_declaration
12533 #include <stdlib.h>
12534 int
12535 main ()
12536 {
12537 exit (42);
12538   ;
12539   return 0;
12540 }
12541 _ACEOF
12542 rm -f conftest.$ac_objext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12544   (eval $ac_compile) 2>conftest.er1
12545   ac_status=$?
12546   grep -v '^ *+' conftest.er1 >conftest.err
12547   rm -f conftest.er1
12548   cat conftest.err >&5
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); } &&
12551          { ac_try='test -z "$ac_c_werror_flag"
12552                          || test ! -s conftest.err'
12553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554   (eval $ac_try) 2>&5
12555   ac_status=$?
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); }; } &&
12558          { ac_try='test -s conftest.$ac_objext'
12559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560   (eval $ac_try) 2>&5
12561   ac_status=$?
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); }; }; then
12564   :
12565 else
12566   echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12568
12569 continue
12570 fi
12571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12572   cat >conftest.$ac_ext <<_ACEOF
12573 /* confdefs.h.  */
12574 _ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h.  */
12578 $ac_declaration
12579 int
12580 main ()
12581 {
12582 exit (42);
12583   ;
12584   return 0;
12585 }
12586 _ACEOF
12587 rm -f conftest.$ac_objext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589   (eval $ac_compile) 2>conftest.er1
12590   ac_status=$?
12591   grep -v '^ *+' conftest.er1 >conftest.err
12592   rm -f conftest.er1
12593   cat conftest.err >&5
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); } &&
12596          { ac_try='test -z "$ac_c_werror_flag"
12597                          || test ! -s conftest.err'
12598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599   (eval $ac_try) 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; } &&
12603          { ac_try='test -s conftest.$ac_objext'
12604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605   (eval $ac_try) 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; }; then
12609   break
12610 else
12611   echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12613
12614 fi
12615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12616 done
12617 rm -f conftest*
12618 if test -n "$ac_declaration"; then
12619   echo '#ifdef __cplusplus' >>confdefs.h
12620   echo $ac_declaration      >>confdefs.h
12621   echo '#endif'             >>confdefs.h
12622 fi
12623
12624 else
12625   echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12627
12628 fi
12629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12630 ac_ext=c
12631 ac_cpp='$CPP $CPPFLAGS'
12632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12635
12636 depcc="$CC"   am_compiler_list=
12637
12638 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12639 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12640 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12641   echo $ECHO_N "(cached) $ECHO_C" >&6
12642 else
12643   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12644   # We make a subdir and do the tests there.  Otherwise we can end up
12645   # making bogus files that we don't know about and never remove.  For
12646   # instance it was reported that on HP-UX the gcc test will end up
12647   # making a dummy file named `D' -- because `-MD' means `put the output
12648   # in D'.
12649   mkdir conftest.dir
12650   # Copy depcomp to subdir because otherwise we won't find it if we're
12651   # using a relative directory.
12652   cp "$am_depcomp" conftest.dir
12653   cd conftest.dir
12654   # We will build objects and dependencies in a subdirectory because
12655   # it helps to detect inapplicable dependency modes.  For instance
12656   # both Tru64's cc and ICC support -MD to output dependencies as a
12657   # side effect of compilation, but ICC will put the dependencies in
12658   # the current directory while Tru64 will put them in the object
12659   # directory.
12660   mkdir sub
12661
12662   am_cv_CC_dependencies_compiler_type=none
12663   if test "$am_compiler_list" = ""; then
12664      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12665   fi
12666   for depmode in $am_compiler_list; do
12667     # Setup a source with many dependencies, because some compilers
12668     # like to wrap large dependency lists on column 80 (with \), and
12669     # we should not choose a depcomp mode which is confused by this.
12670     #
12671     # We need to recreate these files for each test, as the compiler may
12672     # overwrite some of them when testing with obscure command lines.
12673     # This happens at least with the AIX C compiler.
12674     : > sub/conftest.c
12675     for i in 1 2 3 4 5 6; do
12676       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12677       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12678       # Solaris 8's {/usr,}/bin/sh.
12679       touch sub/conftst$i.h
12680     done
12681     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12682
12683     case $depmode in
12684     nosideeffect)
12685       # after this tag, mechanisms are not by side-effect, so they'll
12686       # only be used when explicitly requested
12687       if test "x$enable_dependency_tracking" = xyes; then
12688         continue
12689       else
12690         break
12691       fi
12692       ;;
12693     none) break ;;
12694     esac
12695     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12696     # mode.  It turns out that the SunPro C++ compiler does not properly
12697     # handle `-M -o', and we need to detect this.
12698     if depmode=$depmode \
12699        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12700        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12701        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12702          >/dev/null 2>conftest.err &&
12703        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12704        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12705        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12706       # icc doesn't choke on unknown options, it will just issue warnings
12707       # or remarks (even with -Werror).  So we grep stderr for any message
12708       # that says an option was ignored or not supported.
12709       # When given -MP, icc 7.0 and 7.1 complain thusly:
12710       #   icc: Command line warning: ignoring option '-M'; no argument required
12711       # The diagnosis changed in icc 8.0:
12712       #   icc: Command line remark: option '-MP' not supported
12713       if (grep 'ignoring option' conftest.err ||
12714           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12715         am_cv_CC_dependencies_compiler_type=$depmode
12716         break
12717       fi
12718     fi
12719   done
12720
12721   cd ..
12722   rm -rf conftest.dir
12723 else
12724   am_cv_CC_dependencies_compiler_type=none
12725 fi
12726
12727 fi
12728 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12729 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12730 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12731
12732
12733
12734 if
12735   test "x$enable_dependency_tracking" != xno \
12736   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12737   am__fastdepCC_TRUE=
12738   am__fastdepCC_FALSE='#'
12739 else
12740   am__fastdepCC_TRUE='#'
12741   am__fastdepCC_FALSE=
12742 fi
12743
12744
12745 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12746         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12747 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12748    { (exit 1); exit 1; }; }
12749 fi
12750
12751 # test for make depend flag
12752 OL_MKDEP=
12753 OL_MKDEP_FLAGS=
12754 if test -z "${MKDEP}"; then
12755         OL_MKDEP="${CC-cc}"
12756         if test -z "${MKDEP_FLAGS}"; then
12757                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12758 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12759 if test "${ol_cv_mkdep+set}" = set; then
12760   echo $ECHO_N "(cached) $ECHO_C" >&6
12761 else
12762
12763                         ol_cv_mkdep=no
12764                         for flag in "-M" "-xM"; do
12765                                 cat > conftest.c <<EOF
12766  noCode;
12767 EOF
12768                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770   (eval $ac_try) 2>&5
12771   ac_status=$?
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); }; } \
12774                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12775                                 then
12776                                         if test ! -f conftest."${ac_object}" ; then
12777                                                 ol_cv_mkdep=$flag
12778                                                 OL_MKDEP_FLAGS="$flag"
12779                                                 break
12780                                         fi
12781                                 fi
12782                         done
12783                         rm -f conftest*
12784
12785 fi
12786 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12787 echo "${ECHO_T}$ol_cv_mkdep" >&6
12788                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
12789         else
12790                 cc_cv_mkdep=yes
12791                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12792         fi
12793 else
12794         cc_cv_mkdep=yes
12795         OL_MKDEP="${MKDEP}"
12796         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12797 fi
12798
12799
12800
12801 if test "${ol_cv_mkdep}" = no ; then
12802         # this will soon become an error
12803         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12804 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12805 fi
12806
12807 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12808 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12809 if test "${ac_cv_lib_s_afopen+set}" = set; then
12810   echo $ECHO_N "(cached) $ECHO_C" >&6
12811 else
12812   ac_check_lib_save_LIBS=$LIBS
12813 LIBS="-ls  $LIBS"
12814 cat >conftest.$ac_ext <<_ACEOF
12815 /* confdefs.h.  */
12816 _ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h.  */
12820
12821 /* Override any gcc2 internal prototype to avoid an error.  */
12822 #ifdef __cplusplus
12823 extern "C"
12824 #endif
12825 /* We use char because int might match the return type of a gcc2
12826    builtin and then its argument prototype would still apply.  */
12827 char afopen ();
12828 int
12829 main ()
12830 {
12831 afopen ();
12832   ;
12833   return 0;
12834 }
12835 _ACEOF
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12838   (eval $ac_link) 2>conftest.er1
12839   ac_status=$?
12840   grep -v '^ *+' conftest.er1 >conftest.err
12841   rm -f conftest.er1
12842   cat conftest.err >&5
12843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); } &&
12845          { ac_try='test -z "$ac_c_werror_flag"
12846                          || test ! -s conftest.err'
12847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848   (eval $ac_try) 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); }; } &&
12852          { ac_try='test -s conftest$ac_exeext'
12853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854   (eval $ac_try) 2>&5
12855   ac_status=$?
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); }; }; then
12858   ac_cv_lib_s_afopen=yes
12859 else
12860   echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12862
12863 ac_cv_lib_s_afopen=no
12864 fi
12865 rm -f conftest.err conftest.$ac_objext \
12866       conftest$ac_exeext conftest.$ac_ext
12867 LIBS=$ac_check_lib_save_LIBS
12868 fi
12869 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12870 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12871 if test $ac_cv_lib_s_afopen = yes; then
12872
12873         AUTH_LIBS=-ls
12874
12875 cat >>confdefs.h <<\_ACEOF
12876 #define HAVE_AIX_SECURITY 1
12877 _ACEOF
12878
12879
12880 fi
12881
12882
12883 case "$target" in
12884 *-ibm-openedition)
12885         ac_cv_func_getopt=no
12886
12887 cat >>confdefs.h <<\_ACEOF
12888 #define BOTH_STRINGS_H 1
12889 _ACEOF
12890
12891         ;;
12892 esac
12893
12894 ol_link_modules=no
12895 WITH_MODULES_ENABLED=no
12896 if test $ol_enable_modules != no ; then
12897
12898 for ac_header in ltdl.h
12899 do
12900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12902   echo "$as_me:$LINENO: checking for $ac_header" >&5
12903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12905   echo $ECHO_N "(cached) $ECHO_C" >&6
12906 fi
12907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12909 else
12910   # Is the header compilable?
12911 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12913 cat >conftest.$ac_ext <<_ACEOF
12914 /* confdefs.h.  */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h.  */
12919 $ac_includes_default
12920 #include <$ac_header>
12921 _ACEOF
12922 rm -f conftest.$ac_objext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12924   (eval $ac_compile) 2>conftest.er1
12925   ac_status=$?
12926   grep -v '^ *+' conftest.er1 >conftest.err
12927   rm -f conftest.er1
12928   cat conftest.err >&5
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); } &&
12931          { ac_try='test -z "$ac_c_werror_flag"
12932                          || test ! -s conftest.err'
12933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934   (eval $ac_try) 2>&5
12935   ac_status=$?
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); }; } &&
12938          { ac_try='test -s conftest.$ac_objext'
12939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940   (eval $ac_try) 2>&5
12941   ac_status=$?
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); }; }; then
12944   ac_header_compiler=yes
12945 else
12946   echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949 ac_header_compiler=no
12950 fi
12951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12953 echo "${ECHO_T}$ac_header_compiler" >&6
12954
12955 # Is the header present?
12956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12958 cat >conftest.$ac_ext <<_ACEOF
12959 /* confdefs.h.  */
12960 _ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h.  */
12964 #include <$ac_header>
12965 _ACEOF
12966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12967   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12968   ac_status=$?
12969   grep -v '^ *+' conftest.er1 >conftest.err
12970   rm -f conftest.er1
12971   cat conftest.err >&5
12972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973   (exit $ac_status); } >/dev/null; then
12974   if test -s conftest.err; then
12975     ac_cpp_err=$ac_c_preproc_warn_flag
12976     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12977   else
12978     ac_cpp_err=
12979   fi
12980 else
12981   ac_cpp_err=yes
12982 fi
12983 if test -z "$ac_cpp_err"; then
12984   ac_header_preproc=yes
12985 else
12986   echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12988
12989   ac_header_preproc=no
12990 fi
12991 rm -f conftest.err conftest.$ac_ext
12992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12993 echo "${ECHO_T}$ac_header_preproc" >&6
12994
12995 # So?  What about this header?
12996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12997   yes:no: )
12998     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13002     ac_header_preproc=yes
13003     ;;
13004   no:yes:* )
13005     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13007     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13008 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13009     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13011     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13012 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13015     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13017     (
13018       cat <<\_ASBOX
13019 ## --------------------------------------------- ##
13020 ## Report this to <http://www.openldap.org/its/> ##
13021 ## --------------------------------------------- ##
13022 _ASBOX
13023     ) |
13024       sed "s/^/$as_me: WARNING:     /" >&2
13025     ;;
13026 esac
13027 echo "$as_me:$LINENO: checking for $ac_header" >&5
13028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13030   echo $ECHO_N "(cached) $ECHO_C" >&6
13031 else
13032   eval "$as_ac_Header=\$ac_header_preproc"
13033 fi
13034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13036
13037 fi
13038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13039   cat >>confdefs.h <<_ACEOF
13040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13041 _ACEOF
13042
13043 fi
13044
13045 done
13046
13047
13048         if test $ac_cv_header_ltdl_h = no ; then
13049                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13050 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13051    { (exit 1); exit 1; }; }
13052         fi
13053
13054         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13055 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13056 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13057   echo $ECHO_N "(cached) $ECHO_C" >&6
13058 else
13059   ac_check_lib_save_LIBS=$LIBS
13060 LIBS="-lltdl  $LIBS"
13061 cat >conftest.$ac_ext <<_ACEOF
13062 /* confdefs.h.  */
13063 _ACEOF
13064 cat confdefs.h >>conftest.$ac_ext
13065 cat >>conftest.$ac_ext <<_ACEOF
13066 /* end confdefs.h.  */
13067
13068 /* Override any gcc2 internal prototype to avoid an error.  */
13069 #ifdef __cplusplus
13070 extern "C"
13071 #endif
13072 /* We use char because int might match the return type of a gcc2
13073    builtin and then its argument prototype would still apply.  */
13074 char lt_dlinit ();
13075 int
13076 main ()
13077 {
13078 lt_dlinit ();
13079   ;
13080   return 0;
13081 }
13082 _ACEOF
13083 rm -f conftest.$ac_objext conftest$ac_exeext
13084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13085   (eval $ac_link) 2>conftest.er1
13086   ac_status=$?
13087   grep -v '^ *+' conftest.er1 >conftest.err
13088   rm -f conftest.er1
13089   cat conftest.err >&5
13090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); } &&
13092          { ac_try='test -z "$ac_c_werror_flag"
13093                          || test ! -s conftest.err'
13094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095   (eval $ac_try) 2>&5
13096   ac_status=$?
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); }; } &&
13099          { ac_try='test -s conftest$ac_exeext'
13100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101   (eval $ac_try) 2>&5
13102   ac_status=$?
13103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104   (exit $ac_status); }; }; then
13105   ac_cv_lib_ltdl_lt_dlinit=yes
13106 else
13107   echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13109
13110 ac_cv_lib_ltdl_lt_dlinit=no
13111 fi
13112 rm -f conftest.err conftest.$ac_objext \
13113       conftest$ac_exeext conftest.$ac_ext
13114 LIBS=$ac_check_lib_save_LIBS
13115 fi
13116 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13117 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13118 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13119
13120                 MODULES_LIBS=-lltdl
13121
13122 cat >>confdefs.h <<\_ACEOF
13123 #define HAVE_LIBLTDL 1
13124 _ACEOF
13125
13126
13127 fi
13128
13129
13130         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13131                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13132 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13133    { (exit 1); exit 1; }; }
13134         fi
13135         ol_link_modules=yes
13136         WITH_MODULES_ENABLED=yes
13137
13138 else
13139         for i in $Backends; do
13140                 eval "ol_tmp=\$ol_enable_$i"
13141                 if test $ol_tmp = mod ; then
13142                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13143 echo "$as_me: WARNING: building static $i backend" >&2;}
13144                         eval "ol_enable_$i=yes"
13145                 fi
13146         done
13147         for i in $Overlays; do
13148                 eval "ol_tmp=\$ol_enable_$i"
13149                 if test $ol_tmp = mod ; then
13150                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13151 echo "$as_me: WARNING: building static $i overlay" >&2;}
13152                         eval "ol_enable_$i=yes"
13153                 fi
13154         done
13155 fi
13156
13157 # test for EBCDIC
13158 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13159 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13160 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13161   echo $ECHO_N "(cached) $ECHO_C" >&6
13162 else
13163
13164         cat >conftest.$ac_ext <<_ACEOF
13165 /* confdefs.h.  */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h.  */
13170
13171 #if !('M' == 0xd4)
13172 #include <__ASCII__/generate_error.h>
13173 #endif
13174
13175 _ACEOF
13176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13177   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13178   ac_status=$?
13179   grep -v '^ *+' conftest.er1 >conftest.err
13180   rm -f conftest.er1
13181   cat conftest.err >&5
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); } >/dev/null; then
13184   if test -s conftest.err; then
13185     ac_cpp_err=$ac_c_preproc_warn_flag
13186     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13187   else
13188     ac_cpp_err=
13189   fi
13190 else
13191   ac_cpp_err=yes
13192 fi
13193 if test -z "$ac_cpp_err"; then
13194   ol_cv_cpp_ebcdic=yes
13195 else
13196   echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13198
13199   ol_cv_cpp_ebcdic=no
13200 fi
13201 rm -f conftest.err conftest.$ac_ext
13202 fi
13203 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13204 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13205 if test $ol_cv_cpp_ebcdic = yes ; then
13206
13207 cat >>confdefs.h <<\_ACEOF
13208 #define HAVE_EBCDIC 1
13209 _ACEOF
13210
13211 fi
13212
13213 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13214 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13215 if test "${ol_cv_header_stdc+set}" = set; then
13216   echo $ECHO_N "(cached) $ECHO_C" >&6
13217 else
13218   cat >conftest.$ac_ext <<_ACEOF
13219 /* confdefs.h.  */
13220 _ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h.  */
13224 #include <stdlib.h>
13225 #include <stdarg.h>
13226 #include <string.h>
13227 #include <float.h>
13228 _ACEOF
13229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13230   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13231   ac_status=$?
13232   grep -v '^ *+' conftest.er1 >conftest.err
13233   rm -f conftest.er1
13234   cat conftest.err >&5
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); } >/dev/null; then
13237   if test -s conftest.err; then
13238     ac_cpp_err=$ac_c_preproc_warn_flag
13239     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13240   else
13241     ac_cpp_err=
13242   fi
13243 else
13244   ac_cpp_err=yes
13245 fi
13246 if test -z "$ac_cpp_err"; then
13247   ol_cv_header_stdc=yes
13248 else
13249   echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13251
13252   ol_cv_header_stdc=no
13253 fi
13254 rm -f conftest.err conftest.$ac_ext
13255
13256 if test $ol_cv_header_stdc = yes; then
13257   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13258 cat >conftest.$ac_ext <<_ACEOF
13259 /* confdefs.h.  */
13260 _ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h.  */
13264 #include <string.h>
13265
13266 _ACEOF
13267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13268   $EGREP "memchr" >/dev/null 2>&1; then
13269   :
13270 else
13271   ol_cv_header_stdc=no
13272 fi
13273 rm -f conftest*
13274
13275 fi
13276
13277 if test $ol_cv_header_stdc = yes; then
13278   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13279 cat >conftest.$ac_ext <<_ACEOF
13280 /* confdefs.h.  */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h.  */
13285 #include <stdlib.h>
13286
13287 _ACEOF
13288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13289   $EGREP "free" >/dev/null 2>&1; then
13290   :
13291 else
13292   ol_cv_header_stdc=no
13293 fi
13294 rm -f conftest*
13295
13296 fi
13297
13298 if test $ol_cv_header_stdc = yes; then
13299   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13300 if test "$cross_compiling" = yes; then
13301   :
13302 else
13303   cat >conftest.$ac_ext <<_ACEOF
13304 /* confdefs.h.  */
13305 _ACEOF
13306 cat confdefs.h >>conftest.$ac_ext
13307 cat >>conftest.$ac_ext <<_ACEOF
13308 /* end confdefs.h.  */
13309 #include <ctype.h>
13310 #ifndef HAVE_EBCDIC
13311 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13312 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13313 #else
13314 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13315                 || ('j' <= (c) && (c) <= 'r') \
13316                 || ('s' <= (c) && (c) <= 'z'))
13317 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13318 #endif
13319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13320 int main () { int i; for (i = 0; i < 256; i++)
13321 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13322 exit (0); }
13323
13324 _ACEOF
13325 rm -f conftest$ac_exeext
13326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13327   (eval $ac_link) 2>&5
13328   ac_status=$?
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332   (eval $ac_try) 2>&5
13333   ac_status=$?
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); }; }; then
13336   :
13337 else
13338   echo "$as_me: program exited with status $ac_status" >&5
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13341
13342 ( exit $ac_status )
13343 ol_cv_header_stdc=no
13344 fi
13345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13346 fi
13347 fi
13348 fi
13349 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13350 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13351 if test $ol_cv_header_stdc = yes; then
13352   cat >>confdefs.h <<\_ACEOF
13353 #define STDC_HEADERS 1
13354 _ACEOF
13355
13356 fi
13357 ac_cv_header_stdc=disable
13358
13359
13360 if test $ol_cv_header_stdc != yes; then
13361         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13362 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13363 fi
13364
13365
13366
13367
13368
13369
13370 ac_header_dirent=no
13371 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13372   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13373 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13374 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13376   echo $ECHO_N "(cached) $ECHO_C" >&6
13377 else
13378   cat >conftest.$ac_ext <<_ACEOF
13379 /* confdefs.h.  */
13380 _ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h.  */
13384 #include <sys/types.h>
13385 #include <$ac_hdr>
13386
13387 int
13388 main ()
13389 {
13390 if ((DIR *) 0)
13391 return 0;
13392   ;
13393   return 0;
13394 }
13395 _ACEOF
13396 rm -f conftest.$ac_objext
13397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13398   (eval $ac_compile) 2>conftest.er1
13399   ac_status=$?
13400   grep -v '^ *+' conftest.er1 >conftest.err
13401   rm -f conftest.er1
13402   cat conftest.err >&5
13403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404   (exit $ac_status); } &&
13405          { ac_try='test -z "$ac_c_werror_flag"
13406                          || test ! -s conftest.err'
13407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408   (eval $ac_try) 2>&5
13409   ac_status=$?
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); }; } &&
13412          { ac_try='test -s conftest.$ac_objext'
13413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414   (eval $ac_try) 2>&5
13415   ac_status=$?
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); }; }; then
13418   eval "$as_ac_Header=yes"
13419 else
13420   echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13422
13423 eval "$as_ac_Header=no"
13424 fi
13425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13426 fi
13427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13430   cat >>confdefs.h <<_ACEOF
13431 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13432 _ACEOF
13433
13434 ac_header_dirent=$ac_hdr; break
13435 fi
13436
13437 done
13438 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13439 if test $ac_header_dirent = dirent.h; then
13440   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13441 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13442 if test "${ac_cv_search_opendir+set}" = set; then
13443   echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13445   ac_func_search_save_LIBS=$LIBS
13446 ac_cv_search_opendir=no
13447 cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h.  */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h.  */
13453
13454 /* Override any gcc2 internal prototype to avoid an error.  */
13455 #ifdef __cplusplus
13456 extern "C"
13457 #endif
13458 /* We use char because int might match the return type of a gcc2
13459    builtin and then its argument prototype would still apply.  */
13460 char opendir ();
13461 int
13462 main ()
13463 {
13464 opendir ();
13465   ;
13466   return 0;
13467 }
13468 _ACEOF
13469 rm -f conftest.$ac_objext conftest$ac_exeext
13470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13471   (eval $ac_link) 2>conftest.er1
13472   ac_status=$?
13473   grep -v '^ *+' conftest.er1 >conftest.err
13474   rm -f conftest.er1
13475   cat conftest.err >&5
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); } &&
13478          { ac_try='test -z "$ac_c_werror_flag"
13479                          || test ! -s conftest.err'
13480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481   (eval $ac_try) 2>&5
13482   ac_status=$?
13483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484   (exit $ac_status); }; } &&
13485          { ac_try='test -s conftest$ac_exeext'
13486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487   (eval $ac_try) 2>&5
13488   ac_status=$?
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); }; }; then
13491   ac_cv_search_opendir="none required"
13492 else
13493   echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13495
13496 fi
13497 rm -f conftest.err conftest.$ac_objext \
13498       conftest$ac_exeext conftest.$ac_ext
13499 if test "$ac_cv_search_opendir" = no; then
13500   for ac_lib in dir; do
13501     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13502     cat >conftest.$ac_ext <<_ACEOF
13503 /* confdefs.h.  */
13504 _ACEOF
13505 cat confdefs.h >>conftest.$ac_ext
13506 cat >>conftest.$ac_ext <<_ACEOF
13507 /* end confdefs.h.  */
13508
13509 /* Override any gcc2 internal prototype to avoid an error.  */
13510 #ifdef __cplusplus
13511 extern "C"
13512 #endif
13513 /* We use char because int might match the return type of a gcc2
13514    builtin and then its argument prototype would still apply.  */
13515 char opendir ();
13516 int
13517 main ()
13518 {
13519 opendir ();
13520   ;
13521   return 0;
13522 }
13523 _ACEOF
13524 rm -f conftest.$ac_objext conftest$ac_exeext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13526   (eval $ac_link) 2>conftest.er1
13527   ac_status=$?
13528   grep -v '^ *+' conftest.er1 >conftest.err
13529   rm -f conftest.er1
13530   cat conftest.err >&5
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); } &&
13533          { ac_try='test -z "$ac_c_werror_flag"
13534                          || test ! -s conftest.err'
13535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536   (eval $ac_try) 2>&5
13537   ac_status=$?
13538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); }; } &&
13540          { ac_try='test -s conftest$ac_exeext'
13541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542   (eval $ac_try) 2>&5
13543   ac_status=$?
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); }; }; then
13546   ac_cv_search_opendir="-l$ac_lib"
13547 break
13548 else
13549   echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13551
13552 fi
13553 rm -f conftest.err conftest.$ac_objext \
13554       conftest$ac_exeext conftest.$ac_ext
13555   done
13556 fi
13557 LIBS=$ac_func_search_save_LIBS
13558 fi
13559 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13560 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13561 if test "$ac_cv_search_opendir" != no; then
13562   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13563
13564 fi
13565
13566 else
13567   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13568 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13569 if test "${ac_cv_search_opendir+set}" = set; then
13570   echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13572   ac_func_search_save_LIBS=$LIBS
13573 ac_cv_search_opendir=no
13574 cat >conftest.$ac_ext <<_ACEOF
13575 /* confdefs.h.  */
13576 _ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h.  */
13580
13581 /* Override any gcc2 internal prototype to avoid an error.  */
13582 #ifdef __cplusplus
13583 extern "C"
13584 #endif
13585 /* We use char because int might match the return type of a gcc2
13586    builtin and then its argument prototype would still apply.  */
13587 char opendir ();
13588 int
13589 main ()
13590 {
13591 opendir ();
13592   ;
13593   return 0;
13594 }
13595 _ACEOF
13596 rm -f conftest.$ac_objext conftest$ac_exeext
13597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13598   (eval $ac_link) 2>conftest.er1
13599   ac_status=$?
13600   grep -v '^ *+' conftest.er1 >conftest.err
13601   rm -f conftest.er1
13602   cat conftest.err >&5
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); } &&
13605          { ac_try='test -z "$ac_c_werror_flag"
13606                          || test ! -s conftest.err'
13607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608   (eval $ac_try) 2>&5
13609   ac_status=$?
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); }; } &&
13612          { ac_try='test -s conftest$ac_exeext'
13613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614   (eval $ac_try) 2>&5
13615   ac_status=$?
13616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); }; }; then
13618   ac_cv_search_opendir="none required"
13619 else
13620   echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13622
13623 fi
13624 rm -f conftest.err conftest.$ac_objext \
13625       conftest$ac_exeext conftest.$ac_ext
13626 if test "$ac_cv_search_opendir" = no; then
13627   for ac_lib in x; do
13628     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13629     cat >conftest.$ac_ext <<_ACEOF
13630 /* confdefs.h.  */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h.  */
13635
13636 /* Override any gcc2 internal prototype to avoid an error.  */
13637 #ifdef __cplusplus
13638 extern "C"
13639 #endif
13640 /* We use char because int might match the return type of a gcc2
13641    builtin and then its argument prototype would still apply.  */
13642 char opendir ();
13643 int
13644 main ()
13645 {
13646 opendir ();
13647   ;
13648   return 0;
13649 }
13650 _ACEOF
13651 rm -f conftest.$ac_objext conftest$ac_exeext
13652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13653   (eval $ac_link) 2>conftest.er1
13654   ac_status=$?
13655   grep -v '^ *+' conftest.er1 >conftest.err
13656   rm -f conftest.er1
13657   cat conftest.err >&5
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); } &&
13660          { ac_try='test -z "$ac_c_werror_flag"
13661                          || test ! -s conftest.err'
13662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663   (eval $ac_try) 2>&5
13664   ac_status=$?
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); }; } &&
13667          { ac_try='test -s conftest$ac_exeext'
13668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669   (eval $ac_try) 2>&5
13670   ac_status=$?
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); }; }; then
13673   ac_cv_search_opendir="-l$ac_lib"
13674 break
13675 else
13676   echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13678
13679 fi
13680 rm -f conftest.err conftest.$ac_objext \
13681       conftest$ac_exeext conftest.$ac_ext
13682   done
13683 fi
13684 LIBS=$ac_func_search_save_LIBS
13685 fi
13686 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13687 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13688 if test "$ac_cv_search_opendir" != no; then
13689   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13690
13691 fi
13692
13693 fi
13694
13695 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13696 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13697 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13698   echo $ECHO_N "(cached) $ECHO_C" >&6
13699 else
13700   cat >conftest.$ac_ext <<_ACEOF
13701 /* confdefs.h.  */
13702 _ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h.  */
13706 #include <sys/types.h>
13707 #include <sys/wait.h>
13708 #ifndef WEXITSTATUS
13709 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13710 #endif
13711 #ifndef WIFEXITED
13712 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13713 #endif
13714
13715 int
13716 main ()
13717 {
13718   int s;
13719   wait (&s);
13720   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13721   ;
13722   return 0;
13723 }
13724 _ACEOF
13725 rm -f conftest.$ac_objext
13726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13727   (eval $ac_compile) 2>conftest.er1
13728   ac_status=$?
13729   grep -v '^ *+' conftest.er1 >conftest.err
13730   rm -f conftest.er1
13731   cat conftest.err >&5
13732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733   (exit $ac_status); } &&
13734          { ac_try='test -z "$ac_c_werror_flag"
13735                          || test ! -s conftest.err'
13736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737   (eval $ac_try) 2>&5
13738   ac_status=$?
13739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740   (exit $ac_status); }; } &&
13741          { ac_try='test -s conftest.$ac_objext'
13742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743   (eval $ac_try) 2>&5
13744   ac_status=$?
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); }; }; then
13747   ac_cv_header_sys_wait_h=yes
13748 else
13749   echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13751
13752 ac_cv_header_sys_wait_h=no
13753 fi
13754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13755 fi
13756 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13757 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13758 if test $ac_cv_header_sys_wait_h = yes; then
13759
13760 cat >>confdefs.h <<\_ACEOF
13761 #define HAVE_SYS_WAIT_H 1
13762 _ACEOF
13763
13764 fi
13765
13766 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13767 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13768 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13769   echo $ECHO_N "(cached) $ECHO_C" >&6
13770 else
13771   cat >conftest.$ac_ext <<_ACEOF
13772 /* confdefs.h.  */
13773 _ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h.  */
13777 #include <sys/types.h>
13778 #include <termios.h>
13779 #ifdef TIOCGWINSZ
13780   yes
13781 #endif
13782
13783 _ACEOF
13784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13785   $EGREP "yes" >/dev/null 2>&1; then
13786   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13787 else
13788   ac_cv_sys_tiocgwinsz_in_termios_h=no
13789 fi
13790 rm -f conftest*
13791
13792 fi
13793 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13794 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13795
13796 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13797   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13798 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13799 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13800   echo $ECHO_N "(cached) $ECHO_C" >&6
13801 else
13802   cat >conftest.$ac_ext <<_ACEOF
13803 /* confdefs.h.  */
13804 _ACEOF
13805 cat confdefs.h >>conftest.$ac_ext
13806 cat >>conftest.$ac_ext <<_ACEOF
13807 /* end confdefs.h.  */
13808 #include <sys/types.h>
13809 #include <sys/ioctl.h>
13810 #ifdef TIOCGWINSZ
13811   yes
13812 #endif
13813
13814 _ACEOF
13815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13816   $EGREP "yes" >/dev/null 2>&1; then
13817   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13818 else
13819   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13820 fi
13821 rm -f conftest*
13822
13823 fi
13824 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13825 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13826
13827   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13828
13829 cat >>confdefs.h <<\_ACEOF
13830 #define GWINSZ_IN_SYS_IOCTL 1
13831 _ACEOF
13832
13833   fi
13834 fi
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884 for ac_header in \
13885         arpa/inet.h             \
13886         arpa/nameser.h  \
13887         assert.h                \
13888         bits/types.h    \
13889         conio.h                 \
13890         crypt.h                 \
13891         direct.h                \
13892         errno.h                 \
13893         fcntl.h                 \
13894         filio.h                 \
13895         getopt.h                \
13896         grp.h                   \
13897         io.h                    \
13898         libutil.h               \
13899         limits.h                \
13900         locale.h                \
13901         malloc.h                \
13902         memory.h                \
13903         psap.h                  \
13904         pwd.h                   \
13905         process.h               \
13906         sgtty.h                 \
13907         shadow.h                \
13908         stddef.h                \
13909         string.h                \
13910         strings.h               \
13911         sysexits.h              \
13912         sys/file.h              \
13913         sys/filio.h             \
13914         sys/fstyp.h             \
13915         sys/errno.h             \
13916         sys/ioctl.h             \
13917         sys/param.h             \
13918         sys/privgrp.h   \
13919         sys/resource.h  \
13920         sys/select.h    \
13921         sys/socket.h    \
13922         sys/stat.h              \
13923         sys/syslog.h    \
13924         sys/time.h              \
13925         sys/types.h             \
13926         sys/uio.h               \
13927         sys/vmount.h    \
13928         syslog.h                \
13929         termios.h               \
13930         unistd.h                \
13931         utime.h                 \
13932
13933 do
13934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13936   echo "$as_me:$LINENO: checking for $ac_header" >&5
13937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13939   echo $ECHO_N "(cached) $ECHO_C" >&6
13940 fi
13941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13943 else
13944   # Is the header compilable?
13945 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13947 cat >conftest.$ac_ext <<_ACEOF
13948 /* confdefs.h.  */
13949 _ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h.  */
13953 $ac_includes_default
13954 #include <$ac_header>
13955 _ACEOF
13956 rm -f conftest.$ac_objext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958   (eval $ac_compile) 2>conftest.er1
13959   ac_status=$?
13960   grep -v '^ *+' conftest.er1 >conftest.err
13961   rm -f conftest.er1
13962   cat conftest.err >&5
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); } &&
13965          { ac_try='test -z "$ac_c_werror_flag"
13966                          || test ! -s conftest.err'
13967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968   (eval $ac_try) 2>&5
13969   ac_status=$?
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); }; } &&
13972          { ac_try='test -s conftest.$ac_objext'
13973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974   (eval $ac_try) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; }; then
13978   ac_header_compiler=yes
13979 else
13980   echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13982
13983 ac_header_compiler=no
13984 fi
13985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13987 echo "${ECHO_T}$ac_header_compiler" >&6
13988
13989 # Is the header present?
13990 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13992 cat >conftest.$ac_ext <<_ACEOF
13993 /* confdefs.h.  */
13994 _ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h.  */
13998 #include <$ac_header>
13999 _ACEOF
14000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14002   ac_status=$?
14003   grep -v '^ *+' conftest.er1 >conftest.err
14004   rm -f conftest.er1
14005   cat conftest.err >&5
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); } >/dev/null; then
14008   if test -s conftest.err; then
14009     ac_cpp_err=$ac_c_preproc_warn_flag
14010     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14011   else
14012     ac_cpp_err=
14013   fi
14014 else
14015   ac_cpp_err=yes
14016 fi
14017 if test -z "$ac_cpp_err"; then
14018   ac_header_preproc=yes
14019 else
14020   echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14022
14023   ac_header_preproc=no
14024 fi
14025 rm -f conftest.err conftest.$ac_ext
14026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14027 echo "${ECHO_T}$ac_header_preproc" >&6
14028
14029 # So?  What about this header?
14030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14031   yes:no: )
14032     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14036     ac_header_preproc=yes
14037     ;;
14038   no:yes:* )
14039     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14041     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14042 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14043     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14045     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14046 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14047     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14049     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14051     (
14052       cat <<\_ASBOX
14053 ## --------------------------------------------- ##
14054 ## Report this to <http://www.openldap.org/its/> ##
14055 ## --------------------------------------------- ##
14056 _ASBOX
14057     ) |
14058       sed "s/^/$as_me: WARNING:     /" >&2
14059     ;;
14060 esac
14061 echo "$as_me:$LINENO: checking for $ac_header" >&5
14062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14064   echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066   eval "$as_ac_Header=\$ac_header_preproc"
14067 fi
14068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14070
14071 fi
14072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14073   cat >>confdefs.h <<_ACEOF
14074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14075 _ACEOF
14076
14077 fi
14078
14079 done
14080
14081
14082 if test "$ac_cv_mingw32" = yes ; then
14083
14084
14085 for ac_header in winsock.h winsock2.h
14086 do
14087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14089   echo "$as_me:$LINENO: checking for $ac_header" >&5
14090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14092   echo $ECHO_N "(cached) $ECHO_C" >&6
14093 fi
14094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14096 else
14097   # Is the header compilable?
14098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14100 cat >conftest.$ac_ext <<_ACEOF
14101 /* confdefs.h.  */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h.  */
14106 $ac_includes_default
14107 #include <$ac_header>
14108 _ACEOF
14109 rm -f conftest.$ac_objext
14110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14111   (eval $ac_compile) 2>conftest.er1
14112   ac_status=$?
14113   grep -v '^ *+' conftest.er1 >conftest.err
14114   rm -f conftest.er1
14115   cat conftest.err >&5
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); } &&
14118          { ac_try='test -z "$ac_c_werror_flag"
14119                          || test ! -s conftest.err'
14120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121   (eval $ac_try) 2>&5
14122   ac_status=$?
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); }; } &&
14125          { ac_try='test -s conftest.$ac_objext'
14126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127   (eval $ac_try) 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); }; }; then
14131   ac_header_compiler=yes
14132 else
14133   echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14135
14136 ac_header_compiler=no
14137 fi
14138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14140 echo "${ECHO_T}$ac_header_compiler" >&6
14141
14142 # Is the header present?
14143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14145 cat >conftest.$ac_ext <<_ACEOF
14146 /* confdefs.h.  */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h.  */
14151 #include <$ac_header>
14152 _ACEOF
14153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14155   ac_status=$?
14156   grep -v '^ *+' conftest.er1 >conftest.err
14157   rm -f conftest.er1
14158   cat conftest.err >&5
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); } >/dev/null; then
14161   if test -s conftest.err; then
14162     ac_cpp_err=$ac_c_preproc_warn_flag
14163     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14164   else
14165     ac_cpp_err=
14166   fi
14167 else
14168   ac_cpp_err=yes
14169 fi
14170 if test -z "$ac_cpp_err"; then
14171   ac_header_preproc=yes
14172 else
14173   echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14175
14176   ac_header_preproc=no
14177 fi
14178 rm -f conftest.err conftest.$ac_ext
14179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14180 echo "${ECHO_T}$ac_header_preproc" >&6
14181
14182 # So?  What about this header?
14183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14184   yes:no: )
14185     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14189     ac_header_preproc=yes
14190     ;;
14191   no:yes:* )
14192     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14194     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14195 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14196     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14198     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14199 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14202     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14204     (
14205       cat <<\_ASBOX
14206 ## --------------------------------------------- ##
14207 ## Report this to <http://www.openldap.org/its/> ##
14208 ## --------------------------------------------- ##
14209 _ASBOX
14210     ) |
14211       sed "s/^/$as_me: WARNING:     /" >&2
14212     ;;
14213 esac
14214 echo "$as_me:$LINENO: checking for $ac_header" >&5
14215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14217   echo $ECHO_N "(cached) $ECHO_C" >&6
14218 else
14219   eval "$as_ac_Header=\$ac_header_preproc"
14220 fi
14221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14223
14224 fi
14225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14226   cat >>confdefs.h <<_ACEOF
14227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14228 _ACEOF
14229
14230 fi
14231
14232 done
14233
14234 fi
14235
14236
14237 for ac_header in resolv.h
14238 do
14239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14240 echo "$as_me:$LINENO: checking for $ac_header" >&5
14241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14243   echo $ECHO_N "(cached) $ECHO_C" >&6
14244 else
14245   cat >conftest.$ac_ext <<_ACEOF
14246 /* confdefs.h.  */
14247 _ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h.  */
14251 $ac_includes_default
14252 #include <netinet/in.h>
14253
14254
14255 #include <$ac_header>
14256 _ACEOF
14257 rm -f conftest.$ac_objext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14259   (eval $ac_compile) 2>conftest.er1
14260   ac_status=$?
14261   grep -v '^ *+' conftest.er1 >conftest.err
14262   rm -f conftest.er1
14263   cat conftest.err >&5
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); } &&
14266          { ac_try='test -z "$ac_c_werror_flag"
14267                          || test ! -s conftest.err'
14268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269   (eval $ac_try) 2>&5
14270   ac_status=$?
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); }; } &&
14273          { ac_try='test -s conftest.$ac_objext'
14274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275   (eval $ac_try) 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); }; }; then
14279   eval "$as_ac_Header=yes"
14280 else
14281   echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14283
14284 eval "$as_ac_Header=no"
14285 fi
14286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14287 fi
14288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14291   cat >>confdefs.h <<_ACEOF
14292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14293 _ACEOF
14294
14295 fi
14296
14297 done
14298
14299
14300
14301 for ac_header in netinet/tcp.h
14302 do
14303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14304 echo "$as_me:$LINENO: checking for $ac_header" >&5
14305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14307   echo $ECHO_N "(cached) $ECHO_C" >&6
14308 else
14309   cat >conftest.$ac_ext <<_ACEOF
14310 /* confdefs.h.  */
14311 _ACEOF
14312 cat confdefs.h >>conftest.$ac_ext
14313 cat >>conftest.$ac_ext <<_ACEOF
14314 /* end confdefs.h.  */
14315 $ac_includes_default
14316 #include <netinet/in.h>
14317
14318
14319 #include <$ac_header>
14320 _ACEOF
14321 rm -f conftest.$ac_objext
14322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323   (eval $ac_compile) 2>conftest.er1
14324   ac_status=$?
14325   grep -v '^ *+' conftest.er1 >conftest.err
14326   rm -f conftest.er1
14327   cat conftest.err >&5
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); } &&
14330          { ac_try='test -z "$ac_c_werror_flag"
14331                          || test ! -s conftest.err'
14332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333   (eval $ac_try) 2>&5
14334   ac_status=$?
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); }; } &&
14337          { ac_try='test -s conftest.$ac_objext'
14338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339   (eval $ac_try) 2>&5
14340   ac_status=$?
14341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342   (exit $ac_status); }; }; then
14343   eval "$as_ac_Header=yes"
14344 else
14345   echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14347
14348 eval "$as_ac_Header=no"
14349 fi
14350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14351 fi
14352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14355   cat >>confdefs.h <<_ACEOF
14356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14357 _ACEOF
14358
14359 fi
14360
14361 done
14362
14363
14364
14365 for ac_header in sys/ucred.h
14366 do
14367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14368 echo "$as_me:$LINENO: checking for $ac_header" >&5
14369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14371   echo $ECHO_N "(cached) $ECHO_C" >&6
14372 else
14373   cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h.  */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h.  */
14379 $ac_includes_default
14380 #ifdef HAVE_SYS_PARAM_H
14381 #include <sys/param.h>
14382 #endif
14383
14384
14385 #include <$ac_header>
14386 _ACEOF
14387 rm -f conftest.$ac_objext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14389   (eval $ac_compile) 2>conftest.er1
14390   ac_status=$?
14391   grep -v '^ *+' conftest.er1 >conftest.err
14392   rm -f conftest.er1
14393   cat conftest.err >&5
14394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); } &&
14396          { ac_try='test -z "$ac_c_werror_flag"
14397                          || test ! -s conftest.err'
14398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399   (eval $ac_try) 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); }; } &&
14403          { ac_try='test -s conftest.$ac_objext'
14404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405   (eval $ac_try) 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; }; then
14409   eval "$as_ac_Header=yes"
14410 else
14411   echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414 eval "$as_ac_Header=no"
14415 fi
14416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14417 fi
14418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14421   cat >>confdefs.h <<_ACEOF
14422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14423 _ACEOF
14424
14425 fi
14426
14427 done
14428
14429
14430
14431
14432
14433 for ac_func in sigaction sigset
14434 do
14435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14436 echo "$as_me:$LINENO: checking for $ac_func" >&5
14437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14438 if eval "test \"\${$as_ac_var+set}\" = set"; then
14439   echo $ECHO_N "(cached) $ECHO_C" >&6
14440 else
14441   cat >conftest.$ac_ext <<_ACEOF
14442 /* confdefs.h.  */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h.  */
14447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14449 #define $ac_func innocuous_$ac_func
14450
14451 /* System header to define __stub macros and hopefully few prototypes,
14452     which can conflict with char $ac_func (); below.
14453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14454     <limits.h> exists even on freestanding compilers.  */
14455
14456 #ifdef __STDC__
14457 # include <limits.h>
14458 #else
14459 # include <assert.h>
14460 #endif
14461
14462 #undef $ac_func
14463
14464 /* Override any gcc2 internal prototype to avoid an error.  */
14465 #ifdef __cplusplus
14466 extern "C"
14467 {
14468 #endif
14469 /* We use char because int might match the return type of a gcc2
14470    builtin and then its argument prototype would still apply.  */
14471 char $ac_func ();
14472 /* The GNU C library defines this for functions which it implements
14473     to always fail with ENOSYS.  Some functions are actually named
14474     something starting with __ and the normal name is an alias.  */
14475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14476 choke me
14477 #else
14478 char (*f) () = $ac_func;
14479 #endif
14480 #ifdef __cplusplus
14481 }
14482 #endif
14483
14484 int
14485 main ()
14486 {
14487 return f != $ac_func;
14488   ;
14489   return 0;
14490 }
14491 _ACEOF
14492 rm -f conftest.$ac_objext conftest$ac_exeext
14493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14494   (eval $ac_link) 2>conftest.er1
14495   ac_status=$?
14496   grep -v '^ *+' conftest.er1 >conftest.err
14497   rm -f conftest.er1
14498   cat conftest.err >&5
14499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500   (exit $ac_status); } &&
14501          { ac_try='test -z "$ac_c_werror_flag"
14502                          || test ! -s conftest.err'
14503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504   (eval $ac_try) 2>&5
14505   ac_status=$?
14506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507   (exit $ac_status); }; } &&
14508          { ac_try='test -s conftest$ac_exeext'
14509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510   (eval $ac_try) 2>&5
14511   ac_status=$?
14512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513   (exit $ac_status); }; }; then
14514   eval "$as_ac_var=yes"
14515 else
14516   echo "$as_me: failed program was:" >&5
14517 sed 's/^/| /' conftest.$ac_ext >&5
14518
14519 eval "$as_ac_var=no"
14520 fi
14521 rm -f conftest.err conftest.$ac_objext \
14522       conftest$ac_exeext conftest.$ac_ext
14523 fi
14524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14526 if test `eval echo '${'$as_ac_var'}'` = yes; then
14527   cat >>confdefs.h <<_ACEOF
14528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14529 _ACEOF
14530
14531 fi
14532 done
14533
14534
14535 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14536
14537 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14538 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14539 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14540   echo $ECHO_N "(cached) $ECHO_C" >&6
14541 else
14542   ac_check_lib_save_LIBS=$LIBS
14543 LIBS="-lV3  $LIBS"
14544 cat >conftest.$ac_ext <<_ACEOF
14545 /* confdefs.h.  */
14546 _ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h.  */
14550
14551 /* Override any gcc2 internal prototype to avoid an error.  */
14552 #ifdef __cplusplus
14553 extern "C"
14554 #endif
14555 /* We use char because int might match the return type of a gcc2
14556    builtin and then its argument prototype would still apply.  */
14557 char sigset ();
14558 int
14559 main ()
14560 {
14561 sigset ();
14562   ;
14563   return 0;
14564 }
14565 _ACEOF
14566 rm -f conftest.$ac_objext conftest$ac_exeext
14567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14568   (eval $ac_link) 2>conftest.er1
14569   ac_status=$?
14570   grep -v '^ *+' conftest.er1 >conftest.err
14571   rm -f conftest.er1
14572   cat conftest.err >&5
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); } &&
14575          { ac_try='test -z "$ac_c_werror_flag"
14576                          || test ! -s conftest.err'
14577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578   (eval $ac_try) 2>&5
14579   ac_status=$?
14580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581   (exit $ac_status); }; } &&
14582          { ac_try='test -s conftest$ac_exeext'
14583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584   (eval $ac_try) 2>&5
14585   ac_status=$?
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); }; }; then
14588   ac_cv_lib_V3_sigset=yes
14589 else
14590   echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14592
14593 ac_cv_lib_V3_sigset=no
14594 fi
14595 rm -f conftest.err conftest.$ac_objext \
14596       conftest$ac_exeext conftest.$ac_ext
14597 LIBS=$ac_check_lib_save_LIBS
14598 fi
14599 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14600 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14601 if test $ac_cv_lib_V3_sigset = yes; then
14602   cat >>confdefs.h <<_ACEOF
14603 #define HAVE_LIBV3 1
14604 _ACEOF
14605
14606   LIBS="-lV3 $LIBS"
14607
14608 fi
14609
14610 fi
14611
14612 if test "$ac_cv_header_winsock_h" = yes; then
14613 echo "$as_me:$LINENO: checking for winsock" >&5
14614 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14615 if test "${ol_cv_winsock+set}" = set; then
14616   echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618   save_LIBS="$LIBS"
14619 for curlib in ws2_32 wsock32; do
14620         LIBS="$LIBS -l$curlib"
14621         cat >conftest.$ac_ext <<_ACEOF
14622 /* confdefs.h.  */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h.  */
14627 #include <winsock.h>
14628
14629 int
14630 main ()
14631 {
14632
14633                         socket(0,0,0);
14634                         select(0,NULL,NULL,NULL,NULL);
14635                         closesocket(0);
14636                         gethostname(NULL,0);
14637
14638   ;
14639   return 0;
14640 }
14641 _ACEOF
14642 rm -f conftest.$ac_objext conftest$ac_exeext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14644   (eval $ac_link) 2>conftest.er1
14645   ac_status=$?
14646   grep -v '^ *+' conftest.er1 >conftest.err
14647   rm -f conftest.er1
14648   cat conftest.err >&5
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); } &&
14651          { ac_try='test -z "$ac_c_werror_flag"
14652                          || test ! -s conftest.err'
14653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654   (eval $ac_try) 2>&5
14655   ac_status=$?
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); }; } &&
14658          { ac_try='test -s conftest$ac_exeext'
14659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660   (eval $ac_try) 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); }; }; then
14664   ol_cv_winsock=yes
14665 else
14666   echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14668
14669 ol_cv_winsock=no
14670 fi
14671 rm -f conftest.err conftest.$ac_objext \
14672       conftest$ac_exeext conftest.$ac_ext
14673
14674         if test $ol_cv_winsock = yes; then
14675
14676 cat >>confdefs.h <<\_ACEOF
14677 #define HAVE_WINSOCK 1
14678 _ACEOF
14679
14680                 ac_cv_func_socket=yes
14681                 ac_cv_func_select=yes
14682                 ac_cv_func_closesocket=yes
14683                 ac_cv_func_gethostname=yes
14684                 if test $curlib = ws2_32; then
14685                         ol_cv_winsock=winsock2
14686
14687 cat >>confdefs.h <<\_ACEOF
14688 #define HAVE_WINSOCK2 1
14689 _ACEOF
14690
14691                 fi
14692                 break
14693         fi
14694         LIBS="$save_LIBS"
14695 done
14696 fi
14697 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14698 echo "${ECHO_T}$ol_cv_winsock" >&6
14699 fi
14700
14701
14702 echo "$as_me:$LINENO: checking for socket" >&5
14703 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14704 if test "${ac_cv_func_socket+set}" = set; then
14705   echo $ECHO_N "(cached) $ECHO_C" >&6
14706 else
14707   cat >conftest.$ac_ext <<_ACEOF
14708 /* confdefs.h.  */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h.  */
14713 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14715 #define socket innocuous_socket
14716
14717 /* System header to define __stub macros and hopefully few prototypes,
14718     which can conflict with char socket (); below.
14719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14720     <limits.h> exists even on freestanding compilers.  */
14721
14722 #ifdef __STDC__
14723 # include <limits.h>
14724 #else
14725 # include <assert.h>
14726 #endif
14727
14728 #undef socket
14729
14730 /* Override any gcc2 internal prototype to avoid an error.  */
14731 #ifdef __cplusplus
14732 extern "C"
14733 {
14734 #endif
14735 /* We use char because int might match the return type of a gcc2
14736    builtin and then its argument prototype would still apply.  */
14737 char socket ();
14738 /* The GNU C library defines this for functions which it implements
14739     to always fail with ENOSYS.  Some functions are actually named
14740     something starting with __ and the normal name is an alias.  */
14741 #if defined (__stub_socket) || defined (__stub___socket)
14742 choke me
14743 #else
14744 char (*f) () = socket;
14745 #endif
14746 #ifdef __cplusplus
14747 }
14748 #endif
14749
14750 int
14751 main ()
14752 {
14753 return f != socket;
14754   ;
14755   return 0;
14756 }
14757 _ACEOF
14758 rm -f conftest.$ac_objext conftest$ac_exeext
14759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14760   (eval $ac_link) 2>conftest.er1
14761   ac_status=$?
14762   grep -v '^ *+' conftest.er1 >conftest.err
14763   rm -f conftest.er1
14764   cat conftest.err >&5
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); } &&
14767          { ac_try='test -z "$ac_c_werror_flag"
14768                          || test ! -s conftest.err'
14769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770   (eval $ac_try) 2>&5
14771   ac_status=$?
14772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773   (exit $ac_status); }; } &&
14774          { ac_try='test -s conftest$ac_exeext'
14775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776   (eval $ac_try) 2>&5
14777   ac_status=$?
14778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   (exit $ac_status); }; }; then
14780   ac_cv_func_socket=yes
14781 else
14782   echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14784
14785 ac_cv_func_socket=no
14786 fi
14787 rm -f conftest.err conftest.$ac_objext \
14788       conftest$ac_exeext conftest.$ac_ext
14789 fi
14790 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14791 echo "${ECHO_T}$ac_cv_func_socket" >&6
14792 if test $ac_cv_func_socket = yes; then
14793   :
14794 else
14795
14796
14797 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14798 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14799 if test "${ac_cv_lib_socket_main+set}" = set; then
14800   echo $ECHO_N "(cached) $ECHO_C" >&6
14801 else
14802   ac_check_lib_save_LIBS=$LIBS
14803 LIBS="-lsocket  $LIBS"
14804 cat >conftest.$ac_ext <<_ACEOF
14805 /* confdefs.h.  */
14806 _ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h.  */
14810
14811
14812 int
14813 main ()
14814 {
14815 main ();
14816   ;
14817   return 0;
14818 }
14819 _ACEOF
14820 rm -f conftest.$ac_objext conftest$ac_exeext
14821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14822   (eval $ac_link) 2>conftest.er1
14823   ac_status=$?
14824   grep -v '^ *+' conftest.er1 >conftest.err
14825   rm -f conftest.er1
14826   cat conftest.err >&5
14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); } &&
14829          { ac_try='test -z "$ac_c_werror_flag"
14830                          || test ! -s conftest.err'
14831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832   (eval $ac_try) 2>&5
14833   ac_status=$?
14834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835   (exit $ac_status); }; } &&
14836          { ac_try='test -s conftest$ac_exeext'
14837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838   (eval $ac_try) 2>&5
14839   ac_status=$?
14840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); }; }; then
14842   ac_cv_lib_socket_main=yes
14843 else
14844   echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14846
14847 ac_cv_lib_socket_main=no
14848 fi
14849 rm -f conftest.err conftest.$ac_objext \
14850       conftest$ac_exeext conftest.$ac_ext
14851 LIBS=$ac_check_lib_save_LIBS
14852 fi
14853 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14854 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14855 if test $ac_cv_lib_socket_main = yes; then
14856   cat >>confdefs.h <<_ACEOF
14857 #define HAVE_LIBSOCKET 1
14858 _ACEOF
14859
14860   LIBS="-lsocket $LIBS"
14861
14862 fi
14863
14864
14865 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14866 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14867 if test "${ac_cv_lib_net_main+set}" = set; then
14868   echo $ECHO_N "(cached) $ECHO_C" >&6
14869 else
14870   ac_check_lib_save_LIBS=$LIBS
14871 LIBS="-lnet  $LIBS"
14872 cat >conftest.$ac_ext <<_ACEOF
14873 /* confdefs.h.  */
14874 _ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h.  */
14878
14879
14880 int
14881 main ()
14882 {
14883 main ();
14884   ;
14885   return 0;
14886 }
14887 _ACEOF
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14890   (eval $ac_link) 2>conftest.er1
14891   ac_status=$?
14892   grep -v '^ *+' conftest.er1 >conftest.err
14893   rm -f conftest.er1
14894   cat conftest.err >&5
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); } &&
14897          { ac_try='test -z "$ac_c_werror_flag"
14898                          || test ! -s conftest.err'
14899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900   (eval $ac_try) 2>&5
14901   ac_status=$?
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); }; } &&
14904          { ac_try='test -s conftest$ac_exeext'
14905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906   (eval $ac_try) 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); }; }; then
14910   ac_cv_lib_net_main=yes
14911 else
14912   echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14914
14915 ac_cv_lib_net_main=no
14916 fi
14917 rm -f conftest.err conftest.$ac_objext \
14918       conftest$ac_exeext conftest.$ac_ext
14919 LIBS=$ac_check_lib_save_LIBS
14920 fi
14921 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14922 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14923 if test $ac_cv_lib_net_main = yes; then
14924   cat >>confdefs.h <<_ACEOF
14925 #define HAVE_LIBNET 1
14926 _ACEOF
14927
14928   LIBS="-lnet $LIBS"
14929
14930 fi
14931
14932
14933 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14934 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14935 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14936   echo $ECHO_N "(cached) $ECHO_C" >&6
14937 else
14938   ac_check_lib_save_LIBS=$LIBS
14939 LIBS="-lnsl_s  $LIBS"
14940 cat >conftest.$ac_ext <<_ACEOF
14941 /* confdefs.h.  */
14942 _ACEOF
14943 cat confdefs.h >>conftest.$ac_ext
14944 cat >>conftest.$ac_ext <<_ACEOF
14945 /* end confdefs.h.  */
14946
14947
14948 int
14949 main ()
14950 {
14951 main ();
14952   ;
14953   return 0;
14954 }
14955 _ACEOF
14956 rm -f conftest.$ac_objext conftest$ac_exeext
14957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14958   (eval $ac_link) 2>conftest.er1
14959   ac_status=$?
14960   grep -v '^ *+' conftest.er1 >conftest.err
14961   rm -f conftest.er1
14962   cat conftest.err >&5
14963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964   (exit $ac_status); } &&
14965          { ac_try='test -z "$ac_c_werror_flag"
14966                          || test ! -s conftest.err'
14967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968   (eval $ac_try) 2>&5
14969   ac_status=$?
14970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971   (exit $ac_status); }; } &&
14972          { ac_try='test -s conftest$ac_exeext'
14973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974   (eval $ac_try) 2>&5
14975   ac_status=$?
14976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977   (exit $ac_status); }; }; then
14978   ac_cv_lib_nsl_s_main=yes
14979 else
14980   echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14982
14983 ac_cv_lib_nsl_s_main=no
14984 fi
14985 rm -f conftest.err conftest.$ac_objext \
14986       conftest$ac_exeext conftest.$ac_ext
14987 LIBS=$ac_check_lib_save_LIBS
14988 fi
14989 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14990 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14991 if test $ac_cv_lib_nsl_s_main = yes; then
14992   cat >>confdefs.h <<_ACEOF
14993 #define HAVE_LIBNSL_S 1
14994 _ACEOF
14995
14996   LIBS="-lnsl_s $LIBS"
14997
14998 fi
14999
15000
15001 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15002 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15003 if test "${ac_cv_lib_nsl_main+set}" = set; then
15004   echo $ECHO_N "(cached) $ECHO_C" >&6
15005 else
15006   ac_check_lib_save_LIBS=$LIBS
15007 LIBS="-lnsl  $LIBS"
15008 cat >conftest.$ac_ext <<_ACEOF
15009 /* confdefs.h.  */
15010 _ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h.  */
15014
15015
15016 int
15017 main ()
15018 {
15019 main ();
15020   ;
15021   return 0;
15022 }
15023 _ACEOF
15024 rm -f conftest.$ac_objext conftest$ac_exeext
15025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15026   (eval $ac_link) 2>conftest.er1
15027   ac_status=$?
15028   grep -v '^ *+' conftest.er1 >conftest.err
15029   rm -f conftest.er1
15030   cat conftest.err >&5
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); } &&
15033          { ac_try='test -z "$ac_c_werror_flag"
15034                          || test ! -s conftest.err'
15035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036   (eval $ac_try) 2>&5
15037   ac_status=$?
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); }; } &&
15040          { ac_try='test -s conftest$ac_exeext'
15041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042   (eval $ac_try) 2>&5
15043   ac_status=$?
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); }; }; then
15046   ac_cv_lib_nsl_main=yes
15047 else
15048   echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15050
15051 ac_cv_lib_nsl_main=no
15052 fi
15053 rm -f conftest.err conftest.$ac_objext \
15054       conftest$ac_exeext conftest.$ac_ext
15055 LIBS=$ac_check_lib_save_LIBS
15056 fi
15057 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15058 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15059 if test $ac_cv_lib_nsl_main = yes; then
15060   cat >>confdefs.h <<_ACEOF
15061 #define HAVE_LIBNSL 1
15062 _ACEOF
15063
15064   LIBS="-lnsl $LIBS"
15065
15066 fi
15067
15068
15069 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15070 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15071 if test "${ac_cv_lib_inet_socket+set}" = set; then
15072   echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074   ac_check_lib_save_LIBS=$LIBS
15075 LIBS="-linet  $LIBS"
15076 cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h.  */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h.  */
15082
15083 /* Override any gcc2 internal prototype to avoid an error.  */
15084 #ifdef __cplusplus
15085 extern "C"
15086 #endif
15087 /* We use char because int might match the return type of a gcc2
15088    builtin and then its argument prototype would still apply.  */
15089 char socket ();
15090 int
15091 main ()
15092 {
15093 socket ();
15094   ;
15095   return 0;
15096 }
15097 _ACEOF
15098 rm -f conftest.$ac_objext conftest$ac_exeext
15099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15100   (eval $ac_link) 2>conftest.er1
15101   ac_status=$?
15102   grep -v '^ *+' conftest.er1 >conftest.err
15103   rm -f conftest.er1
15104   cat conftest.err >&5
15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106   (exit $ac_status); } &&
15107          { ac_try='test -z "$ac_c_werror_flag"
15108                          || test ! -s conftest.err'
15109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110   (eval $ac_try) 2>&5
15111   ac_status=$?
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); }; } &&
15114          { ac_try='test -s conftest$ac_exeext'
15115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116   (eval $ac_try) 2>&5
15117   ac_status=$?
15118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119   (exit $ac_status); }; }; then
15120   ac_cv_lib_inet_socket=yes
15121 else
15122   echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15124
15125 ac_cv_lib_inet_socket=no
15126 fi
15127 rm -f conftest.err conftest.$ac_objext \
15128       conftest$ac_exeext conftest.$ac_ext
15129 LIBS=$ac_check_lib_save_LIBS
15130 fi
15131 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15132 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15133 if test $ac_cv_lib_inet_socket = yes; then
15134   cat >>confdefs.h <<_ACEOF
15135 #define HAVE_LIBINET 1
15136 _ACEOF
15137
15138   LIBS="-linet $LIBS"
15139
15140 fi
15141
15142
15143 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15144 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15145 if test "${ac_cv_lib_gen_main+set}" = set; then
15146   echo $ECHO_N "(cached) $ECHO_C" >&6
15147 else
15148   ac_check_lib_save_LIBS=$LIBS
15149 LIBS="-lgen  $LIBS"
15150 cat >conftest.$ac_ext <<_ACEOF
15151 /* confdefs.h.  */
15152 _ACEOF
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h.  */
15156
15157
15158 int
15159 main ()
15160 {
15161 main ();
15162   ;
15163   return 0;
15164 }
15165 _ACEOF
15166 rm -f conftest.$ac_objext conftest$ac_exeext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15168   (eval $ac_link) 2>conftest.er1
15169   ac_status=$?
15170   grep -v '^ *+' conftest.er1 >conftest.err
15171   rm -f conftest.er1
15172   cat conftest.err >&5
15173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174   (exit $ac_status); } &&
15175          { ac_try='test -z "$ac_c_werror_flag"
15176                          || test ! -s conftest.err'
15177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178   (eval $ac_try) 2>&5
15179   ac_status=$?
15180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181   (exit $ac_status); }; } &&
15182          { ac_try='test -s conftest$ac_exeext'
15183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184   (eval $ac_try) 2>&5
15185   ac_status=$?
15186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); }; }; then
15188   ac_cv_lib_gen_main=yes
15189 else
15190   echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15192
15193 ac_cv_lib_gen_main=no
15194 fi
15195 rm -f conftest.err conftest.$ac_objext \
15196       conftest$ac_exeext conftest.$ac_ext
15197 LIBS=$ac_check_lib_save_LIBS
15198 fi
15199 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15200 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15201 if test $ac_cv_lib_gen_main = yes; then
15202   cat >>confdefs.h <<_ACEOF
15203 #define HAVE_LIBGEN 1
15204 _ACEOF
15205
15206   LIBS="-lgen $LIBS"
15207
15208 fi
15209
15210
15211 fi
15212
15213
15214 echo "$as_me:$LINENO: checking for select" >&5
15215 echo $ECHO_N "checking for select... $ECHO_C" >&6
15216 if test "${ac_cv_func_select+set}" = set; then
15217   echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219   cat >conftest.$ac_ext <<_ACEOF
15220 /* confdefs.h.  */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h.  */
15225 /* Define select to an innocuous variant, in case <limits.h> declares select.
15226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15227 #define select innocuous_select
15228
15229 /* System header to define __stub macros and hopefully few prototypes,
15230     which can conflict with char select (); below.
15231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15232     <limits.h> exists even on freestanding compilers.  */
15233
15234 #ifdef __STDC__
15235 # include <limits.h>
15236 #else
15237 # include <assert.h>
15238 #endif
15239
15240 #undef select
15241
15242 /* Override any gcc2 internal prototype to avoid an error.  */
15243 #ifdef __cplusplus
15244 extern "C"
15245 {
15246 #endif
15247 /* We use char because int might match the return type of a gcc2
15248    builtin and then its argument prototype would still apply.  */
15249 char select ();
15250 /* The GNU C library defines this for functions which it implements
15251     to always fail with ENOSYS.  Some functions are actually named
15252     something starting with __ and the normal name is an alias.  */
15253 #if defined (__stub_select) || defined (__stub___select)
15254 choke me
15255 #else
15256 char (*f) () = select;
15257 #endif
15258 #ifdef __cplusplus
15259 }
15260 #endif
15261
15262 int
15263 main ()
15264 {
15265 return f != select;
15266   ;
15267   return 0;
15268 }
15269 _ACEOF
15270 rm -f conftest.$ac_objext conftest$ac_exeext
15271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15272   (eval $ac_link) 2>conftest.er1
15273   ac_status=$?
15274   grep -v '^ *+' conftest.er1 >conftest.err
15275   rm -f conftest.er1
15276   cat conftest.err >&5
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); } &&
15279          { ac_try='test -z "$ac_c_werror_flag"
15280                          || test ! -s conftest.err'
15281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282   (eval $ac_try) 2>&5
15283   ac_status=$?
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); }; } &&
15286          { ac_try='test -s conftest$ac_exeext'
15287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288   (eval $ac_try) 2>&5
15289   ac_status=$?
15290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291   (exit $ac_status); }; }; then
15292   ac_cv_func_select=yes
15293 else
15294   echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.$ac_ext >&5
15296
15297 ac_cv_func_select=no
15298 fi
15299 rm -f conftest.err conftest.$ac_objext \
15300       conftest$ac_exeext conftest.$ac_ext
15301 fi
15302 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15303 echo "${ECHO_T}$ac_cv_func_select" >&6
15304 if test $ac_cv_func_select = yes; then
15305   :
15306 else
15307   { { echo "$as_me:$LINENO: error: select() required." >&5
15308 echo "$as_me: error: select() required." >&2;}
15309    { (exit 1); exit 1; }; }
15310 fi
15311
15312
15313 if test "${ac_cv_header_winsock_h}" != yes; then
15314
15315
15316 for ac_header in sys/select.h sys/socket.h
15317 do
15318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15320   echo "$as_me:$LINENO: checking for $ac_header" >&5
15321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15323   echo $ECHO_N "(cached) $ECHO_C" >&6
15324 fi
15325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15327 else
15328   # Is the header compilable?
15329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15331 cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h.  */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h.  */
15337 $ac_includes_default
15338 #include <$ac_header>
15339 _ACEOF
15340 rm -f conftest.$ac_objext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342   (eval $ac_compile) 2>conftest.er1
15343   ac_status=$?
15344   grep -v '^ *+' conftest.er1 >conftest.err
15345   rm -f conftest.er1
15346   cat conftest.err >&5
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); } &&
15349          { ac_try='test -z "$ac_c_werror_flag"
15350                          || test ! -s conftest.err'
15351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352   (eval $ac_try) 2>&5
15353   ac_status=$?
15354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); }; } &&
15356          { ac_try='test -s conftest.$ac_objext'
15357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358   (eval $ac_try) 2>&5
15359   ac_status=$?
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); }; }; then
15362   ac_header_compiler=yes
15363 else
15364   echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15366
15367 ac_header_compiler=no
15368 fi
15369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15371 echo "${ECHO_T}$ac_header_compiler" >&6
15372
15373 # Is the header present?
15374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15376 cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h.  */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h.  */
15382 #include <$ac_header>
15383 _ACEOF
15384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15385   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15386   ac_status=$?
15387   grep -v '^ *+' conftest.er1 >conftest.err
15388   rm -f conftest.er1
15389   cat conftest.err >&5
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); } >/dev/null; then
15392   if test -s conftest.err; then
15393     ac_cpp_err=$ac_c_preproc_warn_flag
15394     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15395   else
15396     ac_cpp_err=
15397   fi
15398 else
15399   ac_cpp_err=yes
15400 fi
15401 if test -z "$ac_cpp_err"; then
15402   ac_header_preproc=yes
15403 else
15404   echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15406
15407   ac_header_preproc=no
15408 fi
15409 rm -f conftest.err conftest.$ac_ext
15410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15411 echo "${ECHO_T}$ac_header_preproc" >&6
15412
15413 # So?  What about this header?
15414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15415   yes:no: )
15416     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15420     ac_header_preproc=yes
15421     ;;
15422   no:yes:* )
15423     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15425     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15426 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15427     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15429     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15430 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15433     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15435     (
15436       cat <<\_ASBOX
15437 ## --------------------------------------------- ##
15438 ## Report this to <http://www.openldap.org/its/> ##
15439 ## --------------------------------------------- ##
15440 _ASBOX
15441     ) |
15442       sed "s/^/$as_me: WARNING:     /" >&2
15443     ;;
15444 esac
15445 echo "$as_me:$LINENO: checking for $ac_header" >&5
15446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15448   echo $ECHO_N "(cached) $ECHO_C" >&6
15449 else
15450   eval "$as_ac_Header=\$ac_header_preproc"
15451 fi
15452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15454
15455 fi
15456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15457   cat >>confdefs.h <<_ACEOF
15458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15459 _ACEOF
15460
15461 fi
15462
15463 done
15464
15465 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15466 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15467 if test "${ac_cv_func_select_args+set}" = set; then
15468   echo $ECHO_N "(cached) $ECHO_C" >&6
15469 else
15470   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15471  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15472   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15473    cat >conftest.$ac_ext <<_ACEOF
15474 /* confdefs.h.  */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h.  */
15479 $ac_includes_default
15480 #if HAVE_SYS_SELECT_H
15481 # include <sys/select.h>
15482 #endif
15483 #if HAVE_SYS_SOCKET_H
15484 # include <sys/socket.h>
15485 #endif
15486
15487 int
15488 main ()
15489 {
15490 extern int select ($ac_arg1,
15491                                             $ac_arg234, $ac_arg234, $ac_arg234,
15492                                             $ac_arg5);
15493   ;
15494   return 0;
15495 }
15496 _ACEOF
15497 rm -f conftest.$ac_objext
15498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15499   (eval $ac_compile) 2>conftest.er1
15500   ac_status=$?
15501   grep -v '^ *+' conftest.er1 >conftest.err
15502   rm -f conftest.er1
15503   cat conftest.err >&5
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); } &&
15506          { ac_try='test -z "$ac_c_werror_flag"
15507                          || test ! -s conftest.err'
15508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509   (eval $ac_try) 2>&5
15510   ac_status=$?
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); }; } &&
15513          { ac_try='test -s conftest.$ac_objext'
15514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515   (eval $ac_try) 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); }; }; then
15519   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15520 else
15521   echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15523
15524 fi
15525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15526   done
15527  done
15528 done
15529 # Provide a safe default value.
15530 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15531
15532 fi
15533 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15534 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15535 ac_save_IFS=$IFS; IFS=','
15536 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15537 IFS=$ac_save_IFS
15538 shift
15539
15540 cat >>confdefs.h <<_ACEOF
15541 #define SELECT_TYPE_ARG1 $1
15542 _ACEOF
15543
15544
15545 cat >>confdefs.h <<_ACEOF
15546 #define SELECT_TYPE_ARG234 ($2)
15547 _ACEOF
15548
15549
15550 cat >>confdefs.h <<_ACEOF
15551 #define SELECT_TYPE_ARG5 ($3)
15552 _ACEOF
15553
15554 rm -f conftest*
15555
15556 fi
15557
15558
15559
15560 for ac_func in poll
15561 do
15562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15563 echo "$as_me:$LINENO: checking for $ac_func" >&5
15564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15565 if eval "test \"\${$as_ac_var+set}\" = set"; then
15566   echo $ECHO_N "(cached) $ECHO_C" >&6
15567 else
15568   cat >conftest.$ac_ext <<_ACEOF
15569 /* confdefs.h.  */
15570 _ACEOF
15571 cat confdefs.h >>conftest.$ac_ext
15572 cat >>conftest.$ac_ext <<_ACEOF
15573 /* end confdefs.h.  */
15574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15576 #define $ac_func innocuous_$ac_func
15577
15578 /* System header to define __stub macros and hopefully few prototypes,
15579     which can conflict with char $ac_func (); below.
15580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15581     <limits.h> exists even on freestanding compilers.  */
15582
15583 #ifdef __STDC__
15584 # include <limits.h>
15585 #else
15586 # include <assert.h>
15587 #endif
15588
15589 #undef $ac_func
15590
15591 /* Override any gcc2 internal prototype to avoid an error.  */
15592 #ifdef __cplusplus
15593 extern "C"
15594 {
15595 #endif
15596 /* We use char because int might match the return type of a gcc2
15597    builtin and then its argument prototype would still apply.  */
15598 char $ac_func ();
15599 /* The GNU C library defines this for functions which it implements
15600     to always fail with ENOSYS.  Some functions are actually named
15601     something starting with __ and the normal name is an alias.  */
15602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15603 choke me
15604 #else
15605 char (*f) () = $ac_func;
15606 #endif
15607 #ifdef __cplusplus
15608 }
15609 #endif
15610
15611 int
15612 main ()
15613 {
15614 return f != $ac_func;
15615   ;
15616   return 0;
15617 }
15618 _ACEOF
15619 rm -f conftest.$ac_objext conftest$ac_exeext
15620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15621   (eval $ac_link) 2>conftest.er1
15622   ac_status=$?
15623   grep -v '^ *+' conftest.er1 >conftest.err
15624   rm -f conftest.er1
15625   cat conftest.err >&5
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); } &&
15628          { ac_try='test -z "$ac_c_werror_flag"
15629                          || test ! -s conftest.err'
15630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631   (eval $ac_try) 2>&5
15632   ac_status=$?
15633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634   (exit $ac_status); }; } &&
15635          { ac_try='test -s conftest$ac_exeext'
15636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637   (eval $ac_try) 2>&5
15638   ac_status=$?
15639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); }; }; then
15641   eval "$as_ac_var=yes"
15642 else
15643   echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15645
15646 eval "$as_ac_var=no"
15647 fi
15648 rm -f conftest.err conftest.$ac_objext \
15649       conftest$ac_exeext conftest.$ac_ext
15650 fi
15651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15653 if test `eval echo '${'$as_ac_var'}'` = yes; then
15654   cat >>confdefs.h <<_ACEOF
15655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15656 _ACEOF
15657
15658 fi
15659 done
15660
15661 if test $ac_cv_func_poll = yes; then
15662
15663
15664 for ac_header in poll.h sys/poll.h
15665 do
15666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15668   echo "$as_me:$LINENO: checking for $ac_header" >&5
15669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15671   echo $ECHO_N "(cached) $ECHO_C" >&6
15672 fi
15673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15675 else
15676   # Is the header compilable?
15677 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15679 cat >conftest.$ac_ext <<_ACEOF
15680 /* confdefs.h.  */
15681 _ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h.  */
15685 $ac_includes_default
15686 #include <$ac_header>
15687 _ACEOF
15688 rm -f conftest.$ac_objext
15689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15690   (eval $ac_compile) 2>conftest.er1
15691   ac_status=$?
15692   grep -v '^ *+' conftest.er1 >conftest.err
15693   rm -f conftest.er1
15694   cat conftest.err >&5
15695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); } &&
15697          { ac_try='test -z "$ac_c_werror_flag"
15698                          || test ! -s conftest.err'
15699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700   (eval $ac_try) 2>&5
15701   ac_status=$?
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); }; } &&
15704          { ac_try='test -s conftest.$ac_objext'
15705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706   (eval $ac_try) 2>&5
15707   ac_status=$?
15708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709   (exit $ac_status); }; }; then
15710   ac_header_compiler=yes
15711 else
15712   echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.$ac_ext >&5
15714
15715 ac_header_compiler=no
15716 fi
15717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15719 echo "${ECHO_T}$ac_header_compiler" >&6
15720
15721 # Is the header present?
15722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15724 cat >conftest.$ac_ext <<_ACEOF
15725 /* confdefs.h.  */
15726 _ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h.  */
15730 #include <$ac_header>
15731 _ACEOF
15732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15733   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15734   ac_status=$?
15735   grep -v '^ *+' conftest.er1 >conftest.err
15736   rm -f conftest.er1
15737   cat conftest.err >&5
15738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739   (exit $ac_status); } >/dev/null; then
15740   if test -s conftest.err; then
15741     ac_cpp_err=$ac_c_preproc_warn_flag
15742     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15743   else
15744     ac_cpp_err=
15745   fi
15746 else
15747   ac_cpp_err=yes
15748 fi
15749 if test -z "$ac_cpp_err"; then
15750   ac_header_preproc=yes
15751 else
15752   echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15754
15755   ac_header_preproc=no
15756 fi
15757 rm -f conftest.err conftest.$ac_ext
15758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15759 echo "${ECHO_T}$ac_header_preproc" >&6
15760
15761 # So?  What about this header?
15762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15763   yes:no: )
15764     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15768     ac_header_preproc=yes
15769     ;;
15770   no:yes:* )
15771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15773     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15774 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15775     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15777     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15778 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15781     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15783     (
15784       cat <<\_ASBOX
15785 ## --------------------------------------------- ##
15786 ## Report this to <http://www.openldap.org/its/> ##
15787 ## --------------------------------------------- ##
15788 _ASBOX
15789     ) |
15790       sed "s/^/$as_me: WARNING:     /" >&2
15791     ;;
15792 esac
15793 echo "$as_me:$LINENO: checking for $ac_header" >&5
15794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15796   echo $ECHO_N "(cached) $ECHO_C" >&6
15797 else
15798   eval "$as_ac_Header=\$ac_header_preproc"
15799 fi
15800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15802
15803 fi
15804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15805   cat >>confdefs.h <<_ACEOF
15806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15807 _ACEOF
15808
15809 fi
15810
15811 done
15812
15813 fi
15814
15815
15816 for ac_header in sys/epoll.h
15817 do
15818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15820   echo "$as_me:$LINENO: checking for $ac_header" >&5
15821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15823   echo $ECHO_N "(cached) $ECHO_C" >&6
15824 fi
15825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15827 else
15828   # Is the header compilable?
15829 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15831 cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h.  */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h.  */
15837 $ac_includes_default
15838 #include <$ac_header>
15839 _ACEOF
15840 rm -f conftest.$ac_objext
15841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15842   (eval $ac_compile) 2>conftest.er1
15843   ac_status=$?
15844   grep -v '^ *+' conftest.er1 >conftest.err
15845   rm -f conftest.er1
15846   cat conftest.err >&5
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); } &&
15849          { ac_try='test -z "$ac_c_werror_flag"
15850                          || test ! -s conftest.err'
15851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852   (eval $ac_try) 2>&5
15853   ac_status=$?
15854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); }; } &&
15856          { ac_try='test -s conftest.$ac_objext'
15857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858   (eval $ac_try) 2>&5
15859   ac_status=$?
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); }; }; then
15862   ac_header_compiler=yes
15863 else
15864   echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15866
15867 ac_header_compiler=no
15868 fi
15869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15871 echo "${ECHO_T}$ac_header_compiler" >&6
15872
15873 # Is the header present?
15874 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h.  */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h.  */
15882 #include <$ac_header>
15883 _ACEOF
15884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15885   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15886   ac_status=$?
15887   grep -v '^ *+' conftest.er1 >conftest.err
15888   rm -f conftest.er1
15889   cat conftest.err >&5
15890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891   (exit $ac_status); } >/dev/null; then
15892   if test -s conftest.err; then
15893     ac_cpp_err=$ac_c_preproc_warn_flag
15894     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15895   else
15896     ac_cpp_err=
15897   fi
15898 else
15899   ac_cpp_err=yes
15900 fi
15901 if test -z "$ac_cpp_err"; then
15902   ac_header_preproc=yes
15903 else
15904   echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15906
15907   ac_header_preproc=no
15908 fi
15909 rm -f conftest.err conftest.$ac_ext
15910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15911 echo "${ECHO_T}$ac_header_preproc" >&6
15912
15913 # So?  What about this header?
15914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15915   yes:no: )
15916     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15920     ac_header_preproc=yes
15921     ;;
15922   no:yes:* )
15923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15925     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15926 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15927     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15929     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15930 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15933     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15935     (
15936       cat <<\_ASBOX
15937 ## --------------------------------------------- ##
15938 ## Report this to <http://www.openldap.org/its/> ##
15939 ## --------------------------------------------- ##
15940 _ASBOX
15941     ) |
15942       sed "s/^/$as_me: WARNING:     /" >&2
15943     ;;
15944 esac
15945 echo "$as_me:$LINENO: checking for $ac_header" >&5
15946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15948   echo $ECHO_N "(cached) $ECHO_C" >&6
15949 else
15950   eval "$as_ac_Header=\$ac_header_preproc"
15951 fi
15952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15954
15955 fi
15956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15957   cat >>confdefs.h <<_ACEOF
15958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15959 _ACEOF
15960
15961 fi
15962
15963 done
15964
15965 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15966         echo "$as_me:$LINENO: checking for epoll system call" >&5
15967 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15968         if test "$cross_compiling" = yes; then
15969   echo "$as_me:$LINENO: result: no" >&5
15970 echo "${ECHO_T}no" >&6
15971 else
15972   cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h.  */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h.  */
15978 int main(int argc, char **argv)
15979 {
15980         int epfd = epoll_create(256);
15981         exit (epfd == -1 ? 1 : 0);
15982 }
15983 _ACEOF
15984 rm -f conftest$ac_exeext
15985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15986   (eval $ac_link) 2>&5
15987   ac_status=$?
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991   (eval $ac_try) 2>&5
15992   ac_status=$?
15993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); }; }; then
15995   echo "$as_me:$LINENO: result: yes" >&5
15996 echo "${ECHO_T}yes" >&6
15997
15998 cat >>confdefs.h <<\_ACEOF
15999 #define HAVE_EPOLL 1
16000 _ACEOF
16001
16002 else
16003   echo "$as_me: program exited with status $ac_status" >&5
16004 echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16006
16007 ( exit $ac_status )
16008 echo "$as_me:$LINENO: result: no" >&5
16009 echo "${ECHO_T}no" >&6
16010 fi
16011 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16012 fi
16013 fi
16014
16015
16016 for ac_header in sys/devpoll.h
16017 do
16018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16020   echo "$as_me:$LINENO: checking for $ac_header" >&5
16021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16023   echo $ECHO_N "(cached) $ECHO_C" >&6
16024 fi
16025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16027 else
16028   # Is the header compilable?
16029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16031 cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h.  */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h.  */
16037 $ac_includes_default
16038 #include <$ac_header>
16039 _ACEOF
16040 rm -f conftest.$ac_objext
16041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16042   (eval $ac_compile) 2>conftest.er1
16043   ac_status=$?
16044   grep -v '^ *+' conftest.er1 >conftest.err
16045   rm -f conftest.er1
16046   cat conftest.err >&5
16047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048   (exit $ac_status); } &&
16049          { ac_try='test -z "$ac_c_werror_flag"
16050                          || test ! -s conftest.err'
16051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052   (eval $ac_try) 2>&5
16053   ac_status=$?
16054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055   (exit $ac_status); }; } &&
16056          { ac_try='test -s conftest.$ac_objext'
16057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058   (eval $ac_try) 2>&5
16059   ac_status=$?
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); }; }; then
16062   ac_header_compiler=yes
16063 else
16064   echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16066
16067 ac_header_compiler=no
16068 fi
16069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16071 echo "${ECHO_T}$ac_header_compiler" >&6
16072
16073 # Is the header present?
16074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16076 cat >conftest.$ac_ext <<_ACEOF
16077 /* confdefs.h.  */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h.  */
16082 #include <$ac_header>
16083 _ACEOF
16084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16085   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16086   ac_status=$?
16087   grep -v '^ *+' conftest.er1 >conftest.err
16088   rm -f conftest.er1
16089   cat conftest.err >&5
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); } >/dev/null; then
16092   if test -s conftest.err; then
16093     ac_cpp_err=$ac_c_preproc_warn_flag
16094     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16095   else
16096     ac_cpp_err=
16097   fi
16098 else
16099   ac_cpp_err=yes
16100 fi
16101 if test -z "$ac_cpp_err"; then
16102   ac_header_preproc=yes
16103 else
16104   echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16106
16107   ac_header_preproc=no
16108 fi
16109 rm -f conftest.err conftest.$ac_ext
16110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16111 echo "${ECHO_T}$ac_header_preproc" >&6
16112
16113 # So?  What about this header?
16114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16115   yes:no: )
16116     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16120     ac_header_preproc=yes
16121     ;;
16122   no:yes:* )
16123     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16125     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16126 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16127     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16129     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16130 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16131     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16133     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16135     (
16136       cat <<\_ASBOX
16137 ## --------------------------------------------- ##
16138 ## Report this to <http://www.openldap.org/its/> ##
16139 ## --------------------------------------------- ##
16140 _ASBOX
16141     ) |
16142       sed "s/^/$as_me: WARNING:     /" >&2
16143     ;;
16144 esac
16145 echo "$as_me:$LINENO: checking for $ac_header" >&5
16146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16148   echo $ECHO_N "(cached) $ECHO_C" >&6
16149 else
16150   eval "$as_ac_Header=\$ac_header_preproc"
16151 fi
16152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16154
16155 fi
16156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16157   cat >>confdefs.h <<_ACEOF
16158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16159 _ACEOF
16160
16161 fi
16162
16163 done
16164
16165 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16166                 -a "${ac_cv_header_poll_h}" = yes ; \
16167 then
16168         echo "$as_me:$LINENO: checking for /dev/poll" >&5
16169 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16170         if test "$cross_compiling" = yes; then
16171   echo "$as_me:$LINENO: result: no" >&5
16172 echo "${ECHO_T}no" >&6
16173 else
16174   cat >conftest.$ac_ext <<_ACEOF
16175 /* confdefs.h.  */
16176 _ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h.  */
16180 int main(int argc, char **argv)
16181 {
16182         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16183         exit (devpollfd == -1 ? 1 : 0);
16184 }
16185 _ACEOF
16186 rm -f conftest$ac_exeext
16187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16188   (eval $ac_link) 2>&5
16189   ac_status=$?
16190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193   (eval $ac_try) 2>&5
16194   ac_status=$?
16195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196   (exit $ac_status); }; }; then
16197   echo "$as_me:$LINENO: result: yes" >&5
16198 echo "${ECHO_T}yes" >&6
16199
16200 cat >>confdefs.h <<\_ACEOF
16201 #define HAVE_DEVPOLL 1
16202 _ACEOF
16203
16204 else
16205   echo "$as_me: program exited with status $ac_status" >&5
16206 echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16208
16209 ( exit $ac_status )
16210 echo "$as_me:$LINENO: result: no" >&5
16211 echo "${ECHO_T}no" >&6
16212 fi
16213 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16214 fi
16215 fi
16216
16217 # strerror checks
16218 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16219 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16220 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16221   echo $ECHO_N "(cached) $ECHO_C" >&6
16222 else
16223
16224         cat >conftest.$ac_ext <<_ACEOF
16225 /* confdefs.h.  */
16226 _ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h.  */
16230
16231 #include <stdio.h>
16232 #include <sys/types.h>
16233 #include <errno.h>
16234 #ifdef _WIN32
16235 #include <stdlib.h>
16236 #endif
16237 int
16238 main ()
16239 {
16240 char *c = (char *) *sys_errlist
16241   ;
16242   return 0;
16243 }
16244 _ACEOF
16245 rm -f conftest.$ac_objext
16246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16247   (eval $ac_compile) 2>conftest.er1
16248   ac_status=$?
16249   grep -v '^ *+' conftest.er1 >conftest.err
16250   rm -f conftest.er1
16251   cat conftest.err >&5
16252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253   (exit $ac_status); } &&
16254          { ac_try='test -z "$ac_c_werror_flag"
16255                          || test ! -s conftest.err'
16256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257   (eval $ac_try) 2>&5
16258   ac_status=$?
16259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260   (exit $ac_status); }; } &&
16261          { ac_try='test -s conftest.$ac_objext'
16262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263   (eval $ac_try) 2>&5
16264   ac_status=$?
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); }; }; then
16267   ol_cv_dcl_sys_errlist=yes
16268         ol_cv_have_sys_errlist=yes
16269 else
16270   echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16272
16273 ol_cv_dcl_sys_errlist=no
16274 fi
16275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16276 fi
16277 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16278 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16279 #
16280 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16281 if test $ol_cv_dcl_sys_errlist = no ; then
16282
16283 cat >>confdefs.h <<\_ACEOF
16284 #define DECL_SYS_ERRLIST 1
16285 _ACEOF
16286
16287
16288         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16289 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16290 if test "${ol_cv_have_sys_errlist+set}" = set; then
16291   echo $ECHO_N "(cached) $ECHO_C" >&6
16292 else
16293
16294                 cat >conftest.$ac_ext <<_ACEOF
16295 /* confdefs.h.  */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h.  */
16300 #include <errno.h>
16301 int
16302 main ()
16303 {
16304 char *c = (char *) *sys_errlist
16305   ;
16306   return 0;
16307 }
16308 _ACEOF
16309 rm -f conftest.$ac_objext conftest$ac_exeext
16310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16311   (eval $ac_link) 2>conftest.er1
16312   ac_status=$?
16313   grep -v '^ *+' conftest.er1 >conftest.err
16314   rm -f conftest.er1
16315   cat conftest.err >&5
16316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317   (exit $ac_status); } &&
16318          { ac_try='test -z "$ac_c_werror_flag"
16319                          || test ! -s conftest.err'
16320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321   (eval $ac_try) 2>&5
16322   ac_status=$?
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); }; } &&
16325          { ac_try='test -s conftest$ac_exeext'
16326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16327   (eval $ac_try) 2>&5
16328   ac_status=$?
16329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330   (exit $ac_status); }; }; then
16331   ol_cv_have_sys_errlist=yes
16332 else
16333   echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16335
16336 ol_cv_have_sys_errlist=no
16337 fi
16338 rm -f conftest.err conftest.$ac_objext \
16339       conftest$ac_exeext conftest.$ac_ext
16340 fi
16341 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16342 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16343 fi
16344 if test $ol_cv_have_sys_errlist = yes ; then
16345
16346 cat >>confdefs.h <<\_ACEOF
16347 #define HAVE_SYS_ERRLIST 1
16348 _ACEOF
16349
16350 fi
16351
16352
16353 for ac_func in strerror strerror_r
16354 do
16355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16356 echo "$as_me:$LINENO: checking for $ac_func" >&5
16357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16358 if eval "test \"\${$as_ac_var+set}\" = set"; then
16359   echo $ECHO_N "(cached) $ECHO_C" >&6
16360 else
16361   cat >conftest.$ac_ext <<_ACEOF
16362 /* confdefs.h.  */
16363 _ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h.  */
16367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16369 #define $ac_func innocuous_$ac_func
16370
16371 /* System header to define __stub macros and hopefully few prototypes,
16372     which can conflict with char $ac_func (); below.
16373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16374     <limits.h> exists even on freestanding compilers.  */
16375
16376 #ifdef __STDC__
16377 # include <limits.h>
16378 #else
16379 # include <assert.h>
16380 #endif
16381
16382 #undef $ac_func
16383
16384 /* Override any gcc2 internal prototype to avoid an error.  */
16385 #ifdef __cplusplus
16386 extern "C"
16387 {
16388 #endif
16389 /* We use char because int might match the return type of a gcc2
16390    builtin and then its argument prototype would still apply.  */
16391 char $ac_func ();
16392 /* The GNU C library defines this for functions which it implements
16393     to always fail with ENOSYS.  Some functions are actually named
16394     something starting with __ and the normal name is an alias.  */
16395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16396 choke me
16397 #else
16398 char (*f) () = $ac_func;
16399 #endif
16400 #ifdef __cplusplus
16401 }
16402 #endif
16403
16404 int
16405 main ()
16406 {
16407 return f != $ac_func;
16408   ;
16409   return 0;
16410 }
16411 _ACEOF
16412 rm -f conftest.$ac_objext conftest$ac_exeext
16413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16414   (eval $ac_link) 2>conftest.er1
16415   ac_status=$?
16416   grep -v '^ *+' conftest.er1 >conftest.err
16417   rm -f conftest.er1
16418   cat conftest.err >&5
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); } &&
16421          { ac_try='test -z "$ac_c_werror_flag"
16422                          || test ! -s conftest.err'
16423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424   (eval $ac_try) 2>&5
16425   ac_status=$?
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); }; } &&
16428          { ac_try='test -s conftest$ac_exeext'
16429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430   (eval $ac_try) 2>&5
16431   ac_status=$?
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); }; }; then
16434   eval "$as_ac_var=yes"
16435 else
16436   echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16438
16439 eval "$as_ac_var=no"
16440 fi
16441 rm -f conftest.err conftest.$ac_objext \
16442       conftest$ac_exeext conftest.$ac_ext
16443 fi
16444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16446 if test `eval echo '${'$as_ac_var'}'` = yes; then
16447   cat >>confdefs.h <<_ACEOF
16448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16449 _ACEOF
16450
16451 fi
16452 done
16453
16454 ol_cv_func_strerror_r=no
16455 if test "${ac_cv_func_strerror_r}" = yes ; then
16456         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16457 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16458 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16459   echo $ECHO_N "(cached) $ECHO_C" >&6
16460 else
16461
16462         cat >conftest.$ac_ext <<_ACEOF
16463 /* confdefs.h.  */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h.  */
16468 #include <string.h>
16469 _ACEOF
16470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16471   $EGREP "strerror_r" >/dev/null 2>&1; then
16472   ol_decl_strerror_r=yes
16473 else
16474   ol_decl_strerror_r=no
16475 fi
16476 rm -f conftest*
16477
16478         if test $ol_decl_strerror_r = yes ; then
16479                 cat >conftest.$ac_ext <<_ACEOF
16480 /* confdefs.h.  */
16481 _ACEOF
16482 cat confdefs.h >>conftest.$ac_ext
16483 cat >>conftest.$ac_ext <<_ACEOF
16484 /* end confdefs.h.  */
16485 #include <string.h>
16486 int
16487 main ()
16488 {
16489    /* from autoconf 2.59 */
16490                                 char buf[100];
16491                                 char x = *strerror_r (0, buf, sizeof buf);
16492                                 char *p = strerror_r (0, buf, sizeof buf);
16493
16494   ;
16495   return 0;
16496 }
16497 _ACEOF
16498 rm -f conftest.$ac_objext
16499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16500   (eval $ac_compile) 2>conftest.er1
16501   ac_status=$?
16502   grep -v '^ *+' conftest.er1 >conftest.err
16503   rm -f conftest.er1
16504   cat conftest.err >&5
16505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506   (exit $ac_status); } &&
16507          { ac_try='test -z "$ac_c_werror_flag"
16508                          || test ! -s conftest.err'
16509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510   (eval $ac_try) 2>&5
16511   ac_status=$?
16512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513   (exit $ac_status); }; } &&
16514          { ac_try='test -s conftest.$ac_objext'
16515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516   (eval $ac_try) 2>&5
16517   ac_status=$?
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); }; }; then
16520   ol_cv_nonposix_strerror_r=yes
16521 else
16522   echo "$as_me: failed program was:" >&5
16523 sed 's/^/| /' conftest.$ac_ext >&5
16524
16525 ol_cv_nonposix_strerror_r=no
16526 fi
16527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16528         else
16529                 if test "$cross_compiling" = yes; then
16530   ol_cv_nonposix_strerror=no
16531 else
16532   cat >conftest.$ac_ext <<_ACEOF
16533 /* confdefs.h.  */
16534 _ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h.  */
16538
16539                         main() {
16540                                 char buf[100];
16541                                 buf[0] = 0;
16542                                 strerror_r( 1, buf, sizeof buf );
16543                                 exit( buf[0] == 0 );
16544                         }
16545
16546 _ACEOF
16547 rm -f conftest$ac_exeext
16548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16549   (eval $ac_link) 2>&5
16550   ac_status=$?
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554   (eval $ac_try) 2>&5
16555   ac_status=$?
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); }; }; then
16558   ol_cv_nonposix_strerror_r=yes
16559 else
16560   echo "$as_me: program exited with status $ac_status" >&5
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16563
16564 ( exit $ac_status )
16565 ol_cv_nonposix_strerror=no
16566 fi
16567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16568 fi
16569         fi
16570
16571 fi
16572 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16573 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16574 if test $ol_cv_nonposix_strerror_r = yes ; then
16575
16576 cat >>confdefs.h <<\_ACEOF
16577 #define HAVE_NONPOSIX_STRERROR_R 1
16578 _ACEOF
16579
16580 fi
16581
16582 elif test "${ac_cv_func_strerror}" = no ; then
16583         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16584 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16585 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16586   echo $ECHO_N "(cached) $ECHO_C" >&6
16587 else
16588
16589         cat >conftest.$ac_ext <<_ACEOF
16590 /* confdefs.h.  */
16591 _ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h.  */
16595
16596 #include <stdio.h>
16597 #include <sys/types.h>
16598 #include <errno.h>
16599 #ifdef _WIN32
16600 #include <stdlib.h>
16601 #endif
16602 int
16603 main ()
16604 {
16605 char *c = (char *) *sys_errlist
16606   ;
16607   return 0;
16608 }
16609 _ACEOF
16610 rm -f conftest.$ac_objext
16611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16612   (eval $ac_compile) 2>conftest.er1
16613   ac_status=$?
16614   grep -v '^ *+' conftest.er1 >conftest.err
16615   rm -f conftest.er1
16616   cat conftest.err >&5
16617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618   (exit $ac_status); } &&
16619          { ac_try='test -z "$ac_c_werror_flag"
16620                          || test ! -s conftest.err'
16621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622   (eval $ac_try) 2>&5
16623   ac_status=$?
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); }; } &&
16626          { ac_try='test -s conftest.$ac_objext'
16627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16628   (eval $ac_try) 2>&5
16629   ac_status=$?
16630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631   (exit $ac_status); }; }; then
16632   ol_cv_dcl_sys_errlist=yes
16633         ol_cv_have_sys_errlist=yes
16634 else
16635   echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16637
16638 ol_cv_dcl_sys_errlist=no
16639 fi
16640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16641 fi
16642 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16643 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16644 #
16645 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16646 if test $ol_cv_dcl_sys_errlist = no ; then
16647
16648 cat >>confdefs.h <<\_ACEOF
16649 #define DECL_SYS_ERRLIST 1
16650 _ACEOF
16651
16652
16653         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16654 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16655 if test "${ol_cv_have_sys_errlist+set}" = set; then
16656   echo $ECHO_N "(cached) $ECHO_C" >&6
16657 else
16658
16659                 cat >conftest.$ac_ext <<_ACEOF
16660 /* confdefs.h.  */
16661 _ACEOF
16662 cat confdefs.h >>conftest.$ac_ext
16663 cat >>conftest.$ac_ext <<_ACEOF
16664 /* end confdefs.h.  */
16665 #include <errno.h>
16666 int
16667 main ()
16668 {
16669 char *c = (char *) *sys_errlist
16670   ;
16671   return 0;
16672 }
16673 _ACEOF
16674 rm -f conftest.$ac_objext conftest$ac_exeext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676   (eval $ac_link) 2>conftest.er1
16677   ac_status=$?
16678   grep -v '^ *+' conftest.er1 >conftest.err
16679   rm -f conftest.er1
16680   cat conftest.err >&5
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); } &&
16683          { ac_try='test -z "$ac_c_werror_flag"
16684                          || test ! -s conftest.err'
16685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686   (eval $ac_try) 2>&5
16687   ac_status=$?
16688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689   (exit $ac_status); }; } &&
16690          { ac_try='test -s conftest$ac_exeext'
16691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692   (eval $ac_try) 2>&5
16693   ac_status=$?
16694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695   (exit $ac_status); }; }; then
16696   ol_cv_have_sys_errlist=yes
16697 else
16698   echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16700
16701 ol_cv_have_sys_errlist=no
16702 fi
16703 rm -f conftest.err conftest.$ac_objext \
16704       conftest$ac_exeext conftest.$ac_ext
16705 fi
16706 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16707 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16708 fi
16709 if test $ol_cv_have_sys_errlist = yes ; then
16710
16711 cat >>confdefs.h <<\_ACEOF
16712 #define HAVE_SYS_ERRLIST 1
16713 _ACEOF
16714
16715 fi
16716
16717 fi
16718
16719
16720
16721 for ac_header in regex.h
16722 do
16723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16724 echo "$as_me:$LINENO: checking for $ac_header" >&5
16725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16727   echo $ECHO_N "(cached) $ECHO_C" >&6
16728 else
16729   cat >conftest.$ac_ext <<_ACEOF
16730 /* confdefs.h.  */
16731 _ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h.  */
16735 $ac_includes_default
16736 #ifdef HAVE_SYS_TYPES_H
16737 #include <sys/types.h>
16738 #endif
16739
16740
16741 #include <$ac_header>
16742 _ACEOF
16743 rm -f conftest.$ac_objext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16745   (eval $ac_compile) 2>conftest.er1
16746   ac_status=$?
16747   grep -v '^ *+' conftest.er1 >conftest.err
16748   rm -f conftest.er1
16749   cat conftest.err >&5
16750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751   (exit $ac_status); } &&
16752          { ac_try='test -z "$ac_c_werror_flag"
16753                          || test ! -s conftest.err'
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); }; } &&
16759          { ac_try='test -s conftest.$ac_objext'
16760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761   (eval $ac_try) 2>&5
16762   ac_status=$?
16763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764   (exit $ac_status); }; }; then
16765   eval "$as_ac_Header=yes"
16766 else
16767   echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16769
16770 eval "$as_ac_Header=no"
16771 fi
16772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16773 fi
16774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16777   cat >>confdefs.h <<_ACEOF
16778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16779 _ACEOF
16780
16781 fi
16782
16783 done
16784
16785
16786 if test "$ac_cv_header_regex_h" != yes ; then
16787         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16788 echo "$as_me: error: POSIX regex.h required." >&2;}
16789    { (exit 1); exit 1; }; }
16790 fi
16791 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16792 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16793 if test "${ac_cv_search_regfree+set}" = set; then
16794   echo $ECHO_N "(cached) $ECHO_C" >&6
16795 else
16796   ac_func_search_save_LIBS=$LIBS
16797 ac_cv_search_regfree=no
16798 cat >conftest.$ac_ext <<_ACEOF
16799 /* confdefs.h.  */
16800 _ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h.  */
16804
16805 /* Override any gcc2 internal prototype to avoid an error.  */
16806 #ifdef __cplusplus
16807 extern "C"
16808 #endif
16809 /* We use char because int might match the return type of a gcc2
16810    builtin and then its argument prototype would still apply.  */
16811 char regfree ();
16812 int
16813 main ()
16814 {
16815 regfree ();
16816   ;
16817   return 0;
16818 }
16819 _ACEOF
16820 rm -f conftest.$ac_objext conftest$ac_exeext
16821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16822   (eval $ac_link) 2>conftest.er1
16823   ac_status=$?
16824   grep -v '^ *+' conftest.er1 >conftest.err
16825   rm -f conftest.er1
16826   cat conftest.err >&5
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); } &&
16829          { ac_try='test -z "$ac_c_werror_flag"
16830                          || test ! -s conftest.err'
16831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832   (eval $ac_try) 2>&5
16833   ac_status=$?
16834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); }; } &&
16836          { ac_try='test -s conftest$ac_exeext'
16837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838   (eval $ac_try) 2>&5
16839   ac_status=$?
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); }; }; then
16842   ac_cv_search_regfree="none required"
16843 else
16844   echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16846
16847 fi
16848 rm -f conftest.err conftest.$ac_objext \
16849       conftest$ac_exeext conftest.$ac_ext
16850 if test "$ac_cv_search_regfree" = no; then
16851   for ac_lib in regex gnuregex; do
16852     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16853     cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h.  */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h.  */
16859
16860 /* Override any gcc2 internal prototype to avoid an error.  */
16861 #ifdef __cplusplus
16862 extern "C"
16863 #endif
16864 /* We use char because int might match the return type of a gcc2
16865    builtin and then its argument prototype would still apply.  */
16866 char regfree ();
16867 int
16868 main ()
16869 {
16870 regfree ();
16871   ;
16872   return 0;
16873 }
16874 _ACEOF
16875 rm -f conftest.$ac_objext conftest$ac_exeext
16876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16877   (eval $ac_link) 2>conftest.er1
16878   ac_status=$?
16879   grep -v '^ *+' conftest.er1 >conftest.err
16880   rm -f conftest.er1
16881   cat conftest.err >&5
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); } &&
16884          { ac_try='test -z "$ac_c_werror_flag"
16885                          || test ! -s conftest.err'
16886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887   (eval $ac_try) 2>&5
16888   ac_status=$?
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); }; } &&
16891          { ac_try='test -s conftest$ac_exeext'
16892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893   (eval $ac_try) 2>&5
16894   ac_status=$?
16895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); }; }; then
16897   ac_cv_search_regfree="-l$ac_lib"
16898 break
16899 else
16900   echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16902
16903 fi
16904 rm -f conftest.err conftest.$ac_objext \
16905       conftest$ac_exeext conftest.$ac_ext
16906   done
16907 fi
16908 LIBS=$ac_func_search_save_LIBS
16909 fi
16910 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16911 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16912 if test "$ac_cv_search_regfree" != no; then
16913   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16914   :
16915 else
16916   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16917 echo "$as_me: error: POSIX regex required." >&2;}
16918    { (exit 1); exit 1; }; }
16919 fi
16920
16921
16922
16923 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16924 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16925 if test "${ol_cv_c_posix_regex+set}" = set; then
16926   echo $ECHO_N "(cached) $ECHO_C" >&6
16927 else
16928
16929         if test "$cross_compiling" = yes; then
16930   ol_cv_c_posix_regex=cross
16931 else
16932   cat >conftest.$ac_ext <<_ACEOF
16933 /* confdefs.h.  */
16934 _ACEOF
16935 cat confdefs.h >>conftest.$ac_ext
16936 cat >>conftest.$ac_ext <<_ACEOF
16937 /* end confdefs.h.  */
16938
16939 #include <sys/types.h>
16940 #include <regex.h>
16941 static char *pattern, *string;
16942 main()
16943 {
16944         int rc;
16945         regex_t re;
16946
16947         pattern = "^A";
16948
16949         if(regcomp(&re, pattern, 0)) {
16950                 return -1;
16951         }
16952
16953         string = "ALL MATCH";
16954
16955         rc = regexec(&re, string, 0, (void*)0, 0);
16956
16957         regfree(&re);
16958
16959         return rc;
16960 }
16961 _ACEOF
16962 rm -f conftest$ac_exeext
16963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16964   (eval $ac_link) 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969   (eval $ac_try) 2>&5
16970   ac_status=$?
16971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972   (exit $ac_status); }; }; then
16973   ol_cv_c_posix_regex=yes
16974 else
16975   echo "$as_me: program exited with status $ac_status" >&5
16976 echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16978
16979 ( exit $ac_status )
16980 ol_cv_c_posix_regex=no
16981 fi
16982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16983 fi
16984 fi
16985 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16986 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16987
16988 if test "$ol_cv_c_posix_regex" = no ; then
16989         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16990 echo "$as_me: error: broken POSIX regex!" >&2;}
16991    { (exit 1); exit 1; }; }
16992 fi
16993
16994
16995 have_uuid=no
16996
16997 for ac_header in sys/uuid.h
16998 do
16999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17001   echo "$as_me:$LINENO: checking for $ac_header" >&5
17002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17004   echo $ECHO_N "(cached) $ECHO_C" >&6
17005 fi
17006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17008 else
17009   # Is the header compilable?
17010 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17012 cat >conftest.$ac_ext <<_ACEOF
17013 /* confdefs.h.  */
17014 _ACEOF
17015 cat confdefs.h >>conftest.$ac_ext
17016 cat >>conftest.$ac_ext <<_ACEOF
17017 /* end confdefs.h.  */
17018 $ac_includes_default
17019 #include <$ac_header>
17020 _ACEOF
17021 rm -f conftest.$ac_objext
17022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17023   (eval $ac_compile) 2>conftest.er1
17024   ac_status=$?
17025   grep -v '^ *+' conftest.er1 >conftest.err
17026   rm -f conftest.er1
17027   cat conftest.err >&5
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); } &&
17030          { ac_try='test -z "$ac_c_werror_flag"
17031                          || test ! -s conftest.err'
17032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033   (eval $ac_try) 2>&5
17034   ac_status=$?
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); }; } &&
17037          { ac_try='test -s conftest.$ac_objext'
17038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039   (eval $ac_try) 2>&5
17040   ac_status=$?
17041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042   (exit $ac_status); }; }; then
17043   ac_header_compiler=yes
17044 else
17045   echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17047
17048 ac_header_compiler=no
17049 fi
17050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17052 echo "${ECHO_T}$ac_header_compiler" >&6
17053
17054 # Is the header present?
17055 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17057 cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h.  */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h.  */
17063 #include <$ac_header>
17064 _ACEOF
17065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17066   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17067   ac_status=$?
17068   grep -v '^ *+' conftest.er1 >conftest.err
17069   rm -f conftest.er1
17070   cat conftest.err >&5
17071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072   (exit $ac_status); } >/dev/null; then
17073   if test -s conftest.err; then
17074     ac_cpp_err=$ac_c_preproc_warn_flag
17075     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17076   else
17077     ac_cpp_err=
17078   fi
17079 else
17080   ac_cpp_err=yes
17081 fi
17082 if test -z "$ac_cpp_err"; then
17083   ac_header_preproc=yes
17084 else
17085   echo "$as_me: failed program was:" >&5
17086 sed 's/^/| /' conftest.$ac_ext >&5
17087
17088   ac_header_preproc=no
17089 fi
17090 rm -f conftest.err conftest.$ac_ext
17091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17092 echo "${ECHO_T}$ac_header_preproc" >&6
17093
17094 # So?  What about this header?
17095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17096   yes:no: )
17097     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17101     ac_header_preproc=yes
17102     ;;
17103   no:yes:* )
17104     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17106     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17107 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17108     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17110     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17111 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17114     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17116     (
17117       cat <<\_ASBOX
17118 ## --------------------------------------------- ##
17119 ## Report this to <http://www.openldap.org/its/> ##
17120 ## --------------------------------------------- ##
17121 _ASBOX
17122     ) |
17123       sed "s/^/$as_me: WARNING:     /" >&2
17124     ;;
17125 esac
17126 echo "$as_me:$LINENO: checking for $ac_header" >&5
17127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17129   echo $ECHO_N "(cached) $ECHO_C" >&6
17130 else
17131   eval "$as_ac_Header=\$ac_header_preproc"
17132 fi
17133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17135
17136 fi
17137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17138   cat >>confdefs.h <<_ACEOF
17139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17140 _ACEOF
17141
17142 fi
17143
17144 done
17145
17146 if test $ac_cv_header_sys_uuid_h = yes ; then
17147         save_LIBS="$LIBS"
17148         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17149 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17150 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17151   echo $ECHO_N "(cached) $ECHO_C" >&6
17152 else
17153   ac_func_search_save_LIBS=$LIBS
17154 ac_cv_search_uuid_to_str=no
17155 cat >conftest.$ac_ext <<_ACEOF
17156 /* confdefs.h.  */
17157 _ACEOF
17158 cat confdefs.h >>conftest.$ac_ext
17159 cat >>conftest.$ac_ext <<_ACEOF
17160 /* end confdefs.h.  */
17161
17162 /* Override any gcc2 internal prototype to avoid an error.  */
17163 #ifdef __cplusplus
17164 extern "C"
17165 #endif
17166 /* We use char because int might match the return type of a gcc2
17167    builtin and then its argument prototype would still apply.  */
17168 char uuid_to_str ();
17169 int
17170 main ()
17171 {
17172 uuid_to_str ();
17173   ;
17174   return 0;
17175 }
17176 _ACEOF
17177 rm -f conftest.$ac_objext conftest$ac_exeext
17178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17179   (eval $ac_link) 2>conftest.er1
17180   ac_status=$?
17181   grep -v '^ *+' conftest.er1 >conftest.err
17182   rm -f conftest.er1
17183   cat conftest.err >&5
17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185   (exit $ac_status); } &&
17186          { ac_try='test -z "$ac_c_werror_flag"
17187                          || test ! -s conftest.err'
17188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189   (eval $ac_try) 2>&5
17190   ac_status=$?
17191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192   (exit $ac_status); }; } &&
17193          { ac_try='test -s conftest$ac_exeext'
17194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195   (eval $ac_try) 2>&5
17196   ac_status=$?
17197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198   (exit $ac_status); }; }; then
17199   ac_cv_search_uuid_to_str="none required"
17200 else
17201   echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17203
17204 fi
17205 rm -f conftest.err conftest.$ac_objext \
17206       conftest$ac_exeext conftest.$ac_ext
17207 if test "$ac_cv_search_uuid_to_str" = no; then
17208   for ac_lib in uuid; do
17209     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17210     cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h.  */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h.  */
17216
17217 /* Override any gcc2 internal prototype to avoid an error.  */
17218 #ifdef __cplusplus
17219 extern "C"
17220 #endif
17221 /* We use char because int might match the return type of a gcc2
17222    builtin and then its argument prototype would still apply.  */
17223 char uuid_to_str ();
17224 int
17225 main ()
17226 {
17227 uuid_to_str ();
17228   ;
17229   return 0;
17230 }
17231 _ACEOF
17232 rm -f conftest.$ac_objext conftest$ac_exeext
17233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17234   (eval $ac_link) 2>conftest.er1
17235   ac_status=$?
17236   grep -v '^ *+' conftest.er1 >conftest.err
17237   rm -f conftest.er1
17238   cat conftest.err >&5
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); } &&
17241          { ac_try='test -z "$ac_c_werror_flag"
17242                          || test ! -s conftest.err'
17243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17244   (eval $ac_try) 2>&5
17245   ac_status=$?
17246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247   (exit $ac_status); }; } &&
17248          { ac_try='test -s conftest$ac_exeext'
17249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250   (eval $ac_try) 2>&5
17251   ac_status=$?
17252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253   (exit $ac_status); }; }; then
17254   ac_cv_search_uuid_to_str="-l$ac_lib"
17255 break
17256 else
17257   echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17259
17260 fi
17261 rm -f conftest.err conftest.$ac_objext \
17262       conftest$ac_exeext conftest.$ac_ext
17263   done
17264 fi
17265 LIBS=$ac_func_search_save_LIBS
17266 fi
17267 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17268 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17269 if test "$ac_cv_search_uuid_to_str" != no; then
17270   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17271   have_uuid=yes
17272 else
17273   :
17274 fi
17275
17276         LIBS="$save_LIBS"
17277
17278         if test have_uuid = yes ; then
17279
17280 cat >>confdefs.h <<\_ACEOF
17281 #define HAVE_UUID_TO_STR 1
17282 _ACEOF
17283
17284
17285                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17286                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17287         fi
17288 fi
17289
17290 if test $have_uuid = no ; then
17291
17292 for ac_header in uuid/uuid.h
17293 do
17294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17296   echo "$as_me:$LINENO: checking for $ac_header" >&5
17297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17299   echo $ECHO_N "(cached) $ECHO_C" >&6
17300 fi
17301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17303 else
17304   # Is the header compilable?
17305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17307 cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h.  */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h.  */
17313 $ac_includes_default
17314 #include <$ac_header>
17315 _ACEOF
17316 rm -f conftest.$ac_objext
17317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17318   (eval $ac_compile) 2>conftest.er1
17319   ac_status=$?
17320   grep -v '^ *+' conftest.er1 >conftest.err
17321   rm -f conftest.er1
17322   cat conftest.err >&5
17323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324   (exit $ac_status); } &&
17325          { ac_try='test -z "$ac_c_werror_flag"
17326                          || test ! -s conftest.err'
17327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328   (eval $ac_try) 2>&5
17329   ac_status=$?
17330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331   (exit $ac_status); }; } &&
17332          { ac_try='test -s conftest.$ac_objext'
17333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334   (eval $ac_try) 2>&5
17335   ac_status=$?
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); }; }; then
17338   ac_header_compiler=yes
17339 else
17340   echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17342
17343 ac_header_compiler=no
17344 fi
17345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17347 echo "${ECHO_T}$ac_header_compiler" >&6
17348
17349 # Is the header present?
17350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17352 cat >conftest.$ac_ext <<_ACEOF
17353 /* confdefs.h.  */
17354 _ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h.  */
17358 #include <$ac_header>
17359 _ACEOF
17360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17362   ac_status=$?
17363   grep -v '^ *+' conftest.er1 >conftest.err
17364   rm -f conftest.er1
17365   cat conftest.err >&5
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); } >/dev/null; then
17368   if test -s conftest.err; then
17369     ac_cpp_err=$ac_c_preproc_warn_flag
17370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17371   else
17372     ac_cpp_err=
17373   fi
17374 else
17375   ac_cpp_err=yes
17376 fi
17377 if test -z "$ac_cpp_err"; then
17378   ac_header_preproc=yes
17379 else
17380   echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17382
17383   ac_header_preproc=no
17384 fi
17385 rm -f conftest.err conftest.$ac_ext
17386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17387 echo "${ECHO_T}$ac_header_preproc" >&6
17388
17389 # So?  What about this header?
17390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17391   yes:no: )
17392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17396     ac_header_preproc=yes
17397     ;;
17398   no:yes:* )
17399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17411     (
17412       cat <<\_ASBOX
17413 ## --------------------------------------------- ##
17414 ## Report this to <http://www.openldap.org/its/> ##
17415 ## --------------------------------------------- ##
17416 _ASBOX
17417     ) |
17418       sed "s/^/$as_me: WARNING:     /" >&2
17419     ;;
17420 esac
17421 echo "$as_me:$LINENO: checking for $ac_header" >&5
17422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17424   echo $ECHO_N "(cached) $ECHO_C" >&6
17425 else
17426   eval "$as_ac_Header=\$ac_header_preproc"
17427 fi
17428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17430
17431 fi
17432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17433   cat >>confdefs.h <<_ACEOF
17434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17435 _ACEOF
17436
17437 fi
17438
17439 done
17440
17441         if test $ac_cv_header_uuid_uuid_h = yes ; then
17442                 save_LIBS="$LIBS"
17443                 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17444 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17445 if test "${ac_cv_search_uuid_generate+set}" = set; then
17446   echo $ECHO_N "(cached) $ECHO_C" >&6
17447 else
17448   ac_func_search_save_LIBS=$LIBS
17449 ac_cv_search_uuid_generate=no
17450 cat >conftest.$ac_ext <<_ACEOF
17451 /* confdefs.h.  */
17452 _ACEOF
17453 cat confdefs.h >>conftest.$ac_ext
17454 cat >>conftest.$ac_ext <<_ACEOF
17455 /* end confdefs.h.  */
17456
17457 /* Override any gcc2 internal prototype to avoid an error.  */
17458 #ifdef __cplusplus
17459 extern "C"
17460 #endif
17461 /* We use char because int might match the return type of a gcc2
17462    builtin and then its argument prototype would still apply.  */
17463 char uuid_generate ();
17464 int
17465 main ()
17466 {
17467 uuid_generate ();
17468   ;
17469   return 0;
17470 }
17471 _ACEOF
17472 rm -f conftest.$ac_objext conftest$ac_exeext
17473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17474   (eval $ac_link) 2>conftest.er1
17475   ac_status=$?
17476   grep -v '^ *+' conftest.er1 >conftest.err
17477   rm -f conftest.er1
17478   cat conftest.err >&5
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); } &&
17481          { ac_try='test -z "$ac_c_werror_flag"
17482                          || test ! -s conftest.err'
17483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484   (eval $ac_try) 2>&5
17485   ac_status=$?
17486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487   (exit $ac_status); }; } &&
17488          { ac_try='test -s conftest$ac_exeext'
17489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490   (eval $ac_try) 2>&5
17491   ac_status=$?
17492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493   (exit $ac_status); }; }; then
17494   ac_cv_search_uuid_generate="none required"
17495 else
17496   echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17498
17499 fi
17500 rm -f conftest.err conftest.$ac_objext \
17501       conftest$ac_exeext conftest.$ac_ext
17502 if test "$ac_cv_search_uuid_generate" = no; then
17503   for ac_lib in uuid; do
17504     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17505     cat >conftest.$ac_ext <<_ACEOF
17506 /* confdefs.h.  */
17507 _ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h.  */
17511
17512 /* Override any gcc2 internal prototype to avoid an error.  */
17513 #ifdef __cplusplus
17514 extern "C"
17515 #endif
17516 /* We use char because int might match the return type of a gcc2
17517    builtin and then its argument prototype would still apply.  */
17518 char uuid_generate ();
17519 int
17520 main ()
17521 {
17522 uuid_generate ();
17523   ;
17524   return 0;
17525 }
17526 _ACEOF
17527 rm -f conftest.$ac_objext conftest$ac_exeext
17528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17529   (eval $ac_link) 2>conftest.er1
17530   ac_status=$?
17531   grep -v '^ *+' conftest.er1 >conftest.err
17532   rm -f conftest.er1
17533   cat conftest.err >&5
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); } &&
17536          { ac_try='test -z "$ac_c_werror_flag"
17537                          || test ! -s conftest.err'
17538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539   (eval $ac_try) 2>&5
17540   ac_status=$?
17541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542   (exit $ac_status); }; } &&
17543          { ac_try='test -s conftest$ac_exeext'
17544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545   (eval $ac_try) 2>&5
17546   ac_status=$?
17547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548   (exit $ac_status); }; }; then
17549   ac_cv_search_uuid_generate="-l$ac_lib"
17550 break
17551 else
17552   echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17554
17555 fi
17556 rm -f conftest.err conftest.$ac_objext \
17557       conftest$ac_exeext conftest.$ac_ext
17558   done
17559 fi
17560 LIBS=$ac_func_search_save_LIBS
17561 fi
17562 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17563 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17564 if test "$ac_cv_search_uuid_generate" != no; then
17565   test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17566   have_uuid=yes
17567 else
17568   :
17569 fi
17570
17571                 LIBS="$save_LIBS"
17572
17573                 if test have_uuid = yes ; then
17574
17575 cat >>confdefs.h <<\_ACEOF
17576 #define HAVE_UUID_GENERATE 1
17577 _ACEOF
17578
17579
17580                         test "$ac_cv_search_uuid_generate" = "none required" || \
17581                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17582                 fi
17583         fi
17584 fi
17585
17586 if test $have_uuid = no ; then
17587         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17588 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17589         save_LIBS="$LIBS"
17590         LIBS="$LIBS -lrpcrt4"
17591         cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h.  */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h.  */
17597
17598                 int __stdcall UuidCreate(void *);
17599                 int __stdcall UuidToStringA(void *,void **);
17600
17601 int
17602 main ()
17603 {
17604
17605                 UuidCreate(0);
17606                 UuidToStringA(0,0);
17607
17608   ;
17609   return 0;
17610 }
17611 _ACEOF
17612 rm -f conftest.$ac_objext conftest$ac_exeext
17613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17614   (eval $ac_link) 2>conftest.er1
17615   ac_status=$?
17616   grep -v '^ *+' conftest.er1 >conftest.err
17617   rm -f conftest.er1
17618   cat conftest.err >&5
17619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620   (exit $ac_status); } &&
17621          { ac_try='test -z "$ac_c_werror_flag"
17622                          || test ! -s conftest.err'
17623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624   (eval $ac_try) 2>&5
17625   ac_status=$?
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); }; } &&
17628          { ac_try='test -s conftest$ac_exeext'
17629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630   (eval $ac_try) 2>&5
17631   ac_status=$?
17632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); }; }; then
17634   need_rpcrt=yes
17635 else
17636   echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17638
17639 need_rpcrt=no
17640 fi
17641 rm -f conftest.err conftest.$ac_objext \
17642       conftest$ac_exeext conftest.$ac_ext
17643         if test $need_rpcrt = yes; then
17644                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17645         fi
17646         LIBS="$save_LIBS"
17647         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17648 echo "${ECHO_T}$need_rpcrt" >&6
17649 fi
17650
17651 ol_cv_lib_resolver=no
17652 if test $ol_cv_lib_resolver = no ; then
17653         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17654 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17655 if test "${ol_cv_resolver_none+set}" = set; then
17656   echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658
17659         ol_RESOLVER_LIB=
17660         ol_LIBS=$LIBS
17661         LIBS="$ol_RESOLVER_LIB $LIBS"
17662
17663         cat >conftest.$ac_ext <<_ACEOF
17664 /* confdefs.h.  */
17665 _ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h.  */
17669
17670 #ifdef HAVE_SYS_TYPES_H
17671 #       include <sys/types.h>
17672 #endif
17673 #include <netinet/in.h>
17674 #ifdef HAVE_ARPA_NAMESER_H
17675 #       include <arpa/nameser.h>
17676 #endif
17677 #ifdef HAVE_RESOLV_H
17678 #       include <resolv.h>
17679 #endif
17680
17681 int
17682 main ()
17683 {
17684 {
17685         int len, status;
17686         char *request = NULL;
17687         unsigned char reply[64*1024];
17688         unsigned char host[64*1024];
17689         unsigned char *p;
17690
17691 #ifdef NS_HFIXEDSZ
17692         /* Bind 8/9 interface */
17693         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17694 #else
17695         /* Bind 4 interface */
17696 # ifndef T_SRV
17697 #  define T_SRV 33
17698 # endif
17699         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17700 #endif
17701         p = reply;
17702 #ifdef NS_HFIXEDSZ
17703         /* Bind 8/9 interface */
17704         p += NS_HFIXEDSZ;
17705 #elif defined(HFIXEDSZ)
17706         /* Bind 4 interface w/ HFIXEDSZ */
17707         p += HFIXEDSZ;
17708 #else
17709         /* Bind 4 interface w/o HFIXEDSZ */
17710         p += sizeof(HEADER);
17711 #endif
17712         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17713 }
17714   ;
17715   return 0;
17716 }
17717 _ACEOF
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17720   (eval $ac_link) 2>conftest.er1
17721   ac_status=$?
17722   grep -v '^ *+' conftest.er1 >conftest.err
17723   rm -f conftest.er1
17724   cat conftest.err >&5
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); } &&
17727          { ac_try='test -z "$ac_c_werror_flag"
17728                          || test ! -s conftest.err'
17729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730   (eval $ac_try) 2>&5
17731   ac_status=$?
17732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733   (exit $ac_status); }; } &&
17734          { ac_try='test -s conftest$ac_exeext'
17735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736   (eval $ac_try) 2>&5
17737   ac_status=$?
17738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739   (exit $ac_status); }; }; then
17740   ol_cv_resolver_none=yes
17741 else
17742   echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17744
17745 ol_cv_resolver_none=no
17746 fi
17747 rm -f conftest.err conftest.$ac_objext \
17748       conftest$ac_exeext conftest.$ac_ext
17749
17750         LIBS="$ol_LIBS"
17751
17752 fi
17753 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17754 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17755
17756         if test $ol_cv_resolver_none = yes ; then
17757                 ol_cv_lib_resolver=yes
17758         fi
17759 fi
17760
17761 if test $ol_cv_lib_resolver = no ; then
17762         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17763 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17764 if test "${ol_cv_resolver_resolv+set}" = set; then
17765   echo $ECHO_N "(cached) $ECHO_C" >&6
17766 else
17767
17768         ol_RESOLVER_LIB=-lresolv
17769         ol_LIBS=$LIBS
17770         LIBS="$ol_RESOLVER_LIB $LIBS"
17771
17772         cat >conftest.$ac_ext <<_ACEOF
17773 /* confdefs.h.  */
17774 _ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h.  */
17778
17779 #ifdef HAVE_SYS_TYPES_H
17780 #       include <sys/types.h>
17781 #endif
17782 #include <netinet/in.h>
17783 #ifdef HAVE_ARPA_NAMESER_H
17784 #       include <arpa/nameser.h>
17785 #endif
17786 #ifdef HAVE_RESOLV_H
17787 #       include <resolv.h>
17788 #endif
17789
17790 int
17791 main ()
17792 {
17793 {
17794         int len, status;
17795         char *request = NULL;
17796         unsigned char reply[64*1024];
17797         unsigned char host[64*1024];
17798         unsigned char *p;
17799
17800 #ifdef NS_HFIXEDSZ
17801         /* Bind 8/9 interface */
17802         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17803 #else
17804         /* Bind 4 interface */
17805 # ifndef T_SRV
17806 #  define T_SRV 33
17807 # endif
17808         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17809 #endif
17810         p = reply;
17811 #ifdef NS_HFIXEDSZ
17812         /* Bind 8/9 interface */
17813         p += NS_HFIXEDSZ;
17814 #elif defined(HFIXEDSZ)
17815         /* Bind 4 interface w/ HFIXEDSZ */
17816         p += HFIXEDSZ;
17817 #else
17818         /* Bind 4 interface w/o HFIXEDSZ */
17819         p += sizeof(HEADER);
17820 #endif
17821         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17822 }
17823   ;
17824   return 0;
17825 }
17826 _ACEOF
17827 rm -f conftest.$ac_objext conftest$ac_exeext
17828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17829   (eval $ac_link) 2>conftest.er1
17830   ac_status=$?
17831   grep -v '^ *+' conftest.er1 >conftest.err
17832   rm -f conftest.er1
17833   cat conftest.err >&5
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); } &&
17836          { ac_try='test -z "$ac_c_werror_flag"
17837                          || test ! -s conftest.err'
17838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839   (eval $ac_try) 2>&5
17840   ac_status=$?
17841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842   (exit $ac_status); }; } &&
17843          { ac_try='test -s conftest$ac_exeext'
17844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845   (eval $ac_try) 2>&5
17846   ac_status=$?
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); }; }; then
17849   ol_cv_resolver_resolv=yes
17850 else
17851   echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17853
17854 ol_cv_resolver_resolv=no
17855 fi
17856 rm -f conftest.err conftest.$ac_objext \
17857       conftest$ac_exeext conftest.$ac_ext
17858
17859         LIBS="$ol_LIBS"
17860
17861 fi
17862 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17863 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17864
17865         if test $ol_cv_resolver_resolv = yes ; then
17866                 ol_cv_lib_resolver=-lresolv
17867         fi
17868 fi
17869
17870 if test $ol_cv_lib_resolver = no ; then
17871         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17872 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17873 if test "${ol_cv_resolver_bind+set}" = set; then
17874   echo $ECHO_N "(cached) $ECHO_C" >&6
17875 else
17876
17877         ol_RESOLVER_LIB=-lbind
17878         ol_LIBS=$LIBS
17879         LIBS="$ol_RESOLVER_LIB $LIBS"
17880
17881         cat >conftest.$ac_ext <<_ACEOF
17882 /* confdefs.h.  */
17883 _ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h.  */
17887
17888 #ifdef HAVE_SYS_TYPES_H
17889 #       include <sys/types.h>
17890 #endif
17891 #include <netinet/in.h>
17892 #ifdef HAVE_ARPA_NAMESER_H
17893 #       include <arpa/nameser.h>
17894 #endif
17895 #ifdef HAVE_RESOLV_H
17896 #       include <resolv.h>
17897 #endif
17898
17899 int
17900 main ()
17901 {
17902 {
17903         int len, status;
17904         char *request = NULL;
17905         unsigned char reply[64*1024];
17906         unsigned char host[64*1024];
17907         unsigned char *p;
17908
17909 #ifdef NS_HFIXEDSZ
17910         /* Bind 8/9 interface */
17911         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17912 #else
17913         /* Bind 4 interface */
17914 # ifndef T_SRV
17915 #  define T_SRV 33
17916 # endif
17917         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17918 #endif
17919         p = reply;
17920 #ifdef NS_HFIXEDSZ
17921         /* Bind 8/9 interface */
17922         p += NS_HFIXEDSZ;
17923 #elif defined(HFIXEDSZ)
17924         /* Bind 4 interface w/ HFIXEDSZ */
17925         p += HFIXEDSZ;
17926 #else
17927         /* Bind 4 interface w/o HFIXEDSZ */
17928         p += sizeof(HEADER);
17929 #endif
17930         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17931 }
17932   ;
17933   return 0;
17934 }
17935 _ACEOF
17936 rm -f conftest.$ac_objext conftest$ac_exeext
17937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17938   (eval $ac_link) 2>conftest.er1
17939   ac_status=$?
17940   grep -v '^ *+' conftest.er1 >conftest.err
17941   rm -f conftest.er1
17942   cat conftest.err >&5
17943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944   (exit $ac_status); } &&
17945          { ac_try='test -z "$ac_c_werror_flag"
17946                          || test ! -s conftest.err'
17947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948   (eval $ac_try) 2>&5
17949   ac_status=$?
17950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951   (exit $ac_status); }; } &&
17952          { ac_try='test -s conftest$ac_exeext'
17953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954   (eval $ac_try) 2>&5
17955   ac_status=$?
17956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957   (exit $ac_status); }; }; then
17958   ol_cv_resolver_bind=yes
17959 else
17960   echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17962
17963 ol_cv_resolver_bind=no
17964 fi
17965 rm -f conftest.err conftest.$ac_objext \
17966       conftest$ac_exeext conftest.$ac_ext
17967
17968         LIBS="$ol_LIBS"
17969
17970 fi
17971 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17972 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17973
17974         if test $ol_cv_resolver_bind = yes ; then
17975                 ol_cv_lib_resolver=-lbind
17976         fi
17977 fi
17978
17979
17980
17981 ol_link_dnssrv=no
17982 if test "$ol_cv_lib_resolver" != no ; then
17983
17984 cat >>confdefs.h <<\_ACEOF
17985 #define HAVE_RES_QUERY 1
17986 _ACEOF
17987
17988
17989         if test "$ol_enable_dnssrv" != no ; then
17990                 ol_link_dnssrv=yes
17991         fi
17992
17993         if test "$ol_cv_lib_resolver" != yes ; then
17994                 LIBS="$ol_cv_lib_resolver $LIBS"
17995         fi
17996 fi
17997
17998 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17999         if test "$ol_link_dnssrv" = no ; then
18000                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18001 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18002    { (exit 1); exit 1; }; }
18003         fi
18004 else
18005         ol_enable_dnssrv=no
18006 fi
18007
18008
18009 for ac_func in hstrerror
18010 do
18011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18012 echo "$as_me:$LINENO: checking for $ac_func" >&5
18013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18014 if eval "test \"\${$as_ac_var+set}\" = set"; then
18015   echo $ECHO_N "(cached) $ECHO_C" >&6
18016 else
18017   cat >conftest.$ac_ext <<_ACEOF
18018 /* confdefs.h.  */
18019 _ACEOF
18020 cat confdefs.h >>conftest.$ac_ext
18021 cat >>conftest.$ac_ext <<_ACEOF
18022 /* end confdefs.h.  */
18023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18025 #define $ac_func innocuous_$ac_func
18026
18027 /* System header to define __stub macros and hopefully few prototypes,
18028     which can conflict with char $ac_func (); below.
18029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18030     <limits.h> exists even on freestanding compilers.  */
18031
18032 #ifdef __STDC__
18033 # include <limits.h>
18034 #else
18035 # include <assert.h>
18036 #endif
18037
18038 #undef $ac_func
18039
18040 /* Override any gcc2 internal prototype to avoid an error.  */
18041 #ifdef __cplusplus
18042 extern "C"
18043 {
18044 #endif
18045 /* We use char because int might match the return type of a gcc2
18046    builtin and then its argument prototype would still apply.  */
18047 char $ac_func ();
18048 /* The GNU C library defines this for functions which it implements
18049     to always fail with ENOSYS.  Some functions are actually named
18050     something starting with __ and the normal name is an alias.  */
18051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18052 choke me
18053 #else
18054 char (*f) () = $ac_func;
18055 #endif
18056 #ifdef __cplusplus
18057 }
18058 #endif
18059
18060 int
18061 main ()
18062 {
18063 return f != $ac_func;
18064   ;
18065   return 0;
18066 }
18067 _ACEOF
18068 rm -f conftest.$ac_objext conftest$ac_exeext
18069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18070   (eval $ac_link) 2>conftest.er1
18071   ac_status=$?
18072   grep -v '^ *+' conftest.er1 >conftest.err
18073   rm -f conftest.er1
18074   cat conftest.err >&5
18075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076   (exit $ac_status); } &&
18077          { ac_try='test -z "$ac_c_werror_flag"
18078                          || test ! -s conftest.err'
18079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080   (eval $ac_try) 2>&5
18081   ac_status=$?
18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); }; } &&
18084          { ac_try='test -s conftest$ac_exeext'
18085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086   (eval $ac_try) 2>&5
18087   ac_status=$?
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); }; }; then
18090   eval "$as_ac_var=yes"
18091 else
18092   echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18094
18095 eval "$as_ac_var=no"
18096 fi
18097 rm -f conftest.err conftest.$ac_objext \
18098       conftest$ac_exeext conftest.$ac_ext
18099 fi
18100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18102 if test `eval echo '${'$as_ac_var'}'` = yes; then
18103   cat >>confdefs.h <<_ACEOF
18104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18105 _ACEOF
18106
18107 fi
18108 done
18109
18110
18111
18112
18113
18114
18115 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18116 do
18117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18118 echo "$as_me:$LINENO: checking for $ac_func" >&5
18119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18120 if eval "test \"\${$as_ac_var+set}\" = set"; then
18121   echo $ECHO_N "(cached) $ECHO_C" >&6
18122 else
18123   cat >conftest.$ac_ext <<_ACEOF
18124 /* confdefs.h.  */
18125 _ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h.  */
18129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18131 #define $ac_func innocuous_$ac_func
18132
18133 /* System header to define __stub macros and hopefully few prototypes,
18134     which can conflict with char $ac_func (); below.
18135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18136     <limits.h> exists even on freestanding compilers.  */
18137
18138 #ifdef __STDC__
18139 # include <limits.h>
18140 #else
18141 # include <assert.h>
18142 #endif
18143
18144 #undef $ac_func
18145
18146 /* Override any gcc2 internal prototype to avoid an error.  */
18147 #ifdef __cplusplus
18148 extern "C"
18149 {
18150 #endif
18151 /* We use char because int might match the return type of a gcc2
18152    builtin and then its argument prototype would still apply.  */
18153 char $ac_func ();
18154 /* The GNU C library defines this for functions which it implements
18155     to always fail with ENOSYS.  Some functions are actually named
18156     something starting with __ and the normal name is an alias.  */
18157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18158 choke me
18159 #else
18160 char (*f) () = $ac_func;
18161 #endif
18162 #ifdef __cplusplus
18163 }
18164 #endif
18165
18166 int
18167 main ()
18168 {
18169 return f != $ac_func;
18170   ;
18171   return 0;
18172 }
18173 _ACEOF
18174 rm -f conftest.$ac_objext conftest$ac_exeext
18175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18176   (eval $ac_link) 2>conftest.er1
18177   ac_status=$?
18178   grep -v '^ *+' conftest.er1 >conftest.err
18179   rm -f conftest.er1
18180   cat conftest.err >&5
18181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); } &&
18183          { ac_try='test -z "$ac_c_werror_flag"
18184                          || test ! -s conftest.err'
18185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186   (eval $ac_try) 2>&5
18187   ac_status=$?
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); }; } &&
18190          { ac_try='test -s conftest$ac_exeext'
18191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192   (eval $ac_try) 2>&5
18193   ac_status=$?
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); }; }; then
18196   eval "$as_ac_var=yes"
18197 else
18198   echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18200
18201 eval "$as_ac_var=no"
18202 fi
18203 rm -f conftest.err conftest.$ac_objext \
18204       conftest$ac_exeext conftest.$ac_ext
18205 fi
18206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18208 if test `eval echo '${'$as_ac_var'}'` = yes; then
18209   cat >>confdefs.h <<_ACEOF
18210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18211 _ACEOF
18212
18213 fi
18214 done
18215
18216
18217 ol_link_ipv6=no
18218 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18219         if test $ol_enable_ipv6 = yes ; then
18220                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18221 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18222    { (exit 1); exit 1; }; }
18223         fi
18224 elif test $ol_enable_ipv6 != no ; then
18225         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18226 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18227 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18228   echo $ECHO_N "(cached) $ECHO_C" >&6
18229 else
18230
18231                 cat >conftest.$ac_ext <<_ACEOF
18232 /* confdefs.h.  */
18233 _ACEOF
18234 cat confdefs.h >>conftest.$ac_ext
18235 cat >>conftest.$ac_ext <<_ACEOF
18236 /* end confdefs.h.  */
18237
18238 #                       include <netinet/in.h>
18239 #                       ifdef INET6_ADDRSTRLEN
18240                                 __has_inet6_addrstrlen__;
18241 #                       endif
18242
18243 _ACEOF
18244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18245   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18246   ol_cv_inet6_addrstrlen=yes
18247 else
18248   ol_cv_inet6_addrstrlen=no
18249 fi
18250 rm -f conftest*
18251
18252 fi
18253 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18254 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18255
18256
18257         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18258 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18259 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18260   echo $ECHO_N "(cached) $ECHO_C" >&6
18261 else
18262
18263                 cat >conftest.$ac_ext <<_ACEOF
18264 /* confdefs.h.  */
18265 _ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h.  */
18269
18270 #include <sys/types.h>
18271 #include <sys/socket.h>
18272
18273 int
18274 main ()
18275 {
18276
18277                         struct sockaddr_storage ss;
18278
18279   ;
18280   return 0;
18281 }
18282 _ACEOF
18283 rm -f conftest.$ac_objext
18284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18285   (eval $ac_compile) 2>conftest.er1
18286   ac_status=$?
18287   grep -v '^ *+' conftest.er1 >conftest.err
18288   rm -f conftest.er1
18289   cat conftest.err >&5
18290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291   (exit $ac_status); } &&
18292          { ac_try='test -z "$ac_c_werror_flag"
18293                          || test ! -s conftest.err'
18294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295   (eval $ac_try) 2>&5
18296   ac_status=$?
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); }; } &&
18299          { ac_try='test -s conftest.$ac_objext'
18300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18301   (eval $ac_try) 2>&5
18302   ac_status=$?
18303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304   (exit $ac_status); }; }; then
18305   ol_cv_struct_sockaddr_storage=yes
18306 else
18307   echo "$as_me: failed program was:" >&5
18308 sed 's/^/| /' conftest.$ac_ext >&5
18309
18310 ol_cv_struct_sockaddr_storage=no
18311 fi
18312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18313 fi
18314 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18315 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18316
18317         if test $ol_cv_inet6_addrstrlen = yes &&
18318            test $ol_cv_struct_sockaddr_storage = yes ; then
18319                 ol_link_ipv6=yes
18320         elif test $ol_enable_ipv6 = yes &&
18321              test $ol_cv_inet6_addrstrlen = no ; then
18322                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18323 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18324    { (exit 1); exit 1; }; }
18325         elif test $ol_enable_ipv6 = yes &&
18326              test $ol_cv_struct_sockaddr_storage = no ; then
18327                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18328 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18329    { (exit 1); exit 1; }; }
18330         fi
18331 fi
18332
18333 if test $ol_enable_local != no ; then
18334
18335 for ac_header in sys/un.h
18336 do
18337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18339   echo "$as_me:$LINENO: checking for $ac_header" >&5
18340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18342   echo $ECHO_N "(cached) $ECHO_C" >&6
18343 fi
18344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18346 else
18347   # Is the header compilable?
18348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18350 cat >conftest.$ac_ext <<_ACEOF
18351 /* confdefs.h.  */
18352 _ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h.  */
18356 $ac_includes_default
18357 #include <$ac_header>
18358 _ACEOF
18359 rm -f conftest.$ac_objext
18360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18361   (eval $ac_compile) 2>conftest.er1
18362   ac_status=$?
18363   grep -v '^ *+' conftest.er1 >conftest.err
18364   rm -f conftest.er1
18365   cat conftest.err >&5
18366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367   (exit $ac_status); } &&
18368          { ac_try='test -z "$ac_c_werror_flag"
18369                          || test ! -s conftest.err'
18370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371   (eval $ac_try) 2>&5
18372   ac_status=$?
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); }; } &&
18375          { ac_try='test -s conftest.$ac_objext'
18376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377   (eval $ac_try) 2>&5
18378   ac_status=$?
18379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380   (exit $ac_status); }; }; then
18381   ac_header_compiler=yes
18382 else
18383   echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18385
18386 ac_header_compiler=no
18387 fi
18388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18390 echo "${ECHO_T}$ac_header_compiler" >&6
18391
18392 # Is the header present?
18393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18395 cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h.  */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h.  */
18401 #include <$ac_header>
18402 _ACEOF
18403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18405   ac_status=$?
18406   grep -v '^ *+' conftest.er1 >conftest.err
18407   rm -f conftest.er1
18408   cat conftest.err >&5
18409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410   (exit $ac_status); } >/dev/null; then
18411   if test -s conftest.err; then
18412     ac_cpp_err=$ac_c_preproc_warn_flag
18413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18414   else
18415     ac_cpp_err=
18416   fi
18417 else
18418   ac_cpp_err=yes
18419 fi
18420 if test -z "$ac_cpp_err"; then
18421   ac_header_preproc=yes
18422 else
18423   echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18425
18426   ac_header_preproc=no
18427 fi
18428 rm -f conftest.err conftest.$ac_ext
18429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18430 echo "${ECHO_T}$ac_header_preproc" >&6
18431
18432 # So?  What about this header?
18433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18434   yes:no: )
18435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18439     ac_header_preproc=yes
18440     ;;
18441   no:yes:* )
18442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18454     (
18455       cat <<\_ASBOX
18456 ## --------------------------------------------- ##
18457 ## Report this to <http://www.openldap.org/its/> ##
18458 ## --------------------------------------------- ##
18459 _ASBOX
18460     ) |
18461       sed "s/^/$as_me: WARNING:     /" >&2
18462     ;;
18463 esac
18464 echo "$as_me:$LINENO: checking for $ac_header" >&5
18465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18467   echo $ECHO_N "(cached) $ECHO_C" >&6
18468 else
18469   eval "$as_ac_Header=\$ac_header_preproc"
18470 fi
18471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18473
18474 fi
18475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18476   cat >>confdefs.h <<_ACEOF
18477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18478 _ACEOF
18479
18480 fi
18481
18482 done
18483
18484
18485         if test $ol_enable_local = auto ; then
18486                 ol_enable_local=$ac_cv_header_sys_un_h
18487         elif test $ac_cv_header_sys_un_h = no ; then
18488                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18489 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18490    { (exit 1); exit 1; }; }
18491         fi
18492 fi
18493
18494
18495 if test $ol_with_tls = yes ; then
18496         ol_with_tls=auto
18497 fi
18498
18499 ol_link_tls=no
18500 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
18501
18502 for ac_header in openssl/ssl.h
18503 do
18504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18506   echo "$as_me:$LINENO: checking for $ac_header" >&5
18507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18509   echo $ECHO_N "(cached) $ECHO_C" >&6
18510 fi
18511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18513 else
18514   # Is the header compilable?
18515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18517 cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h.  */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h.  */
18523 $ac_includes_default
18524 #include <$ac_header>
18525 _ACEOF
18526 rm -f conftest.$ac_objext
18527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18528   (eval $ac_compile) 2>conftest.er1
18529   ac_status=$?
18530   grep -v '^ *+' conftest.er1 >conftest.err
18531   rm -f conftest.er1
18532   cat conftest.err >&5
18533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534   (exit $ac_status); } &&
18535          { ac_try='test -z "$ac_c_werror_flag"
18536                          || test ! -s conftest.err'
18537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538   (eval $ac_try) 2>&5
18539   ac_status=$?
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); }; } &&
18542          { ac_try='test -s conftest.$ac_objext'
18543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544   (eval $ac_try) 2>&5
18545   ac_status=$?
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); }; }; then
18548   ac_header_compiler=yes
18549 else
18550   echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18552
18553 ac_header_compiler=no
18554 fi
18555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18557 echo "${ECHO_T}$ac_header_compiler" >&6
18558
18559 # Is the header present?
18560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18562 cat >conftest.$ac_ext <<_ACEOF
18563 /* confdefs.h.  */
18564 _ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h.  */
18568 #include <$ac_header>
18569 _ACEOF
18570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18571   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18572   ac_status=$?
18573   grep -v '^ *+' conftest.er1 >conftest.err
18574   rm -f conftest.er1
18575   cat conftest.err >&5
18576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577   (exit $ac_status); } >/dev/null; then
18578   if test -s conftest.err; then
18579     ac_cpp_err=$ac_c_preproc_warn_flag
18580     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18581   else
18582     ac_cpp_err=
18583   fi
18584 else
18585   ac_cpp_err=yes
18586 fi
18587 if test -z "$ac_cpp_err"; then
18588   ac_header_preproc=yes
18589 else
18590   echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18592
18593   ac_header_preproc=no
18594 fi
18595 rm -f conftest.err conftest.$ac_ext
18596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18597 echo "${ECHO_T}$ac_header_preproc" >&6
18598
18599 # So?  What about this header?
18600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18601   yes:no: )
18602     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18606     ac_header_preproc=yes
18607     ;;
18608   no:yes:* )
18609     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18611     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18612 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18613     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18615     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18616 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18619     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18621     (
18622       cat <<\_ASBOX
18623 ## --------------------------------------------- ##
18624 ## Report this to <http://www.openldap.org/its/> ##
18625 ## --------------------------------------------- ##
18626 _ASBOX
18627     ) |
18628       sed "s/^/$as_me: WARNING:     /" >&2
18629     ;;
18630 esac
18631 echo "$as_me:$LINENO: checking for $ac_header" >&5
18632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18634   echo $ECHO_N "(cached) $ECHO_C" >&6
18635 else
18636   eval "$as_ac_Header=\$ac_header_preproc"
18637 fi
18638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18640
18641 fi
18642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18643   cat >>confdefs.h <<_ACEOF
18644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18645 _ACEOF
18646
18647 fi
18648
18649 done
18650
18651
18652         if test $ac_cv_header_openssl_ssl_h = yes ; then
18653                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
18654 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
18655 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
18656   echo $ECHO_N "(cached) $ECHO_C" >&6
18657 else
18658   ac_check_lib_save_LIBS=$LIBS
18659 LIBS="-lssl -lcrypto $LIBS"
18660 cat >conftest.$ac_ext <<_ACEOF
18661 /* confdefs.h.  */
18662 _ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h.  */
18666
18667 /* Override any gcc2 internal prototype to avoid an error.  */
18668 #ifdef __cplusplus
18669 extern "C"
18670 #endif
18671 /* We use char because int might match the return type of a gcc2
18672    builtin and then its argument prototype would still apply.  */
18673 char SSL_library_init ();
18674 int
18675 main ()
18676 {
18677 SSL_library_init ();
18678   ;
18679   return 0;
18680 }
18681 _ACEOF
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18684   (eval $ac_link) 2>conftest.er1
18685   ac_status=$?
18686   grep -v '^ *+' conftest.er1 >conftest.err
18687   rm -f conftest.er1
18688   cat conftest.err >&5
18689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690   (exit $ac_status); } &&
18691          { ac_try='test -z "$ac_c_werror_flag"
18692                          || test ! -s conftest.err'
18693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694   (eval $ac_try) 2>&5
18695   ac_status=$?
18696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697   (exit $ac_status); }; } &&
18698          { ac_try='test -s conftest$ac_exeext'
18699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700   (eval $ac_try) 2>&5
18701   ac_status=$?
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); }; }; then
18704   ac_cv_lib_ssl_SSL_library_init=yes
18705 else
18706   echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18708
18709 ac_cv_lib_ssl_SSL_library_init=no
18710 fi
18711 rm -f conftest.err conftest.$ac_objext \
18712       conftest$ac_exeext conftest.$ac_ext
18713 LIBS=$ac_check_lib_save_LIBS
18714 fi
18715 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
18716 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
18717 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
18718   have_openssl=yes
18719                         need_rsaref=no
18720 else
18721   have_openssl=no
18722 fi
18723
18724
18725                 if test $have_openssl = no ; then
18726                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
18727 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
18728 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
18729   echo $ECHO_N "(cached) $ECHO_C" >&6
18730 else
18731   ac_check_lib_save_LIBS=$LIBS
18732 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
18733 cat >conftest.$ac_ext <<_ACEOF
18734 /* confdefs.h.  */
18735 _ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h.  */
18739
18740 /* Override any gcc2 internal prototype to avoid an error.  */
18741 #ifdef __cplusplus
18742 extern "C"
18743 #endif
18744 /* We use char because int might match the return type of a gcc2
18745    builtin and then its argument prototype would still apply.  */
18746 char ssl3_accept ();
18747 int
18748 main ()
18749 {
18750 ssl3_accept ();
18751   ;
18752   return 0;
18753 }
18754 _ACEOF
18755 rm -f conftest.$ac_objext conftest$ac_exeext
18756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18757   (eval $ac_link) 2>conftest.er1
18758   ac_status=$?
18759   grep -v '^ *+' conftest.er1 >conftest.err
18760   rm -f conftest.er1
18761   cat conftest.err >&5
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); } &&
18764          { ac_try='test -z "$ac_c_werror_flag"
18765                          || test ! -s conftest.err'
18766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767   (eval $ac_try) 2>&5
18768   ac_status=$?
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); }; } &&
18771          { ac_try='test -s conftest$ac_exeext'
18772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773   (eval $ac_try) 2>&5
18774   ac_status=$?
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); }; }; then
18777   ac_cv_lib_ssl_ssl3_accept=yes
18778 else
18779   echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18781
18782 ac_cv_lib_ssl_ssl3_accept=no
18783 fi
18784 rm -f conftest.err conftest.$ac_objext \
18785       conftest$ac_exeext conftest.$ac_ext
18786 LIBS=$ac_check_lib_save_LIBS
18787 fi
18788 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
18789 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
18790 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
18791   have_openssl=yes
18792                                 need_rsaref=yes
18793 else
18794   have_openssl=no
18795 fi
18796
18797                 fi
18798
18799                 if test $have_openssl = yes ; then
18800                         ol_with_tls=openssl
18801                         ol_link_tls=yes
18802
18803
18804 cat >>confdefs.h <<\_ACEOF
18805 #define HAVE_OPENSSL 1
18806 _ACEOF
18807
18808
18809                         if test $need_rsaref = yes; then
18810
18811 cat >>confdefs.h <<\_ACEOF
18812 #define HAVE_RSAREF 1
18813 _ACEOF
18814
18815
18816                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
18817                         else
18818                                 TLS_LIBS="-lssl -lcrypto"
18819                         fi
18820
18821                         echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
18822 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
18823 if test "${ol_cv_ssl_crl_compat+set}" = set; then
18824   echo $ECHO_N "(cached) $ECHO_C" >&6
18825 else
18826
18827                 cat >conftest.$ac_ext <<_ACEOF
18828 /* confdefs.h.  */
18829 _ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h.  */
18833
18834 #ifdef HAVE_OPENSSL_SSL_H
18835 #include <openssl/ssl.h>
18836 #endif
18837
18838 /* Require 0.9.7d+ */
18839 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
18840         char *__ssl_compat = "0.9.7d";
18841 #endif
18842
18843 _ACEOF
18844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18845   $EGREP "__ssl_compat" >/dev/null 2>&1; then
18846   ol_cv_ssl_crl_compat=yes
18847 else
18848   ol_cv_ssl_crl_compat=no
18849 fi
18850 rm -f conftest*
18851
18852 fi
18853 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
18854 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
18855
18856                         if test $ol_cv_ssl_crl_compat = yes ; then
18857
18858 cat >>confdefs.h <<\_ACEOF
18859 #define HAVE_OPENSSL_CRL 1
18860 _ACEOF
18861
18862                         fi
18863                 fi
18864         fi
18865 fi
18866
18867 if test $ol_link_tls = no ; then
18868         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
18869
18870 for ac_header in gnutls/gnutls.h
18871 do
18872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18874   echo "$as_me:$LINENO: checking for $ac_header" >&5
18875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18877   echo $ECHO_N "(cached) $ECHO_C" >&6
18878 fi
18879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18881 else
18882   # Is the header compilable?
18883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18885 cat >conftest.$ac_ext <<_ACEOF
18886 /* confdefs.h.  */
18887 _ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h.  */
18891 $ac_includes_default
18892 #include <$ac_header>
18893 _ACEOF
18894 rm -f conftest.$ac_objext
18895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18896   (eval $ac_compile) 2>conftest.er1
18897   ac_status=$?
18898   grep -v '^ *+' conftest.er1 >conftest.err
18899   rm -f conftest.er1
18900   cat conftest.err >&5
18901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902   (exit $ac_status); } &&
18903          { ac_try='test -z "$ac_c_werror_flag"
18904                          || test ! -s conftest.err'
18905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906   (eval $ac_try) 2>&5
18907   ac_status=$?
18908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909   (exit $ac_status); }; } &&
18910          { ac_try='test -s conftest.$ac_objext'
18911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18912   (eval $ac_try) 2>&5
18913   ac_status=$?
18914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915   (exit $ac_status); }; }; then
18916   ac_header_compiler=yes
18917 else
18918   echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18920
18921 ac_header_compiler=no
18922 fi
18923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18925 echo "${ECHO_T}$ac_header_compiler" >&6
18926
18927 # Is the header present?
18928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18930 cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h.  */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h.  */
18936 #include <$ac_header>
18937 _ACEOF
18938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18939   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18940   ac_status=$?
18941   grep -v '^ *+' conftest.er1 >conftest.err
18942   rm -f conftest.er1
18943   cat conftest.err >&5
18944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945   (exit $ac_status); } >/dev/null; then
18946   if test -s conftest.err; then
18947     ac_cpp_err=$ac_c_preproc_warn_flag
18948     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18949   else
18950     ac_cpp_err=
18951   fi
18952 else
18953   ac_cpp_err=yes
18954 fi
18955 if test -z "$ac_cpp_err"; then
18956   ac_header_preproc=yes
18957 else
18958   echo "$as_me: failed program was:" >&5
18959 sed 's/^/| /' conftest.$ac_ext >&5
18960
18961   ac_header_preproc=no
18962 fi
18963 rm -f conftest.err conftest.$ac_ext
18964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18965 echo "${ECHO_T}$ac_header_preproc" >&6
18966
18967 # So?  What about this header?
18968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18969   yes:no: )
18970     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18974     ac_header_preproc=yes
18975     ;;
18976   no:yes:* )
18977     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18979     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18980 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18981     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18983     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18984 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18987     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18989     (
18990       cat <<\_ASBOX
18991 ## --------------------------------------------- ##
18992 ## Report this to <http://www.openldap.org/its/> ##
18993 ## --------------------------------------------- ##
18994 _ASBOX
18995     ) |
18996       sed "s/^/$as_me: WARNING:     /" >&2
18997     ;;
18998 esac
18999 echo "$as_me:$LINENO: checking for $ac_header" >&5
19000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19002   echo $ECHO_N "(cached) $ECHO_C" >&6
19003 else
19004   eval "$as_ac_Header=\$ac_header_preproc"
19005 fi
19006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19008
19009 fi
19010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19011   cat >>confdefs.h <<_ACEOF
19012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19013 _ACEOF
19014
19015 fi
19016
19017 done
19018
19019
19020                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19021                         echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19022 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
19023 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19024   echo $ECHO_N "(cached) $ECHO_C" >&6
19025 else
19026   ac_check_lib_save_LIBS=$LIBS
19027 LIBS="-lgnutls  $LIBS"
19028 cat >conftest.$ac_ext <<_ACEOF
19029 /* confdefs.h.  */
19030 _ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h.  */
19034
19035 /* Override any gcc2 internal prototype to avoid an error.  */
19036 #ifdef __cplusplus
19037 extern "C"
19038 #endif
19039 /* We use char because int might match the return type of a gcc2
19040    builtin and then its argument prototype would still apply.  */
19041 char gnutls_init ();
19042 int
19043 main ()
19044 {
19045 gnutls_init ();
19046   ;
19047   return 0;
19048 }
19049 _ACEOF
19050 rm -f conftest.$ac_objext conftest$ac_exeext
19051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19052   (eval $ac_link) 2>conftest.er1
19053   ac_status=$?
19054   grep -v '^ *+' conftest.er1 >conftest.err
19055   rm -f conftest.er1
19056   cat conftest.err >&5
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); } &&
19059          { ac_try='test -z "$ac_c_werror_flag"
19060                          || test ! -s conftest.err'
19061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19062   (eval $ac_try) 2>&5
19063   ac_status=$?
19064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065   (exit $ac_status); }; } &&
19066          { ac_try='test -s conftest$ac_exeext'
19067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068   (eval $ac_try) 2>&5
19069   ac_status=$?
19070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071   (exit $ac_status); }; }; then
19072   ac_cv_lib_gnutls_gnutls_init=yes
19073 else
19074   echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.$ac_ext >&5
19076
19077 ac_cv_lib_gnutls_gnutls_init=no
19078 fi
19079 rm -f conftest.err conftest.$ac_objext \
19080       conftest$ac_exeext conftest.$ac_ext
19081 LIBS=$ac_check_lib_save_LIBS
19082 fi
19083 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19084 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
19085 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19086   have_gnutls=yes
19087 else
19088   have_gnutls=no
19089 fi
19090
19091
19092                         if test $have_gnutls = yes ; then
19093                                 ol_with_tls=gnutls
19094                                 ol_link_tls=yes
19095
19096                                 TLS_LIBS="-lgnutls"
19097
19098
19099 cat >>confdefs.h <<\_ACEOF
19100 #define HAVE_GNUTLS 1
19101 _ACEOF
19102
19103                         fi
19104                 fi
19105         fi
19106 fi
19107
19108 WITH_TLS=no
19109 if test $ol_link_tls = yes ; then
19110
19111 cat >>confdefs.h <<\_ACEOF
19112 #define HAVE_TLS 1
19113 _ACEOF
19114
19115         WITH_TLS=yes
19116 elif test $ol_with_tls = auto ; then
19117         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19118 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19119         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19120 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19121 elif test $ol_with_tls != no ; then
19122         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19123 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19124    { (exit 1); exit 1; }; }
19125 else
19126         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19127 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19128 fi
19129
19130 if test $ol_enable_lmpasswd != no; then
19131         if test $ol_link_tls != yes ; then
19132                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19133 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19134    { (exit 1); exit 1; }; }
19135         fi
19136
19137
19138 cat >>confdefs.h <<\_ACEOF
19139 #define SLAPD_LMHASH 1
19140 _ACEOF
19141
19142 fi
19143
19144 ol_link_threads=no
19145
19146 case $ol_with_threads in auto | yes | nt)
19147
19148
19149         echo "$as_me:$LINENO: checking for _beginthread" >&5
19150 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19151 if test "${ac_cv_func__beginthread+set}" = set; then
19152   echo $ECHO_N "(cached) $ECHO_C" >&6
19153 else
19154   cat >conftest.$ac_ext <<_ACEOF
19155 /* confdefs.h.  */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h.  */
19160 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19162 #define _beginthread innocuous__beginthread
19163
19164 /* System header to define __stub macros and hopefully few prototypes,
19165     which can conflict with char _beginthread (); below.
19166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19167     <limits.h> exists even on freestanding compilers.  */
19168
19169 #ifdef __STDC__
19170 # include <limits.h>
19171 #else
19172 # include <assert.h>
19173 #endif
19174
19175 #undef _beginthread
19176
19177 /* Override any gcc2 internal prototype to avoid an error.  */
19178 #ifdef __cplusplus
19179 extern "C"
19180 {
19181 #endif
19182 /* We use char because int might match the return type of a gcc2
19183    builtin and then its argument prototype would still apply.  */
19184 char _beginthread ();
19185 /* The GNU C library defines this for functions which it implements
19186     to always fail with ENOSYS.  Some functions are actually named
19187     something starting with __ and the normal name is an alias.  */
19188 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19189 choke me
19190 #else
19191 char (*f) () = _beginthread;
19192 #endif
19193 #ifdef __cplusplus
19194 }
19195 #endif
19196
19197 int
19198 main ()
19199 {
19200 return f != _beginthread;
19201   ;
19202   return 0;
19203 }
19204 _ACEOF
19205 rm -f conftest.$ac_objext conftest$ac_exeext
19206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19207   (eval $ac_link) 2>conftest.er1
19208   ac_status=$?
19209   grep -v '^ *+' conftest.er1 >conftest.err
19210   rm -f conftest.er1
19211   cat conftest.err >&5
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); } &&
19214          { ac_try='test -z "$ac_c_werror_flag"
19215                          || test ! -s conftest.err'
19216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217   (eval $ac_try) 2>&5
19218   ac_status=$?
19219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220   (exit $ac_status); }; } &&
19221          { ac_try='test -s conftest$ac_exeext'
19222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223   (eval $ac_try) 2>&5
19224   ac_status=$?
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); }; }; then
19227   ac_cv_func__beginthread=yes
19228 else
19229   echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19231
19232 ac_cv_func__beginthread=no
19233 fi
19234 rm -f conftest.err conftest.$ac_objext \
19235       conftest$ac_exeext conftest.$ac_ext
19236 fi
19237 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19238 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19239
19240
19241         if test $ac_cv_func__beginthread = yes ; then
19242
19243 cat >>confdefs.h <<\_ACEOF
19244 #define HAVE_NT_THREADS 1
19245 _ACEOF
19246
19247                 ol_cv_nt_threads=yes
19248         fi
19249
19250
19251         if test "$ol_cv_nt_threads" = yes ; then
19252                 ol_link_threads=nt
19253                 ol_with_threads=found
19254                 ol_with_yielding_select=yes
19255
19256
19257 cat >>confdefs.h <<\_ACEOF
19258 #define HAVE_NT_SERVICE_MANAGER 1
19259 _ACEOF
19260
19261
19262 cat >>confdefs.h <<\_ACEOF
19263 #define HAVE_NT_EVENT_LOG 1
19264 _ACEOF
19265
19266         fi
19267
19268         if test $ol_with_threads = nt ; then
19269                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19270 echo "$as_me: error: could not locate NT Threads" >&2;}
19271    { (exit 1); exit 1; }; }
19272         fi
19273         ;;
19274 esac
19275
19276 case $ol_with_threads in auto | yes | posix)
19277
19278
19279 for ac_header in pthread.h
19280 do
19281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19283   echo "$as_me:$LINENO: checking for $ac_header" >&5
19284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19286   echo $ECHO_N "(cached) $ECHO_C" >&6
19287 fi
19288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19290 else
19291   # Is the header compilable?
19292 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19294 cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h.  */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h.  */
19300 $ac_includes_default
19301 #include <$ac_header>
19302 _ACEOF
19303 rm -f conftest.$ac_objext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19305   (eval $ac_compile) 2>conftest.er1
19306   ac_status=$?
19307   grep -v '^ *+' conftest.er1 >conftest.err
19308   rm -f conftest.er1
19309   cat conftest.err >&5
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); } &&
19312          { ac_try='test -z "$ac_c_werror_flag"
19313                          || test ! -s conftest.err'
19314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315   (eval $ac_try) 2>&5
19316   ac_status=$?
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); }; } &&
19319          { ac_try='test -s conftest.$ac_objext'
19320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321   (eval $ac_try) 2>&5
19322   ac_status=$?
19323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324   (exit $ac_status); }; }; then
19325   ac_header_compiler=yes
19326 else
19327   echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19329
19330 ac_header_compiler=no
19331 fi
19332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19334 echo "${ECHO_T}$ac_header_compiler" >&6
19335
19336 # Is the header present?
19337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19339 cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h.  */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h.  */
19345 #include <$ac_header>
19346 _ACEOF
19347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19348   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19349   ac_status=$?
19350   grep -v '^ *+' conftest.er1 >conftest.err
19351   rm -f conftest.er1
19352   cat conftest.err >&5
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); } >/dev/null; then
19355   if test -s conftest.err; then
19356     ac_cpp_err=$ac_c_preproc_warn_flag
19357     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19358   else
19359     ac_cpp_err=
19360   fi
19361 else
19362   ac_cpp_err=yes
19363 fi
19364 if test -z "$ac_cpp_err"; then
19365   ac_header_preproc=yes
19366 else
19367   echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19369
19370   ac_header_preproc=no
19371 fi
19372 rm -f conftest.err conftest.$ac_ext
19373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19374 echo "${ECHO_T}$ac_header_preproc" >&6
19375
19376 # So?  What about this header?
19377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19378   yes:no: )
19379     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19383     ac_header_preproc=yes
19384     ;;
19385   no:yes:* )
19386     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19388     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19389 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19390     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19392     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19393 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19396     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19398     (
19399       cat <<\_ASBOX
19400 ## --------------------------------------------- ##
19401 ## Report this to <http://www.openldap.org/its/> ##
19402 ## --------------------------------------------- ##
19403 _ASBOX
19404     ) |
19405       sed "s/^/$as_me: WARNING:     /" >&2
19406     ;;
19407 esac
19408 echo "$as_me:$LINENO: checking for $ac_header" >&5
19409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19411   echo $ECHO_N "(cached) $ECHO_C" >&6
19412 else
19413   eval "$as_ac_Header=\$ac_header_preproc"
19414 fi
19415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19417
19418 fi
19419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19420   cat >>confdefs.h <<_ACEOF
19421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19422 _ACEOF
19423
19424 fi
19425
19426 done
19427
19428
19429         if test $ac_cv_header_pthread_h = yes ; then
19430                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19431 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19432 if test "${ol_cv_pthread_version+set}" = set; then
19433   echo $ECHO_N "(cached) $ECHO_C" >&6
19434 else
19435
19436         cat >conftest.$ac_ext <<_ACEOF
19437 /* confdefs.h.  */
19438 _ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h.  */
19442
19443 #               include <pthread.h>
19444
19445 int
19446 main ()
19447 {
19448
19449                 int i = PTHREAD_CREATE_JOINABLE;
19450
19451   ;
19452   return 0;
19453 }
19454 _ACEOF
19455 rm -f conftest.$ac_objext
19456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19457   (eval $ac_compile) 2>conftest.er1
19458   ac_status=$?
19459   grep -v '^ *+' conftest.er1 >conftest.err
19460   rm -f conftest.er1
19461   cat conftest.err >&5
19462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); } &&
19464          { ac_try='test -z "$ac_c_werror_flag"
19465                          || test ! -s conftest.err'
19466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467   (eval $ac_try) 2>&5
19468   ac_status=$?
19469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470   (exit $ac_status); }; } &&
19471          { ac_try='test -s conftest.$ac_objext'
19472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473   (eval $ac_try) 2>&5
19474   ac_status=$?
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); }; }; then
19477
19478         cat >conftest.$ac_ext <<_ACEOF
19479 /* confdefs.h.  */
19480 _ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h.  */
19484 #include <pthread.h>
19485
19486 _ACEOF
19487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19488   $EGREP "pthread_detach" >/dev/null 2>&1; then
19489   ol_cv_pthread_version=10
19490 else
19491   ol_cv_pthread_version=8
19492 fi
19493 rm -f conftest*
19494
19495 else
19496   echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19498
19499
19500         cat >conftest.$ac_ext <<_ACEOF
19501 /* confdefs.h.  */
19502 _ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h.  */
19506
19507 #               include <pthread.h>
19508 #               ifdef PTHREAD_CREATE_UNDETACHED
19509                 draft7
19510 #               endif
19511
19512 _ACEOF
19513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19514   $EGREP "draft7" >/dev/null 2>&1; then
19515   ol_cv_pthread_version=7
19516 else
19517
19518         cat >conftest.$ac_ext <<_ACEOF
19519 /* confdefs.h.  */
19520 _ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h.  */
19524 #include <pthread.h>
19525
19526 _ACEOF
19527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19528   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19529   ol_cv_pthread_version=6
19530 else
19531
19532         cat >conftest.$ac_ext <<_ACEOF
19533 /* confdefs.h.  */
19534 _ACEOF
19535 cat confdefs.h >>conftest.$ac_ext
19536 cat >>conftest.$ac_ext <<_ACEOF
19537 /* end confdefs.h.  */
19538
19539 #               include <pthread.h>
19540 #ifdef          PTHREAD_MUTEX_INITIALIZER
19541                 draft5
19542 #endif
19543
19544 _ACEOF
19545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19546   $EGREP "draft5" >/dev/null 2>&1; then
19547   ol_cv_pthread_version=5
19548 else
19549   ol_cv_pthread_version=4
19550 fi
19551 rm -f conftest*
19552
19553 fi
19554 rm -f conftest*
19555
19556 fi
19557 rm -f conftest*
19558
19559 fi
19560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19561
19562 fi
19563 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
19564 echo "${ECHO_T}$ol_cv_pthread_version" >&6
19565
19566
19567                 if test $ol_cv_pthread_version != 0 ; then
19568
19569 cat >>confdefs.h <<_ACEOF
19570 #define HAVE_PTHREADS $ol_cv_pthread_version
19571 _ACEOF
19572
19573                 else
19574                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
19575 echo "$as_me: error: unknown pthread version" >&2;}
19576    { (exit 1); exit 1; }; }
19577                 fi
19578
19579                 # consider threads found
19580                 ol_with_threads=found
19581
19582
19583         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
19584 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
19585 if test "${ol_cv_header_linux_threads+set}" = set; then
19586   echo $ECHO_N "(cached) $ECHO_C" >&6
19587 else
19588   cat >conftest.$ac_ext <<_ACEOF
19589 /* confdefs.h.  */
19590 _ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h.  */
19594 #include <pthread.h>
19595 _ACEOF
19596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19597   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
19598   ol_cv_header_linux_threads=yes
19599 else
19600   ol_cv_header_linux_threads=no
19601 fi
19602 rm -f conftest*
19603
19604
19605 fi
19606 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
19607 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
19608         if test $ol_cv_header_linux_threads = yes; then
19609
19610 cat >>confdefs.h <<\_ACEOF
19611 #define HAVE_LINUX_THREADS 1
19612 _ACEOF
19613
19614         fi
19615
19616
19617         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
19618 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
19619 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
19620   echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622   cat >conftest.$ac_ext <<_ACEOF
19623 /* confdefs.h.  */
19624 _ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h.  */
19628 #include <pthread.h>
19629 #ifdef _POSIX_THREAD_IS_GNU_PTH
19630         __gnu_pth__;
19631 #endif
19632
19633 _ACEOF
19634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19635   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
19636   ol_cv_header_gnu_pth_pthread_h=yes
19637 else
19638   ol_cv_header_gnu_pth_pthread_h=no
19639 fi
19640 rm -f conftest*
19641
19642
19643 fi
19644 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19645 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
19646
19647
19648                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19649
19650 for ac_header in sched.h
19651 do
19652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19654   echo "$as_me:$LINENO: checking for $ac_header" >&5
19655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19657   echo $ECHO_N "(cached) $ECHO_C" >&6
19658 fi
19659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19661 else
19662   # Is the header compilable?
19663 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19665 cat >conftest.$ac_ext <<_ACEOF
19666 /* confdefs.h.  */
19667 _ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h.  */
19671 $ac_includes_default
19672 #include <$ac_header>
19673 _ACEOF
19674 rm -f conftest.$ac_objext
19675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19676   (eval $ac_compile) 2>conftest.er1
19677   ac_status=$?
19678   grep -v '^ *+' conftest.er1 >conftest.err
19679   rm -f conftest.er1
19680   cat conftest.err >&5
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); } &&
19683          { ac_try='test -z "$ac_c_werror_flag"
19684                          || test ! -s conftest.err'
19685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686   (eval $ac_try) 2>&5
19687   ac_status=$?
19688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689   (exit $ac_status); }; } &&
19690          { ac_try='test -s conftest.$ac_objext'
19691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692   (eval $ac_try) 2>&5
19693   ac_status=$?
19694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695   (exit $ac_status); }; }; then
19696   ac_header_compiler=yes
19697 else
19698   echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19700
19701 ac_header_compiler=no
19702 fi
19703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19705 echo "${ECHO_T}$ac_header_compiler" >&6
19706
19707 # Is the header present?
19708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19710 cat >conftest.$ac_ext <<_ACEOF
19711 /* confdefs.h.  */
19712 _ACEOF
19713 cat confdefs.h >>conftest.$ac_ext
19714 cat >>conftest.$ac_ext <<_ACEOF
19715 /* end confdefs.h.  */
19716 #include <$ac_header>
19717 _ACEOF
19718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19719   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19720   ac_status=$?
19721   grep -v '^ *+' conftest.er1 >conftest.err
19722   rm -f conftest.er1
19723   cat conftest.err >&5
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); } >/dev/null; then
19726   if test -s conftest.err; then
19727     ac_cpp_err=$ac_c_preproc_warn_flag
19728     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19729   else
19730     ac_cpp_err=
19731   fi
19732 else
19733   ac_cpp_err=yes
19734 fi
19735 if test -z "$ac_cpp_err"; then
19736   ac_header_preproc=yes
19737 else
19738   echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19740
19741   ac_header_preproc=no
19742 fi
19743 rm -f conftest.err conftest.$ac_ext
19744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19745 echo "${ECHO_T}$ac_header_preproc" >&6
19746
19747 # So?  What about this header?
19748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19749   yes:no: )
19750     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19754     ac_header_preproc=yes
19755     ;;
19756   no:yes:* )
19757     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19759     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19760 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19761     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19763     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19764 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19767     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19769     (
19770       cat <<\_ASBOX
19771 ## --------------------------------------------- ##
19772 ## Report this to <http://www.openldap.org/its/> ##
19773 ## --------------------------------------------- ##
19774 _ASBOX
19775     ) |
19776       sed "s/^/$as_me: WARNING:     /" >&2
19777     ;;
19778 esac
19779 echo "$as_me:$LINENO: checking for $ac_header" >&5
19780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19782   echo $ECHO_N "(cached) $ECHO_C" >&6
19783 else
19784   eval "$as_ac_Header=\$ac_header_preproc"
19785 fi
19786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19788
19789 fi
19790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19791   cat >>confdefs.h <<_ACEOF
19792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19793 _ACEOF
19794
19795 fi
19796
19797 done
19798
19799                 fi
19800
19801
19802                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
19803 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
19804 if test "${ol_cv_pthread_create+set}" = set; then
19805   echo $ECHO_N "(cached) $ECHO_C" >&6
19806 else
19807
19808                         if test "$cross_compiling" = yes; then
19809   cat >conftest.$ac_ext <<_ACEOF
19810 /* confdefs.h.  */
19811 _ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h.  */
19815
19816 /* pthread test headers */
19817 #include <pthread.h>
19818 #if HAVE_PTHREADS < 7
19819 #include <errno.h>
19820 #endif
19821 #ifndef NULL
19822 #define NULL (void*)0
19823 #endif
19824
19825 static void *task(p)
19826         void *p;
19827 {
19828         return (void *) (p == NULL);
19829 }
19830
19831 int
19832 main ()
19833 {
19834
19835         /* pthread test function */
19836 #ifndef PTHREAD_CREATE_DETACHED
19837 #define PTHREAD_CREATE_DETACHED 1
19838 #endif
19839         pthread_t t;
19840         int status;
19841         int detach = PTHREAD_CREATE_DETACHED;
19842
19843 #if HAVE_PTHREADS > 4
19844         /* Final pthreads */
19845         pthread_attr_t attr;
19846
19847         status = pthread_attr_init(&attr);
19848         if( status ) return status;
19849
19850 #if HAVE_PTHREADS < 7
19851         status = pthread_attr_setdetachstate(&attr, &detach);
19852         if( status < 0 ) status = errno;
19853 #else
19854         status = pthread_attr_setdetachstate(&attr, detach);
19855 #endif
19856         if( status ) return status;
19857         status = pthread_create( &t, &attr, task, NULL );
19858 #if HAVE_PTHREADS < 7
19859         if( status < 0 ) status = errno;
19860 #endif
19861         if( status ) return status;
19862 #else
19863         /* Draft 4 pthreads */
19864         status = pthread_create( &t, pthread_attr_default, task, NULL );
19865         if( status ) return errno;
19866
19867         /* give thread a chance to complete */
19868         /* it should remain joinable and hence detachable */
19869         sleep( 1 );
19870
19871         status = pthread_detach( &t );
19872         if( status ) return errno;
19873 #endif
19874
19875 #ifdef HAVE_LINUX_THREADS
19876         pthread_kill_other_threads_np();
19877 #endif
19878
19879         return 0;
19880
19881   ;
19882   return 0;
19883 }
19884 _ACEOF
19885 rm -f conftest.$ac_objext conftest$ac_exeext
19886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19887   (eval $ac_link) 2>conftest.er1
19888   ac_status=$?
19889   grep -v '^ *+' conftest.er1 >conftest.err
19890   rm -f conftest.er1
19891   cat conftest.err >&5
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); } &&
19894          { ac_try='test -z "$ac_c_werror_flag"
19895                          || test ! -s conftest.err'
19896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897   (eval $ac_try) 2>&5
19898   ac_status=$?
19899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900   (exit $ac_status); }; } &&
19901          { ac_try='test -s conftest$ac_exeext'
19902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903   (eval $ac_try) 2>&5
19904   ac_status=$?
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); }; }; then
19907   ol_cv_pthread_create=yes
19908 else
19909   echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19911
19912 ol_cv_pthread_create=no
19913 fi
19914 rm -f conftest.err conftest.$ac_objext \
19915       conftest$ac_exeext conftest.$ac_ext
19916 else
19917   cat >conftest.$ac_ext <<_ACEOF
19918 /* confdefs.h.  */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h.  */
19923
19924 /* pthread test headers */
19925 #include <pthread.h>
19926 #if HAVE_PTHREADS < 7
19927 #include <errno.h>
19928 #endif
19929 #ifndef NULL
19930 #define NULL (void*)0
19931 #endif
19932
19933 static void *task(p)
19934         void *p;
19935 {
19936         return (void *) (p == NULL);
19937 }
19938
19939
19940 int main(argc, argv)
19941         int argc;
19942         char **argv;
19943 {
19944
19945         /* pthread test function */
19946 #ifndef PTHREAD_CREATE_DETACHED
19947 #define PTHREAD_CREATE_DETACHED 1
19948 #endif
19949         pthread_t t;
19950         int status;
19951         int detach = PTHREAD_CREATE_DETACHED;
19952
19953 #if HAVE_PTHREADS > 4
19954         /* Final pthreads */
19955         pthread_attr_t attr;
19956
19957         status = pthread_attr_init(&attr);
19958         if( status ) return status;
19959
19960 #if HAVE_PTHREADS < 7
19961         status = pthread_attr_setdetachstate(&attr, &detach);
19962         if( status < 0 ) status = errno;
19963 #else
19964         status = pthread_attr_setdetachstate(&attr, detach);
19965 #endif
19966         if( status ) return status;
19967         status = pthread_create( &t, &attr, task, NULL );
19968 #if HAVE_PTHREADS < 7
19969         if( status < 0 ) status = errno;
19970 #endif
19971         if( status ) return status;
19972 #else
19973         /* Draft 4 pthreads */
19974         status = pthread_create( &t, pthread_attr_default, task, NULL );
19975         if( status ) return errno;
19976
19977         /* give thread a chance to complete */
19978         /* it should remain joinable and hence detachable */
19979         sleep( 1 );
19980
19981         status = pthread_detach( &t );
19982         if( status ) return errno;
19983 #endif
19984
19985 #ifdef HAVE_LINUX_THREADS
19986         pthread_kill_other_threads_np();
19987 #endif
19988
19989         return 0;
19990
19991 }
19992
19993 _ACEOF
19994 rm -f conftest$ac_exeext
19995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19996   (eval $ac_link) 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001   (eval $ac_try) 2>&5
20002   ac_status=$?
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); }; }; then
20005   ol_cv_pthread_create=yes
20006 else
20007   echo "$as_me: program exited with status $ac_status" >&5
20008 echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20010
20011 ( exit $ac_status )
20012 ol_cv_pthread_create=no
20013 fi
20014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20015 fi
20016 fi
20017 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20018 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20019
20020                 if test $ol_cv_pthread_create != no ; then
20021                         ol_link_threads=posix
20022                         ol_link_pthreads=""
20023                 fi
20024
20025                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20026 if test "$ol_link_threads" = no ; then
20027         # try -kthread
20028         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20029 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20030 if test "${ol_cv_pthread_kthread+set}" = set; then
20031   echo $ECHO_N "(cached) $ECHO_C" >&6
20032 else
20033
20034                 # save the flags
20035                 ol_LIBS="$LIBS"
20036                 LIBS="-kthread $LIBS"
20037
20038                 if test "$cross_compiling" = yes; then
20039   cat >conftest.$ac_ext <<_ACEOF
20040 /* confdefs.h.  */
20041 _ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h.  */
20045
20046 /* pthread test headers */
20047 #include <pthread.h>
20048 #if HAVE_PTHREADS < 7
20049 #include <errno.h>
20050 #endif
20051 #ifndef NULL
20052 #define NULL (void*)0
20053 #endif
20054
20055 static void *task(p)
20056         void *p;
20057 {
20058         return (void *) (p == NULL);
20059 }
20060
20061 int
20062 main ()
20063 {
20064
20065         /* pthread test function */
20066 #ifndef PTHREAD_CREATE_DETACHED
20067 #define PTHREAD_CREATE_DETACHED 1
20068 #endif
20069         pthread_t t;
20070         int status;
20071         int detach = PTHREAD_CREATE_DETACHED;
20072
20073 #if HAVE_PTHREADS > 4
20074         /* Final pthreads */
20075         pthread_attr_t attr;
20076
20077         status = pthread_attr_init(&attr);
20078         if( status ) return status;
20079
20080 #if HAVE_PTHREADS < 7
20081         status = pthread_attr_setdetachstate(&attr, &detach);
20082         if( status < 0 ) status = errno;
20083 #else
20084         status = pthread_attr_setdetachstate(&attr, detach);
20085 #endif
20086         if( status ) return status;
20087         status = pthread_create( &t, &attr, task, NULL );
20088 #if HAVE_PTHREADS < 7
20089         if( status < 0 ) status = errno;
20090 #endif
20091         if( status ) return status;
20092 #else
20093         /* Draft 4 pthreads */
20094         status = pthread_create( &t, pthread_attr_default, task, NULL );
20095         if( status ) return errno;
20096
20097         /* give thread a chance to complete */
20098         /* it should remain joinable and hence detachable */
20099         sleep( 1 );
20100
20101         status = pthread_detach( &t );
20102         if( status ) return errno;
20103 #endif
20104
20105 #ifdef HAVE_LINUX_THREADS
20106         pthread_kill_other_threads_np();
20107 #endif
20108
20109         return 0;
20110
20111   ;
20112   return 0;
20113 }
20114 _ACEOF
20115 rm -f conftest.$ac_objext conftest$ac_exeext
20116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20117   (eval $ac_link) 2>conftest.er1
20118   ac_status=$?
20119   grep -v '^ *+' conftest.er1 >conftest.err
20120   rm -f conftest.er1
20121   cat conftest.err >&5
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); } &&
20124          { ac_try='test -z "$ac_c_werror_flag"
20125                          || test ! -s conftest.err'
20126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20127   (eval $ac_try) 2>&5
20128   ac_status=$?
20129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130   (exit $ac_status); }; } &&
20131          { ac_try='test -s conftest$ac_exeext'
20132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133   (eval $ac_try) 2>&5
20134   ac_status=$?
20135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136   (exit $ac_status); }; }; then
20137   ol_cv_pthread_kthread=yes
20138 else
20139   echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20141
20142 ol_cv_pthread_kthread=no
20143 fi
20144 rm -f conftest.err conftest.$ac_objext \
20145       conftest$ac_exeext conftest.$ac_ext
20146 else
20147   cat >conftest.$ac_ext <<_ACEOF
20148 /* confdefs.h.  */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h.  */
20153
20154 /* pthread test headers */
20155 #include <pthread.h>
20156 #if HAVE_PTHREADS < 7
20157 #include <errno.h>
20158 #endif
20159 #ifndef NULL
20160 #define NULL (void*)0
20161 #endif
20162
20163 static void *task(p)
20164         void *p;
20165 {
20166         return (void *) (p == NULL);
20167 }
20168
20169
20170 int main(argc, argv)
20171         int argc;
20172         char **argv;
20173 {
20174
20175         /* pthread test function */
20176 #ifndef PTHREAD_CREATE_DETACHED
20177 #define PTHREAD_CREATE_DETACHED 1
20178 #endif
20179         pthread_t t;
20180         int status;
20181         int detach = PTHREAD_CREATE_DETACHED;
20182
20183 #if HAVE_PTHREADS > 4
20184         /* Final pthreads */
20185         pthread_attr_t attr;
20186
20187         status = pthread_attr_init(&attr);
20188         if( status ) return status;
20189
20190 #if HAVE_PTHREADS < 7
20191         status = pthread_attr_setdetachstate(&attr, &detach);
20192         if( status < 0 ) status = errno;
20193 #else
20194         status = pthread_attr_setdetachstate(&attr, detach);
20195 #endif
20196         if( status ) return status;
20197         status = pthread_create( &t, &attr, task, NULL );
20198 #if HAVE_PTHREADS < 7
20199         if( status < 0 ) status = errno;
20200 #endif
20201         if( status ) return status;
20202 #else
20203         /* Draft 4 pthreads */
20204         status = pthread_create( &t, pthread_attr_default, task, NULL );
20205         if( status ) return errno;
20206
20207         /* give thread a chance to complete */
20208         /* it should remain joinable and hence detachable */
20209         sleep( 1 );
20210
20211         status = pthread_detach( &t );
20212         if( status ) return errno;
20213 #endif
20214
20215 #ifdef HAVE_LINUX_THREADS
20216         pthread_kill_other_threads_np();
20217 #endif
20218
20219         return 0;
20220
20221 }
20222
20223 _ACEOF
20224 rm -f conftest$ac_exeext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20226   (eval $ac_link) 2>&5
20227   ac_status=$?
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231   (eval $ac_try) 2>&5
20232   ac_status=$?
20233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234   (exit $ac_status); }; }; then
20235   ol_cv_pthread_kthread=yes
20236 else
20237   echo "$as_me: program exited with status $ac_status" >&5
20238 echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20240
20241 ( exit $ac_status )
20242 ol_cv_pthread_kthread=no
20243 fi
20244 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20245 fi
20246
20247                 # restore the LIBS
20248                 LIBS="$ol_LIBS"
20249
20250 fi
20251 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20252 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20253
20254         if test $ol_cv_pthread_kthread = yes ; then
20255                 ol_link_pthreads="-kthread"
20256                 ol_link_threads=posix
20257         fi
20258 fi
20259
20260                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20261 if test "$ol_link_threads" = no ; then
20262         # try -pthread
20263         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20264 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20265 if test "${ol_cv_pthread_pthread+set}" = set; then
20266   echo $ECHO_N "(cached) $ECHO_C" >&6
20267 else
20268
20269                 # save the flags
20270                 ol_LIBS="$LIBS"
20271                 LIBS="-pthread $LIBS"
20272
20273                 if test "$cross_compiling" = yes; then
20274   cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h.  */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h.  */
20280
20281 /* pthread test headers */
20282 #include <pthread.h>
20283 #if HAVE_PTHREADS < 7
20284 #include <errno.h>
20285 #endif
20286 #ifndef NULL
20287 #define NULL (void*)0
20288 #endif
20289
20290 static void *task(p)
20291         void *p;
20292 {
20293         return (void *) (p == NULL);
20294 }
20295
20296 int
20297 main ()
20298 {
20299
20300         /* pthread test function */
20301 #ifndef PTHREAD_CREATE_DETACHED
20302 #define PTHREAD_CREATE_DETACHED 1
20303 #endif
20304         pthread_t t;
20305         int status;
20306         int detach = PTHREAD_CREATE_DETACHED;
20307
20308 #if HAVE_PTHREADS > 4
20309         /* Final pthreads */
20310         pthread_attr_t attr;
20311
20312         status = pthread_attr_init(&attr);
20313         if( status ) return status;
20314
20315 #if HAVE_PTHREADS < 7
20316         status = pthread_attr_setdetachstate(&attr, &detach);
20317         if( status < 0 ) status = errno;
20318 #else
20319         status = pthread_attr_setdetachstate(&attr, detach);
20320 #endif
20321         if( status ) return status;
20322         status = pthread_create( &t, &attr, task, NULL );
20323 #if HAVE_PTHREADS < 7
20324         if( status < 0 ) status = errno;
20325 #endif
20326         if( status ) return status;
20327 #else
20328         /* Draft 4 pthreads */
20329         status = pthread_create( &t, pthread_attr_default, task, NULL );
20330         if( status ) return errno;
20331
20332         /* give thread a chance to complete */
20333         /* it should remain joinable and hence detachable */
20334         sleep( 1 );
20335
20336         status = pthread_detach( &t );
20337         if( status ) return errno;
20338 #endif
20339
20340 #ifdef HAVE_LINUX_THREADS
20341         pthread_kill_other_threads_np();
20342 #endif
20343
20344         return 0;
20345
20346   ;
20347   return 0;
20348 }
20349 _ACEOF
20350 rm -f conftest.$ac_objext conftest$ac_exeext
20351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20352   (eval $ac_link) 2>conftest.er1
20353   ac_status=$?
20354   grep -v '^ *+' conftest.er1 >conftest.err
20355   rm -f conftest.er1
20356   cat conftest.err >&5
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); } &&
20359          { ac_try='test -z "$ac_c_werror_flag"
20360                          || test ! -s conftest.err'
20361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362   (eval $ac_try) 2>&5
20363   ac_status=$?
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); }; } &&
20366          { ac_try='test -s conftest$ac_exeext'
20367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368   (eval $ac_try) 2>&5
20369   ac_status=$?
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); }; }; then
20372   ol_cv_pthread_pthread=yes
20373 else
20374   echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20376
20377 ol_cv_pthread_pthread=no
20378 fi
20379 rm -f conftest.err conftest.$ac_objext \
20380       conftest$ac_exeext conftest.$ac_ext
20381 else
20382   cat >conftest.$ac_ext <<_ACEOF
20383 /* confdefs.h.  */
20384 _ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h.  */
20388
20389 /* pthread test headers */
20390 #include <pthread.h>
20391 #if HAVE_PTHREADS < 7
20392 #include <errno.h>
20393 #endif
20394 #ifndef NULL
20395 #define NULL (void*)0
20396 #endif
20397
20398 static void *task(p)
20399         void *p;
20400 {
20401         return (void *) (p == NULL);
20402 }
20403
20404
20405 int main(argc, argv)
20406         int argc;
20407         char **argv;
20408 {
20409
20410         /* pthread test function */
20411 #ifndef PTHREAD_CREATE_DETACHED
20412 #define PTHREAD_CREATE_DETACHED 1
20413 #endif
20414         pthread_t t;
20415         int status;
20416         int detach = PTHREAD_CREATE_DETACHED;
20417
20418 #if HAVE_PTHREADS > 4
20419         /* Final pthreads */
20420         pthread_attr_t attr;
20421
20422         status = pthread_attr_init(&attr);
20423         if( status ) return status;
20424
20425 #if HAVE_PTHREADS < 7
20426         status = pthread_attr_setdetachstate(&attr, &detach);
20427         if( status < 0 ) status = errno;
20428 #else
20429         status = pthread_attr_setdetachstate(&attr, detach);
20430 #endif
20431         if( status ) return status;
20432         status = pthread_create( &t, &attr, task, NULL );
20433 #if HAVE_PTHREADS < 7
20434         if( status < 0 ) status = errno;
20435 #endif
20436         if( status ) return status;
20437 #else
20438         /* Draft 4 pthreads */
20439         status = pthread_create( &t, pthread_attr_default, task, NULL );
20440         if( status ) return errno;
20441
20442         /* give thread a chance to complete */
20443         /* it should remain joinable and hence detachable */
20444         sleep( 1 );
20445
20446         status = pthread_detach( &t );
20447         if( status ) return errno;
20448 #endif
20449
20450 #ifdef HAVE_LINUX_THREADS
20451         pthread_kill_other_threads_np();
20452 #endif
20453
20454         return 0;
20455
20456 }
20457
20458 _ACEOF
20459 rm -f conftest$ac_exeext
20460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20461   (eval $ac_link) 2>&5
20462   ac_status=$?
20463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466   (eval $ac_try) 2>&5
20467   ac_status=$?
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); }; }; then
20470   ol_cv_pthread_pthread=yes
20471 else
20472   echo "$as_me: program exited with status $ac_status" >&5
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20475
20476 ( exit $ac_status )
20477 ol_cv_pthread_pthread=no
20478 fi
20479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20480 fi
20481
20482                 # restore the LIBS
20483                 LIBS="$ol_LIBS"
20484
20485 fi
20486 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20487 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20488
20489         if test $ol_cv_pthread_pthread = yes ; then
20490                 ol_link_pthreads="-pthread"
20491                 ol_link_threads=posix
20492         fi
20493 fi
20494
20495                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20496 if test "$ol_link_threads" = no ; then
20497         # try -pthreads
20498         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20499 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20500 if test "${ol_cv_pthread_pthreads+set}" = set; then
20501   echo $ECHO_N "(cached) $ECHO_C" >&6
20502 else
20503
20504                 # save the flags
20505                 ol_LIBS="$LIBS"
20506                 LIBS="-pthreads $LIBS"
20507
20508                 if test "$cross_compiling" = yes; then
20509   cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h.  */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h.  */
20515
20516 /* pthread test headers */
20517 #include <pthread.h>
20518 #if HAVE_PTHREADS < 7
20519 #include <errno.h>
20520 #endif
20521 #ifndef NULL
20522 #define NULL (void*)0
20523 #endif
20524
20525 static void *task(p)
20526         void *p;
20527 {
20528         return (void *) (p == NULL);
20529 }
20530
20531 int
20532 main ()
20533 {
20534
20535         /* pthread test function */
20536 #ifndef PTHREAD_CREATE_DETACHED
20537 #define PTHREAD_CREATE_DETACHED 1
20538 #endif
20539         pthread_t t;
20540         int status;
20541         int detach = PTHREAD_CREATE_DETACHED;
20542
20543 #if HAVE_PTHREADS > 4
20544         /* Final pthreads */
20545         pthread_attr_t attr;
20546
20547         status = pthread_attr_init(&attr);
20548         if( status ) return status;
20549
20550 #if HAVE_PTHREADS < 7
20551         status = pthread_attr_setdetachstate(&attr, &detach);
20552         if( status < 0 ) status = errno;
20553 #else
20554         status = pthread_attr_setdetachstate(&attr, detach);
20555 #endif
20556         if( status ) return status;
20557         status = pthread_create( &t, &attr, task, NULL );
20558 #if HAVE_PTHREADS < 7
20559         if( status < 0 ) status = errno;
20560 #endif
20561         if( status ) return status;
20562 #else
20563         /* Draft 4 pthreads */
20564         status = pthread_create( &t, pthread_attr_default, task, NULL );
20565         if( status ) return errno;
20566
20567         /* give thread a chance to complete */
20568         /* it should remain joinable and hence detachable */
20569         sleep( 1 );
20570
20571         status = pthread_detach( &t );
20572         if( status ) return errno;
20573 #endif
20574
20575 #ifdef HAVE_LINUX_THREADS
20576         pthread_kill_other_threads_np();
20577 #endif
20578
20579         return 0;
20580
20581   ;
20582   return 0;
20583 }
20584 _ACEOF
20585 rm -f conftest.$ac_objext conftest$ac_exeext
20586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20587   (eval $ac_link) 2>conftest.er1
20588   ac_status=$?
20589   grep -v '^ *+' conftest.er1 >conftest.err
20590   rm -f conftest.er1
20591   cat conftest.err >&5
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); } &&
20594          { ac_try='test -z "$ac_c_werror_flag"
20595                          || test ! -s conftest.err'
20596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597   (eval $ac_try) 2>&5
20598   ac_status=$?
20599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600   (exit $ac_status); }; } &&
20601          { ac_try='test -s conftest$ac_exeext'
20602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603   (eval $ac_try) 2>&5
20604   ac_status=$?
20605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606   (exit $ac_status); }; }; then
20607   ol_cv_pthread_pthreads=yes
20608 else
20609   echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20611
20612 ol_cv_pthread_pthreads=no
20613 fi
20614 rm -f conftest.err conftest.$ac_objext \
20615       conftest$ac_exeext conftest.$ac_ext
20616 else
20617   cat >conftest.$ac_ext <<_ACEOF
20618 /* confdefs.h.  */
20619 _ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h.  */
20623
20624 /* pthread test headers */
20625 #include <pthread.h>
20626 #if HAVE_PTHREADS < 7
20627 #include <errno.h>
20628 #endif
20629 #ifndef NULL
20630 #define NULL (void*)0
20631 #endif
20632
20633 static void *task(p)
20634         void *p;
20635 {
20636         return (void *) (p == NULL);
20637 }
20638
20639
20640 int main(argc, argv)
20641         int argc;
20642         char **argv;
20643 {
20644
20645         /* pthread test function */
20646 #ifndef PTHREAD_CREATE_DETACHED
20647 #define PTHREAD_CREATE_DETACHED 1
20648 #endif
20649         pthread_t t;
20650         int status;
20651         int detach = PTHREAD_CREATE_DETACHED;
20652
20653 #if HAVE_PTHREADS > 4
20654         /* Final pthreads */
20655         pthread_attr_t attr;
20656
20657         status = pthread_attr_init(&attr);
20658         if( status ) return status;
20659
20660 #if HAVE_PTHREADS < 7
20661         status = pthread_attr_setdetachstate(&attr, &detach);
20662         if( status < 0 ) status = errno;
20663 #else
20664         status = pthread_attr_setdetachstate(&attr, detach);
20665 #endif
20666         if( status ) return status;
20667         status = pthread_create( &t, &attr, task, NULL );
20668 #if HAVE_PTHREADS < 7
20669         if( status < 0 ) status = errno;
20670 #endif
20671         if( status ) return status;
20672 #else
20673         /* Draft 4 pthreads */
20674         status = pthread_create( &t, pthread_attr_default, task, NULL );
20675         if( status ) return errno;
20676
20677         /* give thread a chance to complete */
20678         /* it should remain joinable and hence detachable */
20679         sleep( 1 );
20680
20681         status = pthread_detach( &t );
20682         if( status ) return errno;
20683 #endif
20684
20685 #ifdef HAVE_LINUX_THREADS
20686         pthread_kill_other_threads_np();
20687 #endif
20688
20689         return 0;
20690
20691 }
20692
20693 _ACEOF
20694 rm -f conftest$ac_exeext
20695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20696   (eval $ac_link) 2>&5
20697   ac_status=$?
20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701   (eval $ac_try) 2>&5
20702   ac_status=$?
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); }; }; then
20705   ol_cv_pthread_pthreads=yes
20706 else
20707   echo "$as_me: program exited with status $ac_status" >&5
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20710
20711 ( exit $ac_status )
20712 ol_cv_pthread_pthreads=no
20713 fi
20714 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20715 fi
20716
20717                 # restore the LIBS
20718                 LIBS="$ol_LIBS"
20719
20720 fi
20721 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
20722 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
20723
20724         if test $ol_cv_pthread_pthreads = yes ; then
20725                 ol_link_pthreads="-pthreads"
20726                 ol_link_threads=posix
20727         fi
20728 fi
20729
20730                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20731 if test "$ol_link_threads" = no ; then
20732         # try -mthreads
20733         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
20734 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
20735 if test "${ol_cv_pthread_mthreads+set}" = set; then
20736   echo $ECHO_N "(cached) $ECHO_C" >&6
20737 else
20738
20739                 # save the flags
20740                 ol_LIBS="$LIBS"
20741                 LIBS="-mthreads $LIBS"
20742
20743                 if test "$cross_compiling" = yes; then
20744   cat >conftest.$ac_ext <<_ACEOF
20745 /* confdefs.h.  */
20746 _ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h.  */
20750
20751 /* pthread test headers */
20752 #include <pthread.h>
20753 #if HAVE_PTHREADS < 7
20754 #include <errno.h>
20755 #endif
20756 #ifndef NULL
20757 #define NULL (void*)0
20758 #endif
20759
20760 static void *task(p)
20761         void *p;
20762 {
20763         return (void *) (p == NULL);
20764 }
20765
20766 int
20767 main ()
20768 {
20769
20770         /* pthread test function */
20771 #ifndef PTHREAD_CREATE_DETACHED
20772 #define PTHREAD_CREATE_DETACHED 1
20773 #endif
20774         pthread_t t;
20775         int status;
20776         int detach = PTHREAD_CREATE_DETACHED;
20777
20778 #if HAVE_PTHREADS > 4
20779         /* Final pthreads */
20780         pthread_attr_t attr;
20781
20782         status = pthread_attr_init(&attr);
20783         if( status ) return status;
20784
20785 #if HAVE_PTHREADS < 7
20786         status = pthread_attr_setdetachstate(&attr, &detach);
20787         if( status < 0 ) status = errno;
20788 #else
20789         status = pthread_attr_setdetachstate(&attr, detach);
20790 #endif
20791         if( status ) return status;
20792         status = pthread_create( &t, &attr, task, NULL );
20793 #if HAVE_PTHREADS < 7
20794         if( status < 0 ) status = errno;
20795 #endif
20796         if( status ) return status;
20797 #else
20798         /* Draft 4 pthreads */
20799         status = pthread_create( &t, pthread_attr_default, task, NULL );
20800         if( status ) return errno;
20801
20802         /* give thread a chance to complete */
20803         /* it should remain joinable and hence detachable */
20804         sleep( 1 );
20805
20806         status = pthread_detach( &t );
20807         if( status ) return errno;
20808 #endif
20809
20810 #ifdef HAVE_LINUX_THREADS
20811         pthread_kill_other_threads_np();
20812 #endif
20813
20814         return 0;
20815
20816   ;
20817   return 0;
20818 }
20819 _ACEOF
20820 rm -f conftest.$ac_objext conftest$ac_exeext
20821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20822   (eval $ac_link) 2>conftest.er1
20823   ac_status=$?
20824   grep -v '^ *+' conftest.er1 >conftest.err
20825   rm -f conftest.er1
20826   cat conftest.err >&5
20827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828   (exit $ac_status); } &&
20829          { ac_try='test -z "$ac_c_werror_flag"
20830                          || test ! -s conftest.err'
20831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832   (eval $ac_try) 2>&5
20833   ac_status=$?
20834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835   (exit $ac_status); }; } &&
20836          { ac_try='test -s conftest$ac_exeext'
20837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838   (eval $ac_try) 2>&5
20839   ac_status=$?
20840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841   (exit $ac_status); }; }; then
20842   ol_cv_pthread_mthreads=yes
20843 else
20844   echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20846
20847 ol_cv_pthread_mthreads=no
20848 fi
20849 rm -f conftest.err conftest.$ac_objext \
20850       conftest$ac_exeext conftest.$ac_ext
20851 else
20852   cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h.  */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h.  */
20858
20859 /* pthread test headers */
20860 #include <pthread.h>
20861 #if HAVE_PTHREADS < 7
20862 #include <errno.h>
20863 #endif
20864 #ifndef NULL
20865 #define NULL (void*)0
20866 #endif
20867
20868 static void *task(p)
20869         void *p;
20870 {
20871         return (void *) (p == NULL);
20872 }
20873
20874
20875 int main(argc, argv)
20876         int argc;
20877         char **argv;
20878 {
20879
20880         /* pthread test function */
20881 #ifndef PTHREAD_CREATE_DETACHED
20882 #define PTHREAD_CREATE_DETACHED 1
20883 #endif
20884         pthread_t t;
20885         int status;
20886         int detach = PTHREAD_CREATE_DETACHED;
20887
20888 #if HAVE_PTHREADS > 4
20889         /* Final pthreads */
20890         pthread_attr_t attr;
20891
20892         status = pthread_attr_init(&attr);
20893         if( status ) return status;
20894
20895 #if HAVE_PTHREADS < 7
20896         status = pthread_attr_setdetachstate(&attr, &detach);
20897         if( status < 0 ) status = errno;
20898 #else
20899         status = pthread_attr_setdetachstate(&attr, detach);
20900 #endif
20901         if( status ) return status;
20902         status = pthread_create( &t, &attr, task, NULL );
20903 #if HAVE_PTHREADS < 7
20904         if( status < 0 ) status = errno;
20905 #endif
20906         if( status ) return status;
20907 #else
20908         /* Draft 4 pthreads */
20909         status = pthread_create( &t, pthread_attr_default, task, NULL );
20910         if( status ) return errno;
20911
20912         /* give thread a chance to complete */
20913         /* it should remain joinable and hence detachable */
20914         sleep( 1 );
20915
20916         status = pthread_detach( &t );
20917         if( status ) return errno;
20918 #endif
20919
20920 #ifdef HAVE_LINUX_THREADS
20921         pthread_kill_other_threads_np();
20922 #endif
20923
20924         return 0;
20925
20926 }
20927
20928 _ACEOF
20929 rm -f conftest$ac_exeext
20930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20931   (eval $ac_link) 2>&5
20932   ac_status=$?
20933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936   (eval $ac_try) 2>&5
20937   ac_status=$?
20938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939   (exit $ac_status); }; }; then
20940   ol_cv_pthread_mthreads=yes
20941 else
20942   echo "$as_me: program exited with status $ac_status" >&5
20943 echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.$ac_ext >&5
20945
20946 ( exit $ac_status )
20947 ol_cv_pthread_mthreads=no
20948 fi
20949 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20950 fi
20951
20952                 # restore the LIBS
20953                 LIBS="$ol_LIBS"
20954
20955 fi
20956 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
20957 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
20958
20959         if test $ol_cv_pthread_mthreads = yes ; then
20960                 ol_link_pthreads="-mthreads"
20961                 ol_link_threads=posix
20962         fi
20963 fi
20964
20965                 # Pthread try link: -thread (ol_cv_pthread_thread)
20966 if test "$ol_link_threads" = no ; then
20967         # try -thread
20968         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
20969 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
20970 if test "${ol_cv_pthread_thread+set}" = set; then
20971   echo $ECHO_N "(cached) $ECHO_C" >&6
20972 else
20973
20974                 # save the flags
20975                 ol_LIBS="$LIBS"
20976                 LIBS="-thread $LIBS"
20977
20978                 if test "$cross_compiling" = yes; then
20979   cat >conftest.$ac_ext <<_ACEOF
20980 /* confdefs.h.  */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h.  */
20985
20986 /* pthread test headers */
20987 #include <pthread.h>
20988 #if HAVE_PTHREADS < 7
20989 #include <errno.h>
20990 #endif
20991 #ifndef NULL
20992 #define NULL (void*)0
20993 #endif
20994
20995 static void *task(p)
20996         void *p;
20997 {
20998         return (void *) (p == NULL);
20999 }
21000
21001 int
21002 main ()
21003 {
21004
21005         /* pthread test function */
21006 #ifndef PTHREAD_CREATE_DETACHED
21007 #define PTHREAD_CREATE_DETACHED 1
21008 #endif
21009         pthread_t t;
21010         int status;
21011         int detach = PTHREAD_CREATE_DETACHED;
21012
21013 #if HAVE_PTHREADS > 4
21014         /* Final pthreads */
21015         pthread_attr_t attr;
21016
21017         status = pthread_attr_init(&attr);
21018         if( status ) return status;
21019
21020 #if HAVE_PTHREADS < 7
21021         status = pthread_attr_setdetachstate(&attr, &detach);
21022         if( status < 0 ) status = errno;
21023 #else
21024         status = pthread_attr_setdetachstate(&attr, detach);
21025 #endif
21026         if( status ) return status;
21027         status = pthread_create( &t, &attr, task, NULL );
21028 #if HAVE_PTHREADS < 7
21029         if( status < 0 ) status = errno;
21030 #endif
21031         if( status ) return status;
21032 #else
21033         /* Draft 4 pthreads */
21034         status = pthread_create( &t, pthread_attr_default, task, NULL );
21035         if( status ) return errno;
21036
21037         /* give thread a chance to complete */
21038         /* it should remain joinable and hence detachable */
21039         sleep( 1 );
21040
21041         status = pthread_detach( &t );
21042         if( status ) return errno;
21043 #endif
21044
21045 #ifdef HAVE_LINUX_THREADS
21046         pthread_kill_other_threads_np();
21047 #endif
21048
21049         return 0;
21050
21051   ;
21052   return 0;
21053 }
21054 _ACEOF
21055 rm -f conftest.$ac_objext conftest$ac_exeext
21056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21057   (eval $ac_link) 2>conftest.er1
21058   ac_status=$?
21059   grep -v '^ *+' conftest.er1 >conftest.err
21060   rm -f conftest.er1
21061   cat conftest.err >&5
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); } &&
21064          { ac_try='test -z "$ac_c_werror_flag"
21065                          || test ! -s conftest.err'
21066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067   (eval $ac_try) 2>&5
21068   ac_status=$?
21069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070   (exit $ac_status); }; } &&
21071          { ac_try='test -s conftest$ac_exeext'
21072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073   (eval $ac_try) 2>&5
21074   ac_status=$?
21075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076   (exit $ac_status); }; }; then
21077   ol_cv_pthread_thread=yes
21078 else
21079   echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21081
21082 ol_cv_pthread_thread=no
21083 fi
21084 rm -f conftest.err conftest.$ac_objext \
21085       conftest$ac_exeext conftest.$ac_ext
21086 else
21087   cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h.  */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h.  */
21093
21094 /* pthread test headers */
21095 #include <pthread.h>
21096 #if HAVE_PTHREADS < 7
21097 #include <errno.h>
21098 #endif
21099 #ifndef NULL
21100 #define NULL (void*)0
21101 #endif
21102
21103 static void *task(p)
21104         void *p;
21105 {
21106         return (void *) (p == NULL);
21107 }
21108
21109
21110 int main(argc, argv)
21111         int argc;
21112         char **argv;
21113 {
21114
21115         /* pthread test function */
21116 #ifndef PTHREAD_CREATE_DETACHED
21117 #define PTHREAD_CREATE_DETACHED 1
21118 #endif
21119         pthread_t t;
21120         int status;
21121         int detach = PTHREAD_CREATE_DETACHED;
21122
21123 #if HAVE_PTHREADS > 4
21124         /* Final pthreads */
21125         pthread_attr_t attr;
21126
21127         status = pthread_attr_init(&attr);
21128         if( status ) return status;
21129
21130 #if HAVE_PTHREADS < 7
21131         status = pthread_attr_setdetachstate(&attr, &detach);
21132         if( status < 0 ) status = errno;
21133 #else
21134         status = pthread_attr_setdetachstate(&attr, detach);
21135 #endif
21136         if( status ) return status;
21137         status = pthread_create( &t, &attr, task, NULL );
21138 #if HAVE_PTHREADS < 7
21139         if( status < 0 ) status = errno;
21140 #endif
21141         if( status ) return status;
21142 #else
21143         /* Draft 4 pthreads */
21144         status = pthread_create( &t, pthread_attr_default, task, NULL );
21145         if( status ) return errno;
21146
21147         /* give thread a chance to complete */
21148         /* it should remain joinable and hence detachable */
21149         sleep( 1 );
21150
21151         status = pthread_detach( &t );
21152         if( status ) return errno;
21153 #endif
21154
21155 #ifdef HAVE_LINUX_THREADS
21156         pthread_kill_other_threads_np();
21157 #endif
21158
21159         return 0;
21160
21161 }
21162
21163 _ACEOF
21164 rm -f conftest$ac_exeext
21165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21166   (eval $ac_link) 2>&5
21167   ac_status=$?
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171   (eval $ac_try) 2>&5
21172   ac_status=$?
21173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174   (exit $ac_status); }; }; then
21175   ol_cv_pthread_thread=yes
21176 else
21177   echo "$as_me: program exited with status $ac_status" >&5
21178 echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21180
21181 ( exit $ac_status )
21182 ol_cv_pthread_thread=no
21183 fi
21184 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21185 fi
21186
21187                 # restore the LIBS
21188                 LIBS="$ol_LIBS"
21189
21190 fi
21191 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21192 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21193
21194         if test $ol_cv_pthread_thread = yes ; then
21195                 ol_link_pthreads="-thread"
21196                 ol_link_threads=posix
21197         fi
21198 fi
21199
21200
21201                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21202 if test "$ol_link_threads" = no ; then
21203         # try -lpthread -lmach -lexc -lc_r
21204         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21205 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21206 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21207   echo $ECHO_N "(cached) $ECHO_C" >&6
21208 else
21209
21210                 # save the flags
21211                 ol_LIBS="$LIBS"
21212                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21213
21214                 if test "$cross_compiling" = yes; then
21215   cat >conftest.$ac_ext <<_ACEOF
21216 /* confdefs.h.  */
21217 _ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h.  */
21221
21222 /* pthread test headers */
21223 #include <pthread.h>
21224 #if HAVE_PTHREADS < 7
21225 #include <errno.h>
21226 #endif
21227 #ifndef NULL
21228 #define NULL (void*)0
21229 #endif
21230
21231 static void *task(p)
21232         void *p;
21233 {
21234         return (void *) (p == NULL);
21235 }
21236
21237 int
21238 main ()
21239 {
21240
21241         /* pthread test function */
21242 #ifndef PTHREAD_CREATE_DETACHED
21243 #define PTHREAD_CREATE_DETACHED 1
21244 #endif
21245         pthread_t t;
21246         int status;
21247         int detach = PTHREAD_CREATE_DETACHED;
21248
21249 #if HAVE_PTHREADS > 4
21250         /* Final pthreads */
21251         pthread_attr_t attr;
21252
21253         status = pthread_attr_init(&attr);
21254         if( status ) return status;
21255
21256 #if HAVE_PTHREADS < 7
21257         status = pthread_attr_setdetachstate(&attr, &detach);
21258         if( status < 0 ) status = errno;
21259 #else
21260         status = pthread_attr_setdetachstate(&attr, detach);
21261 #endif
21262         if( status ) return status;
21263         status = pthread_create( &t, &attr, task, NULL );
21264 #if HAVE_PTHREADS < 7
21265         if( status < 0 ) status = errno;
21266 #endif
21267         if( status ) return status;
21268 #else
21269         /* Draft 4 pthreads */
21270         status = pthread_create( &t, pthread_attr_default, task, NULL );
21271         if( status ) return errno;
21272
21273         /* give thread a chance to complete */
21274         /* it should remain joinable and hence detachable */
21275         sleep( 1 );
21276
21277         status = pthread_detach( &t );
21278         if( status ) return errno;
21279 #endif
21280
21281 #ifdef HAVE_LINUX_THREADS
21282         pthread_kill_other_threads_np();
21283 #endif
21284
21285         return 0;
21286
21287   ;
21288   return 0;
21289 }
21290 _ACEOF
21291 rm -f conftest.$ac_objext conftest$ac_exeext
21292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21293   (eval $ac_link) 2>conftest.er1
21294   ac_status=$?
21295   grep -v '^ *+' conftest.er1 >conftest.err
21296   rm -f conftest.er1
21297   cat conftest.err >&5
21298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299   (exit $ac_status); } &&
21300          { ac_try='test -z "$ac_c_werror_flag"
21301                          || test ! -s conftest.err'
21302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303   (eval $ac_try) 2>&5
21304   ac_status=$?
21305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); }; } &&
21307          { ac_try='test -s conftest$ac_exeext'
21308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309   (eval $ac_try) 2>&5
21310   ac_status=$?
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); }; }; then
21313   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21314 else
21315   echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21317
21318 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21319 fi
21320 rm -f conftest.err conftest.$ac_objext \
21321       conftest$ac_exeext conftest.$ac_ext
21322 else
21323   cat >conftest.$ac_ext <<_ACEOF
21324 /* confdefs.h.  */
21325 _ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h.  */
21329
21330 /* pthread test headers */
21331 #include <pthread.h>
21332 #if HAVE_PTHREADS < 7
21333 #include <errno.h>
21334 #endif
21335 #ifndef NULL
21336 #define NULL (void*)0
21337 #endif
21338
21339 static void *task(p)
21340         void *p;
21341 {
21342         return (void *) (p == NULL);
21343 }
21344
21345
21346 int main(argc, argv)
21347         int argc;
21348         char **argv;
21349 {
21350
21351         /* pthread test function */
21352 #ifndef PTHREAD_CREATE_DETACHED
21353 #define PTHREAD_CREATE_DETACHED 1
21354 #endif
21355         pthread_t t;
21356         int status;
21357         int detach = PTHREAD_CREATE_DETACHED;
21358
21359 #if HAVE_PTHREADS > 4
21360         /* Final pthreads */
21361         pthread_attr_t attr;
21362
21363         status = pthread_attr_init(&attr);
21364         if( status ) return status;
21365
21366 #if HAVE_PTHREADS < 7
21367         status = pthread_attr_setdetachstate(&attr, &detach);
21368         if( status < 0 ) status = errno;
21369 #else
21370         status = pthread_attr_setdetachstate(&attr, detach);
21371 #endif
21372         if( status ) return status;
21373         status = pthread_create( &t, &attr, task, NULL );
21374 #if HAVE_PTHREADS < 7
21375         if( status < 0 ) status = errno;
21376 #endif
21377         if( status ) return status;
21378 #else
21379         /* Draft 4 pthreads */
21380         status = pthread_create( &t, pthread_attr_default, task, NULL );
21381         if( status ) return errno;
21382
21383         /* give thread a chance to complete */
21384         /* it should remain joinable and hence detachable */
21385         sleep( 1 );
21386
21387         status = pthread_detach( &t );
21388         if( status ) return errno;
21389 #endif
21390
21391 #ifdef HAVE_LINUX_THREADS
21392         pthread_kill_other_threads_np();
21393 #endif
21394
21395         return 0;
21396
21397 }
21398
21399 _ACEOF
21400 rm -f conftest$ac_exeext
21401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21402   (eval $ac_link) 2>&5
21403   ac_status=$?
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407   (eval $ac_try) 2>&5
21408   ac_status=$?
21409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410   (exit $ac_status); }; }; then
21411   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21412 else
21413   echo "$as_me: program exited with status $ac_status" >&5
21414 echo "$as_me: failed program was:" >&5
21415 sed 's/^/| /' conftest.$ac_ext >&5
21416
21417 ( exit $ac_status )
21418 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21419 fi
21420 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21421 fi
21422
21423                 # restore the LIBS
21424                 LIBS="$ol_LIBS"
21425
21426 fi
21427 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21428 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21429
21430         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21431                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21432                 ol_link_threads=posix
21433         fi
21434 fi
21435
21436                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21437 if test "$ol_link_threads" = no ; then
21438         # try -lpthread -lmach -lexc
21439         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21440 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21441 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21442   echo $ECHO_N "(cached) $ECHO_C" >&6
21443 else
21444
21445                 # save the flags
21446                 ol_LIBS="$LIBS"
21447                 LIBS="-lpthread -lmach -lexc $LIBS"
21448
21449                 if test "$cross_compiling" = yes; then
21450   cat >conftest.$ac_ext <<_ACEOF
21451 /* confdefs.h.  */
21452 _ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h.  */
21456
21457 /* pthread test headers */
21458 #include <pthread.h>
21459 #if HAVE_PTHREADS < 7
21460 #include <errno.h>
21461 #endif
21462 #ifndef NULL
21463 #define NULL (void*)0
21464 #endif
21465
21466 static void *task(p)
21467         void *p;
21468 {
21469         return (void *) (p == NULL);
21470 }
21471
21472 int
21473 main ()
21474 {
21475
21476         /* pthread test function */
21477 #ifndef PTHREAD_CREATE_DETACHED
21478 #define PTHREAD_CREATE_DETACHED 1
21479 #endif
21480         pthread_t t;
21481         int status;
21482         int detach = PTHREAD_CREATE_DETACHED;
21483
21484 #if HAVE_PTHREADS > 4
21485         /* Final pthreads */
21486         pthread_attr_t attr;
21487
21488         status = pthread_attr_init(&attr);
21489         if( status ) return status;
21490
21491 #if HAVE_PTHREADS < 7
21492         status = pthread_attr_setdetachstate(&attr, &detach);
21493         if( status < 0 ) status = errno;
21494 #else
21495         status = pthread_attr_setdetachstate(&attr, detach);
21496 #endif
21497         if( status ) return status;
21498         status = pthread_create( &t, &attr, task, NULL );
21499 #if HAVE_PTHREADS < 7
21500         if( status < 0 ) status = errno;
21501 #endif
21502         if( status ) return status;
21503 #else
21504         /* Draft 4 pthreads */
21505         status = pthread_create( &t, pthread_attr_default, task, NULL );
21506         if( status ) return errno;
21507
21508         /* give thread a chance to complete */
21509         /* it should remain joinable and hence detachable */
21510         sleep( 1 );
21511
21512         status = pthread_detach( &t );
21513         if( status ) return errno;
21514 #endif
21515
21516 #ifdef HAVE_LINUX_THREADS
21517         pthread_kill_other_threads_np();
21518 #endif
21519
21520         return 0;
21521
21522   ;
21523   return 0;
21524 }
21525 _ACEOF
21526 rm -f conftest.$ac_objext conftest$ac_exeext
21527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21528   (eval $ac_link) 2>conftest.er1
21529   ac_status=$?
21530   grep -v '^ *+' conftest.er1 >conftest.err
21531   rm -f conftest.er1
21532   cat conftest.err >&5
21533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534   (exit $ac_status); } &&
21535          { ac_try='test -z "$ac_c_werror_flag"
21536                          || test ! -s conftest.err'
21537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538   (eval $ac_try) 2>&5
21539   ac_status=$?
21540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541   (exit $ac_status); }; } &&
21542          { ac_try='test -s conftest$ac_exeext'
21543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544   (eval $ac_try) 2>&5
21545   ac_status=$?
21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); }; }; then
21548   ol_cv_pthread_lpthread_lmach_lexc=yes
21549 else
21550   echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21552
21553 ol_cv_pthread_lpthread_lmach_lexc=no
21554 fi
21555 rm -f conftest.err conftest.$ac_objext \
21556       conftest$ac_exeext conftest.$ac_ext
21557 else
21558   cat >conftest.$ac_ext <<_ACEOF
21559 /* confdefs.h.  */
21560 _ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h.  */
21564
21565 /* pthread test headers */
21566 #include <pthread.h>
21567 #if HAVE_PTHREADS < 7
21568 #include <errno.h>
21569 #endif
21570 #ifndef NULL
21571 #define NULL (void*)0
21572 #endif
21573
21574 static void *task(p)
21575         void *p;
21576 {
21577         return (void *) (p == NULL);
21578 }
21579
21580
21581 int main(argc, argv)
21582         int argc;
21583         char **argv;
21584 {
21585
21586         /* pthread test function */
21587 #ifndef PTHREAD_CREATE_DETACHED
21588 #define PTHREAD_CREATE_DETACHED 1
21589 #endif
21590         pthread_t t;
21591         int status;
21592         int detach = PTHREAD_CREATE_DETACHED;
21593
21594 #if HAVE_PTHREADS > 4
21595         /* Final pthreads */
21596         pthread_attr_t attr;
21597
21598         status = pthread_attr_init(&attr);
21599         if( status ) return status;
21600
21601 #if HAVE_PTHREADS < 7
21602         status = pthread_attr_setdetachstate(&attr, &detach);
21603         if( status < 0 ) status = errno;
21604 #else
21605         status = pthread_attr_setdetachstate(&attr, detach);
21606 #endif
21607         if( status ) return status;
21608         status = pthread_create( &t, &attr, task, NULL );
21609 #if HAVE_PTHREADS < 7
21610         if( status < 0 ) status = errno;
21611 #endif
21612         if( status ) return status;
21613 #else
21614         /* Draft 4 pthreads */
21615         status = pthread_create( &t, pthread_attr_default, task, NULL );
21616         if( status ) return errno;
21617
21618         /* give thread a chance to complete */
21619         /* it should remain joinable and hence detachable */
21620         sleep( 1 );
21621
21622         status = pthread_detach( &t );
21623         if( status ) return errno;
21624 #endif
21625
21626 #ifdef HAVE_LINUX_THREADS
21627         pthread_kill_other_threads_np();
21628 #endif
21629
21630         return 0;
21631
21632 }
21633
21634 _ACEOF
21635 rm -f conftest$ac_exeext
21636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21637   (eval $ac_link) 2>&5
21638   ac_status=$?
21639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21642   (eval $ac_try) 2>&5
21643   ac_status=$?
21644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645   (exit $ac_status); }; }; then
21646   ol_cv_pthread_lpthread_lmach_lexc=yes
21647 else
21648   echo "$as_me: program exited with status $ac_status" >&5
21649 echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21651
21652 ( exit $ac_status )
21653 ol_cv_pthread_lpthread_lmach_lexc=no
21654 fi
21655 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21656 fi
21657
21658                 # restore the LIBS
21659                 LIBS="$ol_LIBS"
21660
21661 fi
21662 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
21663 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
21664
21665         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
21666                 ol_link_pthreads="-lpthread -lmach -lexc"
21667                 ol_link_threads=posix
21668         fi
21669 fi
21670
21671
21672                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
21673 if test "$ol_link_threads" = no ; then
21674         # try -lpthread -Wl,-woff,85
21675         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
21676 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
21677 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
21678   echo $ECHO_N "(cached) $ECHO_C" >&6
21679 else
21680
21681                 # save the flags
21682                 ol_LIBS="$LIBS"
21683                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
21684
21685                 if test "$cross_compiling" = yes; then
21686   cat >conftest.$ac_ext <<_ACEOF
21687 /* confdefs.h.  */
21688 _ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h.  */
21692
21693 /* pthread test headers */
21694 #include <pthread.h>
21695 #if HAVE_PTHREADS < 7
21696 #include <errno.h>
21697 #endif
21698 #ifndef NULL
21699 #define NULL (void*)0
21700 #endif
21701
21702 static void *task(p)
21703         void *p;
21704 {
21705         return (void *) (p == NULL);
21706 }
21707
21708 int
21709 main ()
21710 {
21711
21712         /* pthread test function */
21713 #ifndef PTHREAD_CREATE_DETACHED
21714 #define PTHREAD_CREATE_DETACHED 1
21715 #endif
21716         pthread_t t;
21717         int status;
21718         int detach = PTHREAD_CREATE_DETACHED;
21719
21720 #if HAVE_PTHREADS > 4
21721         /* Final pthreads */
21722         pthread_attr_t attr;
21723
21724         status = pthread_attr_init(&attr);
21725         if( status ) return status;
21726
21727 #if HAVE_PTHREADS < 7
21728         status = pthread_attr_setdetachstate(&attr, &detach);
21729         if( status < 0 ) status = errno;
21730 #else
21731         status = pthread_attr_setdetachstate(&attr, detach);
21732 #endif
21733         if( status ) return status;
21734         status = pthread_create( &t, &attr, task, NULL );
21735 #if HAVE_PTHREADS < 7
21736         if( status < 0 ) status = errno;
21737 #endif
21738         if( status ) return status;
21739 #else
21740         /* Draft 4 pthreads */
21741         status = pthread_create( &t, pthread_attr_default, task, NULL );
21742         if( status ) return errno;
21743
21744         /* give thread a chance to complete */
21745         /* it should remain joinable and hence detachable */
21746         sleep( 1 );
21747
21748         status = pthread_detach( &t );
21749         if( status ) return errno;
21750 #endif
21751
21752 #ifdef HAVE_LINUX_THREADS
21753         pthread_kill_other_threads_np();
21754 #endif
21755
21756         return 0;
21757
21758   ;
21759   return 0;
21760 }
21761 _ACEOF
21762 rm -f conftest.$ac_objext conftest$ac_exeext
21763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21764   (eval $ac_link) 2>conftest.er1
21765   ac_status=$?
21766   grep -v '^ *+' conftest.er1 >conftest.err
21767   rm -f conftest.er1
21768   cat conftest.err >&5
21769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770   (exit $ac_status); } &&
21771          { ac_try='test -z "$ac_c_werror_flag"
21772                          || test ! -s conftest.err'
21773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774   (eval $ac_try) 2>&5
21775   ac_status=$?
21776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); }; } &&
21778          { ac_try='test -s conftest$ac_exeext'
21779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780   (eval $ac_try) 2>&5
21781   ac_status=$?
21782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783   (exit $ac_status); }; }; then
21784   ol_cv_pthread_lib_lpthread_woff=yes
21785 else
21786   echo "$as_me: failed program was:" >&5
21787 sed 's/^/| /' conftest.$ac_ext >&5
21788
21789 ol_cv_pthread_lib_lpthread_woff=no
21790 fi
21791 rm -f conftest.err conftest.$ac_objext \
21792       conftest$ac_exeext conftest.$ac_ext
21793 else
21794   cat >conftest.$ac_ext <<_ACEOF
21795 /* confdefs.h.  */
21796 _ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h.  */
21800
21801 /* pthread test headers */
21802 #include <pthread.h>
21803 #if HAVE_PTHREADS < 7
21804 #include <errno.h>
21805 #endif
21806 #ifndef NULL
21807 #define NULL (void*)0
21808 #endif
21809
21810 static void *task(p)
21811         void *p;
21812 {
21813         return (void *) (p == NULL);
21814 }
21815
21816
21817 int main(argc, argv)
21818         int argc;
21819         char **argv;
21820 {
21821
21822         /* pthread test function */
21823 #ifndef PTHREAD_CREATE_DETACHED
21824 #define PTHREAD_CREATE_DETACHED 1
21825 #endif
21826         pthread_t t;
21827         int status;
21828         int detach = PTHREAD_CREATE_DETACHED;
21829
21830 #if HAVE_PTHREADS > 4
21831         /* Final pthreads */
21832         pthread_attr_t attr;
21833
21834         status = pthread_attr_init(&attr);
21835         if( status ) return status;
21836
21837 #if HAVE_PTHREADS < 7
21838         status = pthread_attr_setdetachstate(&attr, &detach);
21839         if( status < 0 ) status = errno;
21840 #else
21841         status = pthread_attr_setdetachstate(&attr, detach);
21842 #endif
21843         if( status ) return status;
21844         status = pthread_create( &t, &attr, task, NULL );
21845 #if HAVE_PTHREADS < 7
21846         if( status < 0 ) status = errno;
21847 #endif
21848         if( status ) return status;
21849 #else
21850         /* Draft 4 pthreads */
21851         status = pthread_create( &t, pthread_attr_default, task, NULL );
21852         if( status ) return errno;
21853
21854         /* give thread a chance to complete */
21855         /* it should remain joinable and hence detachable */
21856         sleep( 1 );
21857
21858         status = pthread_detach( &t );
21859         if( status ) return errno;
21860 #endif
21861
21862 #ifdef HAVE_LINUX_THREADS
21863         pthread_kill_other_threads_np();
21864 #endif
21865
21866         return 0;
21867
21868 }
21869
21870 _ACEOF
21871 rm -f conftest$ac_exeext
21872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21873   (eval $ac_link) 2>&5
21874   ac_status=$?
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878   (eval $ac_try) 2>&5
21879   ac_status=$?
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); }; }; then
21882   ol_cv_pthread_lib_lpthread_woff=yes
21883 else
21884   echo "$as_me: program exited with status $ac_status" >&5
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21887
21888 ( exit $ac_status )
21889 ol_cv_pthread_lib_lpthread_woff=no
21890 fi
21891 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21892 fi
21893
21894                 # restore the LIBS
21895                 LIBS="$ol_LIBS"
21896
21897 fi
21898 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21899 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
21900
21901         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21902                 ol_link_pthreads="-lpthread -Wl,-woff,85"
21903                 ol_link_threads=posix
21904         fi
21905 fi
21906
21907
21908                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21909 if test "$ol_link_threads" = no ; then
21910         # try -lpthread
21911         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
21912 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
21913 if test "${ol_cv_pthread_lpthread+set}" = set; then
21914   echo $ECHO_N "(cached) $ECHO_C" >&6
21915 else
21916
21917                 # save the flags
21918                 ol_LIBS="$LIBS"
21919                 LIBS="-lpthread $LIBS"
21920
21921                 if test "$cross_compiling" = yes; then
21922   cat >conftest.$ac_ext <<_ACEOF
21923 /* confdefs.h.  */
21924 _ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h.  */
21928
21929 /* pthread test headers */
21930 #include <pthread.h>
21931 #if HAVE_PTHREADS < 7
21932 #include <errno.h>
21933 #endif
21934 #ifndef NULL
21935 #define NULL (void*)0
21936 #endif
21937
21938 static void *task(p)
21939         void *p;
21940 {
21941         return (void *) (p == NULL);
21942 }
21943
21944 int
21945 main ()
21946 {
21947
21948         /* pthread test function */
21949 #ifndef PTHREAD_CREATE_DETACHED
21950 #define PTHREAD_CREATE_DETACHED 1
21951 #endif
21952         pthread_t t;
21953         int status;
21954         int detach = PTHREAD_CREATE_DETACHED;
21955
21956 #if HAVE_PTHREADS > 4
21957         /* Final pthreads */
21958         pthread_attr_t attr;
21959
21960         status = pthread_attr_init(&attr);
21961         if( status ) return status;
21962
21963 #if HAVE_PTHREADS < 7
21964         status = pthread_attr_setdetachstate(&attr, &detach);
21965         if( status < 0 ) status = errno;
21966 #else
21967         status = pthread_attr_setdetachstate(&attr, detach);
21968 #endif
21969         if( status ) return status;
21970         status = pthread_create( &t, &attr, task, NULL );
21971 #if HAVE_PTHREADS < 7
21972         if( status < 0 ) status = errno;
21973 #endif
21974         if( status ) return status;
21975 #else
21976         /* Draft 4 pthreads */
21977         status = pthread_create( &t, pthread_attr_default, task, NULL );
21978         if( status ) return errno;
21979
21980         /* give thread a chance to complete */
21981         /* it should remain joinable and hence detachable */
21982         sleep( 1 );
21983
21984         status = pthread_detach( &t );
21985         if( status ) return errno;
21986 #endif
21987
21988 #ifdef HAVE_LINUX_THREADS
21989         pthread_kill_other_threads_np();
21990 #endif
21991
21992         return 0;
21993
21994   ;
21995   return 0;
21996 }
21997 _ACEOF
21998 rm -f conftest.$ac_objext conftest$ac_exeext
21999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22000   (eval $ac_link) 2>conftest.er1
22001   ac_status=$?
22002   grep -v '^ *+' conftest.er1 >conftest.err
22003   rm -f conftest.er1
22004   cat conftest.err >&5
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); } &&
22007          { ac_try='test -z "$ac_c_werror_flag"
22008                          || test ! -s conftest.err'
22009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010   (eval $ac_try) 2>&5
22011   ac_status=$?
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); }; } &&
22014          { ac_try='test -s conftest$ac_exeext'
22015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016   (eval $ac_try) 2>&5
22017   ac_status=$?
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); }; }; then
22020   ol_cv_pthread_lpthread=yes
22021 else
22022   echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22024
22025 ol_cv_pthread_lpthread=no
22026 fi
22027 rm -f conftest.err conftest.$ac_objext \
22028       conftest$ac_exeext conftest.$ac_ext
22029 else
22030   cat >conftest.$ac_ext <<_ACEOF
22031 /* confdefs.h.  */
22032 _ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h.  */
22036
22037 /* pthread test headers */
22038 #include <pthread.h>
22039 #if HAVE_PTHREADS < 7
22040 #include <errno.h>
22041 #endif
22042 #ifndef NULL
22043 #define NULL (void*)0
22044 #endif
22045
22046 static void *task(p)
22047         void *p;
22048 {
22049         return (void *) (p == NULL);
22050 }
22051
22052
22053 int main(argc, argv)
22054         int argc;
22055         char **argv;
22056 {
22057
22058         /* pthread test function */
22059 #ifndef PTHREAD_CREATE_DETACHED
22060 #define PTHREAD_CREATE_DETACHED 1
22061 #endif
22062         pthread_t t;
22063         int status;
22064         int detach = PTHREAD_CREATE_DETACHED;
22065
22066 #if HAVE_PTHREADS > 4
22067         /* Final pthreads */
22068         pthread_attr_t attr;
22069
22070         status = pthread_attr_init(&attr);
22071         if( status ) return status;
22072
22073 #if HAVE_PTHREADS < 7
22074         status = pthread_attr_setdetachstate(&attr, &detach);
22075         if( status < 0 ) status = errno;
22076 #else
22077         status = pthread_attr_setdetachstate(&attr, detach);
22078 #endif
22079         if( status ) return status;
22080         status = pthread_create( &t, &attr, task, NULL );
22081 #if HAVE_PTHREADS < 7
22082         if( status < 0 ) status = errno;
22083 #endif
22084         if( status ) return status;
22085 #else
22086         /* Draft 4 pthreads */
22087         status = pthread_create( &t, pthread_attr_default, task, NULL );
22088         if( status ) return errno;
22089
22090         /* give thread a chance to complete */
22091         /* it should remain joinable and hence detachable */
22092         sleep( 1 );
22093
22094         status = pthread_detach( &t );
22095         if( status ) return errno;
22096 #endif
22097
22098 #ifdef HAVE_LINUX_THREADS
22099         pthread_kill_other_threads_np();
22100 #endif
22101
22102         return 0;
22103
22104 }
22105
22106 _ACEOF
22107 rm -f conftest$ac_exeext
22108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22109   (eval $ac_link) 2>&5
22110   ac_status=$?
22111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114   (eval $ac_try) 2>&5
22115   ac_status=$?
22116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117   (exit $ac_status); }; }; then
22118   ol_cv_pthread_lpthread=yes
22119 else
22120   echo "$as_me: program exited with status $ac_status" >&5
22121 echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22123
22124 ( exit $ac_status )
22125 ol_cv_pthread_lpthread=no
22126 fi
22127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22128 fi
22129
22130                 # restore the LIBS
22131                 LIBS="$ol_LIBS"
22132
22133 fi
22134 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22135 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22136
22137         if test $ol_cv_pthread_lpthread = yes ; then
22138                 ol_link_pthreads="-lpthread"
22139                 ol_link_threads=posix
22140         fi
22141 fi
22142
22143                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22144 if test "$ol_link_threads" = no ; then
22145         # try -lc_r
22146         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22147 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22148 if test "${ol_cv_pthread_lc_r+set}" = set; then
22149   echo $ECHO_N "(cached) $ECHO_C" >&6
22150 else
22151
22152                 # save the flags
22153                 ol_LIBS="$LIBS"
22154                 LIBS="-lc_r $LIBS"
22155
22156                 if test "$cross_compiling" = yes; then
22157   cat >conftest.$ac_ext <<_ACEOF
22158 /* confdefs.h.  */
22159 _ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h.  */
22163
22164 /* pthread test headers */
22165 #include <pthread.h>
22166 #if HAVE_PTHREADS < 7
22167 #include <errno.h>
22168 #endif
22169 #ifndef NULL
22170 #define NULL (void*)0
22171 #endif
22172
22173 static void *task(p)
22174         void *p;
22175 {
22176         return (void *) (p == NULL);
22177 }
22178
22179 int
22180 main ()
22181 {
22182
22183         /* pthread test function */
22184 #ifndef PTHREAD_CREATE_DETACHED
22185 #define PTHREAD_CREATE_DETACHED 1
22186 #endif
22187         pthread_t t;
22188         int status;
22189         int detach = PTHREAD_CREATE_DETACHED;
22190
22191 #if HAVE_PTHREADS > 4
22192         /* Final pthreads */
22193         pthread_attr_t attr;
22194
22195         status = pthread_attr_init(&attr);
22196         if( status ) return status;
22197
22198 #if HAVE_PTHREADS < 7
22199         status = pthread_attr_setdetachstate(&attr, &detach);
22200         if( status < 0 ) status = errno;
22201 #else
22202         status = pthread_attr_setdetachstate(&attr, detach);
22203 #endif
22204         if( status ) return status;
22205         status = pthread_create( &t, &attr, task, NULL );
22206 #if HAVE_PTHREADS < 7
22207         if( status < 0 ) status = errno;
22208 #endif
22209         if( status ) return status;
22210 #else
22211         /* Draft 4 pthreads */
22212         status = pthread_create( &t, pthread_attr_default, task, NULL );
22213         if( status ) return errno;
22214
22215         /* give thread a chance to complete */
22216         /* it should remain joinable and hence detachable */
22217         sleep( 1 );
22218
22219         status = pthread_detach( &t );
22220         if( status ) return errno;
22221 #endif
22222
22223 #ifdef HAVE_LINUX_THREADS
22224         pthread_kill_other_threads_np();
22225 #endif
22226
22227         return 0;
22228
22229   ;
22230   return 0;
22231 }
22232 _ACEOF
22233 rm -f conftest.$ac_objext conftest$ac_exeext
22234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22235   (eval $ac_link) 2>conftest.er1
22236   ac_status=$?
22237   grep -v '^ *+' conftest.er1 >conftest.err
22238   rm -f conftest.er1
22239   cat conftest.err >&5
22240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241   (exit $ac_status); } &&
22242          { ac_try='test -z "$ac_c_werror_flag"
22243                          || test ! -s conftest.err'
22244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245   (eval $ac_try) 2>&5
22246   ac_status=$?
22247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248   (exit $ac_status); }; } &&
22249          { ac_try='test -s conftest$ac_exeext'
22250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251   (eval $ac_try) 2>&5
22252   ac_status=$?
22253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254   (exit $ac_status); }; }; then
22255   ol_cv_pthread_lc_r=yes
22256 else
22257   echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22259
22260 ol_cv_pthread_lc_r=no
22261 fi
22262 rm -f conftest.err conftest.$ac_objext \
22263       conftest$ac_exeext conftest.$ac_ext
22264 else
22265   cat >conftest.$ac_ext <<_ACEOF
22266 /* confdefs.h.  */
22267 _ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h.  */
22271
22272 /* pthread test headers */
22273 #include <pthread.h>
22274 #if HAVE_PTHREADS < 7
22275 #include <errno.h>
22276 #endif
22277 #ifndef NULL
22278 #define NULL (void*)0
22279 #endif
22280
22281 static void *task(p)
22282         void *p;
22283 {
22284         return (void *) (p == NULL);
22285 }
22286
22287
22288 int main(argc, argv)
22289         int argc;
22290         char **argv;
22291 {
22292
22293         /* pthread test function */
22294 #ifndef PTHREAD_CREATE_DETACHED
22295 #define PTHREAD_CREATE_DETACHED 1
22296 #endif
22297         pthread_t t;
22298         int status;
22299         int detach = PTHREAD_CREATE_DETACHED;
22300
22301 #if HAVE_PTHREADS > 4
22302         /* Final pthreads */
22303         pthread_attr_t attr;
22304
22305         status = pthread_attr_init(&attr);
22306         if( status ) return status;
22307
22308 #if HAVE_PTHREADS < 7
22309         status = pthread_attr_setdetachstate(&attr, &detach);
22310         if( status < 0 ) status = errno;
22311 #else
22312         status = pthread_attr_setdetachstate(&attr, detach);
22313 #endif
22314         if( status ) return status;
22315         status = pthread_create( &t, &attr, task, NULL );
22316 #if HAVE_PTHREADS < 7
22317         if( status < 0 ) status = errno;
22318 #endif
22319         if( status ) return status;
22320 #else
22321         /* Draft 4 pthreads */
22322         status = pthread_create( &t, pthread_attr_default, task, NULL );
22323         if( status ) return errno;
22324
22325         /* give thread a chance to complete */
22326         /* it should remain joinable and hence detachable */
22327         sleep( 1 );
22328
22329         status = pthread_detach( &t );
22330         if( status ) return errno;
22331 #endif
22332
22333 #ifdef HAVE_LINUX_THREADS
22334         pthread_kill_other_threads_np();
22335 #endif
22336
22337         return 0;
22338
22339 }
22340
22341 _ACEOF
22342 rm -f conftest$ac_exeext
22343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22344   (eval $ac_link) 2>&5
22345   ac_status=$?
22346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349   (eval $ac_try) 2>&5
22350   ac_status=$?
22351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352   (exit $ac_status); }; }; then
22353   ol_cv_pthread_lc_r=yes
22354 else
22355   echo "$as_me: program exited with status $ac_status" >&5
22356 echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22358
22359 ( exit $ac_status )
22360 ol_cv_pthread_lc_r=no
22361 fi
22362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22363 fi
22364
22365                 # restore the LIBS
22366                 LIBS="$ol_LIBS"
22367
22368 fi
22369 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22370 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22371
22372         if test $ol_cv_pthread_lc_r = yes ; then
22373                 ol_link_pthreads="-lc_r"
22374                 ol_link_threads=posix
22375         fi
22376 fi
22377
22378
22379                 # Pthread try link: -threads (ol_cv_pthread_threads)
22380 if test "$ol_link_threads" = no ; then
22381         # try -threads
22382         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22383 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22384 if test "${ol_cv_pthread_threads+set}" = set; then
22385   echo $ECHO_N "(cached) $ECHO_C" >&6
22386 else
22387
22388                 # save the flags
22389                 ol_LIBS="$LIBS"
22390                 LIBS="-threads $LIBS"
22391
22392                 if test "$cross_compiling" = yes; then
22393   cat >conftest.$ac_ext <<_ACEOF
22394 /* confdefs.h.  */
22395 _ACEOF
22396 cat confdefs.h >>conftest.$ac_ext
22397 cat >>conftest.$ac_ext <<_ACEOF
22398 /* end confdefs.h.  */
22399
22400 /* pthread test headers */
22401 #include <pthread.h>
22402 #if HAVE_PTHREADS < 7
22403 #include <errno.h>
22404 #endif
22405 #ifndef NULL
22406 #define NULL (void*)0
22407 #endif
22408
22409 static void *task(p)
22410         void *p;
22411 {
22412         return (void *) (p == NULL);
22413 }
22414
22415 int
22416 main ()
22417 {
22418
22419         /* pthread test function */
22420 #ifndef PTHREAD_CREATE_DETACHED
22421 #define PTHREAD_CREATE_DETACHED 1
22422 #endif
22423         pthread_t t;
22424         int status;
22425         int detach = PTHREAD_CREATE_DETACHED;
22426
22427 #if HAVE_PTHREADS > 4
22428         /* Final pthreads */
22429         pthread_attr_t attr;
22430
22431         status = pthread_attr_init(&attr);
22432         if( status ) return status;
22433
22434 #if HAVE_PTHREADS < 7
22435         status = pthread_attr_setdetachstate(&attr, &detach);
22436         if( status < 0 ) status = errno;
22437 #else
22438         status = pthread_attr_setdetachstate(&attr, detach);
22439 #endif
22440         if( status ) return status;
22441         status = pthread_create( &t, &attr, task, NULL );
22442 #if HAVE_PTHREADS < 7
22443         if( status < 0 ) status = errno;
22444 #endif
22445         if( status ) return status;
22446 #else
22447         /* Draft 4 pthreads */
22448         status = pthread_create( &t, pthread_attr_default, task, NULL );
22449         if( status ) return errno;
22450
22451         /* give thread a chance to complete */
22452         /* it should remain joinable and hence detachable */
22453         sleep( 1 );
22454
22455         status = pthread_detach( &t );
22456         if( status ) return errno;
22457 #endif
22458
22459 #ifdef HAVE_LINUX_THREADS
22460         pthread_kill_other_threads_np();
22461 #endif
22462
22463         return 0;
22464
22465   ;
22466   return 0;
22467 }
22468 _ACEOF
22469 rm -f conftest.$ac_objext conftest$ac_exeext
22470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22471   (eval $ac_link) 2>conftest.er1
22472   ac_status=$?
22473   grep -v '^ *+' conftest.er1 >conftest.err
22474   rm -f conftest.er1
22475   cat conftest.err >&5
22476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477   (exit $ac_status); } &&
22478          { ac_try='test -z "$ac_c_werror_flag"
22479                          || test ! -s conftest.err'
22480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481   (eval $ac_try) 2>&5
22482   ac_status=$?
22483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484   (exit $ac_status); }; } &&
22485          { ac_try='test -s conftest$ac_exeext'
22486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487   (eval $ac_try) 2>&5
22488   ac_status=$?
22489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490   (exit $ac_status); }; }; then
22491   ol_cv_pthread_threads=yes
22492 else
22493   echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22495
22496 ol_cv_pthread_threads=no
22497 fi
22498 rm -f conftest.err conftest.$ac_objext \
22499       conftest$ac_exeext conftest.$ac_ext
22500 else
22501   cat >conftest.$ac_ext <<_ACEOF
22502 /* confdefs.h.  */
22503 _ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h.  */
22507
22508 /* pthread test headers */
22509 #include <pthread.h>
22510 #if HAVE_PTHREADS < 7
22511 #include <errno.h>
22512 #endif
22513 #ifndef NULL
22514 #define NULL (void*)0
22515 #endif
22516
22517 static void *task(p)
22518         void *p;
22519 {
22520         return (void *) (p == NULL);
22521 }
22522
22523
22524 int main(argc, argv)
22525         int argc;
22526         char **argv;
22527 {
22528
22529         /* pthread test function */
22530 #ifndef PTHREAD_CREATE_DETACHED
22531 #define PTHREAD_CREATE_DETACHED 1
22532 #endif
22533         pthread_t t;
22534         int status;
22535         int detach = PTHREAD_CREATE_DETACHED;
22536
22537 #if HAVE_PTHREADS > 4
22538         /* Final pthreads */
22539         pthread_attr_t attr;
22540
22541         status = pthread_attr_init(&attr);
22542         if( status ) return status;
22543
22544 #if HAVE_PTHREADS < 7
22545         status = pthread_attr_setdetachstate(&attr, &detach);
22546         if( status < 0 ) status = errno;
22547 #else
22548         status = pthread_attr_setdetachstate(&attr, detach);
22549 #endif
22550         if( status ) return status;
22551         status = pthread_create( &t, &attr, task, NULL );
22552 #if HAVE_PTHREADS < 7
22553         if( status < 0 ) status = errno;
22554 #endif
22555         if( status ) return status;
22556 #else
22557         /* Draft 4 pthreads */
22558         status = pthread_create( &t, pthread_attr_default, task, NULL );
22559         if( status ) return errno;
22560
22561         /* give thread a chance to complete */
22562         /* it should remain joinable and hence detachable */
22563         sleep( 1 );
22564
22565         status = pthread_detach( &t );
22566         if( status ) return errno;
22567 #endif
22568
22569 #ifdef HAVE_LINUX_THREADS
22570         pthread_kill_other_threads_np();
22571 #endif
22572
22573         return 0;
22574
22575 }
22576
22577 _ACEOF
22578 rm -f conftest$ac_exeext
22579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22580   (eval $ac_link) 2>&5
22581   ac_status=$?
22582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22585   (eval $ac_try) 2>&5
22586   ac_status=$?
22587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588   (exit $ac_status); }; }; then
22589   ol_cv_pthread_threads=yes
22590 else
22591   echo "$as_me: program exited with status $ac_status" >&5
22592 echo "$as_me: failed program was:" >&5
22593 sed 's/^/| /' conftest.$ac_ext >&5
22594
22595 ( exit $ac_status )
22596 ol_cv_pthread_threads=no
22597 fi
22598 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22599 fi
22600
22601                 # restore the LIBS
22602                 LIBS="$ol_LIBS"
22603
22604 fi
22605 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
22606 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
22607
22608         if test $ol_cv_pthread_threads = yes ; then
22609                 ol_link_pthreads="-threads"
22610                 ol_link_threads=posix
22611         fi
22612 fi
22613
22614
22615                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
22616 if test "$ol_link_threads" = no ; then
22617         # try -lpthreads -lmach -lexc -lc_r
22618         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
22619 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
22620 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
22621   echo $ECHO_N "(cached) $ECHO_C" >&6
22622 else
22623
22624                 # save the flags
22625                 ol_LIBS="$LIBS"
22626                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
22627
22628                 if test "$cross_compiling" = yes; then
22629   cat >conftest.$ac_ext <<_ACEOF
22630 /* confdefs.h.  */
22631 _ACEOF
22632 cat confdefs.h >>conftest.$ac_ext
22633 cat >>conftest.$ac_ext <<_ACEOF
22634 /* end confdefs.h.  */
22635
22636 /* pthread test headers */
22637 #include <pthread.h>
22638 #if HAVE_PTHREADS < 7
22639 #include <errno.h>
22640 #endif
22641 #ifndef NULL
22642 #define NULL (void*)0
22643 #endif
22644
22645 static void *task(p)
22646         void *p;
22647 {
22648         return (void *) (p == NULL);
22649 }
22650
22651 int
22652 main ()
22653 {
22654
22655         /* pthread test function */
22656 #ifndef PTHREAD_CREATE_DETACHED
22657 #define PTHREAD_CREATE_DETACHED 1
22658 #endif
22659         pthread_t t;
22660         int status;
22661         int detach = PTHREAD_CREATE_DETACHED;
22662
22663 #if HAVE_PTHREADS > 4
22664         /* Final pthreads */
22665         pthread_attr_t attr;
22666
22667         status = pthread_attr_init(&attr);
22668         if( status ) return status;
22669
22670 #if HAVE_PTHREADS < 7
22671         status = pthread_attr_setdetachstate(&attr, &detach);
22672         if( status < 0 ) status = errno;
22673 #else
22674         status = pthread_attr_setdetachstate(&attr, detach);
22675 #endif
22676         if( status ) return status;
22677         status = pthread_create( &t, &attr, task, NULL );
22678 #if HAVE_PTHREADS < 7
22679         if( status < 0 ) status = errno;
22680 #endif
22681         if( status ) return status;
22682 #else
22683         /* Draft 4 pthreads */
22684         status = pthread_create( &t, pthread_attr_default, task, NULL );
22685         if( status ) return errno;
22686
22687         /* give thread a chance to complete */
22688         /* it should remain joinable and hence detachable */
22689         sleep( 1 );
22690
22691         status = pthread_detach( &t );
22692         if( status ) return errno;
22693 #endif
22694
22695 #ifdef HAVE_LINUX_THREADS
22696         pthread_kill_other_threads_np();
22697 #endif
22698
22699         return 0;
22700
22701   ;
22702   return 0;
22703 }
22704 _ACEOF
22705 rm -f conftest.$ac_objext conftest$ac_exeext
22706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22707   (eval $ac_link) 2>conftest.er1
22708   ac_status=$?
22709   grep -v '^ *+' conftest.er1 >conftest.err
22710   rm -f conftest.er1
22711   cat conftest.err >&5
22712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); } &&
22714          { ac_try='test -z "$ac_c_werror_flag"
22715                          || test ! -s conftest.err'
22716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22717   (eval $ac_try) 2>&5
22718   ac_status=$?
22719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720   (exit $ac_status); }; } &&
22721          { ac_try='test -s conftest$ac_exeext'
22722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22723   (eval $ac_try) 2>&5
22724   ac_status=$?
22725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726   (exit $ac_status); }; }; then
22727   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22728 else
22729   echo "$as_me: failed program was:" >&5
22730 sed 's/^/| /' conftest.$ac_ext >&5
22731
22732 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22733 fi
22734 rm -f conftest.err conftest.$ac_objext \
22735       conftest$ac_exeext conftest.$ac_ext
22736 else
22737   cat >conftest.$ac_ext <<_ACEOF
22738 /* confdefs.h.  */
22739 _ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h.  */
22743
22744 /* pthread test headers */
22745 #include <pthread.h>
22746 #if HAVE_PTHREADS < 7
22747 #include <errno.h>
22748 #endif
22749 #ifndef NULL
22750 #define NULL (void*)0
22751 #endif
22752
22753 static void *task(p)
22754         void *p;
22755 {
22756         return (void *) (p == NULL);
22757 }
22758
22759
22760 int main(argc, argv)
22761         int argc;
22762         char **argv;
22763 {
22764
22765         /* pthread test function */
22766 #ifndef PTHREAD_CREATE_DETACHED
22767 #define PTHREAD_CREATE_DETACHED 1
22768 #endif
22769         pthread_t t;
22770         int status;
22771         int detach = PTHREAD_CREATE_DETACHED;
22772
22773 #if HAVE_PTHREADS > 4
22774         /* Final pthreads */
22775         pthread_attr_t attr;
22776
22777         status = pthread_attr_init(&attr);
22778         if( status ) return status;
22779
22780 #if HAVE_PTHREADS < 7
22781         status = pthread_attr_setdetachstate(&attr, &detach);
22782         if( status < 0 ) status = errno;
22783 #else
22784         status = pthread_attr_setdetachstate(&attr, detach);
22785 #endif
22786         if( status ) return status;
22787         status = pthread_create( &t, &attr, task, NULL );
22788 #if HAVE_PTHREADS < 7
22789         if( status < 0 ) status = errno;
22790 #endif
22791         if( status ) return status;
22792 #else
22793         /* Draft 4 pthreads */
22794         status = pthread_create( &t, pthread_attr_default, task, NULL );
22795         if( status ) return errno;
22796
22797         /* give thread a chance to complete */
22798         /* it should remain joinable and hence detachable */
22799         sleep( 1 );
22800
22801         status = pthread_detach( &t );
22802         if( status ) return errno;
22803 #endif
22804
22805 #ifdef HAVE_LINUX_THREADS
22806         pthread_kill_other_threads_np();
22807 #endif
22808
22809         return 0;
22810
22811 }
22812
22813 _ACEOF
22814 rm -f conftest$ac_exeext
22815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22816   (eval $ac_link) 2>&5
22817   ac_status=$?
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22821   (eval $ac_try) 2>&5
22822   ac_status=$?
22823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824   (exit $ac_status); }; }; then
22825   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22826 else
22827   echo "$as_me: program exited with status $ac_status" >&5
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22830
22831 ( exit $ac_status )
22832 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22833 fi
22834 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22835 fi
22836
22837                 # restore the LIBS
22838                 LIBS="$ol_LIBS"
22839
22840 fi
22841 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
22842 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
22843
22844         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
22845                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
22846                 ol_link_threads=posix
22847         fi
22848 fi
22849
22850                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
22851 if test "$ol_link_threads" = no ; then
22852         # try -lpthreads -lmach -lexc
22853         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
22854 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
22855 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
22856   echo $ECHO_N "(cached) $ECHO_C" >&6
22857 else
22858
22859                 # save the flags
22860                 ol_LIBS="$LIBS"
22861                 LIBS="-lpthreads -lmach -lexc $LIBS"
22862
22863                 if test "$cross_compiling" = yes; then
22864   cat >conftest.$ac_ext <<_ACEOF
22865 /* confdefs.h.  */
22866 _ACEOF
22867 cat confdefs.h >>conftest.$ac_ext
22868 cat >>conftest.$ac_ext <<_ACEOF
22869 /* end confdefs.h.  */
22870
22871 /* pthread test headers */
22872 #include <pthread.h>
22873 #if HAVE_PTHREADS < 7
22874 #include <errno.h>
22875 #endif
22876 #ifndef NULL
22877 #define NULL (void*)0
22878 #endif
22879
22880 static void *task(p)
22881         void *p;
22882 {
22883         return (void *) (p == NULL);
22884 }
22885
22886 int
22887 main ()
22888 {
22889
22890         /* pthread test function */
22891 #ifndef PTHREAD_CREATE_DETACHED
22892 #define PTHREAD_CREATE_DETACHED 1
22893 #endif
22894         pthread_t t;
22895         int status;
22896         int detach = PTHREAD_CREATE_DETACHED;
22897
22898 #if HAVE_PTHREADS > 4
22899         /* Final pthreads */
22900         pthread_attr_t attr;
22901
22902         status = pthread_attr_init(&attr);
22903         if( status ) return status;
22904
22905 #if HAVE_PTHREADS < 7
22906         status = pthread_attr_setdetachstate(&attr, &detach);
22907         if( status < 0 ) status = errno;
22908 #else
22909         status = pthread_attr_setdetachstate(&attr, detach);
22910 #endif
22911         if( status ) return status;
22912         status = pthread_create( &t, &attr, task, NULL );
22913 #if HAVE_PTHREADS < 7
22914         if( status < 0 ) status = errno;
22915 #endif
22916         if( status ) return status;
22917 #else
22918         /* Draft 4 pthreads */
22919         status = pthread_create( &t, pthread_attr_default, task, NULL );
22920         if( status ) return errno;
22921
22922         /* give thread a chance to complete */
22923         /* it should remain joinable and hence detachable */
22924         sleep( 1 );
22925
22926         status = pthread_detach( &t );
22927         if( status ) return errno;
22928 #endif
22929
22930 #ifdef HAVE_LINUX_THREADS
22931         pthread_kill_other_threads_np();
22932 #endif
22933
22934         return 0;
22935
22936   ;
22937   return 0;
22938 }
22939 _ACEOF
22940 rm -f conftest.$ac_objext conftest$ac_exeext
22941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22942   (eval $ac_link) 2>conftest.er1
22943   ac_status=$?
22944   grep -v '^ *+' conftest.er1 >conftest.err
22945   rm -f conftest.er1
22946   cat conftest.err >&5
22947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948   (exit $ac_status); } &&
22949          { ac_try='test -z "$ac_c_werror_flag"
22950                          || test ! -s conftest.err'
22951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952   (eval $ac_try) 2>&5
22953   ac_status=$?
22954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955   (exit $ac_status); }; } &&
22956          { ac_try='test -s conftest$ac_exeext'
22957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958   (eval $ac_try) 2>&5
22959   ac_status=$?
22960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961   (exit $ac_status); }; }; then
22962   ol_cv_pthread_lpthreads_lmach_lexc=yes
22963 else
22964   echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22966
22967 ol_cv_pthread_lpthreads_lmach_lexc=no
22968 fi
22969 rm -f conftest.err conftest.$ac_objext \
22970       conftest$ac_exeext conftest.$ac_ext
22971 else
22972   cat >conftest.$ac_ext <<_ACEOF
22973 /* confdefs.h.  */
22974 _ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h.  */
22978
22979 /* pthread test headers */
22980 #include <pthread.h>
22981 #if HAVE_PTHREADS < 7
22982 #include <errno.h>
22983 #endif
22984 #ifndef NULL
22985 #define NULL (void*)0
22986 #endif
22987
22988 static void *task(p)
22989         void *p;
22990 {
22991         return (void *) (p == NULL);
22992 }
22993
22994
22995 int main(argc, argv)
22996         int argc;
22997         char **argv;
22998 {
22999
23000         /* pthread test function */
23001 #ifndef PTHREAD_CREATE_DETACHED
23002 #define PTHREAD_CREATE_DETACHED 1
23003 #endif
23004         pthread_t t;
23005         int status;
23006         int detach = PTHREAD_CREATE_DETACHED;
23007
23008 #if HAVE_PTHREADS > 4
23009         /* Final pthreads */
23010         pthread_attr_t attr;
23011
23012         status = pthread_attr_init(&attr);
23013         if( status ) return status;
23014
23015 #if HAVE_PTHREADS < 7
23016         status = pthread_attr_setdetachstate(&attr, &detach);
23017         if( status < 0 ) status = errno;
23018 #else
23019         status = pthread_attr_setdetachstate(&attr, detach);
23020 #endif
23021         if( status ) return status;
23022         status = pthread_create( &t, &attr, task, NULL );
23023 #if HAVE_PTHREADS < 7
23024         if( status < 0 ) status = errno;
23025 #endif
23026         if( status ) return status;
23027 #else
23028         /* Draft 4 pthreads */
23029         status = pthread_create( &t, pthread_attr_default, task, NULL );
23030         if( status ) return errno;
23031
23032         /* give thread a chance to complete */
23033         /* it should remain joinable and hence detachable */
23034         sleep( 1 );
23035
23036         status = pthread_detach( &t );
23037         if( status ) return errno;
23038 #endif
23039
23040 #ifdef HAVE_LINUX_THREADS
23041         pthread_kill_other_threads_np();
23042 #endif
23043
23044         return 0;
23045
23046 }
23047
23048 _ACEOF
23049 rm -f conftest$ac_exeext
23050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23051   (eval $ac_link) 2>&5
23052   ac_status=$?
23053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23056   (eval $ac_try) 2>&5
23057   ac_status=$?
23058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059   (exit $ac_status); }; }; then
23060   ol_cv_pthread_lpthreads_lmach_lexc=yes
23061 else
23062   echo "$as_me: program exited with status $ac_status" >&5
23063 echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23065
23066 ( exit $ac_status )
23067 ol_cv_pthread_lpthreads_lmach_lexc=no
23068 fi
23069 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23070 fi
23071
23072                 # restore the LIBS
23073                 LIBS="$ol_LIBS"
23074
23075 fi
23076 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23077 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23078
23079         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23080                 ol_link_pthreads="-lpthreads -lmach -lexc"
23081                 ol_link_threads=posix
23082         fi
23083 fi
23084
23085                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23086 if test "$ol_link_threads" = no ; then
23087         # try -lpthreads -lexc
23088         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23089 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23090 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23091   echo $ECHO_N "(cached) $ECHO_C" >&6
23092 else
23093
23094                 # save the flags
23095                 ol_LIBS="$LIBS"
23096                 LIBS="-lpthreads -lexc $LIBS"
23097
23098                 if test "$cross_compiling" = yes; then
23099   cat >conftest.$ac_ext <<_ACEOF
23100 /* confdefs.h.  */
23101 _ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h.  */
23105
23106 /* pthread test headers */
23107 #include <pthread.h>
23108 #if HAVE_PTHREADS < 7
23109 #include <errno.h>
23110 #endif
23111 #ifndef NULL
23112 #define NULL (void*)0
23113 #endif
23114
23115 static void *task(p)
23116         void *p;
23117 {
23118         return (void *) (p == NULL);
23119 }
23120
23121 int
23122 main ()
23123 {
23124
23125         /* pthread test function */
23126 #ifndef PTHREAD_CREATE_DETACHED
23127 #define PTHREAD_CREATE_DETACHED 1
23128 #endif
23129         pthread_t t;
23130         int status;
23131         int detach = PTHREAD_CREATE_DETACHED;
23132
23133 #if HAVE_PTHREADS > 4
23134         /* Final pthreads */
23135         pthread_attr_t attr;
23136
23137         status = pthread_attr_init(&attr);
23138         if( status ) return status;
23139
23140 #if HAVE_PTHREADS < 7
23141         status = pthread_attr_setdetachstate(&attr, &detach);
23142         if( status < 0 ) status = errno;
23143 #else
23144         status = pthread_attr_setdetachstate(&attr, detach);
23145 #endif
23146         if( status ) return status;
23147         status = pthread_create( &t, &attr, task, NULL );
23148 #if HAVE_PTHREADS < 7
23149         if( status < 0 ) status = errno;
23150 #endif
23151         if( status ) return status;
23152 #else
23153         /* Draft 4 pthreads */
23154         status = pthread_create( &t, pthread_attr_default, task, NULL );
23155         if( status ) return errno;
23156
23157         /* give thread a chance to complete */
23158         /* it should remain joinable and hence detachable */
23159         sleep( 1 );
23160
23161         status = pthread_detach( &t );
23162         if( status ) return errno;
23163 #endif
23164
23165 #ifdef HAVE_LINUX_THREADS
23166         pthread_kill_other_threads_np();
23167 #endif
23168
23169         return 0;
23170
23171   ;
23172   return 0;
23173 }
23174 _ACEOF
23175 rm -f conftest.$ac_objext conftest$ac_exeext
23176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23177   (eval $ac_link) 2>conftest.er1
23178   ac_status=$?
23179   grep -v '^ *+' conftest.er1 >conftest.err
23180   rm -f conftest.er1
23181   cat conftest.err >&5
23182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183   (exit $ac_status); } &&
23184          { ac_try='test -z "$ac_c_werror_flag"
23185                          || test ! -s conftest.err'
23186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187   (eval $ac_try) 2>&5
23188   ac_status=$?
23189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190   (exit $ac_status); }; } &&
23191          { ac_try='test -s conftest$ac_exeext'
23192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23193   (eval $ac_try) 2>&5
23194   ac_status=$?
23195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196   (exit $ac_status); }; }; then
23197   ol_cv_pthread_lpthreads_lexc=yes
23198 else
23199   echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23201
23202 ol_cv_pthread_lpthreads_lexc=no
23203 fi
23204 rm -f conftest.err conftest.$ac_objext \
23205       conftest$ac_exeext conftest.$ac_ext
23206 else
23207   cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h.  */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h.  */
23213
23214 /* pthread test headers */
23215 #include <pthread.h>
23216 #if HAVE_PTHREADS < 7
23217 #include <errno.h>
23218 #endif
23219 #ifndef NULL
23220 #define NULL (void*)0
23221 #endif
23222
23223 static void *task(p)
23224         void *p;
23225 {
23226         return (void *) (p == NULL);
23227 }
23228
23229
23230 int main(argc, argv)
23231         int argc;
23232         char **argv;
23233 {
23234
23235         /* pthread test function */
23236 #ifndef PTHREAD_CREATE_DETACHED
23237 #define PTHREAD_CREATE_DETACHED 1
23238 #endif
23239         pthread_t t;
23240         int status;
23241         int detach = PTHREAD_CREATE_DETACHED;
23242
23243 #if HAVE_PTHREADS > 4
23244         /* Final pthreads */
23245         pthread_attr_t attr;
23246
23247         status = pthread_attr_init(&attr);
23248         if( status ) return status;
23249
23250 #if HAVE_PTHREADS < 7
23251         status = pthread_attr_setdetachstate(&attr, &detach);
23252         if( status < 0 ) status = errno;
23253 #else
23254         status = pthread_attr_setdetachstate(&attr, detach);
23255 #endif
23256         if( status ) return status;
23257         status = pthread_create( &t, &attr, task, NULL );
23258 #if HAVE_PTHREADS < 7
23259         if( status < 0 ) status = errno;
23260 #endif
23261         if( status ) return status;
23262 #else
23263         /* Draft 4 pthreads */
23264         status = pthread_create( &t, pthread_attr_default, task, NULL );
23265         if( status ) return errno;
23266
23267         /* give thread a chance to complete */
23268         /* it should remain joinable and hence detachable */
23269         sleep( 1 );
23270
23271         status = pthread_detach( &t );
23272         if( status ) return errno;
23273 #endif
23274
23275 #ifdef HAVE_LINUX_THREADS
23276         pthread_kill_other_threads_np();
23277 #endif
23278
23279         return 0;
23280
23281 }
23282
23283 _ACEOF
23284 rm -f conftest$ac_exeext
23285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23286   (eval $ac_link) 2>&5
23287   ac_status=$?
23288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291   (eval $ac_try) 2>&5
23292   ac_status=$?
23293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294   (exit $ac_status); }; }; then
23295   ol_cv_pthread_lpthreads_lexc=yes
23296 else
23297   echo "$as_me: program exited with status $ac_status" >&5
23298 echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23300
23301 ( exit $ac_status )
23302 ol_cv_pthread_lpthreads_lexc=no
23303 fi
23304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23305 fi
23306
23307                 # restore the LIBS
23308                 LIBS="$ol_LIBS"
23309
23310 fi
23311 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23312 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23313
23314         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23315                 ol_link_pthreads="-lpthreads -lexc"
23316                 ol_link_threads=posix
23317         fi
23318 fi
23319
23320
23321                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23322 if test "$ol_link_threads" = no ; then
23323         # try -lpthreads
23324         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23325 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23326 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23327   echo $ECHO_N "(cached) $ECHO_C" >&6
23328 else
23329
23330                 # save the flags
23331                 ol_LIBS="$LIBS"
23332                 LIBS="-lpthreads $LIBS"
23333
23334                 if test "$cross_compiling" = yes; then
23335   cat >conftest.$ac_ext <<_ACEOF
23336 /* confdefs.h.  */
23337 _ACEOF
23338 cat confdefs.h >>conftest.$ac_ext
23339 cat >>conftest.$ac_ext <<_ACEOF
23340 /* end confdefs.h.  */
23341
23342 /* pthread test headers */
23343 #include <pthread.h>
23344 #if HAVE_PTHREADS < 7
23345 #include <errno.h>
23346 #endif
23347 #ifndef NULL
23348 #define NULL (void*)0
23349 #endif
23350
23351 static void *task(p)
23352         void *p;
23353 {
23354         return (void *) (p == NULL);
23355 }
23356
23357 int
23358 main ()
23359 {
23360
23361         /* pthread test function */
23362 #ifndef PTHREAD_CREATE_DETACHED
23363 #define PTHREAD_CREATE_DETACHED 1
23364 #endif
23365         pthread_t t;
23366         int status;
23367         int detach = PTHREAD_CREATE_DETACHED;
23368
23369 #if HAVE_PTHREADS > 4
23370         /* Final pthreads */
23371         pthread_attr_t attr;
23372
23373         status = pthread_attr_init(&attr);
23374         if( status ) return status;
23375
23376 #if HAVE_PTHREADS < 7
23377         status = pthread_attr_setdetachstate(&attr, &detach);
23378         if( status < 0 ) status = errno;
23379 #else
23380         status = pthread_attr_setdetachstate(&attr, detach);
23381 #endif
23382         if( status ) return status;
23383         status = pthread_create( &t, &attr, task, NULL );
23384 #if HAVE_PTHREADS < 7
23385         if( status < 0 ) status = errno;
23386 #endif
23387         if( status ) return status;
23388 #else
23389         /* Draft 4 pthreads */
23390         status = pthread_create( &t, pthread_attr_default, task, NULL );
23391         if( status ) return errno;
23392
23393         /* give thread a chance to complete */
23394         /* it should remain joinable and hence detachable */
23395         sleep( 1 );
23396
23397         status = pthread_detach( &t );
23398         if( status ) return errno;
23399 #endif
23400
23401 #ifdef HAVE_LINUX_THREADS
23402         pthread_kill_other_threads_np();
23403 #endif
23404
23405         return 0;
23406
23407   ;
23408   return 0;
23409 }
23410 _ACEOF
23411 rm -f conftest.$ac_objext conftest$ac_exeext
23412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23413   (eval $ac_link) 2>conftest.er1
23414   ac_status=$?
23415   grep -v '^ *+' conftest.er1 >conftest.err
23416   rm -f conftest.er1
23417   cat conftest.err >&5
23418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419   (exit $ac_status); } &&
23420          { ac_try='test -z "$ac_c_werror_flag"
23421                          || test ! -s conftest.err'
23422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423   (eval $ac_try) 2>&5
23424   ac_status=$?
23425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426   (exit $ac_status); }; } &&
23427          { ac_try='test -s conftest$ac_exeext'
23428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23429   (eval $ac_try) 2>&5
23430   ac_status=$?
23431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432   (exit $ac_status); }; }; then
23433   ol_cv_pthread_lib_lpthreads=yes
23434 else
23435   echo "$as_me: failed program was:" >&5
23436 sed 's/^/| /' conftest.$ac_ext >&5
23437
23438 ol_cv_pthread_lib_lpthreads=no
23439 fi
23440 rm -f conftest.err conftest.$ac_objext \
23441       conftest$ac_exeext conftest.$ac_ext
23442 else
23443   cat >conftest.$ac_ext <<_ACEOF
23444 /* confdefs.h.  */
23445 _ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h.  */
23449
23450 /* pthread test headers */
23451 #include <pthread.h>
23452 #if HAVE_PTHREADS < 7
23453 #include <errno.h>
23454 #endif
23455 #ifndef NULL
23456 #define NULL (void*)0
23457 #endif
23458
23459 static void *task(p)
23460         void *p;
23461 {
23462         return (void *) (p == NULL);
23463 }
23464
23465
23466 int main(argc, argv)
23467         int argc;
23468         char **argv;
23469 {
23470
23471         /* pthread test function */
23472 #ifndef PTHREAD_CREATE_DETACHED
23473 #define PTHREAD_CREATE_DETACHED 1
23474 #endif
23475         pthread_t t;
23476         int status;
23477         int detach = PTHREAD_CREATE_DETACHED;
23478
23479 #if HAVE_PTHREADS > 4
23480         /* Final pthreads */
23481         pthread_attr_t attr;
23482
23483         status = pthread_attr_init(&attr);
23484         if( status ) return status;
23485
23486 #if HAVE_PTHREADS < 7
23487         status = pthread_attr_setdetachstate(&attr, &detach);
23488         if( status < 0 ) status = errno;
23489 #else
23490         status = pthread_attr_setdetachstate(&attr, detach);
23491 #endif
23492         if( status ) return status;
23493         status = pthread_create( &t, &attr, task, NULL );
23494 #if HAVE_PTHREADS < 7
23495         if( status < 0 ) status = errno;
23496 #endif
23497         if( status ) return status;
23498 #else
23499         /* Draft 4 pthreads */
23500         status = pthread_create( &t, pthread_attr_default, task, NULL );
23501         if( status ) return errno;
23502
23503         /* give thread a chance to complete */
23504         /* it should remain joinable and hence detachable */
23505         sleep( 1 );
23506
23507         status = pthread_detach( &t );
23508         if( status ) return errno;
23509 #endif
23510
23511 #ifdef HAVE_LINUX_THREADS
23512         pthread_kill_other_threads_np();
23513 #endif
23514
23515         return 0;
23516
23517 }
23518
23519 _ACEOF
23520 rm -f conftest$ac_exeext
23521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23522   (eval $ac_link) 2>&5
23523   ac_status=$?
23524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23527   (eval $ac_try) 2>&5
23528   ac_status=$?
23529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530   (exit $ac_status); }; }; then
23531   ol_cv_pthread_lib_lpthreads=yes
23532 else
23533   echo "$as_me: program exited with status $ac_status" >&5
23534 echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23536
23537 ( exit $ac_status )
23538 ol_cv_pthread_lib_lpthreads=no
23539 fi
23540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23541 fi
23542
23543                 # restore the LIBS
23544                 LIBS="$ol_LIBS"
23545
23546 fi
23547 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23548 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23549
23550         if test $ol_cv_pthread_lib_lpthreads = yes ; then
23551                 ol_link_pthreads="-lpthreads"
23552                 ol_link_threads=posix
23553         fi
23554 fi
23555
23556
23557                 if test $ol_link_threads != no ; then
23558                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23559
23560                                                 save_CPPFLAGS="$CPPFLAGS"
23561                         save_LIBS="$LIBS"
23562                         LIBS="$LTHREAD_LIBS $LIBS"
23563
23564
23565
23566
23567 for ac_func in sched_yield pthread_yield thr_yield
23568 do
23569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23570 echo "$as_me:$LINENO: checking for $ac_func" >&5
23571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23572 if eval "test \"\${$as_ac_var+set}\" = set"; then
23573   echo $ECHO_N "(cached) $ECHO_C" >&6
23574 else
23575   cat >conftest.$ac_ext <<_ACEOF
23576 /* confdefs.h.  */
23577 _ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h.  */
23581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23583 #define $ac_func innocuous_$ac_func
23584
23585 /* System header to define __stub macros and hopefully few prototypes,
23586     which can conflict with char $ac_func (); below.
23587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23588     <limits.h> exists even on freestanding compilers.  */
23589
23590 #ifdef __STDC__
23591 # include <limits.h>
23592 #else
23593 # include <assert.h>
23594 #endif
23595
23596 #undef $ac_func
23597
23598 /* Override any gcc2 internal prototype to avoid an error.  */
23599 #ifdef __cplusplus
23600 extern "C"
23601 {
23602 #endif
23603 /* We use char because int might match the return type of a gcc2
23604    builtin and then its argument prototype would still apply.  */
23605 char $ac_func ();
23606 /* The GNU C library defines this for functions which it implements
23607     to always fail with ENOSYS.  Some functions are actually named
23608     something starting with __ and the normal name is an alias.  */
23609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23610 choke me
23611 #else
23612 char (*f) () = $ac_func;
23613 #endif
23614 #ifdef __cplusplus
23615 }
23616 #endif
23617
23618 int
23619 main ()
23620 {
23621 return f != $ac_func;
23622   ;
23623   return 0;
23624 }
23625 _ACEOF
23626 rm -f conftest.$ac_objext conftest$ac_exeext
23627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23628   (eval $ac_link) 2>conftest.er1
23629   ac_status=$?
23630   grep -v '^ *+' conftest.er1 >conftest.err
23631   rm -f conftest.er1
23632   cat conftest.err >&5
23633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634   (exit $ac_status); } &&
23635          { ac_try='test -z "$ac_c_werror_flag"
23636                          || test ! -s conftest.err'
23637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23638   (eval $ac_try) 2>&5
23639   ac_status=$?
23640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641   (exit $ac_status); }; } &&
23642          { ac_try='test -s conftest$ac_exeext'
23643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23644   (eval $ac_try) 2>&5
23645   ac_status=$?
23646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647   (exit $ac_status); }; }; then
23648   eval "$as_ac_var=yes"
23649 else
23650   echo "$as_me: failed program was:" >&5
23651 sed 's/^/| /' conftest.$ac_ext >&5
23652
23653 eval "$as_ac_var=no"
23654 fi
23655 rm -f conftest.err conftest.$ac_objext \
23656       conftest$ac_exeext conftest.$ac_ext
23657 fi
23658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23660 if test `eval echo '${'$as_ac_var'}'` = yes; then
23661   cat >>confdefs.h <<_ACEOF
23662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23663 _ACEOF
23664
23665 fi
23666 done
23667
23668
23669                         if test $ac_cv_func_sched_yield = no &&
23670                            test $ac_cv_func_pthread_yield = no &&
23671                            test $ac_cv_func_thr_yield = no ; then
23672                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23673 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23674 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23675   echo $ECHO_N "(cached) $ECHO_C" >&6
23676 else
23677   ac_check_lib_save_LIBS=$LIBS
23678 LIBS="-lrt  $LIBS"
23679 cat >conftest.$ac_ext <<_ACEOF
23680 /* confdefs.h.  */
23681 _ACEOF
23682 cat confdefs.h >>conftest.$ac_ext
23683 cat >>conftest.$ac_ext <<_ACEOF
23684 /* end confdefs.h.  */
23685
23686 /* Override any gcc2 internal prototype to avoid an error.  */
23687 #ifdef __cplusplus
23688 extern "C"
23689 #endif
23690 /* We use char because int might match the return type of a gcc2
23691    builtin and then its argument prototype would still apply.  */
23692 char sched_yield ();
23693 int
23694 main ()
23695 {
23696 sched_yield ();
23697   ;
23698   return 0;
23699 }
23700 _ACEOF
23701 rm -f conftest.$ac_objext conftest$ac_exeext
23702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23703   (eval $ac_link) 2>conftest.er1
23704   ac_status=$?
23705   grep -v '^ *+' conftest.er1 >conftest.err
23706   rm -f conftest.er1
23707   cat conftest.err >&5
23708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709   (exit $ac_status); } &&
23710          { ac_try='test -z "$ac_c_werror_flag"
23711                          || test ! -s conftest.err'
23712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23713   (eval $ac_try) 2>&5
23714   ac_status=$?
23715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716   (exit $ac_status); }; } &&
23717          { ac_try='test -s conftest$ac_exeext'
23718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23719   (eval $ac_try) 2>&5
23720   ac_status=$?
23721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722   (exit $ac_status); }; }; then
23723   ac_cv_lib_rt_sched_yield=yes
23724 else
23725   echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23727
23728 ac_cv_lib_rt_sched_yield=no
23729 fi
23730 rm -f conftest.err conftest.$ac_objext \
23731       conftest$ac_exeext conftest.$ac_ext
23732 LIBS=$ac_check_lib_save_LIBS
23733 fi
23734 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23735 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23736 if test $ac_cv_lib_rt_sched_yield = yes; then
23737   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
23738
23739 cat >>confdefs.h <<\_ACEOF
23740 #define HAVE_SCHED_YIELD 1
23741 _ACEOF
23742
23743                                         ac_cv_func_sched_yield=yes
23744 else
23745   ac_cv_func_sched_yield=no
23746 fi
23747
23748                         fi
23749                         if test $ac_cv_func_sched_yield = no &&
23750                            test $ac_cv_func_pthread_yield = no &&
23751                            test "$ac_cv_func_thr_yield" = no ; then
23752                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
23753 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
23754                         fi
23755
23756
23757 for ac_func in pthread_kill
23758 do
23759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23760 echo "$as_me:$LINENO: checking for $ac_func" >&5
23761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23762 if eval "test \"\${$as_ac_var+set}\" = set"; then
23763   echo $ECHO_N "(cached) $ECHO_C" >&6
23764 else
23765   cat >conftest.$ac_ext <<_ACEOF
23766 /* confdefs.h.  */
23767 _ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h.  */
23771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23773 #define $ac_func innocuous_$ac_func
23774
23775 /* System header to define __stub macros and hopefully few prototypes,
23776     which can conflict with char $ac_func (); below.
23777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23778     <limits.h> exists even on freestanding compilers.  */
23779
23780 #ifdef __STDC__
23781 # include <limits.h>
23782 #else
23783 # include <assert.h>
23784 #endif
23785
23786 #undef $ac_func
23787
23788 /* Override any gcc2 internal prototype to avoid an error.  */
23789 #ifdef __cplusplus
23790 extern "C"
23791 {
23792 #endif
23793 /* We use char because int might match the return type of a gcc2
23794    builtin and then its argument prototype would still apply.  */
23795 char $ac_func ();
23796 /* The GNU C library defines this for functions which it implements
23797     to always fail with ENOSYS.  Some functions are actually named
23798     something starting with __ and the normal name is an alias.  */
23799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23800 choke me
23801 #else
23802 char (*f) () = $ac_func;
23803 #endif
23804 #ifdef __cplusplus
23805 }
23806 #endif
23807
23808 int
23809 main ()
23810 {
23811 return f != $ac_func;
23812   ;
23813   return 0;
23814 }
23815 _ACEOF
23816 rm -f conftest.$ac_objext conftest$ac_exeext
23817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23818   (eval $ac_link) 2>conftest.er1
23819   ac_status=$?
23820   grep -v '^ *+' conftest.er1 >conftest.err
23821   rm -f conftest.er1
23822   cat conftest.err >&5
23823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824   (exit $ac_status); } &&
23825          { ac_try='test -z "$ac_c_werror_flag"
23826                          || test ! -s conftest.err'
23827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23828   (eval $ac_try) 2>&5
23829   ac_status=$?
23830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831   (exit $ac_status); }; } &&
23832          { ac_try='test -s conftest$ac_exeext'
23833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23834   (eval $ac_try) 2>&5
23835   ac_status=$?
23836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837   (exit $ac_status); }; }; then
23838   eval "$as_ac_var=yes"
23839 else
23840   echo "$as_me: failed program was:" >&5
23841 sed 's/^/| /' conftest.$ac_ext >&5
23842
23843 eval "$as_ac_var=no"
23844 fi
23845 rm -f conftest.err conftest.$ac_objext \
23846       conftest$ac_exeext conftest.$ac_ext
23847 fi
23848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23850 if test `eval echo '${'$as_ac_var'}'` = yes; then
23851   cat >>confdefs.h <<_ACEOF
23852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23853 _ACEOF
23854
23855 fi
23856 done
23857
23858
23859                                                                         echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
23860 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
23861 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
23862   echo $ECHO_N "(cached) $ECHO_C" >&6
23863 else
23864
23865                                                                 cat >conftest.$ac_ext <<_ACEOF
23866 /* confdefs.h.  */
23867 _ACEOF
23868 cat confdefs.h >>conftest.$ac_ext
23869 cat >>conftest.$ac_ext <<_ACEOF
23870 /* end confdefs.h.  */
23871
23872 #include <pthread.h>
23873 pthread_rwlock_t rwlock;
23874
23875 int
23876 main ()
23877 {
23878 pthread_rwlock_destroy(&rwlock);
23879   ;
23880   return 0;
23881 }
23882 _ACEOF
23883 rm -f conftest.$ac_objext conftest$ac_exeext
23884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23885   (eval $ac_link) 2>conftest.er1
23886   ac_status=$?
23887   grep -v '^ *+' conftest.er1 >conftest.err
23888   rm -f conftest.er1
23889   cat conftest.err >&5
23890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891   (exit $ac_status); } &&
23892          { ac_try='test -z "$ac_c_werror_flag"
23893                          || test ! -s conftest.err'
23894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23895   (eval $ac_try) 2>&5
23896   ac_status=$?
23897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898   (exit $ac_status); }; } &&
23899          { ac_try='test -s conftest$ac_exeext'
23900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23901   (eval $ac_try) 2>&5
23902   ac_status=$?
23903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904   (exit $ac_status); }; }; then
23905   ol_cv_func_pthread_rwlock_destroy=yes
23906 else
23907   echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23909
23910 ol_cv_func_pthread_rwlock_destroy=no
23911 fi
23912 rm -f conftest.err conftest.$ac_objext \
23913       conftest$ac_exeext conftest.$ac_ext
23914
23915 fi
23916 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
23917 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
23918                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
23919
23920 cat >>confdefs.h <<\_ACEOF
23921 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
23922 _ACEOF
23923
23924                         fi
23925
23926                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
23927 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
23928 if test "${ol_cv_func_pthread_detach+set}" = set; then
23929   echo $ECHO_N "(cached) $ECHO_C" >&6
23930 else
23931
23932                                                                 cat >conftest.$ac_ext <<_ACEOF
23933 /* confdefs.h.  */
23934 _ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h.  */
23938
23939 #include <pthread.h>
23940 #ifndef NULL
23941 #define NULL (void*)0
23942 #endif
23943
23944 int
23945 main ()
23946 {
23947 pthread_detach(NULL);
23948   ;
23949   return 0;
23950 }
23951 _ACEOF
23952 rm -f conftest.$ac_objext conftest$ac_exeext
23953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23954   (eval $ac_link) 2>conftest.er1
23955   ac_status=$?
23956   grep -v '^ *+' conftest.er1 >conftest.err
23957   rm -f conftest.er1
23958   cat conftest.err >&5
23959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960   (exit $ac_status); } &&
23961          { ac_try='test -z "$ac_c_werror_flag"
23962                          || test ! -s conftest.err'
23963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23964   (eval $ac_try) 2>&5
23965   ac_status=$?
23966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967   (exit $ac_status); }; } &&
23968          { ac_try='test -s conftest$ac_exeext'
23969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23970   (eval $ac_try) 2>&5
23971   ac_status=$?
23972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973   (exit $ac_status); }; }; then
23974   ol_cv_func_pthread_detach=yes
23975 else
23976   echo "$as_me: failed program was:" >&5
23977 sed 's/^/| /' conftest.$ac_ext >&5
23978
23979 ol_cv_func_pthread_detach=no
23980 fi
23981 rm -f conftest.err conftest.$ac_objext \
23982       conftest$ac_exeext conftest.$ac_ext
23983
23984 fi
23985 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
23986 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
23987
23988                         if test $ol_cv_func_pthread_detach = no ; then
23989                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
23990 echo "$as_me: error: could not locate pthread_detach()" >&2;}
23991    { (exit 1); exit 1; }; }
23992                         fi
23993
23994
23995 cat >>confdefs.h <<\_ACEOF
23996 #define HAVE_PTHREAD_DETACH 1
23997 _ACEOF
23998
23999
24000
24001
24002
24003
24004 for ac_func in \
24005                                 pthread_setconcurrency \
24006                                 pthread_getconcurrency \
24007                                 thr_setconcurrency \
24008                                 thr_getconcurrency \
24009
24010 do
24011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24012 echo "$as_me:$LINENO: checking for $ac_func" >&5
24013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24014 if eval "test \"\${$as_ac_var+set}\" = set"; then
24015   echo $ECHO_N "(cached) $ECHO_C" >&6
24016 else
24017   cat >conftest.$ac_ext <<_ACEOF
24018 /* confdefs.h.  */
24019 _ACEOF
24020 cat confdefs.h >>conftest.$ac_ext
24021 cat >>conftest.$ac_ext <<_ACEOF
24022 /* end confdefs.h.  */
24023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24025 #define $ac_func innocuous_$ac_func
24026
24027 /* System header to define __stub macros and hopefully few prototypes,
24028     which can conflict with char $ac_func (); below.
24029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24030     <limits.h> exists even on freestanding compilers.  */
24031
24032 #ifdef __STDC__
24033 # include <limits.h>
24034 #else
24035 # include <assert.h>
24036 #endif
24037
24038 #undef $ac_func
24039
24040 /* Override any gcc2 internal prototype to avoid an error.  */
24041 #ifdef __cplusplus
24042 extern "C"
24043 {
24044 #endif
24045 /* We use char because int might match the return type of a gcc2
24046    builtin and then its argument prototype would still apply.  */
24047 char $ac_func ();
24048 /* The GNU C library defines this for functions which it implements
24049     to always fail with ENOSYS.  Some functions are actually named
24050     something starting with __ and the normal name is an alias.  */
24051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24052 choke me
24053 #else
24054 char (*f) () = $ac_func;
24055 #endif
24056 #ifdef __cplusplus
24057 }
24058 #endif
24059
24060 int
24061 main ()
24062 {
24063 return f != $ac_func;
24064   ;
24065   return 0;
24066 }
24067 _ACEOF
24068 rm -f conftest.$ac_objext conftest$ac_exeext
24069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24070   (eval $ac_link) 2>conftest.er1
24071   ac_status=$?
24072   grep -v '^ *+' conftest.er1 >conftest.err
24073   rm -f conftest.er1
24074   cat conftest.err >&5
24075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076   (exit $ac_status); } &&
24077          { ac_try='test -z "$ac_c_werror_flag"
24078                          || test ! -s conftest.err'
24079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24080   (eval $ac_try) 2>&5
24081   ac_status=$?
24082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083   (exit $ac_status); }; } &&
24084          { ac_try='test -s conftest$ac_exeext'
24085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24086   (eval $ac_try) 2>&5
24087   ac_status=$?
24088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089   (exit $ac_status); }; }; then
24090   eval "$as_ac_var=yes"
24091 else
24092   echo "$as_me: failed program was:" >&5
24093 sed 's/^/| /' conftest.$ac_ext >&5
24094
24095 eval "$as_ac_var=no"
24096 fi
24097 rm -f conftest.err conftest.$ac_objext \
24098       conftest$ac_exeext conftest.$ac_ext
24099 fi
24100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24102 if test `eval echo '${'$as_ac_var'}'` = yes; then
24103   cat >>confdefs.h <<_ACEOF
24104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24105 _ACEOF
24106
24107 fi
24108 done
24109
24110
24111
24112
24113 for ac_func in pthread_kill_other_threads_np
24114 do
24115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24116 echo "$as_me:$LINENO: checking for $ac_func" >&5
24117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24118 if eval "test \"\${$as_ac_var+set}\" = set"; then
24119   echo $ECHO_N "(cached) $ECHO_C" >&6
24120 else
24121   cat >conftest.$ac_ext <<_ACEOF
24122 /* confdefs.h.  */
24123 _ACEOF
24124 cat confdefs.h >>conftest.$ac_ext
24125 cat >>conftest.$ac_ext <<_ACEOF
24126 /* end confdefs.h.  */
24127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24129 #define $ac_func innocuous_$ac_func
24130
24131 /* System header to define __stub macros and hopefully few prototypes,
24132     which can conflict with char $ac_func (); below.
24133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24134     <limits.h> exists even on freestanding compilers.  */
24135
24136 #ifdef __STDC__
24137 # include <limits.h>
24138 #else
24139 # include <assert.h>
24140 #endif
24141
24142 #undef $ac_func
24143
24144 /* Override any gcc2 internal prototype to avoid an error.  */
24145 #ifdef __cplusplus
24146 extern "C"
24147 {
24148 #endif
24149 /* We use char because int might match the return type of a gcc2
24150    builtin and then its argument prototype would still apply.  */
24151 char $ac_func ();
24152 /* The GNU C library defines this for functions which it implements
24153     to always fail with ENOSYS.  Some functions are actually named
24154     something starting with __ and the normal name is an alias.  */
24155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24156 choke me
24157 #else
24158 char (*f) () = $ac_func;
24159 #endif
24160 #ifdef __cplusplus
24161 }
24162 #endif
24163
24164 int
24165 main ()
24166 {
24167 return f != $ac_func;
24168   ;
24169   return 0;
24170 }
24171 _ACEOF
24172 rm -f conftest.$ac_objext conftest$ac_exeext
24173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24174   (eval $ac_link) 2>conftest.er1
24175   ac_status=$?
24176   grep -v '^ *+' conftest.er1 >conftest.err
24177   rm -f conftest.er1
24178   cat conftest.err >&5
24179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180   (exit $ac_status); } &&
24181          { ac_try='test -z "$ac_c_werror_flag"
24182                          || test ! -s conftest.err'
24183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24184   (eval $ac_try) 2>&5
24185   ac_status=$?
24186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187   (exit $ac_status); }; } &&
24188          { ac_try='test -s conftest$ac_exeext'
24189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24190   (eval $ac_try) 2>&5
24191   ac_status=$?
24192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193   (exit $ac_status); }; }; then
24194   eval "$as_ac_var=yes"
24195 else
24196   echo "$as_me: failed program was:" >&5
24197 sed 's/^/| /' conftest.$ac_ext >&5
24198
24199 eval "$as_ac_var=no"
24200 fi
24201 rm -f conftest.err conftest.$ac_objext \
24202       conftest$ac_exeext conftest.$ac_ext
24203 fi
24204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24206 if test `eval echo '${'$as_ac_var'}'` = yes; then
24207   cat >>confdefs.h <<_ACEOF
24208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24209 _ACEOF
24210
24211 fi
24212 done
24213
24214         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24215 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24216 if test "${ol_cv_sys_linux_threads+set}" = set; then
24217   echo $ECHO_N "(cached) $ECHO_C" >&6
24218 else
24219   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24220 fi
24221 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24222 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24223
24224
24225
24226
24227         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24228 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24229 if test "${ol_cv_linux_threads+set}" = set; then
24230   echo $ECHO_N "(cached) $ECHO_C" >&6
24231 else
24232
24233                 if test $ol_cv_header_linux_threads = yes &&
24234                    test $ol_cv_sys_linux_threads = yes; then
24235                         ol_cv_linux_threads=yes
24236                 elif test $ol_cv_header_linux_threads = no &&
24237                      test $ol_cv_sys_linux_threads = no; then
24238                         ol_cv_linux_threads=no
24239                 else
24240                         ol_cv_linux_threads=error
24241                 fi
24242
24243 fi
24244 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24245 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24246
24247
24248                         if test $ol_cv_linux_threads = error; then
24249                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24250 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24251    { (exit 1); exit 1; }; };
24252                         fi
24253
24254                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24255 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24256 if test "${ol_cv_pthread_create_works+set}" = set; then
24257   echo $ECHO_N "(cached) $ECHO_C" >&6
24258 else
24259
24260                         if test "$cross_compiling" = yes; then
24261                                 ol_cv_pthread_create_works=yes
24262 else
24263   cat >conftest.$ac_ext <<_ACEOF
24264 /* confdefs.h.  */
24265 _ACEOF
24266 cat confdefs.h >>conftest.$ac_ext
24267 cat >>conftest.$ac_ext <<_ACEOF
24268 /* end confdefs.h.  */
24269
24270 /* pthread test headers */
24271 #include <pthread.h>
24272 #if HAVE_PTHREADS < 7
24273 #include <errno.h>
24274 #endif
24275 #ifndef NULL
24276 #define NULL (void*)0
24277 #endif
24278
24279 static void *task(p)
24280         void *p;
24281 {
24282         return (void *) (p == NULL);
24283 }
24284
24285
24286 int main(argc, argv)
24287         int argc;
24288         char **argv;
24289 {
24290
24291         /* pthread test function */
24292 #ifndef PTHREAD_CREATE_DETACHED
24293 #define PTHREAD_CREATE_DETACHED 1
24294 #endif
24295         pthread_t t;
24296         int status;
24297         int detach = PTHREAD_CREATE_DETACHED;
24298
24299 #if HAVE_PTHREADS > 4
24300         /* Final pthreads */
24301         pthread_attr_t attr;
24302
24303         status = pthread_attr_init(&attr);
24304         if( status ) return status;
24305
24306 #if HAVE_PTHREADS < 7
24307         status = pthread_attr_setdetachstate(&attr, &detach);
24308         if( status < 0 ) status = errno;
24309 #else
24310         status = pthread_attr_setdetachstate(&attr, detach);
24311 #endif
24312         if( status ) return status;
24313         status = pthread_create( &t, &attr, task, NULL );
24314 #if HAVE_PTHREADS < 7
24315         if( status < 0 ) status = errno;
24316 #endif
24317         if( status ) return status;
24318 #else
24319         /* Draft 4 pthreads */
24320         status = pthread_create( &t, pthread_attr_default, task, NULL );
24321         if( status ) return errno;
24322
24323         /* give thread a chance to complete */
24324         /* it should remain joinable and hence detachable */
24325         sleep( 1 );
24326
24327         status = pthread_detach( &t );
24328         if( status ) return errno;
24329 #endif
24330
24331 #ifdef HAVE_LINUX_THREADS
24332         pthread_kill_other_threads_np();
24333 #endif
24334
24335         return 0;
24336
24337 }
24338
24339 _ACEOF
24340 rm -f conftest$ac_exeext
24341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24342   (eval $ac_link) 2>&5
24343   ac_status=$?
24344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24347   (eval $ac_try) 2>&5
24348   ac_status=$?
24349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350   (exit $ac_status); }; }; then
24351   ol_cv_pthread_create_works=yes
24352 else
24353   echo "$as_me: program exited with status $ac_status" >&5
24354 echo "$as_me: failed program was:" >&5
24355 sed 's/^/| /' conftest.$ac_ext >&5
24356
24357 ( exit $ac_status )
24358 ol_cv_pthread_create_works=no
24359 fi
24360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24361 fi
24362 fi
24363 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24364 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24365
24366                         if test $ol_cv_pthread_create_works = no ; then
24367                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24368 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24369    { (exit 1); exit 1; }; }
24370                         fi
24371
24372                         ol_replace_broken_yield=no
24373
24374                         if test $ol_replace_broken_yield = yes ; then
24375
24376 cat >>confdefs.h <<\_ACEOF
24377 #define REPLACE_BROKEN_YIELD 1
24378 _ACEOF
24379
24380                         fi
24381
24382                                                 if test $ol_with_yielding_select = auto ; then
24383                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24384 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24385 if test "${ol_cv_pthread_select_yields+set}" = set; then
24386   echo $ECHO_N "(cached) $ECHO_C" >&6
24387 else
24388
24389                                 if test "$cross_compiling" = yes; then
24390   ol_cv_pthread_select_yields=cross
24391 else
24392   cat >conftest.$ac_ext <<_ACEOF
24393 /* confdefs.h.  */
24394 _ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h.  */
24398
24399 #include <sys/types.h>
24400 #include <sys/time.h>
24401 #include <unistd.h>
24402 #include <pthread.h>
24403 #ifndef NULL
24404 #define NULL (void*) 0
24405 #endif
24406
24407 static int fildes[2];
24408
24409 static void *task(p)
24410         void *p;
24411 {
24412         int i;
24413         struct timeval tv;
24414
24415         fd_set rfds;
24416
24417         tv.tv_sec=10;
24418         tv.tv_usec=0;
24419
24420         FD_ZERO(&rfds);
24421         FD_SET(fildes[0], &rfds);
24422
24423         /* we're not interested in any fds */
24424         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24425
24426         if(i < 0) {
24427                 perror("select");
24428                 exit(10);
24429         }
24430
24431         exit(0); /* if we exit here, the select blocked the whole process */
24432 }
24433
24434 int main(argc, argv)
24435         int argc;
24436         char **argv;
24437 {
24438         pthread_t t;
24439
24440         /* create a pipe to select */
24441         if(pipe(&fildes[0])) {
24442                 perror("select");
24443                 exit(1);
24444         }
24445
24446 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24447         (void) pthread_setconcurrency(2);
24448 #else
24449 #ifdef HAVE_THR_SETCONCURRENCY
24450         /* Set Solaris LWP concurrency to 2 */
24451         thr_setconcurrency(2);
24452 #endif
24453 #endif
24454
24455 #if HAVE_PTHREADS < 6
24456         pthread_create(&t, pthread_attr_default, task, NULL);
24457 #else
24458         pthread_create(&t, NULL, task, NULL);
24459 #endif
24460
24461         /* make sure task runs first */
24462 #ifdef HAVE_THR_YIELD
24463         thr_yield();
24464 #elif defined( HAVE_SCHED_YIELD )
24465         sched_yield();
24466 #elif defined( HAVE_PTHREAD_YIELD )
24467         pthread_yield();
24468 #endif
24469
24470         exit(2);
24471 }
24472 _ACEOF
24473 rm -f conftest$ac_exeext
24474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24475   (eval $ac_link) 2>&5
24476   ac_status=$?
24477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24480   (eval $ac_try) 2>&5
24481   ac_status=$?
24482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483   (exit $ac_status); }; }; then
24484   ol_cv_pthread_select_yields=no
24485 else
24486   echo "$as_me: program exited with status $ac_status" >&5
24487 echo "$as_me: failed program was:" >&5
24488 sed 's/^/| /' conftest.$ac_ext >&5
24489
24490 ( exit $ac_status )
24491 ol_cv_pthread_select_yields=yes
24492 fi
24493 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24494 fi
24495 fi
24496 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24497 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24498
24499                                 if test $ol_cv_pthread_select_yields = cross ; then
24500                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24501 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24502    { (exit 1); exit 1; }; }
24503                                 fi
24504
24505                                 if test $ol_cv_pthread_select_yields = yes ; then
24506                                         ol_with_yielding_select=yes
24507                                 fi
24508                         fi
24509
24510                                                 CPPFLAGS="$save_CPPFLAGS"
24511                         LIBS="$save_LIBS"
24512                 else
24513                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24514 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24515    { (exit 1); exit 1; }; }
24516                 fi
24517         fi
24518
24519         if test $ol_with_threads = posix ; then
24520                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24521 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24522    { (exit 1); exit 1; }; }
24523         fi
24524         ;;
24525 esac
24526
24527 case $ol_with_threads in auto | yes | mach)
24528
24529
24530
24531 for ac_header in mach/cthreads.h cthreads.h
24532 do
24533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24535   echo "$as_me:$LINENO: checking for $ac_header" >&5
24536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24538   echo $ECHO_N "(cached) $ECHO_C" >&6
24539 fi
24540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24542 else
24543   # Is the header compilable?
24544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24546 cat >conftest.$ac_ext <<_ACEOF
24547 /* confdefs.h.  */
24548 _ACEOF
24549 cat confdefs.h >>conftest.$ac_ext
24550 cat >>conftest.$ac_ext <<_ACEOF
24551 /* end confdefs.h.  */
24552 $ac_includes_default
24553 #include <$ac_header>
24554 _ACEOF
24555 rm -f conftest.$ac_objext
24556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24557   (eval $ac_compile) 2>conftest.er1
24558   ac_status=$?
24559   grep -v '^ *+' conftest.er1 >conftest.err
24560   rm -f conftest.er1
24561   cat conftest.err >&5
24562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563   (exit $ac_status); } &&
24564          { ac_try='test -z "$ac_c_werror_flag"
24565                          || test ! -s conftest.err'
24566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24567   (eval $ac_try) 2>&5
24568   ac_status=$?
24569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570   (exit $ac_status); }; } &&
24571          { ac_try='test -s conftest.$ac_objext'
24572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24573   (eval $ac_try) 2>&5
24574   ac_status=$?
24575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576   (exit $ac_status); }; }; then
24577   ac_header_compiler=yes
24578 else
24579   echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24581
24582 ac_header_compiler=no
24583 fi
24584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24586 echo "${ECHO_T}$ac_header_compiler" >&6
24587
24588 # Is the header present?
24589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24591 cat >conftest.$ac_ext <<_ACEOF
24592 /* confdefs.h.  */
24593 _ACEOF
24594 cat confdefs.h >>conftest.$ac_ext
24595 cat >>conftest.$ac_ext <<_ACEOF
24596 /* end confdefs.h.  */
24597 #include <$ac_header>
24598 _ACEOF
24599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24601   ac_status=$?
24602   grep -v '^ *+' conftest.er1 >conftest.err
24603   rm -f conftest.er1
24604   cat conftest.err >&5
24605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606   (exit $ac_status); } >/dev/null; then
24607   if test -s conftest.err; then
24608     ac_cpp_err=$ac_c_preproc_warn_flag
24609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24610   else
24611     ac_cpp_err=
24612   fi
24613 else
24614   ac_cpp_err=yes
24615 fi
24616 if test -z "$ac_cpp_err"; then
24617   ac_header_preproc=yes
24618 else
24619   echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.$ac_ext >&5
24621
24622   ac_header_preproc=no
24623 fi
24624 rm -f conftest.err conftest.$ac_ext
24625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24626 echo "${ECHO_T}$ac_header_preproc" >&6
24627
24628 # So?  What about this header?
24629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24630   yes:no: )
24631     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24635     ac_header_preproc=yes
24636     ;;
24637   no:yes:* )
24638     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24640     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24641 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24642     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24644     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24645 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24648     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24650     (
24651       cat <<\_ASBOX
24652 ## --------------------------------------------- ##
24653 ## Report this to <http://www.openldap.org/its/> ##
24654 ## --------------------------------------------- ##
24655 _ASBOX
24656     ) |
24657       sed "s/^/$as_me: WARNING:     /" >&2
24658     ;;
24659 esac
24660 echo "$as_me:$LINENO: checking for $ac_header" >&5
24661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24663   echo $ECHO_N "(cached) $ECHO_C" >&6
24664 else
24665   eval "$as_ac_Header=\$ac_header_preproc"
24666 fi
24667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24669
24670 fi
24671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24672   cat >>confdefs.h <<_ACEOF
24673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24674 _ACEOF
24675
24676 fi
24677
24678 done
24679
24680         if test $ac_cv_header_mach_cthreads_h = yes ; then
24681                 ol_with_threads=found
24682
24683                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24684 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24685 if test "${ac_cv_func_cthread_fork+set}" = set; then
24686   echo $ECHO_N "(cached) $ECHO_C" >&6
24687 else
24688   cat >conftest.$ac_ext <<_ACEOF
24689 /* confdefs.h.  */
24690 _ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h.  */
24694 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24696 #define cthread_fork innocuous_cthread_fork
24697
24698 /* System header to define __stub macros and hopefully few prototypes,
24699     which can conflict with char cthread_fork (); below.
24700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24701     <limits.h> exists even on freestanding compilers.  */
24702
24703 #ifdef __STDC__
24704 # include <limits.h>
24705 #else
24706 # include <assert.h>
24707 #endif
24708
24709 #undef cthread_fork
24710
24711 /* Override any gcc2 internal prototype to avoid an error.  */
24712 #ifdef __cplusplus
24713 extern "C"
24714 {
24715 #endif
24716 /* We use char because int might match the return type of a gcc2
24717    builtin and then its argument prototype would still apply.  */
24718 char cthread_fork ();
24719 /* The GNU C library defines this for functions which it implements
24720     to always fail with ENOSYS.  Some functions are actually named
24721     something starting with __ and the normal name is an alias.  */
24722 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24723 choke me
24724 #else
24725 char (*f) () = cthread_fork;
24726 #endif
24727 #ifdef __cplusplus
24728 }
24729 #endif
24730
24731 int
24732 main ()
24733 {
24734 return f != cthread_fork;
24735   ;
24736   return 0;
24737 }
24738 _ACEOF
24739 rm -f conftest.$ac_objext conftest$ac_exeext
24740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24741   (eval $ac_link) 2>conftest.er1
24742   ac_status=$?
24743   grep -v '^ *+' conftest.er1 >conftest.err
24744   rm -f conftest.er1
24745   cat conftest.err >&5
24746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747   (exit $ac_status); } &&
24748          { ac_try='test -z "$ac_c_werror_flag"
24749                          || test ! -s conftest.err'
24750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24751   (eval $ac_try) 2>&5
24752   ac_status=$?
24753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754   (exit $ac_status); }; } &&
24755          { ac_try='test -s conftest$ac_exeext'
24756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24757   (eval $ac_try) 2>&5
24758   ac_status=$?
24759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760   (exit $ac_status); }; }; then
24761   ac_cv_func_cthread_fork=yes
24762 else
24763   echo "$as_me: failed program was:" >&5
24764 sed 's/^/| /' conftest.$ac_ext >&5
24765
24766 ac_cv_func_cthread_fork=no
24767 fi
24768 rm -f conftest.err conftest.$ac_objext \
24769       conftest$ac_exeext conftest.$ac_ext
24770 fi
24771 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24772 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24773 if test $ac_cv_func_cthread_fork = yes; then
24774   ol_link_threads=yes
24775 fi
24776
24777
24778                 if test $ol_link_threads = no ; then
24779                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
24780 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
24781 if test "${ol_cv_cthread_all_load+set}" = set; then
24782   echo $ECHO_N "(cached) $ECHO_C" >&6
24783 else
24784
24785                                                                 save_LIBS="$LIBS"
24786                                 LIBS="-all_load $LIBS"
24787                                 cat >conftest.$ac_ext <<_ACEOF
24788 /* confdefs.h.  */
24789 _ACEOF
24790 cat confdefs.h >>conftest.$ac_ext
24791 cat >>conftest.$ac_ext <<_ACEOF
24792 /* end confdefs.h.  */
24793 #include <mach/cthreads.h>
24794 int
24795 main ()
24796 {
24797
24798                                         cthread_fork((void *)0, (void *)0);
24799
24800   ;
24801   return 0;
24802 }
24803 _ACEOF
24804 rm -f conftest.$ac_objext conftest$ac_exeext
24805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24806   (eval $ac_link) 2>conftest.er1
24807   ac_status=$?
24808   grep -v '^ *+' conftest.er1 >conftest.err
24809   rm -f conftest.er1
24810   cat conftest.err >&5
24811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812   (exit $ac_status); } &&
24813          { ac_try='test -z "$ac_c_werror_flag"
24814                          || test ! -s conftest.err'
24815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24816   (eval $ac_try) 2>&5
24817   ac_status=$?
24818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819   (exit $ac_status); }; } &&
24820          { ac_try='test -s conftest$ac_exeext'
24821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24822   (eval $ac_try) 2>&5
24823   ac_status=$?
24824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825   (exit $ac_status); }; }; then
24826   ol_cv_cthread_all_load=yes
24827 else
24828   echo "$as_me: failed program was:" >&5
24829 sed 's/^/| /' conftest.$ac_ext >&5
24830
24831 ol_cv_cthread_all_load=no
24832 fi
24833 rm -f conftest.err conftest.$ac_objext \
24834       conftest$ac_exeext conftest.$ac_ext
24835                                                                 LIBS="$save_LIBS"
24836
24837 fi
24838 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
24839 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
24840
24841                         if test $ol_cv_cthread_all_load = yes ; then
24842                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
24843                                 ol_link_threads=mach
24844                                 ol_with_threads=found
24845                         fi
24846                 fi
24847
24848         elif test $ac_cv_header_cthreads_h = yes ; then
24849
24850                 ol_with_threads=found
24851
24852                                 save_LIBS="$LIBS"
24853                 LIBS="$LIBS -lthreads"
24854                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24855 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24856 if test "${ac_cv_func_cthread_fork+set}" = set; then
24857   echo $ECHO_N "(cached) $ECHO_C" >&6
24858 else
24859   cat >conftest.$ac_ext <<_ACEOF
24860 /* confdefs.h.  */
24861 _ACEOF
24862 cat confdefs.h >>conftest.$ac_ext
24863 cat >>conftest.$ac_ext <<_ACEOF
24864 /* end confdefs.h.  */
24865 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24867 #define cthread_fork innocuous_cthread_fork
24868
24869 /* System header to define __stub macros and hopefully few prototypes,
24870     which can conflict with char cthread_fork (); below.
24871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24872     <limits.h> exists even on freestanding compilers.  */
24873
24874 #ifdef __STDC__
24875 # include <limits.h>
24876 #else
24877 # include <assert.h>
24878 #endif
24879
24880 #undef cthread_fork
24881
24882 /* Override any gcc2 internal prototype to avoid an error.  */
24883 #ifdef __cplusplus
24884 extern "C"
24885 {
24886 #endif
24887 /* We use char because int might match the return type of a gcc2
24888    builtin and then its argument prototype would still apply.  */
24889 char cthread_fork ();
24890 /* The GNU C library defines this for functions which it implements
24891     to always fail with ENOSYS.  Some functions are actually named
24892     something starting with __ and the normal name is an alias.  */
24893 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24894 choke me
24895 #else
24896 char (*f) () = cthread_fork;
24897 #endif
24898 #ifdef __cplusplus
24899 }
24900 #endif
24901
24902 int
24903 main ()
24904 {
24905 return f != cthread_fork;
24906   ;
24907   return 0;
24908 }
24909 _ACEOF
24910 rm -f conftest.$ac_objext conftest$ac_exeext
24911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24912   (eval $ac_link) 2>conftest.er1
24913   ac_status=$?
24914   grep -v '^ *+' conftest.er1 >conftest.err
24915   rm -f conftest.er1
24916   cat conftest.err >&5
24917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918   (exit $ac_status); } &&
24919          { ac_try='test -z "$ac_c_werror_flag"
24920                          || test ! -s conftest.err'
24921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922   (eval $ac_try) 2>&5
24923   ac_status=$?
24924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925   (exit $ac_status); }; } &&
24926          { ac_try='test -s conftest$ac_exeext'
24927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928   (eval $ac_try) 2>&5
24929   ac_status=$?
24930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931   (exit $ac_status); }; }; then
24932   ac_cv_func_cthread_fork=yes
24933 else
24934   echo "$as_me: failed program was:" >&5
24935 sed 's/^/| /' conftest.$ac_ext >&5
24936
24937 ac_cv_func_cthread_fork=no
24938 fi
24939 rm -f conftest.err conftest.$ac_objext \
24940       conftest$ac_exeext conftest.$ac_ext
24941 fi
24942 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24943 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24944 if test $ac_cv_func_cthread_fork = yes; then
24945   ol_link_threads=yes
24946 fi
24947
24948                 LIBS="$save_LIBS"
24949
24950                 if test $ol_link_threads = yes ; then
24951                         LTHREAD_LIBS="-lthreads"
24952                         ol_link_threads=mach
24953                         ol_with_threads=found
24954                 else
24955                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24956 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24957    { (exit 1); exit 1; }; }
24958                 fi
24959
24960         elif test $ol_with_threads = mach ; then
24961                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
24962 echo "$as_me: error: could not locate Mach CThreads" >&2;}
24963    { (exit 1); exit 1; }; }
24964         fi
24965
24966         if test $ol_link_threads = mach ; then
24967
24968 cat >>confdefs.h <<\_ACEOF
24969 #define HAVE_MACH_CTHREADS 1
24970 _ACEOF
24971
24972         elif test $ol_with_threads = found ; then
24973                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24974 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24975    { (exit 1); exit 1; }; }
24976         fi
24977         ;;
24978 esac
24979
24980 case $ol_with_threads in auto | yes | pth)
24981
24982
24983 for ac_header in pth.h
24984 do
24985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24987   echo "$as_me:$LINENO: checking for $ac_header" >&5
24988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24990   echo $ECHO_N "(cached) $ECHO_C" >&6
24991 fi
24992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24994 else
24995   # Is the header compilable?
24996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24998 cat >conftest.$ac_ext <<_ACEOF
24999 /* confdefs.h.  */
25000 _ACEOF
25001 cat confdefs.h >>conftest.$ac_ext
25002 cat >>conftest.$ac_ext <<_ACEOF
25003 /* end confdefs.h.  */
25004 $ac_includes_default
25005 #include <$ac_header>
25006 _ACEOF
25007 rm -f conftest.$ac_objext
25008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25009   (eval $ac_compile) 2>conftest.er1
25010   ac_status=$?
25011   grep -v '^ *+' conftest.er1 >conftest.err
25012   rm -f conftest.er1
25013   cat conftest.err >&5
25014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015   (exit $ac_status); } &&
25016          { ac_try='test -z "$ac_c_werror_flag"
25017                          || test ! -s conftest.err'
25018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019   (eval $ac_try) 2>&5
25020   ac_status=$?
25021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022   (exit $ac_status); }; } &&
25023          { ac_try='test -s conftest.$ac_objext'
25024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25025   (eval $ac_try) 2>&5
25026   ac_status=$?
25027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028   (exit $ac_status); }; }; then
25029   ac_header_compiler=yes
25030 else
25031   echo "$as_me: failed program was:" >&5
25032 sed 's/^/| /' conftest.$ac_ext >&5
25033
25034 ac_header_compiler=no
25035 fi
25036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25038 echo "${ECHO_T}$ac_header_compiler" >&6
25039
25040 # Is the header present?
25041 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25043 cat >conftest.$ac_ext <<_ACEOF
25044 /* confdefs.h.  */
25045 _ACEOF
25046 cat confdefs.h >>conftest.$ac_ext
25047 cat >>conftest.$ac_ext <<_ACEOF
25048 /* end confdefs.h.  */
25049 #include <$ac_header>
25050 _ACEOF
25051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25053   ac_status=$?
25054   grep -v '^ *+' conftest.er1 >conftest.err
25055   rm -f conftest.er1
25056   cat conftest.err >&5
25057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058   (exit $ac_status); } >/dev/null; then
25059   if test -s conftest.err; then
25060     ac_cpp_err=$ac_c_preproc_warn_flag
25061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25062   else
25063     ac_cpp_err=
25064   fi
25065 else
25066   ac_cpp_err=yes
25067 fi
25068 if test -z "$ac_cpp_err"; then
25069   ac_header_preproc=yes
25070 else
25071   echo "$as_me: failed program was:" >&5
25072 sed 's/^/| /' conftest.$ac_ext >&5
25073
25074   ac_header_preproc=no
25075 fi
25076 rm -f conftest.err conftest.$ac_ext
25077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25078 echo "${ECHO_T}$ac_header_preproc" >&6
25079
25080 # So?  What about this header?
25081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25082   yes:no: )
25083     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25087     ac_header_preproc=yes
25088     ;;
25089   no:yes:* )
25090     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25092     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25093 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25094     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25096     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25097 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25100     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25102     (
25103       cat <<\_ASBOX
25104 ## --------------------------------------------- ##
25105 ## Report this to <http://www.openldap.org/its/> ##
25106 ## --------------------------------------------- ##
25107 _ASBOX
25108     ) |
25109       sed "s/^/$as_me: WARNING:     /" >&2
25110     ;;
25111 esac
25112 echo "$as_me:$LINENO: checking for $ac_header" >&5
25113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25115   echo $ECHO_N "(cached) $ECHO_C" >&6
25116 else
25117   eval "$as_ac_Header=\$ac_header_preproc"
25118 fi
25119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25121
25122 fi
25123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25124   cat >>confdefs.h <<_ACEOF
25125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25126 _ACEOF
25127
25128 fi
25129
25130 done
25131
25132
25133         if test $ac_cv_header_pth_h = yes ; then
25134                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25135 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25136 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25137   echo $ECHO_N "(cached) $ECHO_C" >&6
25138 else
25139   ac_check_lib_save_LIBS=$LIBS
25140 LIBS="-lpth  $LIBS"
25141 cat >conftest.$ac_ext <<_ACEOF
25142 /* confdefs.h.  */
25143 _ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h.  */
25147
25148 /* Override any gcc2 internal prototype to avoid an error.  */
25149 #ifdef __cplusplus
25150 extern "C"
25151 #endif
25152 /* We use char because int might match the return type of a gcc2
25153    builtin and then its argument prototype would still apply.  */
25154 char pth_version ();
25155 int
25156 main ()
25157 {
25158 pth_version ();
25159   ;
25160   return 0;
25161 }
25162 _ACEOF
25163 rm -f conftest.$ac_objext conftest$ac_exeext
25164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25165   (eval $ac_link) 2>conftest.er1
25166   ac_status=$?
25167   grep -v '^ *+' conftest.er1 >conftest.err
25168   rm -f conftest.er1
25169   cat conftest.err >&5
25170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171   (exit $ac_status); } &&
25172          { ac_try='test -z "$ac_c_werror_flag"
25173                          || test ! -s conftest.err'
25174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25175   (eval $ac_try) 2>&5
25176   ac_status=$?
25177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178   (exit $ac_status); }; } &&
25179          { ac_try='test -s conftest$ac_exeext'
25180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25181   (eval $ac_try) 2>&5
25182   ac_status=$?
25183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184   (exit $ac_status); }; }; then
25185   ac_cv_lib_pth_pth_version=yes
25186 else
25187   echo "$as_me: failed program was:" >&5
25188 sed 's/^/| /' conftest.$ac_ext >&5
25189
25190 ac_cv_lib_pth_pth_version=no
25191 fi
25192 rm -f conftest.err conftest.$ac_objext \
25193       conftest$ac_exeext conftest.$ac_ext
25194 LIBS=$ac_check_lib_save_LIBS
25195 fi
25196 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25197 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25198 if test $ac_cv_lib_pth_pth_version = yes; then
25199   have_pth=yes
25200 else
25201   have_pth=no
25202 fi
25203
25204
25205                 if test $have_pth = yes ; then
25206
25207 cat >>confdefs.h <<\_ACEOF
25208 #define HAVE_GNU_PTH 1
25209 _ACEOF
25210
25211                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25212                         ol_link_threads=pth
25213                         ol_with_threads=found
25214
25215                         if test $ol_with_yielding_select = auto ; then
25216                                 ol_with_yielding_select=yes
25217                         fi
25218                 fi
25219         fi
25220         ;;
25221 esac
25222
25223 case $ol_with_threads in auto | yes | lwp)
25224
25225
25226
25227 for ac_header in thread.h synch.h
25228 do
25229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25231   echo "$as_me:$LINENO: checking for $ac_header" >&5
25232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25234   echo $ECHO_N "(cached) $ECHO_C" >&6
25235 fi
25236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25238 else
25239   # Is the header compilable?
25240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25242 cat >conftest.$ac_ext <<_ACEOF
25243 /* confdefs.h.  */
25244 _ACEOF
25245 cat confdefs.h >>conftest.$ac_ext
25246 cat >>conftest.$ac_ext <<_ACEOF
25247 /* end confdefs.h.  */
25248 $ac_includes_default
25249 #include <$ac_header>
25250 _ACEOF
25251 rm -f conftest.$ac_objext
25252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25253   (eval $ac_compile) 2>conftest.er1
25254   ac_status=$?
25255   grep -v '^ *+' conftest.er1 >conftest.err
25256   rm -f conftest.er1
25257   cat conftest.err >&5
25258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259   (exit $ac_status); } &&
25260          { ac_try='test -z "$ac_c_werror_flag"
25261                          || test ! -s conftest.err'
25262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25263   (eval $ac_try) 2>&5
25264   ac_status=$?
25265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266   (exit $ac_status); }; } &&
25267          { ac_try='test -s conftest.$ac_objext'
25268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25269   (eval $ac_try) 2>&5
25270   ac_status=$?
25271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272   (exit $ac_status); }; }; then
25273   ac_header_compiler=yes
25274 else
25275   echo "$as_me: failed program was:" >&5
25276 sed 's/^/| /' conftest.$ac_ext >&5
25277
25278 ac_header_compiler=no
25279 fi
25280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25282 echo "${ECHO_T}$ac_header_compiler" >&6
25283
25284 # Is the header present?
25285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25287 cat >conftest.$ac_ext <<_ACEOF
25288 /* confdefs.h.  */
25289 _ACEOF
25290 cat confdefs.h >>conftest.$ac_ext
25291 cat >>conftest.$ac_ext <<_ACEOF
25292 /* end confdefs.h.  */
25293 #include <$ac_header>
25294 _ACEOF
25295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25296   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25297   ac_status=$?
25298   grep -v '^ *+' conftest.er1 >conftest.err
25299   rm -f conftest.er1
25300   cat conftest.err >&5
25301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302   (exit $ac_status); } >/dev/null; then
25303   if test -s conftest.err; then
25304     ac_cpp_err=$ac_c_preproc_warn_flag
25305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25306   else
25307     ac_cpp_err=
25308   fi
25309 else
25310   ac_cpp_err=yes
25311 fi
25312 if test -z "$ac_cpp_err"; then
25313   ac_header_preproc=yes
25314 else
25315   echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25317
25318   ac_header_preproc=no
25319 fi
25320 rm -f conftest.err conftest.$ac_ext
25321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25322 echo "${ECHO_T}$ac_header_preproc" >&6
25323
25324 # So?  What about this header?
25325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25326   yes:no: )
25327     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25329     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25331     ac_header_preproc=yes
25332     ;;
25333   no:yes:* )
25334     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25336     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25337 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25338     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25340     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25341 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25344     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25346     (
25347       cat <<\_ASBOX
25348 ## --------------------------------------------- ##
25349 ## Report this to <http://www.openldap.org/its/> ##
25350 ## --------------------------------------------- ##
25351 _ASBOX
25352     ) |
25353       sed "s/^/$as_me: WARNING:     /" >&2
25354     ;;
25355 esac
25356 echo "$as_me:$LINENO: checking for $ac_header" >&5
25357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25359   echo $ECHO_N "(cached) $ECHO_C" >&6
25360 else
25361   eval "$as_ac_Header=\$ac_header_preproc"
25362 fi
25363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25365
25366 fi
25367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25368   cat >>confdefs.h <<_ACEOF
25369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25370 _ACEOF
25371
25372 fi
25373
25374 done
25375
25376         if test $ac_cv_header_thread_h = yes &&
25377            test $ac_cv_header_synch_h = yes ; then
25378                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25379 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25380 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25381   echo $ECHO_N "(cached) $ECHO_C" >&6
25382 else
25383   ac_check_lib_save_LIBS=$LIBS
25384 LIBS="-lthread  $LIBS"
25385 cat >conftest.$ac_ext <<_ACEOF
25386 /* confdefs.h.  */
25387 _ACEOF
25388 cat confdefs.h >>conftest.$ac_ext
25389 cat >>conftest.$ac_ext <<_ACEOF
25390 /* end confdefs.h.  */
25391
25392 /* Override any gcc2 internal prototype to avoid an error.  */
25393 #ifdef __cplusplus
25394 extern "C"
25395 #endif
25396 /* We use char because int might match the return type of a gcc2
25397    builtin and then its argument prototype would still apply.  */
25398 char thr_create ();
25399 int
25400 main ()
25401 {
25402 thr_create ();
25403   ;
25404   return 0;
25405 }
25406 _ACEOF
25407 rm -f conftest.$ac_objext conftest$ac_exeext
25408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25409   (eval $ac_link) 2>conftest.er1
25410   ac_status=$?
25411   grep -v '^ *+' conftest.er1 >conftest.err
25412   rm -f conftest.er1
25413   cat conftest.err >&5
25414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415   (exit $ac_status); } &&
25416          { ac_try='test -z "$ac_c_werror_flag"
25417                          || test ! -s conftest.err'
25418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25419   (eval $ac_try) 2>&5
25420   ac_status=$?
25421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422   (exit $ac_status); }; } &&
25423          { ac_try='test -s conftest$ac_exeext'
25424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25425   (eval $ac_try) 2>&5
25426   ac_status=$?
25427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428   (exit $ac_status); }; }; then
25429   ac_cv_lib_thread_thr_create=yes
25430 else
25431   echo "$as_me: failed program was:" >&5
25432 sed 's/^/| /' conftest.$ac_ext >&5
25433
25434 ac_cv_lib_thread_thr_create=no
25435 fi
25436 rm -f conftest.err conftest.$ac_objext \
25437       conftest$ac_exeext conftest.$ac_ext
25438 LIBS=$ac_check_lib_save_LIBS
25439 fi
25440 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25441 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25442 if test $ac_cv_lib_thread_thr_create = yes; then
25443   have_thr=yes
25444 else
25445   have_thr=no
25446 fi
25447
25448
25449                 if test $have_thr = yes ; then
25450
25451 cat >>confdefs.h <<\_ACEOF
25452 #define HAVE_THR 1
25453 _ACEOF
25454
25455                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25456                         ol_link_threads=thr
25457
25458                         if test $ol_with_yielding_select = auto ; then
25459                                 ol_with_yielding_select=yes
25460                         fi
25461
25462
25463
25464 for ac_func in \
25465                                 thr_setconcurrency \
25466                                 thr_getconcurrency \
25467
25468 do
25469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25470 echo "$as_me:$LINENO: checking for $ac_func" >&5
25471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25472 if eval "test \"\${$as_ac_var+set}\" = set"; then
25473   echo $ECHO_N "(cached) $ECHO_C" >&6
25474 else
25475   cat >conftest.$ac_ext <<_ACEOF
25476 /* confdefs.h.  */
25477 _ACEOF
25478 cat confdefs.h >>conftest.$ac_ext
25479 cat >>conftest.$ac_ext <<_ACEOF
25480 /* end confdefs.h.  */
25481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25483 #define $ac_func innocuous_$ac_func
25484
25485 /* System header to define __stub macros and hopefully few prototypes,
25486     which can conflict with char $ac_func (); below.
25487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25488     <limits.h> exists even on freestanding compilers.  */
25489
25490 #ifdef __STDC__
25491 # include <limits.h>
25492 #else
25493 # include <assert.h>
25494 #endif
25495
25496 #undef $ac_func
25497
25498 /* Override any gcc2 internal prototype to avoid an error.  */
25499 #ifdef __cplusplus
25500 extern "C"
25501 {
25502 #endif
25503 /* We use char because int might match the return type of a gcc2
25504    builtin and then its argument prototype would still apply.  */
25505 char $ac_func ();
25506 /* The GNU C library defines this for functions which it implements
25507     to always fail with ENOSYS.  Some functions are actually named
25508     something starting with __ and the normal name is an alias.  */
25509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25510 choke me
25511 #else
25512 char (*f) () = $ac_func;
25513 #endif
25514 #ifdef __cplusplus
25515 }
25516 #endif
25517
25518 int
25519 main ()
25520 {
25521 return f != $ac_func;
25522   ;
25523   return 0;
25524 }
25525 _ACEOF
25526 rm -f conftest.$ac_objext conftest$ac_exeext
25527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25528   (eval $ac_link) 2>conftest.er1
25529   ac_status=$?
25530   grep -v '^ *+' conftest.er1 >conftest.err
25531   rm -f conftest.er1
25532   cat conftest.err >&5
25533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534   (exit $ac_status); } &&
25535          { ac_try='test -z "$ac_c_werror_flag"
25536                          || test ! -s conftest.err'
25537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25538   (eval $ac_try) 2>&5
25539   ac_status=$?
25540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541   (exit $ac_status); }; } &&
25542          { ac_try='test -s conftest$ac_exeext'
25543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25544   (eval $ac_try) 2>&5
25545   ac_status=$?
25546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547   (exit $ac_status); }; }; then
25548   eval "$as_ac_var=yes"
25549 else
25550   echo "$as_me: failed program was:" >&5
25551 sed 's/^/| /' conftest.$ac_ext >&5
25552
25553 eval "$as_ac_var=no"
25554 fi
25555 rm -f conftest.err conftest.$ac_objext \
25556       conftest$ac_exeext conftest.$ac_ext
25557 fi
25558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25560 if test `eval echo '${'$as_ac_var'}'` = yes; then
25561   cat >>confdefs.h <<_ACEOF
25562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25563 _ACEOF
25564
25565 fi
25566 done
25567
25568                 fi
25569         fi
25570
25571
25572 for ac_header in lwp/lwp.h
25573 do
25574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25576   echo "$as_me:$LINENO: checking for $ac_header" >&5
25577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25579   echo $ECHO_N "(cached) $ECHO_C" >&6
25580 fi
25581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25583 else
25584   # Is the header compilable?
25585 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25587 cat >conftest.$ac_ext <<_ACEOF
25588 /* confdefs.h.  */
25589 _ACEOF
25590 cat confdefs.h >>conftest.$ac_ext
25591 cat >>conftest.$ac_ext <<_ACEOF
25592 /* end confdefs.h.  */
25593 $ac_includes_default
25594 #include <$ac_header>
25595 _ACEOF
25596 rm -f conftest.$ac_objext
25597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25598   (eval $ac_compile) 2>conftest.er1
25599   ac_status=$?
25600   grep -v '^ *+' conftest.er1 >conftest.err
25601   rm -f conftest.er1
25602   cat conftest.err >&5
25603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604   (exit $ac_status); } &&
25605          { ac_try='test -z "$ac_c_werror_flag"
25606                          || test ! -s conftest.err'
25607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25608   (eval $ac_try) 2>&5
25609   ac_status=$?
25610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611   (exit $ac_status); }; } &&
25612          { ac_try='test -s conftest.$ac_objext'
25613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25614   (eval $ac_try) 2>&5
25615   ac_status=$?
25616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617   (exit $ac_status); }; }; then
25618   ac_header_compiler=yes
25619 else
25620   echo "$as_me: failed program was:" >&5
25621 sed 's/^/| /' conftest.$ac_ext >&5
25622
25623 ac_header_compiler=no
25624 fi
25625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25627 echo "${ECHO_T}$ac_header_compiler" >&6
25628
25629 # Is the header present?
25630 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25632 cat >conftest.$ac_ext <<_ACEOF
25633 /* confdefs.h.  */
25634 _ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h.  */
25638 #include <$ac_header>
25639 _ACEOF
25640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25641   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25642   ac_status=$?
25643   grep -v '^ *+' conftest.er1 >conftest.err
25644   rm -f conftest.er1
25645   cat conftest.err >&5
25646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647   (exit $ac_status); } >/dev/null; then
25648   if test -s conftest.err; then
25649     ac_cpp_err=$ac_c_preproc_warn_flag
25650     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25651   else
25652     ac_cpp_err=
25653   fi
25654 else
25655   ac_cpp_err=yes
25656 fi
25657 if test -z "$ac_cpp_err"; then
25658   ac_header_preproc=yes
25659 else
25660   echo "$as_me: failed program was:" >&5
25661 sed 's/^/| /' conftest.$ac_ext >&5
25662
25663   ac_header_preproc=no
25664 fi
25665 rm -f conftest.err conftest.$ac_ext
25666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25667 echo "${ECHO_T}$ac_header_preproc" >&6
25668
25669 # So?  What about this header?
25670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25671   yes:no: )
25672     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25674     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25676     ac_header_preproc=yes
25677     ;;
25678   no:yes:* )
25679     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25681     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25682 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25683     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25685     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25686 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25689     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25691     (
25692       cat <<\_ASBOX
25693 ## --------------------------------------------- ##
25694 ## Report this to <http://www.openldap.org/its/> ##
25695 ## --------------------------------------------- ##
25696 _ASBOX
25697     ) |
25698       sed "s/^/$as_me: WARNING:     /" >&2
25699     ;;
25700 esac
25701 echo "$as_me:$LINENO: checking for $ac_header" >&5
25702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25704   echo $ECHO_N "(cached) $ECHO_C" >&6
25705 else
25706   eval "$as_ac_Header=\$ac_header_preproc"
25707 fi
25708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25710
25711 fi
25712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25713   cat >>confdefs.h <<_ACEOF
25714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25715 _ACEOF
25716
25717 fi
25718
25719 done
25720
25721         if test $ac_cv_header_lwp_lwp_h = yes ; then
25722                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
25723 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
25724 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
25725   echo $ECHO_N "(cached) $ECHO_C" >&6
25726 else
25727   ac_check_lib_save_LIBS=$LIBS
25728 LIBS="-llwp  $LIBS"
25729 cat >conftest.$ac_ext <<_ACEOF
25730 /* confdefs.h.  */
25731 _ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h.  */
25735
25736 /* Override any gcc2 internal prototype to avoid an error.  */
25737 #ifdef __cplusplus
25738 extern "C"
25739 #endif
25740 /* We use char because int might match the return type of a gcc2
25741    builtin and then its argument prototype would still apply.  */
25742 char lwp_create ();
25743 int
25744 main ()
25745 {
25746 lwp_create ();
25747   ;
25748   return 0;
25749 }
25750 _ACEOF
25751 rm -f conftest.$ac_objext conftest$ac_exeext
25752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25753   (eval $ac_link) 2>conftest.er1
25754   ac_status=$?
25755   grep -v '^ *+' conftest.er1 >conftest.err
25756   rm -f conftest.er1
25757   cat conftest.err >&5
25758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759   (exit $ac_status); } &&
25760          { ac_try='test -z "$ac_c_werror_flag"
25761                          || test ! -s conftest.err'
25762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25763   (eval $ac_try) 2>&5
25764   ac_status=$?
25765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766   (exit $ac_status); }; } &&
25767          { ac_try='test -s conftest$ac_exeext'
25768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25769   (eval $ac_try) 2>&5
25770   ac_status=$?
25771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772   (exit $ac_status); }; }; then
25773   ac_cv_lib_lwp_lwp_create=yes
25774 else
25775   echo "$as_me: failed program was:" >&5
25776 sed 's/^/| /' conftest.$ac_ext >&5
25777
25778 ac_cv_lib_lwp_lwp_create=no
25779 fi
25780 rm -f conftest.err conftest.$ac_objext \
25781       conftest$ac_exeext conftest.$ac_ext
25782 LIBS=$ac_check_lib_save_LIBS
25783 fi
25784 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
25785 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
25786 if test $ac_cv_lib_lwp_lwp_create = yes; then
25787   have_lwp=yes
25788 else
25789   have_lwp=no
25790 fi
25791
25792
25793                 if test $have_lwp = yes ; then
25794
25795 cat >>confdefs.h <<\_ACEOF
25796 #define HAVE_LWP 1
25797 _ACEOF
25798
25799                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
25800                         ol_link_threads=lwp
25801
25802                         if test $ol_with_yielding_select = auto ; then
25803                                 ol_with_yielding_select=no
25804                         fi
25805                 fi
25806         fi
25807         ;;
25808 esac
25809
25810 if test $ol_with_yielding_select = yes ; then
25811
25812 cat >>confdefs.h <<\_ACEOF
25813 #define HAVE_YIELDING_SELECT 1
25814 _ACEOF
25815
25816 fi
25817
25818 if test $ol_with_threads = manual ; then
25819                 ol_link_threads=yes
25820
25821         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
25822 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
25823
25824
25825
25826 for ac_header in pthread.h sched.h
25827 do
25828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25830   echo "$as_me:$LINENO: checking for $ac_header" >&5
25831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25833   echo $ECHO_N "(cached) $ECHO_C" >&6
25834 fi
25835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25837 else
25838   # Is the header compilable?
25839 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25841 cat >conftest.$ac_ext <<_ACEOF
25842 /* confdefs.h.  */
25843 _ACEOF
25844 cat confdefs.h >>conftest.$ac_ext
25845 cat >>conftest.$ac_ext <<_ACEOF
25846 /* end confdefs.h.  */
25847 $ac_includes_default
25848 #include <$ac_header>
25849 _ACEOF
25850 rm -f conftest.$ac_objext
25851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25852   (eval $ac_compile) 2>conftest.er1
25853   ac_status=$?
25854   grep -v '^ *+' conftest.er1 >conftest.err
25855   rm -f conftest.er1
25856   cat conftest.err >&5
25857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858   (exit $ac_status); } &&
25859          { ac_try='test -z "$ac_c_werror_flag"
25860                          || test ! -s conftest.err'
25861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25862   (eval $ac_try) 2>&5
25863   ac_status=$?
25864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865   (exit $ac_status); }; } &&
25866          { ac_try='test -s conftest.$ac_objext'
25867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25868   (eval $ac_try) 2>&5
25869   ac_status=$?
25870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871   (exit $ac_status); }; }; then
25872   ac_header_compiler=yes
25873 else
25874   echo "$as_me: failed program was:" >&5
25875 sed 's/^/| /' conftest.$ac_ext >&5
25876
25877 ac_header_compiler=no
25878 fi
25879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25880 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25881 echo "${ECHO_T}$ac_header_compiler" >&6
25882
25883 # Is the header present?
25884 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25886 cat >conftest.$ac_ext <<_ACEOF
25887 /* confdefs.h.  */
25888 _ACEOF
25889 cat confdefs.h >>conftest.$ac_ext
25890 cat >>conftest.$ac_ext <<_ACEOF
25891 /* end confdefs.h.  */
25892 #include <$ac_header>
25893 _ACEOF
25894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25895   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25896   ac_status=$?
25897   grep -v '^ *+' conftest.er1 >conftest.err
25898   rm -f conftest.er1
25899   cat conftest.err >&5
25900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901   (exit $ac_status); } >/dev/null; then
25902   if test -s conftest.err; then
25903     ac_cpp_err=$ac_c_preproc_warn_flag
25904     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25905   else
25906     ac_cpp_err=
25907   fi
25908 else
25909   ac_cpp_err=yes
25910 fi
25911 if test -z "$ac_cpp_err"; then
25912   ac_header_preproc=yes
25913 else
25914   echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.$ac_ext >&5
25916
25917   ac_header_preproc=no
25918 fi
25919 rm -f conftest.err conftest.$ac_ext
25920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25921 echo "${ECHO_T}$ac_header_preproc" >&6
25922
25923 # So?  What about this header?
25924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25925   yes:no: )
25926     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25930     ac_header_preproc=yes
25931     ;;
25932   no:yes:* )
25933     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25935     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25936 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25937     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25939     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25940 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25943     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25945     (
25946       cat <<\_ASBOX
25947 ## --------------------------------------------- ##
25948 ## Report this to <http://www.openldap.org/its/> ##
25949 ## --------------------------------------------- ##
25950 _ASBOX
25951     ) |
25952       sed "s/^/$as_me: WARNING:     /" >&2
25953     ;;
25954 esac
25955 echo "$as_me:$LINENO: checking for $ac_header" >&5
25956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25958   echo $ECHO_N "(cached) $ECHO_C" >&6
25959 else
25960   eval "$as_ac_Header=\$ac_header_preproc"
25961 fi
25962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25964
25965 fi
25966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25967   cat >>confdefs.h <<_ACEOF
25968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25969 _ACEOF
25970
25971 fi
25972
25973 done
25974
25975
25976
25977 for ac_func in sched_yield pthread_yield
25978 do
25979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25980 echo "$as_me:$LINENO: checking for $ac_func" >&5
25981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25982 if eval "test \"\${$as_ac_var+set}\" = set"; then
25983   echo $ECHO_N "(cached) $ECHO_C" >&6
25984 else
25985   cat >conftest.$ac_ext <<_ACEOF
25986 /* confdefs.h.  */
25987 _ACEOF
25988 cat confdefs.h >>conftest.$ac_ext
25989 cat >>conftest.$ac_ext <<_ACEOF
25990 /* end confdefs.h.  */
25991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25993 #define $ac_func innocuous_$ac_func
25994
25995 /* System header to define __stub macros and hopefully few prototypes,
25996     which can conflict with char $ac_func (); below.
25997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25998     <limits.h> exists even on freestanding compilers.  */
25999
26000 #ifdef __STDC__
26001 # include <limits.h>
26002 #else
26003 # include <assert.h>
26004 #endif
26005
26006 #undef $ac_func
26007
26008 /* Override any gcc2 internal prototype to avoid an error.  */
26009 #ifdef __cplusplus
26010 extern "C"
26011 {
26012 #endif
26013 /* We use char because int might match the return type of a gcc2
26014    builtin and then its argument prototype would still apply.  */
26015 char $ac_func ();
26016 /* The GNU C library defines this for functions which it implements
26017     to always fail with ENOSYS.  Some functions are actually named
26018     something starting with __ and the normal name is an alias.  */
26019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26020 choke me
26021 #else
26022 char (*f) () = $ac_func;
26023 #endif
26024 #ifdef __cplusplus
26025 }
26026 #endif
26027
26028 int
26029 main ()
26030 {
26031 return f != $ac_func;
26032   ;
26033   return 0;
26034 }
26035 _ACEOF
26036 rm -f conftest.$ac_objext conftest$ac_exeext
26037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26038   (eval $ac_link) 2>conftest.er1
26039   ac_status=$?
26040   grep -v '^ *+' conftest.er1 >conftest.err
26041   rm -f conftest.er1
26042   cat conftest.err >&5
26043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044   (exit $ac_status); } &&
26045          { ac_try='test -z "$ac_c_werror_flag"
26046                          || test ! -s conftest.err'
26047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048   (eval $ac_try) 2>&5
26049   ac_status=$?
26050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051   (exit $ac_status); }; } &&
26052          { ac_try='test -s conftest$ac_exeext'
26053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054   (eval $ac_try) 2>&5
26055   ac_status=$?
26056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057   (exit $ac_status); }; }; then
26058   eval "$as_ac_var=yes"
26059 else
26060   echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.$ac_ext >&5
26062
26063 eval "$as_ac_var=no"
26064 fi
26065 rm -f conftest.err conftest.$ac_objext \
26066       conftest$ac_exeext conftest.$ac_ext
26067 fi
26068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26070 if test `eval echo '${'$as_ac_var'}'` = yes; then
26071   cat >>confdefs.h <<_ACEOF
26072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26073 _ACEOF
26074
26075 fi
26076 done
26077
26078
26079         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26080 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26081 if test "${ol_cv_header_linux_threads+set}" = set; then
26082   echo $ECHO_N "(cached) $ECHO_C" >&6
26083 else
26084   cat >conftest.$ac_ext <<_ACEOF
26085 /* confdefs.h.  */
26086 _ACEOF
26087 cat confdefs.h >>conftest.$ac_ext
26088 cat >>conftest.$ac_ext <<_ACEOF
26089 /* end confdefs.h.  */
26090 #include <pthread.h>
26091 _ACEOF
26092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26093   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26094   ol_cv_header_linux_threads=yes
26095 else
26096   ol_cv_header_linux_threads=no
26097 fi
26098 rm -f conftest*
26099
26100
26101 fi
26102 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26103 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26104         if test $ol_cv_header_linux_threads = yes; then
26105
26106 cat >>confdefs.h <<\_ACEOF
26107 #define HAVE_LINUX_THREADS 1
26108 _ACEOF
26109
26110         fi
26111
26112
26113
26114 for ac_header in mach/cthreads.h
26115 do
26116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26118   echo "$as_me:$LINENO: checking for $ac_header" >&5
26119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26121   echo $ECHO_N "(cached) $ECHO_C" >&6
26122 fi
26123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26125 else
26126   # Is the header compilable?
26127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26129 cat >conftest.$ac_ext <<_ACEOF
26130 /* confdefs.h.  */
26131 _ACEOF
26132 cat confdefs.h >>conftest.$ac_ext
26133 cat >>conftest.$ac_ext <<_ACEOF
26134 /* end confdefs.h.  */
26135 $ac_includes_default
26136 #include <$ac_header>
26137 _ACEOF
26138 rm -f conftest.$ac_objext
26139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26140   (eval $ac_compile) 2>conftest.er1
26141   ac_status=$?
26142   grep -v '^ *+' conftest.er1 >conftest.err
26143   rm -f conftest.er1
26144   cat conftest.err >&5
26145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146   (exit $ac_status); } &&
26147          { ac_try='test -z "$ac_c_werror_flag"
26148                          || test ! -s conftest.err'
26149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26150   (eval $ac_try) 2>&5
26151   ac_status=$?
26152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153   (exit $ac_status); }; } &&
26154          { ac_try='test -s conftest.$ac_objext'
26155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26156   (eval $ac_try) 2>&5
26157   ac_status=$?
26158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159   (exit $ac_status); }; }; then
26160   ac_header_compiler=yes
26161 else
26162   echo "$as_me: failed program was:" >&5
26163 sed 's/^/| /' conftest.$ac_ext >&5
26164
26165 ac_header_compiler=no
26166 fi
26167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26169 echo "${ECHO_T}$ac_header_compiler" >&6
26170
26171 # Is the header present?
26172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26174 cat >conftest.$ac_ext <<_ACEOF
26175 /* confdefs.h.  */
26176 _ACEOF
26177 cat confdefs.h >>conftest.$ac_ext
26178 cat >>conftest.$ac_ext <<_ACEOF
26179 /* end confdefs.h.  */
26180 #include <$ac_header>
26181 _ACEOF
26182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26183   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26184   ac_status=$?
26185   grep -v '^ *+' conftest.er1 >conftest.err
26186   rm -f conftest.er1
26187   cat conftest.err >&5
26188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189   (exit $ac_status); } >/dev/null; then
26190   if test -s conftest.err; then
26191     ac_cpp_err=$ac_c_preproc_warn_flag
26192     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26193   else
26194     ac_cpp_err=
26195   fi
26196 else
26197   ac_cpp_err=yes
26198 fi
26199 if test -z "$ac_cpp_err"; then
26200   ac_header_preproc=yes
26201 else
26202   echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26204
26205   ac_header_preproc=no
26206 fi
26207 rm -f conftest.err conftest.$ac_ext
26208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26209 echo "${ECHO_T}$ac_header_preproc" >&6
26210
26211 # So?  What about this header?
26212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26213   yes:no: )
26214     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26218     ac_header_preproc=yes
26219     ;;
26220   no:yes:* )
26221     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26223     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26224 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26225     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26227     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26228 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26231     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26233     (
26234       cat <<\_ASBOX
26235 ## --------------------------------------------- ##
26236 ## Report this to <http://www.openldap.org/its/> ##
26237 ## --------------------------------------------- ##
26238 _ASBOX
26239     ) |
26240       sed "s/^/$as_me: WARNING:     /" >&2
26241     ;;
26242 esac
26243 echo "$as_me:$LINENO: checking for $ac_header" >&5
26244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26246   echo $ECHO_N "(cached) $ECHO_C" >&6
26247 else
26248   eval "$as_ac_Header=\$ac_header_preproc"
26249 fi
26250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26252
26253 fi
26254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26255   cat >>confdefs.h <<_ACEOF
26256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26257 _ACEOF
26258
26259 fi
26260
26261 done
26262
26263
26264 for ac_header in lwp/lwp.h
26265 do
26266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26268   echo "$as_me:$LINENO: checking for $ac_header" >&5
26269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26271   echo $ECHO_N "(cached) $ECHO_C" >&6
26272 fi
26273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26275 else
26276   # Is the header compilable?
26277 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26279 cat >conftest.$ac_ext <<_ACEOF
26280 /* confdefs.h.  */
26281 _ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h.  */
26285 $ac_includes_default
26286 #include <$ac_header>
26287 _ACEOF
26288 rm -f conftest.$ac_objext
26289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26290   (eval $ac_compile) 2>conftest.er1
26291   ac_status=$?
26292   grep -v '^ *+' conftest.er1 >conftest.err
26293   rm -f conftest.er1
26294   cat conftest.err >&5
26295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296   (exit $ac_status); } &&
26297          { ac_try='test -z "$ac_c_werror_flag"
26298                          || test ! -s conftest.err'
26299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300   (eval $ac_try) 2>&5
26301   ac_status=$?
26302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303   (exit $ac_status); }; } &&
26304          { ac_try='test -s conftest.$ac_objext'
26305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26306   (eval $ac_try) 2>&5
26307   ac_status=$?
26308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309   (exit $ac_status); }; }; then
26310   ac_header_compiler=yes
26311 else
26312   echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26314
26315 ac_header_compiler=no
26316 fi
26317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26319 echo "${ECHO_T}$ac_header_compiler" >&6
26320
26321 # Is the header present?
26322 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26324 cat >conftest.$ac_ext <<_ACEOF
26325 /* confdefs.h.  */
26326 _ACEOF
26327 cat confdefs.h >>conftest.$ac_ext
26328 cat >>conftest.$ac_ext <<_ACEOF
26329 /* end confdefs.h.  */
26330 #include <$ac_header>
26331 _ACEOF
26332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26333   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26334   ac_status=$?
26335   grep -v '^ *+' conftest.er1 >conftest.err
26336   rm -f conftest.er1
26337   cat conftest.err >&5
26338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339   (exit $ac_status); } >/dev/null; then
26340   if test -s conftest.err; then
26341     ac_cpp_err=$ac_c_preproc_warn_flag
26342     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26343   else
26344     ac_cpp_err=
26345   fi
26346 else
26347   ac_cpp_err=yes
26348 fi
26349 if test -z "$ac_cpp_err"; then
26350   ac_header_preproc=yes
26351 else
26352   echo "$as_me: failed program was:" >&5
26353 sed 's/^/| /' conftest.$ac_ext >&5
26354
26355   ac_header_preproc=no
26356 fi
26357 rm -f conftest.err conftest.$ac_ext
26358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26359 echo "${ECHO_T}$ac_header_preproc" >&6
26360
26361 # So?  What about this header?
26362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26363   yes:no: )
26364     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26366     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26368     ac_header_preproc=yes
26369     ;;
26370   no:yes:* )
26371     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26373     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26374 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26375     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26377     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26378 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26381     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26383     (
26384       cat <<\_ASBOX
26385 ## --------------------------------------------- ##
26386 ## Report this to <http://www.openldap.org/its/> ##
26387 ## --------------------------------------------- ##
26388 _ASBOX
26389     ) |
26390       sed "s/^/$as_me: WARNING:     /" >&2
26391     ;;
26392 esac
26393 echo "$as_me:$LINENO: checking for $ac_header" >&5
26394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26396   echo $ECHO_N "(cached) $ECHO_C" >&6
26397 else
26398   eval "$as_ac_Header=\$ac_header_preproc"
26399 fi
26400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26402
26403 fi
26404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26405   cat >>confdefs.h <<_ACEOF
26406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26407 _ACEOF
26408
26409 fi
26410
26411 done
26412
26413
26414
26415 for ac_header in thread.h synch.h
26416 do
26417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26419   echo "$as_me:$LINENO: checking for $ac_header" >&5
26420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26422   echo $ECHO_N "(cached) $ECHO_C" >&6
26423 fi
26424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26426 else
26427   # Is the header compilable?
26428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26430 cat >conftest.$ac_ext <<_ACEOF
26431 /* confdefs.h.  */
26432 _ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h.  */
26436 $ac_includes_default
26437 #include <$ac_header>
26438 _ACEOF
26439 rm -f conftest.$ac_objext
26440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26441   (eval $ac_compile) 2>conftest.er1
26442   ac_status=$?
26443   grep -v '^ *+' conftest.er1 >conftest.err
26444   rm -f conftest.er1
26445   cat conftest.err >&5
26446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447   (exit $ac_status); } &&
26448          { ac_try='test -z "$ac_c_werror_flag"
26449                          || test ! -s conftest.err'
26450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451   (eval $ac_try) 2>&5
26452   ac_status=$?
26453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454   (exit $ac_status); }; } &&
26455          { ac_try='test -s conftest.$ac_objext'
26456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26457   (eval $ac_try) 2>&5
26458   ac_status=$?
26459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460   (exit $ac_status); }; }; then
26461   ac_header_compiler=yes
26462 else
26463   echo "$as_me: failed program was:" >&5
26464 sed 's/^/| /' conftest.$ac_ext >&5
26465
26466 ac_header_compiler=no
26467 fi
26468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26470 echo "${ECHO_T}$ac_header_compiler" >&6
26471
26472 # Is the header present?
26473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26475 cat >conftest.$ac_ext <<_ACEOF
26476 /* confdefs.h.  */
26477 _ACEOF
26478 cat confdefs.h >>conftest.$ac_ext
26479 cat >>conftest.$ac_ext <<_ACEOF
26480 /* end confdefs.h.  */
26481 #include <$ac_header>
26482 _ACEOF
26483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26484   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26485   ac_status=$?
26486   grep -v '^ *+' conftest.er1 >conftest.err
26487   rm -f conftest.er1
26488   cat conftest.err >&5
26489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490   (exit $ac_status); } >/dev/null; then
26491   if test -s conftest.err; then
26492     ac_cpp_err=$ac_c_preproc_warn_flag
26493     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26494   else
26495     ac_cpp_err=
26496   fi
26497 else
26498   ac_cpp_err=yes
26499 fi
26500 if test -z "$ac_cpp_err"; then
26501   ac_header_preproc=yes
26502 else
26503   echo "$as_me: failed program was:" >&5
26504 sed 's/^/| /' conftest.$ac_ext >&5
26505
26506   ac_header_preproc=no
26507 fi
26508 rm -f conftest.err conftest.$ac_ext
26509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26510 echo "${ECHO_T}$ac_header_preproc" >&6
26511
26512 # So?  What about this header?
26513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26514   yes:no: )
26515     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26519     ac_header_preproc=yes
26520     ;;
26521   no:yes:* )
26522     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26524     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26525 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26526     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26528     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26529 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26532     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26534     (
26535       cat <<\_ASBOX
26536 ## --------------------------------------------- ##
26537 ## Report this to <http://www.openldap.org/its/> ##
26538 ## --------------------------------------------- ##
26539 _ASBOX
26540     ) |
26541       sed "s/^/$as_me: WARNING:     /" >&2
26542     ;;
26543 esac
26544 echo "$as_me:$LINENO: checking for $ac_header" >&5
26545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26547   echo $ECHO_N "(cached) $ECHO_C" >&6
26548 else
26549   eval "$as_ac_Header=\$ac_header_preproc"
26550 fi
26551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26553
26554 fi
26555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26556   cat >>confdefs.h <<_ACEOF
26557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26558 _ACEOF
26559
26560 fi
26561
26562 done
26563
26564 fi
26565
26566 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26567                         cat >>confdefs.h <<\_ACEOF
26568 #define REENTRANT 1
26569 _ACEOF
26570
26571         cat >>confdefs.h <<\_ACEOF
26572 #define _REENTRANT 1
26573 _ACEOF
26574
26575         cat >>confdefs.h <<\_ACEOF
26576 #define THREAD_SAFE 1
26577 _ACEOF
26578
26579         cat >>confdefs.h <<\_ACEOF
26580 #define _THREAD_SAFE 1
26581 _ACEOF
26582
26583         cat >>confdefs.h <<\_ACEOF
26584 #define THREADSAFE 1
26585 _ACEOF
26586
26587         cat >>confdefs.h <<\_ACEOF
26588 #define _THREADSAFE 1
26589 _ACEOF
26590
26591         cat >>confdefs.h <<\_ACEOF
26592 #define _SGI_MP_SOURCE 1
26593 _ACEOF
26594
26595
26596                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
26597 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26598 if test "${ol_cv_errno_thread_specific+set}" = set; then
26599   echo $ECHO_N "(cached) $ECHO_C" >&6
26600 else
26601
26602                 cat >conftest.$ac_ext <<_ACEOF
26603 /* confdefs.h.  */
26604 _ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h.  */
26608 #include <errno.h>
26609 int
26610 main ()
26611 {
26612 errno = 0;
26613   ;
26614   return 0;
26615 }
26616 _ACEOF
26617 rm -f conftest.$ac_objext conftest$ac_exeext
26618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26619   (eval $ac_link) 2>conftest.er1
26620   ac_status=$?
26621   grep -v '^ *+' conftest.er1 >conftest.err
26622   rm -f conftest.er1
26623   cat conftest.err >&5
26624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625   (exit $ac_status); } &&
26626          { ac_try='test -z "$ac_c_werror_flag"
26627                          || test ! -s conftest.err'
26628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26629   (eval $ac_try) 2>&5
26630   ac_status=$?
26631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632   (exit $ac_status); }; } &&
26633          { ac_try='test -s conftest$ac_exeext'
26634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26635   (eval $ac_try) 2>&5
26636   ac_status=$?
26637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638   (exit $ac_status); }; }; then
26639   ol_cv_errno_thread_specific=yes
26640 else
26641   echo "$as_me: failed program was:" >&5
26642 sed 's/^/| /' conftest.$ac_ext >&5
26643
26644 ol_cv_errno_thread_specific=no
26645 fi
26646 rm -f conftest.err conftest.$ac_objext \
26647       conftest$ac_exeext conftest.$ac_ext
26648
26649 fi
26650 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
26651 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
26652
26653                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
26654 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
26655 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
26656   echo $ECHO_N "(cached) $ECHO_C" >&6
26657 else
26658
26659                 cat >conftest.$ac_ext <<_ACEOF
26660 /* confdefs.h.  */
26661 _ACEOF
26662 cat confdefs.h >>conftest.$ac_ext
26663 cat >>conftest.$ac_ext <<_ACEOF
26664 /* end confdefs.h.  */
26665 #include <netdb.h>
26666 int
26667 main ()
26668 {
26669 h_errno = 0;
26670   ;
26671   return 0;
26672 }
26673 _ACEOF
26674 rm -f conftest.$ac_objext conftest$ac_exeext
26675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26676   (eval $ac_link) 2>conftest.er1
26677   ac_status=$?
26678   grep -v '^ *+' conftest.er1 >conftest.err
26679   rm -f conftest.er1
26680   cat conftest.err >&5
26681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682   (exit $ac_status); } &&
26683          { ac_try='test -z "$ac_c_werror_flag"
26684                          || test ! -s conftest.err'
26685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686   (eval $ac_try) 2>&5
26687   ac_status=$?
26688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689   (exit $ac_status); }; } &&
26690          { ac_try='test -s conftest$ac_exeext'
26691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692   (eval $ac_try) 2>&5
26693   ac_status=$?
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); }; }; then
26696   ol_cv_h_errno_thread_specific=yes
26697 else
26698   echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26700
26701 ol_cv_h_errno_thread_specific=no
26702 fi
26703 rm -f conftest.err conftest.$ac_objext \
26704       conftest$ac_exeext conftest.$ac_ext
26705
26706 fi
26707 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
26708 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
26709
26710         if test $ol_cv_errno_thread_specific != yes ||
26711            test $ol_cv_h_errno_thread_specific != yes ; then
26712                 LIBS="$LTHREAD_LIBS $LIBS"
26713                 LTHREAD_LIBS=""
26714         fi
26715
26716 fi
26717
26718 if test $ol_link_threads = no ; then
26719         if test $ol_with_threads = yes ; then
26720                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
26721 echo "$as_me: error: no suitable thread support" >&2;}
26722    { (exit 1); exit 1; }; }
26723         fi
26724
26725         if test $ol_with_threads = auto ; then
26726                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
26727 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26728                 ol_with_threads=no
26729         fi
26730
26731
26732 cat >>confdefs.h <<\_ACEOF
26733 #define NO_THREADS 1
26734 _ACEOF
26735
26736         LTHREAD_LIBS=""
26737         BUILD_THREAD=no
26738 else
26739         BUILD_THREAD=yes
26740 fi
26741
26742 if test $ol_link_threads != no ; then
26743
26744 cat >>confdefs.h <<\_ACEOF
26745 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
26746 _ACEOF
26747
26748 fi
26749
26750
26751
26752
26753 for ac_func in \
26754         ctime_r                 \
26755         gethostbyname_r gethostbyaddr_r \
26756
26757 do
26758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26759 echo "$as_me:$LINENO: checking for $ac_func" >&5
26760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26761 if eval "test \"\${$as_ac_var+set}\" = set"; then
26762   echo $ECHO_N "(cached) $ECHO_C" >&6
26763 else
26764   cat >conftest.$ac_ext <<_ACEOF
26765 /* confdefs.h.  */
26766 _ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h.  */
26770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26772 #define $ac_func innocuous_$ac_func
26773
26774 /* System header to define __stub macros and hopefully few prototypes,
26775     which can conflict with char $ac_func (); below.
26776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26777     <limits.h> exists even on freestanding compilers.  */
26778
26779 #ifdef __STDC__
26780 # include <limits.h>
26781 #else
26782 # include <assert.h>
26783 #endif
26784
26785 #undef $ac_func
26786
26787 /* Override any gcc2 internal prototype to avoid an error.  */
26788 #ifdef __cplusplus
26789 extern "C"
26790 {
26791 #endif
26792 /* We use char because int might match the return type of a gcc2
26793    builtin and then its argument prototype would still apply.  */
26794 char $ac_func ();
26795 /* The GNU C library defines this for functions which it implements
26796     to always fail with ENOSYS.  Some functions are actually named
26797     something starting with __ and the normal name is an alias.  */
26798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26799 choke me
26800 #else
26801 char (*f) () = $ac_func;
26802 #endif
26803 #ifdef __cplusplus
26804 }
26805 #endif
26806
26807 int
26808 main ()
26809 {
26810 return f != $ac_func;
26811   ;
26812   return 0;
26813 }
26814 _ACEOF
26815 rm -f conftest.$ac_objext conftest$ac_exeext
26816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26817   (eval $ac_link) 2>conftest.er1
26818   ac_status=$?
26819   grep -v '^ *+' conftest.er1 >conftest.err
26820   rm -f conftest.er1
26821   cat conftest.err >&5
26822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823   (exit $ac_status); } &&
26824          { ac_try='test -z "$ac_c_werror_flag"
26825                          || test ! -s conftest.err'
26826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26827   (eval $ac_try) 2>&5
26828   ac_status=$?
26829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830   (exit $ac_status); }; } &&
26831          { ac_try='test -s conftest$ac_exeext'
26832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833   (eval $ac_try) 2>&5
26834   ac_status=$?
26835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836   (exit $ac_status); }; }; then
26837   eval "$as_ac_var=yes"
26838 else
26839   echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26841
26842 eval "$as_ac_var=no"
26843 fi
26844 rm -f conftest.err conftest.$ac_objext \
26845       conftest$ac_exeext conftest.$ac_ext
26846 fi
26847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26849 if test `eval echo '${'$as_ac_var'}'` = yes; then
26850   cat >>confdefs.h <<_ACEOF
26851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26852 _ACEOF
26853
26854 fi
26855 done
26856
26857
26858 if test "$ac_cv_func_ctime_r" = no ; then
26859         ol_cv_func_ctime_r_nargs=0
26860 else
26861         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
26862 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
26863 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
26864   echo $ECHO_N "(cached) $ECHO_C" >&6
26865 else
26866   cat >conftest.$ac_ext <<_ACEOF
26867 /* confdefs.h.  */
26868 _ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h.  */
26872 #include <time.h>
26873 int
26874 main ()
26875 {
26876 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
26877   ;
26878   return 0;
26879 }
26880 _ACEOF
26881 rm -f conftest.$ac_objext
26882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26883   (eval $ac_compile) 2>conftest.er1
26884   ac_status=$?
26885   grep -v '^ *+' conftest.er1 >conftest.err
26886   rm -f conftest.er1
26887   cat conftest.err >&5
26888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889   (exit $ac_status); } &&
26890          { ac_try='test -z "$ac_c_werror_flag"
26891                          || test ! -s conftest.err'
26892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26893   (eval $ac_try) 2>&5
26894   ac_status=$?
26895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896   (exit $ac_status); }; } &&
26897          { ac_try='test -s conftest.$ac_objext'
26898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26899   (eval $ac_try) 2>&5
26900   ac_status=$?
26901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902   (exit $ac_status); }; }; then
26903   ol_cv_func_ctime_r_nargs3=yes
26904 else
26905   echo "$as_me: failed program was:" >&5
26906 sed 's/^/| /' conftest.$ac_ext >&5
26907
26908 ol_cv_func_ctime_r_nargs3=no
26909 fi
26910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26911
26912         cat >conftest.$ac_ext <<_ACEOF
26913 /* confdefs.h.  */
26914 _ACEOF
26915 cat confdefs.h >>conftest.$ac_ext
26916 cat >>conftest.$ac_ext <<_ACEOF
26917 /* end confdefs.h.  */
26918 #include <time.h>
26919 int
26920 main ()
26921 {
26922 time_t ti; char *buffer; ctime_r(&ti,buffer);
26923   ;
26924   return 0;
26925 }
26926 _ACEOF
26927 rm -f conftest.$ac_objext
26928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26929   (eval $ac_compile) 2>conftest.er1
26930   ac_status=$?
26931   grep -v '^ *+' conftest.er1 >conftest.err
26932   rm -f conftest.er1
26933   cat conftest.err >&5
26934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935   (exit $ac_status); } &&
26936          { ac_try='test -z "$ac_c_werror_flag"
26937                          || test ! -s conftest.err'
26938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26939   (eval $ac_try) 2>&5
26940   ac_status=$?
26941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942   (exit $ac_status); }; } &&
26943          { ac_try='test -s conftest.$ac_objext'
26944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26945   (eval $ac_try) 2>&5
26946   ac_status=$?
26947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948   (exit $ac_status); }; }; then
26949   ol_cv_func_ctime_r_nargs2=yes
26950 else
26951   echo "$as_me: failed program was:" >&5
26952 sed 's/^/| /' conftest.$ac_ext >&5
26953
26954 ol_cv_func_ctime_r_nargs2=no
26955 fi
26956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26957
26958         if test $ol_cv_func_ctime_r_nargs3 = yes &&
26959            test $ol_cv_func_ctime_r_nargs2 = no ; then
26960
26961                 ol_cv_func_ctime_r_nargs=3
26962
26963         elif test $ol_cv_func_ctime_r_nargs3 = no &&
26964              test $ol_cv_func_ctime_r_nargs2 = yes ; then
26965
26966                 ol_cv_func_ctime_r_nargs=2
26967
26968         else
26969                 ol_cv_func_ctime_r_nargs=0
26970         fi
26971
26972 fi
26973 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
26974 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
26975
26976   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
26977
26978 cat >>confdefs.h <<_ACEOF
26979 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
26980 _ACEOF
26981
26982   fi
26983
26984 fi
26985
26986 if test "$ac_cv_func_gethostbyname_r" = yes ; then
26987         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
26988 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
26989 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
26990   echo $ECHO_N "(cached) $ECHO_C" >&6
26991 else
26992   cat >conftest.$ac_ext <<_ACEOF
26993 /* confdefs.h.  */
26994 _ACEOF
26995 cat confdefs.h >>conftest.$ac_ext
26996 cat >>conftest.$ac_ext <<_ACEOF
26997 /* end confdefs.h.  */
26998 #include <sys/types.h>
26999 #include <sys/socket.h>
27000 #include <netinet/in.h>
27001 #include <netdb.h>
27002 #define BUFSIZE (sizeof(struct hostent)+10)
27003 int
27004 main ()
27005 {
27006 struct hostent hent; char buffer[BUFSIZE];
27007                 int bufsize=BUFSIZE;int h_errno;
27008                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27009                         buffer, bufsize, &h_errno);
27010   ;
27011   return 0;
27012 }
27013 _ACEOF
27014 rm -f conftest.$ac_objext
27015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27016   (eval $ac_compile) 2>conftest.er1
27017   ac_status=$?
27018   grep -v '^ *+' conftest.er1 >conftest.err
27019   rm -f conftest.er1
27020   cat conftest.err >&5
27021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022   (exit $ac_status); } &&
27023          { ac_try='test -z "$ac_c_werror_flag"
27024                          || test ! -s conftest.err'
27025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27026   (eval $ac_try) 2>&5
27027   ac_status=$?
27028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029   (exit $ac_status); }; } &&
27030          { ac_try='test -s conftest.$ac_objext'
27031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27032   (eval $ac_try) 2>&5
27033   ac_status=$?
27034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035   (exit $ac_status); }; }; then
27036   ol_cv_func_gethostbyname_r_nargs5=yes
27037 else
27038   echo "$as_me: failed program was:" >&5
27039 sed 's/^/| /' conftest.$ac_ext >&5
27040
27041 ol_cv_func_gethostbyname_r_nargs5=no
27042 fi
27043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27044
27045         cat >conftest.$ac_ext <<_ACEOF
27046 /* confdefs.h.  */
27047 _ACEOF
27048 cat confdefs.h >>conftest.$ac_ext
27049 cat >>conftest.$ac_ext <<_ACEOF
27050 /* end confdefs.h.  */
27051 #include <sys/types.h>
27052 #include <sys/socket.h>
27053 #include <netinet/in.h>
27054 #include <netdb.h>
27055 #define BUFSIZE (sizeof(struct hostent)+10)
27056 int
27057 main ()
27058 {
27059 struct hostent hent;struct hostent *rhent;
27060                 char buffer[BUFSIZE];
27061                 int bufsize=BUFSIZE;int h_errno;
27062                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27063                         &rhent, &h_errno);
27064   ;
27065   return 0;
27066 }
27067 _ACEOF
27068 rm -f conftest.$ac_objext
27069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27070   (eval $ac_compile) 2>conftest.er1
27071   ac_status=$?
27072   grep -v '^ *+' conftest.er1 >conftest.err
27073   rm -f conftest.er1
27074   cat conftest.err >&5
27075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076   (exit $ac_status); } &&
27077          { ac_try='test -z "$ac_c_werror_flag"
27078                          || test ! -s conftest.err'
27079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27080   (eval $ac_try) 2>&5
27081   ac_status=$?
27082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083   (exit $ac_status); }; } &&
27084          { ac_try='test -s conftest.$ac_objext'
27085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27086   (eval $ac_try) 2>&5
27087   ac_status=$?
27088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089   (exit $ac_status); }; }; then
27090   ol_cv_func_gethostbyname_r_nargs6=yes
27091 else
27092   echo "$as_me: failed program was:" >&5
27093 sed 's/^/| /' conftest.$ac_ext >&5
27094
27095 ol_cv_func_gethostbyname_r_nargs6=no
27096 fi
27097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27098
27099         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27100            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27101
27102                 ol_cv_func_gethostbyname_r_nargs=5
27103
27104         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27105              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27106
27107                 ol_cv_func_gethostbyname_r_nargs=6
27108
27109         else
27110                 ol_cv_func_gethostbyname_r_nargs=0
27111         fi
27112
27113 fi
27114 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27115 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27116   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27117
27118 cat >>confdefs.h <<_ACEOF
27119 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27120 _ACEOF
27121
27122   fi
27123
27124 else
27125         ol_cv_func_gethostbyname_r_nargs=0
27126 fi
27127
27128 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27129         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27130 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27131 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27132   echo $ECHO_N "(cached) $ECHO_C" >&6
27133 else
27134   cat >conftest.$ac_ext <<_ACEOF
27135 /* confdefs.h.  */
27136 _ACEOF
27137 cat confdefs.h >>conftest.$ac_ext
27138 cat >>conftest.$ac_ext <<_ACEOF
27139 /* end confdefs.h.  */
27140 #include <sys/types.h>
27141 #include <sys/socket.h>
27142 #include <netinet/in.h>
27143 #include <netdb.h>
27144 #define BUFSIZE (sizeof(struct hostent)+10)
27145 int
27146 main ()
27147 {
27148 struct hostent hent; char buffer[BUFSIZE];
27149             struct in_addr add;
27150             size_t alen=sizeof(struct in_addr);
27151             int bufsize=BUFSIZE;int h_errno;
27152                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27153                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27154   ;
27155   return 0;
27156 }
27157 _ACEOF
27158 rm -f conftest.$ac_objext
27159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27160   (eval $ac_compile) 2>conftest.er1
27161   ac_status=$?
27162   grep -v '^ *+' conftest.er1 >conftest.err
27163   rm -f conftest.er1
27164   cat conftest.err >&5
27165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166   (exit $ac_status); } &&
27167          { ac_try='test -z "$ac_c_werror_flag"
27168                          || test ! -s conftest.err'
27169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27170   (eval $ac_try) 2>&5
27171   ac_status=$?
27172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173   (exit $ac_status); }; } &&
27174          { ac_try='test -s conftest.$ac_objext'
27175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27176   (eval $ac_try) 2>&5
27177   ac_status=$?
27178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179   (exit $ac_status); }; }; then
27180   ol_cv_func_gethostbyaddr_r_nargs7=yes
27181 else
27182   echo "$as_me: failed program was:" >&5
27183 sed 's/^/| /' conftest.$ac_ext >&5
27184
27185 ol_cv_func_gethostbyaddr_r_nargs7=no
27186 fi
27187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27188
27189         cat >conftest.$ac_ext <<_ACEOF
27190 /* confdefs.h.  */
27191 _ACEOF
27192 cat confdefs.h >>conftest.$ac_ext
27193 cat >>conftest.$ac_ext <<_ACEOF
27194 /* end confdefs.h.  */
27195 #include <sys/types.h>
27196 #include <sys/socket.h>
27197 #include <netinet/in.h>
27198 #include <netdb.h>
27199 #define BUFSIZE (sizeof(struct hostent)+10)
27200 int
27201 main ()
27202 {
27203 struct hostent hent;
27204                 struct hostent *rhent; char buffer[BUFSIZE];
27205                 struct in_addr add;
27206                 size_t alen=sizeof(struct in_addr);
27207                 int bufsize=BUFSIZE;int h_errno;
27208                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27209                         alen, AF_INET, &hent, buffer, bufsize,
27210                         &rhent, &h_errno);
27211   ;
27212   return 0;
27213 }
27214 _ACEOF
27215 rm -f conftest.$ac_objext
27216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27217   (eval $ac_compile) 2>conftest.er1
27218   ac_status=$?
27219   grep -v '^ *+' conftest.er1 >conftest.err
27220   rm -f conftest.er1
27221   cat conftest.err >&5
27222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223   (exit $ac_status); } &&
27224          { ac_try='test -z "$ac_c_werror_flag"
27225                          || test ! -s conftest.err'
27226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27227   (eval $ac_try) 2>&5
27228   ac_status=$?
27229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230   (exit $ac_status); }; } &&
27231          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27237   ol_cv_func_gethostbyaddr_r_nargs8=yes
27238 else
27239   echo "$as_me: failed program was:" >&5
27240 sed 's/^/| /' conftest.$ac_ext >&5
27241
27242 ol_cv_func_gethostbyaddr_r_nargs8=no
27243 fi
27244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27245
27246         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27247            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27248
27249                 ol_cv_func_gethostbyaddr_r_nargs=7
27250
27251         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27252              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27253
27254                 ol_cv_func_gethostbyaddr_r_nargs=8
27255
27256         else
27257                 ol_cv_func_gethostbyaddr_r_nargs=0
27258         fi
27259
27260 fi
27261 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27262 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27263   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27264
27265 cat >>confdefs.h <<_ACEOF
27266 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27267 _ACEOF
27268
27269   fi
27270
27271 else
27272         ol_cv_func_gethostbyaddr_r_nargs=0
27273 fi
27274
27275 ol_link_bdb=no
27276
27277 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27278         ol_cv_berkeley_db=no
27279
27280 for ac_header in db.h
27281 do
27282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27284   echo "$as_me:$LINENO: checking for $ac_header" >&5
27285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27287   echo $ECHO_N "(cached) $ECHO_C" >&6
27288 fi
27289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27291 else
27292   # Is the header compilable?
27293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27295 cat >conftest.$ac_ext <<_ACEOF
27296 /* confdefs.h.  */
27297 _ACEOF
27298 cat confdefs.h >>conftest.$ac_ext
27299 cat >>conftest.$ac_ext <<_ACEOF
27300 /* end confdefs.h.  */
27301 $ac_includes_default
27302 #include <$ac_header>
27303 _ACEOF
27304 rm -f conftest.$ac_objext
27305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27306   (eval $ac_compile) 2>conftest.er1
27307   ac_status=$?
27308   grep -v '^ *+' conftest.er1 >conftest.err
27309   rm -f conftest.er1
27310   cat conftest.err >&5
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); } &&
27313          { ac_try='test -z "$ac_c_werror_flag"
27314                          || test ! -s conftest.err'
27315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27316   (eval $ac_try) 2>&5
27317   ac_status=$?
27318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319   (exit $ac_status); }; } &&
27320          { ac_try='test -s conftest.$ac_objext'
27321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27322   (eval $ac_try) 2>&5
27323   ac_status=$?
27324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325   (exit $ac_status); }; }; then
27326   ac_header_compiler=yes
27327 else
27328   echo "$as_me: failed program was:" >&5
27329 sed 's/^/| /' conftest.$ac_ext >&5
27330
27331 ac_header_compiler=no
27332 fi
27333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27335 echo "${ECHO_T}$ac_header_compiler" >&6
27336
27337 # Is the header present?
27338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27340 cat >conftest.$ac_ext <<_ACEOF
27341 /* confdefs.h.  */
27342 _ACEOF
27343 cat confdefs.h >>conftest.$ac_ext
27344 cat >>conftest.$ac_ext <<_ACEOF
27345 /* end confdefs.h.  */
27346 #include <$ac_header>
27347 _ACEOF
27348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27349   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27350   ac_status=$?
27351   grep -v '^ *+' conftest.er1 >conftest.err
27352   rm -f conftest.er1
27353   cat conftest.err >&5
27354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355   (exit $ac_status); } >/dev/null; then
27356   if test -s conftest.err; then
27357     ac_cpp_err=$ac_c_preproc_warn_flag
27358     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27359   else
27360     ac_cpp_err=
27361   fi
27362 else
27363   ac_cpp_err=yes
27364 fi
27365 if test -z "$ac_cpp_err"; then
27366   ac_header_preproc=yes
27367 else
27368   echo "$as_me: failed program was:" >&5
27369 sed 's/^/| /' conftest.$ac_ext >&5
27370
27371   ac_header_preproc=no
27372 fi
27373 rm -f conftest.err conftest.$ac_ext
27374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27375 echo "${ECHO_T}$ac_header_preproc" >&6
27376
27377 # So?  What about this header?
27378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27379   yes:no: )
27380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27384     ac_header_preproc=yes
27385     ;;
27386   no:yes:* )
27387     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27389     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27390 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27391     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27393     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27394 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27397     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27399     (
27400       cat <<\_ASBOX
27401 ## --------------------------------------------- ##
27402 ## Report this to <http://www.openldap.org/its/> ##
27403 ## --------------------------------------------- ##
27404 _ASBOX
27405     ) |
27406       sed "s/^/$as_me: WARNING:     /" >&2
27407     ;;
27408 esac
27409 echo "$as_me:$LINENO: checking for $ac_header" >&5
27410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27412   echo $ECHO_N "(cached) $ECHO_C" >&6
27413 else
27414   eval "$as_ac_Header=\$ac_header_preproc"
27415 fi
27416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27418
27419 fi
27420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27421   cat >>confdefs.h <<_ACEOF
27422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27423 _ACEOF
27424
27425 fi
27426
27427 done
27428
27429 if test $ac_cv_header_db_h = yes; then
27430         ol_cv_lib_db=no
27431
27432 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27433 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27434 if test "${ol_cv_bdb_major+set}" = set; then
27435   echo $ECHO_N "(cached) $ECHO_C" >&6
27436 else
27437
27438         ol_cv_bdb_major=0
27439         if test $ol_cv_bdb_major = 0 ; then
27440                 cat >conftest.$ac_ext <<_ACEOF
27441 /* confdefs.h.  */
27442 _ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h.  */
27446
27447 #include <db.h>
27448 #ifndef DB_VERSION_MAJOR
27449 #       define DB_VERSION_MAJOR 1
27450 #endif
27451 #if DB_VERSION_MAJOR == 4
27452 __db_version
27453 #endif
27454
27455 _ACEOF
27456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27457   $EGREP "__db_version" >/dev/null 2>&1; then
27458   ol_cv_bdb_major=4
27459 else
27460   :
27461 fi
27462 rm -f conftest*
27463
27464         fi
27465         if test $ol_cv_bdb_major = 0 ; then
27466                 cat >conftest.$ac_ext <<_ACEOF
27467 /* confdefs.h.  */
27468 _ACEOF
27469 cat confdefs.h >>conftest.$ac_ext
27470 cat >>conftest.$ac_ext <<_ACEOF
27471 /* end confdefs.h.  */
27472
27473 #include <db.h>
27474 #ifndef DB_VERSION_MAJOR
27475 #       define DB_VERSION_MAJOR 1
27476 #endif
27477 #if DB_VERSION_MAJOR == 3
27478 __db_version
27479 #endif
27480
27481 _ACEOF
27482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27483   $EGREP "__db_version" >/dev/null 2>&1; then
27484   ol_cv_bdb_major=3
27485 else
27486   :
27487 fi
27488 rm -f conftest*
27489
27490         fi
27491         if test $ol_cv_bdb_major = 0 ; then
27492                 cat >conftest.$ac_ext <<_ACEOF
27493 /* confdefs.h.  */
27494 _ACEOF
27495 cat confdefs.h >>conftest.$ac_ext
27496 cat >>conftest.$ac_ext <<_ACEOF
27497 /* end confdefs.h.  */
27498
27499 #include <db.h>
27500 #ifndef DB_VERSION_MAJOR
27501 #       define DB_VERSION_MAJOR 1
27502 #endif
27503 #if DB_VERSION_MAJOR == 2
27504 __db_version
27505 #endif
27506
27507 _ACEOF
27508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27509   $EGREP "__db_version" >/dev/null 2>&1; then
27510   ol_cv_bdb_major=2
27511 else
27512   :
27513 fi
27514 rm -f conftest*
27515
27516         fi
27517         if test $ol_cv_bdb_major = 0 ; then
27518                 cat >conftest.$ac_ext <<_ACEOF
27519 /* confdefs.h.  */
27520 _ACEOF
27521 cat confdefs.h >>conftest.$ac_ext
27522 cat >>conftest.$ac_ext <<_ACEOF
27523 /* end confdefs.h.  */
27524
27525 #include <db.h>
27526 #ifndef DB_VERSION_MAJOR
27527 #       define DB_VERSION_MAJOR 1
27528 #endif
27529 #if DB_VERSION_MAJOR == 1
27530 __db_version
27531 #endif
27532
27533 _ACEOF
27534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27535   $EGREP "__db_version" >/dev/null 2>&1; then
27536   ol_cv_bdb_major=1
27537 else
27538   :
27539 fi
27540 rm -f conftest*
27541
27542         fi
27543
27544         if test $ol_cv_bdb_major = 0 ; then
27545                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27546 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27547    { (exit 1); exit 1; }; }
27548         fi
27549
27550 fi
27551 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27552 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27553
27554 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
27555 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
27556 if test "${ol_cv_bdb_minor+set}" = set; then
27557   echo $ECHO_N "(cached) $ECHO_C" >&6
27558 else
27559
27560         ol_cv_bdb_minor=0
27561         if test $ol_cv_bdb_minor = 0 ; then
27562                 cat >conftest.$ac_ext <<_ACEOF
27563 /* confdefs.h.  */
27564 _ACEOF
27565 cat confdefs.h >>conftest.$ac_ext
27566 cat >>conftest.$ac_ext <<_ACEOF
27567 /* end confdefs.h.  */
27568
27569 #include <db.h>
27570 #ifndef DB_VERSION_MINOR
27571 #       define DB_VERSION_MINOR 0
27572 #endif
27573 #if DB_VERSION_MINOR == 9
27574 __db_version
27575 #endif
27576
27577 _ACEOF
27578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27579   $EGREP "__db_version" >/dev/null 2>&1; then
27580   ol_cv_bdb_minor=9
27581 else
27582   :
27583 fi
27584 rm -f conftest*
27585
27586         fi
27587         if test $ol_cv_bdb_minor = 0 ; then
27588                 cat >conftest.$ac_ext <<_ACEOF
27589 /* confdefs.h.  */
27590 _ACEOF
27591 cat confdefs.h >>conftest.$ac_ext
27592 cat >>conftest.$ac_ext <<_ACEOF
27593 /* end confdefs.h.  */
27594
27595 #include <db.h>
27596 #ifndef DB_VERSION_MINOR
27597 #       define DB_VERSION_MINOR 0
27598 #endif
27599 #if DB_VERSION_MINOR == 8
27600 __db_version
27601 #endif
27602
27603 _ACEOF
27604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27605   $EGREP "__db_version" >/dev/null 2>&1; then
27606   ol_cv_bdb_minor=8
27607 else
27608   :
27609 fi
27610 rm -f conftest*
27611
27612         fi
27613         if test $ol_cv_bdb_minor = 0 ; then
27614                 cat >conftest.$ac_ext <<_ACEOF
27615 /* confdefs.h.  */
27616 _ACEOF
27617 cat confdefs.h >>conftest.$ac_ext
27618 cat >>conftest.$ac_ext <<_ACEOF
27619 /* end confdefs.h.  */
27620
27621 #include <db.h>
27622 #ifndef DB_VERSION_MINOR
27623 #       define DB_VERSION_MINOR 0
27624 #endif
27625 #if DB_VERSION_MINOR == 7
27626 __db_version
27627 #endif
27628
27629 _ACEOF
27630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27631   $EGREP "__db_version" >/dev/null 2>&1; then
27632   ol_cv_bdb_minor=7
27633 else
27634   :
27635 fi
27636 rm -f conftest*
27637
27638         fi
27639         if test $ol_cv_bdb_minor = 0 ; then
27640                 cat >conftest.$ac_ext <<_ACEOF
27641 /* confdefs.h.  */
27642 _ACEOF
27643 cat confdefs.h >>conftest.$ac_ext
27644 cat >>conftest.$ac_ext <<_ACEOF
27645 /* end confdefs.h.  */
27646
27647 #include <db.h>
27648 #ifndef DB_VERSION_MINOR
27649 #       define DB_VERSION_MINOR 0
27650 #endif
27651 #if DB_VERSION_MINOR == 6
27652 __db_version
27653 #endif
27654
27655 _ACEOF
27656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27657   $EGREP "__db_version" >/dev/null 2>&1; then
27658   ol_cv_bdb_minor=6
27659 else
27660   :
27661 fi
27662 rm -f conftest*
27663
27664         fi
27665         if test $ol_cv_bdb_minor = 0 ; then
27666                 cat >conftest.$ac_ext <<_ACEOF
27667 /* confdefs.h.  */
27668 _ACEOF
27669 cat confdefs.h >>conftest.$ac_ext
27670 cat >>conftest.$ac_ext <<_ACEOF
27671 /* end confdefs.h.  */
27672
27673 #include <db.h>
27674 #ifndef DB_VERSION_MINOR
27675 #       define DB_VERSION_MINOR 0
27676 #endif
27677 #if DB_VERSION_MINOR == 5
27678 __db_version
27679 #endif
27680
27681 _ACEOF
27682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27683   $EGREP "__db_version" >/dev/null 2>&1; then
27684   ol_cv_bdb_minor=5
27685 else
27686   :
27687 fi
27688 rm -f conftest*
27689
27690         fi
27691         if test $ol_cv_bdb_minor = 0 ; then
27692                 cat >conftest.$ac_ext <<_ACEOF
27693 /* confdefs.h.  */
27694 _ACEOF
27695 cat confdefs.h >>conftest.$ac_ext
27696 cat >>conftest.$ac_ext <<_ACEOF
27697 /* end confdefs.h.  */
27698
27699 #include <db.h>
27700 #ifndef DB_VERSION_MINOR
27701 #       define DB_VERSION_MINOR 0
27702 #endif
27703 #if DB_VERSION_MINOR == 4
27704 __db_version
27705 #endif
27706
27707 _ACEOF
27708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27709   $EGREP "__db_version" >/dev/null 2>&1; then
27710   ol_cv_bdb_minor=4
27711 else
27712   :
27713 fi
27714 rm -f conftest*
27715
27716         fi
27717         if test $ol_cv_bdb_minor = 0 ; then
27718                 cat >conftest.$ac_ext <<_ACEOF
27719 /* confdefs.h.  */
27720 _ACEOF
27721 cat confdefs.h >>conftest.$ac_ext
27722 cat >>conftest.$ac_ext <<_ACEOF
27723 /* end confdefs.h.  */
27724
27725 #include <db.h>
27726 #ifndef DB_VERSION_MINOR
27727 #       define DB_VERSION_MINOR 0
27728 #endif
27729 #if DB_VERSION_MINOR == 3
27730 __db_version
27731 #endif
27732
27733 _ACEOF
27734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27735   $EGREP "__db_version" >/dev/null 2>&1; then
27736   ol_cv_bdb_minor=3
27737 else
27738   :
27739 fi
27740 rm -f conftest*
27741
27742         fi
27743         if test $ol_cv_bdb_minor = 0 ; then
27744                 cat >conftest.$ac_ext <<_ACEOF
27745 /* confdefs.h.  */
27746 _ACEOF
27747 cat confdefs.h >>conftest.$ac_ext
27748 cat >>conftest.$ac_ext <<_ACEOF
27749 /* end confdefs.h.  */
27750
27751 #include <db.h>
27752 #ifndef DB_VERSION_MINOR
27753 #       define DB_VERSION_MINOR 0
27754 #endif
27755 #if DB_VERSION_MINOR == 2
27756 __db_version
27757 #endif
27758
27759 _ACEOF
27760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27761   $EGREP "__db_version" >/dev/null 2>&1; then
27762   ol_cv_bdb_minor=2
27763 else
27764   :
27765 fi
27766 rm -f conftest*
27767
27768         fi
27769         if test $ol_cv_bdb_minor = 0 ; then
27770                 cat >conftest.$ac_ext <<_ACEOF
27771 /* confdefs.h.  */
27772 _ACEOF
27773 cat confdefs.h >>conftest.$ac_ext
27774 cat >>conftest.$ac_ext <<_ACEOF
27775 /* end confdefs.h.  */
27776
27777 #include <db.h>
27778 #ifndef DB_VERSION_MINOR
27779 #       define DB_VERSION_MINOR 0
27780 #endif
27781 #if DB_VERSION_MINOR == 1
27782 __db_version
27783 #endif
27784
27785 _ACEOF
27786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27787   $EGREP "__db_version" >/dev/null 2>&1; then
27788   ol_cv_bdb_minor=1
27789 else
27790   :
27791 fi
27792 rm -f conftest*
27793
27794         fi
27795
27796 fi
27797 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
27798 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
27799
27800 if test $ol_cv_bdb_major = 4 ; then
27801         if test $ol_cv_bdb_minor = 6 ; then
27802                 if test $ol_cv_lib_db = no ; then
27803         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.6)" >&5
27804 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.6)... $ECHO_C" >&6
27805 if test "${ol_cv_db_db_4_dot_6+set}" = set; then
27806   echo $ECHO_N "(cached) $ECHO_C" >&6
27807 else
27808
27809         ol_DB_LIB=-ldb-4.6
27810         ol_LIBS=$LIBS
27811         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27812
27813         cat >conftest.$ac_ext <<_ACEOF
27814 /* confdefs.h.  */
27815 _ACEOF
27816 cat confdefs.h >>conftest.$ac_ext
27817 cat >>conftest.$ac_ext <<_ACEOF
27818 /* end confdefs.h.  */
27819
27820 #ifdef HAVE_DB_185_H
27821 # include <db_185.h>
27822 #else
27823 # include <db.h>
27824 #endif
27825
27826 #ifndef DB_VERSION_MAJOR
27827 # define DB_VERSION_MAJOR 1
27828 #endif
27829
27830 #ifndef NULL
27831 #define NULL ((void*)0)
27832 #endif
27833
27834 int
27835 main ()
27836 {
27837
27838 #if DB_VERSION_MAJOR > 1
27839         {
27840                 char *version;
27841                 int major, minor, patch;
27842
27843                 version = db_version( &major, &minor, &patch );
27844
27845                 if( major != DB_VERSION_MAJOR ||
27846                         minor < DB_VERSION_MINOR )
27847                 {
27848                         printf("Berkeley DB version mismatch\n"
27849                                 "\theader: %s\n\tlibrary: %s\n",
27850                                 DB_VERSION_STRING, version);
27851                         return 1;
27852                 }
27853         }
27854 #endif
27855
27856 #if DB_VERSION_MAJOR > 2
27857         db_env_create( NULL, 0 );
27858 #elif DB_VERSION_MAJOR > 1
27859         db_appexit( NULL );
27860 #else
27861         (void) dbopen( NULL, 0, 0, 0, NULL);
27862 #endif
27863
27864   ;
27865   return 0;
27866 }
27867 _ACEOF
27868 rm -f conftest.$ac_objext conftest$ac_exeext
27869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27870   (eval $ac_link) 2>conftest.er1
27871   ac_status=$?
27872   grep -v '^ *+' conftest.er1 >conftest.err
27873   rm -f conftest.er1
27874   cat conftest.err >&5
27875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); } &&
27877          { ac_try='test -z "$ac_c_werror_flag"
27878                          || test ! -s conftest.err'
27879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880   (eval $ac_try) 2>&5
27881   ac_status=$?
27882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883   (exit $ac_status); }; } &&
27884          { ac_try='test -s conftest$ac_exeext'
27885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27886   (eval $ac_try) 2>&5
27887   ac_status=$?
27888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889   (exit $ac_status); }; }; then
27890   ol_cv_db_db_4_dot_6=yes
27891 else
27892   echo "$as_me: failed program was:" >&5
27893 sed 's/^/| /' conftest.$ac_ext >&5
27894
27895 ol_cv_db_db_4_dot_6=no
27896 fi
27897 rm -f conftest.err conftest.$ac_objext \
27898       conftest$ac_exeext conftest.$ac_ext
27899
27900         LIBS="$ol_LIBS"
27901
27902 fi
27903 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_6" >&5
27904 echo "${ECHO_T}$ol_cv_db_db_4_dot_6" >&6
27905
27906         if test $ol_cv_db_db_4_dot_6 = yes ; then
27907                 ol_cv_lib_db=-ldb-4.6
27908         fi
27909 fi
27910
27911                 if test $ol_cv_lib_db = no ; then
27912         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb46)" >&5
27913 echo $ECHO_N "checking for Berkeley DB link (-ldb46)... $ECHO_C" >&6
27914 if test "${ol_cv_db_db46+set}" = set; then
27915   echo $ECHO_N "(cached) $ECHO_C" >&6
27916 else
27917
27918         ol_DB_LIB=-ldb46
27919         ol_LIBS=$LIBS
27920         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27921
27922         cat >conftest.$ac_ext <<_ACEOF
27923 /* confdefs.h.  */
27924 _ACEOF
27925 cat confdefs.h >>conftest.$ac_ext
27926 cat >>conftest.$ac_ext <<_ACEOF
27927 /* end confdefs.h.  */
27928
27929 #ifdef HAVE_DB_185_H
27930 # include <db_185.h>
27931 #else
27932 # include <db.h>
27933 #endif
27934
27935 #ifndef DB_VERSION_MAJOR
27936 # define DB_VERSION_MAJOR 1
27937 #endif
27938
27939 #ifndef NULL
27940 #define NULL ((void*)0)
27941 #endif
27942
27943 int
27944 main ()
27945 {
27946
27947 #if DB_VERSION_MAJOR > 1
27948         {
27949                 char *version;
27950                 int major, minor, patch;
27951
27952                 version = db_version( &major, &minor, &patch );
27953
27954                 if( major != DB_VERSION_MAJOR ||
27955                         minor < DB_VERSION_MINOR )
27956                 {
27957                         printf("Berkeley DB version mismatch\n"
27958                                 "\theader: %s\n\tlibrary: %s\n",
27959                                 DB_VERSION_STRING, version);
27960                         return 1;
27961                 }
27962         }
27963 #endif
27964
27965 #if DB_VERSION_MAJOR > 2
27966         db_env_create( NULL, 0 );
27967 #elif DB_VERSION_MAJOR > 1
27968         db_appexit( NULL );
27969 #else
27970         (void) dbopen( NULL, 0, 0, 0, NULL);
27971 #endif
27972
27973   ;
27974   return 0;
27975 }
27976 _ACEOF
27977 rm -f conftest.$ac_objext conftest$ac_exeext
27978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27979   (eval $ac_link) 2>conftest.er1
27980   ac_status=$?
27981   grep -v '^ *+' conftest.er1 >conftest.err
27982   rm -f conftest.er1
27983   cat conftest.err >&5
27984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985   (exit $ac_status); } &&
27986          { ac_try='test -z "$ac_c_werror_flag"
27987                          || test ! -s conftest.err'
27988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27989   (eval $ac_try) 2>&5
27990   ac_status=$?
27991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992   (exit $ac_status); }; } &&
27993          { ac_try='test -s conftest$ac_exeext'
27994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995   (eval $ac_try) 2>&5
27996   ac_status=$?
27997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998   (exit $ac_status); }; }; then
27999   ol_cv_db_db46=yes
28000 else
28001   echo "$as_me: failed program was:" >&5
28002 sed 's/^/| /' conftest.$ac_ext >&5
28003
28004 ol_cv_db_db46=no
28005 fi
28006 rm -f conftest.err conftest.$ac_objext \
28007       conftest$ac_exeext conftest.$ac_ext
28008
28009         LIBS="$ol_LIBS"
28010
28011 fi
28012 echo "$as_me:$LINENO: result: $ol_cv_db_db46" >&5
28013 echo "${ECHO_T}$ol_cv_db_db46" >&6
28014
28015         if test $ol_cv_db_db46 = yes ; then
28016                 ol_cv_lib_db=-ldb46
28017         fi
28018 fi
28019
28020                 if test $ol_cv_lib_db = no ; then
28021         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-46)" >&5
28022 echo $ECHO_N "checking for Berkeley DB link (-ldb-46)... $ECHO_C" >&6
28023 if test "${ol_cv_db_db_46+set}" = set; then
28024   echo $ECHO_N "(cached) $ECHO_C" >&6
28025 else
28026
28027         ol_DB_LIB=-ldb-46
28028         ol_LIBS=$LIBS
28029         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28030
28031         cat >conftest.$ac_ext <<_ACEOF
28032 /* confdefs.h.  */
28033 _ACEOF
28034 cat confdefs.h >>conftest.$ac_ext
28035 cat >>conftest.$ac_ext <<_ACEOF
28036 /* end confdefs.h.  */
28037
28038 #ifdef HAVE_DB_185_H
28039 # include <db_185.h>
28040 #else
28041 # include <db.h>
28042 #endif
28043
28044 #ifndef DB_VERSION_MAJOR
28045 # define DB_VERSION_MAJOR 1
28046 #endif
28047
28048 #ifndef NULL
28049 #define NULL ((void*)0)
28050 #endif
28051
28052 int
28053 main ()
28054 {
28055
28056 #if DB_VERSION_MAJOR > 1
28057         {
28058                 char *version;
28059                 int major, minor, patch;
28060
28061                 version = db_version( &major, &minor, &patch );
28062
28063                 if( major != DB_VERSION_MAJOR ||
28064                         minor < DB_VERSION_MINOR )
28065                 {
28066                         printf("Berkeley DB version mismatch\n"
28067                                 "\theader: %s\n\tlibrary: %s\n",
28068                                 DB_VERSION_STRING, version);
28069                         return 1;
28070                 }
28071         }
28072 #endif
28073
28074 #if DB_VERSION_MAJOR > 2
28075         db_env_create( NULL, 0 );
28076 #elif DB_VERSION_MAJOR > 1
28077         db_appexit( NULL );
28078 #else
28079         (void) dbopen( NULL, 0, 0, 0, NULL);
28080 #endif
28081
28082   ;
28083   return 0;
28084 }
28085 _ACEOF
28086 rm -f conftest.$ac_objext conftest$ac_exeext
28087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28088   (eval $ac_link) 2>conftest.er1
28089   ac_status=$?
28090   grep -v '^ *+' conftest.er1 >conftest.err
28091   rm -f conftest.er1
28092   cat conftest.err >&5
28093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094   (exit $ac_status); } &&
28095          { ac_try='test -z "$ac_c_werror_flag"
28096                          || test ! -s conftest.err'
28097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28098   (eval $ac_try) 2>&5
28099   ac_status=$?
28100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101   (exit $ac_status); }; } &&
28102          { ac_try='test -s conftest$ac_exeext'
28103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28104   (eval $ac_try) 2>&5
28105   ac_status=$?
28106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107   (exit $ac_status); }; }; then
28108   ol_cv_db_db_46=yes
28109 else
28110   echo "$as_me: failed program was:" >&5
28111 sed 's/^/| /' conftest.$ac_ext >&5
28112
28113 ol_cv_db_db_46=no
28114 fi
28115 rm -f conftest.err conftest.$ac_objext \
28116       conftest$ac_exeext conftest.$ac_ext
28117
28118         LIBS="$ol_LIBS"
28119
28120 fi
28121 echo "$as_me:$LINENO: result: $ol_cv_db_db_46" >&5
28122 echo "${ECHO_T}$ol_cv_db_db_46" >&6
28123
28124         if test $ol_cv_db_db_46 = yes ; then
28125                 ol_cv_lib_db=-ldb-46
28126         fi
28127 fi
28128
28129                 if test $ol_cv_lib_db = no ; then
28130         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-6)" >&5
28131 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-6)... $ECHO_C" >&6
28132 if test "${ol_cv_db_db_4_6+set}" = set; then
28133   echo $ECHO_N "(cached) $ECHO_C" >&6
28134 else
28135
28136         ol_DB_LIB=-ldb-4-6
28137         ol_LIBS=$LIBS
28138         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28139
28140         cat >conftest.$ac_ext <<_ACEOF
28141 /* confdefs.h.  */
28142 _ACEOF
28143 cat confdefs.h >>conftest.$ac_ext
28144 cat >>conftest.$ac_ext <<_ACEOF
28145 /* end confdefs.h.  */
28146
28147 #ifdef HAVE_DB_185_H
28148 # include <db_185.h>
28149 #else
28150 # include <db.h>
28151 #endif
28152
28153 #ifndef DB_VERSION_MAJOR
28154 # define DB_VERSION_MAJOR 1
28155 #endif
28156
28157 #ifndef NULL
28158 #define NULL ((void*)0)
28159 #endif
28160
28161 int
28162 main ()
28163 {
28164
28165 #if DB_VERSION_MAJOR > 1
28166         {
28167                 char *version;
28168                 int major, minor, patch;
28169
28170                 version = db_version( &major, &minor, &patch );
28171
28172                 if( major != DB_VERSION_MAJOR ||
28173                         minor < DB_VERSION_MINOR )
28174                 {
28175                         printf("Berkeley DB version mismatch\n"
28176                                 "\theader: %s\n\tlibrary: %s\n",
28177                                 DB_VERSION_STRING, version);
28178                         return 1;
28179                 }
28180         }
28181 #endif
28182
28183 #if DB_VERSION_MAJOR > 2
28184         db_env_create( NULL, 0 );
28185 #elif DB_VERSION_MAJOR > 1
28186         db_appexit( NULL );
28187 #else
28188         (void) dbopen( NULL, 0, 0, 0, NULL);
28189 #endif
28190
28191   ;
28192   return 0;
28193 }
28194 _ACEOF
28195 rm -f conftest.$ac_objext conftest$ac_exeext
28196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28197   (eval $ac_link) 2>conftest.er1
28198   ac_status=$?
28199   grep -v '^ *+' conftest.er1 >conftest.err
28200   rm -f conftest.er1
28201   cat conftest.err >&5
28202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203   (exit $ac_status); } &&
28204          { ac_try='test -z "$ac_c_werror_flag"
28205                          || test ! -s conftest.err'
28206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28207   (eval $ac_try) 2>&5
28208   ac_status=$?
28209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210   (exit $ac_status); }; } &&
28211          { ac_try='test -s conftest$ac_exeext'
28212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28213   (eval $ac_try) 2>&5
28214   ac_status=$?
28215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216   (exit $ac_status); }; }; then
28217   ol_cv_db_db_4_6=yes
28218 else
28219   echo "$as_me: failed program was:" >&5
28220 sed 's/^/| /' conftest.$ac_ext >&5
28221
28222 ol_cv_db_db_4_6=no
28223 fi
28224 rm -f conftest.err conftest.$ac_objext \
28225       conftest$ac_exeext conftest.$ac_ext
28226
28227         LIBS="$ol_LIBS"
28228
28229 fi
28230 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_6" >&5
28231 echo "${ECHO_T}$ol_cv_db_db_4_6" >&6
28232
28233         if test $ol_cv_db_db_4_6 = yes ; then
28234                 ol_cv_lib_db=-ldb-4-6
28235         fi
28236 fi
28237
28238         elif test $ol_cv_bdb_minor = 5 ; then
28239                 if test $ol_cv_lib_db = no ; then
28240         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.5)" >&5
28241 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.5)... $ECHO_C" >&6
28242 if test "${ol_cv_db_db_4_dot_5+set}" = set; then
28243   echo $ECHO_N "(cached) $ECHO_C" >&6
28244 else
28245
28246         ol_DB_LIB=-ldb-4.5
28247         ol_LIBS=$LIBS
28248         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28249
28250         cat >conftest.$ac_ext <<_ACEOF
28251 /* confdefs.h.  */
28252 _ACEOF
28253 cat confdefs.h >>conftest.$ac_ext
28254 cat >>conftest.$ac_ext <<_ACEOF
28255 /* end confdefs.h.  */
28256
28257 #ifdef HAVE_DB_185_H
28258 # include <db_185.h>
28259 #else
28260 # include <db.h>
28261 #endif
28262
28263 #ifndef DB_VERSION_MAJOR
28264 # define DB_VERSION_MAJOR 1
28265 #endif
28266
28267 #ifndef NULL
28268 #define NULL ((void*)0)
28269 #endif
28270
28271 int
28272 main ()
28273 {
28274
28275 #if DB_VERSION_MAJOR > 1
28276         {
28277                 char *version;
28278                 int major, minor, patch;
28279
28280                 version = db_version( &major, &minor, &patch );
28281
28282                 if( major != DB_VERSION_MAJOR ||
28283                         minor < DB_VERSION_MINOR )
28284                 {
28285                         printf("Berkeley DB version mismatch\n"
28286                                 "\theader: %s\n\tlibrary: %s\n",
28287                                 DB_VERSION_STRING, version);
28288                         return 1;
28289                 }
28290         }
28291 #endif
28292
28293 #if DB_VERSION_MAJOR > 2
28294         db_env_create( NULL, 0 );
28295 #elif DB_VERSION_MAJOR > 1
28296         db_appexit( NULL );
28297 #else
28298         (void) dbopen( NULL, 0, 0, 0, NULL);
28299 #endif
28300
28301   ;
28302   return 0;
28303 }
28304 _ACEOF
28305 rm -f conftest.$ac_objext conftest$ac_exeext
28306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28307   (eval $ac_link) 2>conftest.er1
28308   ac_status=$?
28309   grep -v '^ *+' conftest.er1 >conftest.err
28310   rm -f conftest.er1
28311   cat conftest.err >&5
28312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313   (exit $ac_status); } &&
28314          { ac_try='test -z "$ac_c_werror_flag"
28315                          || test ! -s conftest.err'
28316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28317   (eval $ac_try) 2>&5
28318   ac_status=$?
28319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320   (exit $ac_status); }; } &&
28321          { ac_try='test -s conftest$ac_exeext'
28322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28323   (eval $ac_try) 2>&5
28324   ac_status=$?
28325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326   (exit $ac_status); }; }; then
28327   ol_cv_db_db_4_dot_5=yes
28328 else
28329   echo "$as_me: failed program was:" >&5
28330 sed 's/^/| /' conftest.$ac_ext >&5
28331
28332 ol_cv_db_db_4_dot_5=no
28333 fi
28334 rm -f conftest.err conftest.$ac_objext \
28335       conftest$ac_exeext conftest.$ac_ext
28336
28337         LIBS="$ol_LIBS"
28338
28339 fi
28340 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_5" >&5
28341 echo "${ECHO_T}$ol_cv_db_db_4_dot_5" >&6
28342
28343         if test $ol_cv_db_db_4_dot_5 = yes ; then
28344                 ol_cv_lib_db=-ldb-4.5
28345         fi
28346 fi
28347
28348                 if test $ol_cv_lib_db = no ; then
28349         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb45)" >&5
28350 echo $ECHO_N "checking for Berkeley DB link (-ldb45)... $ECHO_C" >&6
28351 if test "${ol_cv_db_db45+set}" = set; then
28352   echo $ECHO_N "(cached) $ECHO_C" >&6
28353 else
28354
28355         ol_DB_LIB=-ldb45
28356         ol_LIBS=$LIBS
28357         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28358
28359         cat >conftest.$ac_ext <<_ACEOF
28360 /* confdefs.h.  */
28361 _ACEOF
28362 cat confdefs.h >>conftest.$ac_ext
28363 cat >>conftest.$ac_ext <<_ACEOF
28364 /* end confdefs.h.  */
28365
28366 #ifdef HAVE_DB_185_H
28367 # include <db_185.h>
28368 #else
28369 # include <db.h>
28370 #endif
28371
28372 #ifndef DB_VERSION_MAJOR
28373 # define DB_VERSION_MAJOR 1
28374 #endif
28375
28376 #ifndef NULL
28377 #define NULL ((void*)0)
28378 #endif
28379
28380 int
28381 main ()
28382 {
28383
28384 #if DB_VERSION_MAJOR > 1
28385         {
28386                 char *version;
28387                 int major, minor, patch;
28388
28389                 version = db_version( &major, &minor, &patch );
28390
28391                 if( major != DB_VERSION_MAJOR ||
28392                         minor < DB_VERSION_MINOR )
28393                 {
28394                         printf("Berkeley DB version mismatch\n"
28395                                 "\theader: %s\n\tlibrary: %s\n",
28396                                 DB_VERSION_STRING, version);
28397                         return 1;
28398                 }
28399         }
28400 #endif
28401
28402 #if DB_VERSION_MAJOR > 2
28403         db_env_create( NULL, 0 );
28404 #elif DB_VERSION_MAJOR > 1
28405         db_appexit( NULL );
28406 #else
28407         (void) dbopen( NULL, 0, 0, 0, NULL);
28408 #endif
28409
28410   ;
28411   return 0;
28412 }
28413 _ACEOF
28414 rm -f conftest.$ac_objext conftest$ac_exeext
28415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28416   (eval $ac_link) 2>conftest.er1
28417   ac_status=$?
28418   grep -v '^ *+' conftest.er1 >conftest.err
28419   rm -f conftest.er1
28420   cat conftest.err >&5
28421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422   (exit $ac_status); } &&
28423          { ac_try='test -z "$ac_c_werror_flag"
28424                          || test ! -s conftest.err'
28425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28426   (eval $ac_try) 2>&5
28427   ac_status=$?
28428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429   (exit $ac_status); }; } &&
28430          { ac_try='test -s conftest$ac_exeext'
28431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432   (eval $ac_try) 2>&5
28433   ac_status=$?
28434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435   (exit $ac_status); }; }; then
28436   ol_cv_db_db45=yes
28437 else
28438   echo "$as_me: failed program was:" >&5
28439 sed 's/^/| /' conftest.$ac_ext >&5
28440
28441 ol_cv_db_db45=no
28442 fi
28443 rm -f conftest.err conftest.$ac_objext \
28444       conftest$ac_exeext conftest.$ac_ext
28445
28446         LIBS="$ol_LIBS"
28447
28448 fi
28449 echo "$as_me:$LINENO: result: $ol_cv_db_db45" >&5
28450 echo "${ECHO_T}$ol_cv_db_db45" >&6
28451
28452         if test $ol_cv_db_db45 = yes ; then
28453                 ol_cv_lib_db=-ldb45
28454         fi
28455 fi
28456
28457                 if test $ol_cv_lib_db = no ; then
28458         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-45)" >&5
28459 echo $ECHO_N "checking for Berkeley DB link (-ldb-45)... $ECHO_C" >&6
28460 if test "${ol_cv_db_db_45+set}" = set; then
28461   echo $ECHO_N "(cached) $ECHO_C" >&6
28462 else
28463
28464         ol_DB_LIB=-ldb-45
28465         ol_LIBS=$LIBS
28466         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28467
28468         cat >conftest.$ac_ext <<_ACEOF
28469 /* confdefs.h.  */
28470 _ACEOF
28471 cat confdefs.h >>conftest.$ac_ext
28472 cat >>conftest.$ac_ext <<_ACEOF
28473 /* end confdefs.h.  */
28474
28475 #ifdef HAVE_DB_185_H
28476 # include <db_185.h>
28477 #else
28478 # include <db.h>
28479 #endif
28480
28481 #ifndef DB_VERSION_MAJOR
28482 # define DB_VERSION_MAJOR 1
28483 #endif
28484
28485 #ifndef NULL
28486 #define NULL ((void*)0)
28487 #endif
28488
28489 int
28490 main ()
28491 {
28492
28493 #if DB_VERSION_MAJOR > 1
28494         {
28495                 char *version;
28496                 int major, minor, patch;
28497
28498                 version = db_version( &major, &minor, &patch );
28499
28500                 if( major != DB_VERSION_MAJOR ||
28501                         minor < DB_VERSION_MINOR )
28502                 {
28503                         printf("Berkeley DB version mismatch\n"
28504                                 "\theader: %s\n\tlibrary: %s\n",
28505                                 DB_VERSION_STRING, version);
28506                         return 1;
28507                 }
28508         }
28509 #endif
28510
28511 #if DB_VERSION_MAJOR > 2
28512         db_env_create( NULL, 0 );
28513 #elif DB_VERSION_MAJOR > 1
28514         db_appexit( NULL );
28515 #else
28516         (void) dbopen( NULL, 0, 0, 0, NULL);
28517 #endif
28518
28519   ;
28520   return 0;
28521 }
28522 _ACEOF
28523 rm -f conftest.$ac_objext conftest$ac_exeext
28524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28525   (eval $ac_link) 2>conftest.er1
28526   ac_status=$?
28527   grep -v '^ *+' conftest.er1 >conftest.err
28528   rm -f conftest.er1
28529   cat conftest.err >&5
28530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531   (exit $ac_status); } &&
28532          { ac_try='test -z "$ac_c_werror_flag"
28533                          || test ! -s conftest.err'
28534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535   (eval $ac_try) 2>&5
28536   ac_status=$?
28537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538   (exit $ac_status); }; } &&
28539          { ac_try='test -s conftest$ac_exeext'
28540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28541   (eval $ac_try) 2>&5
28542   ac_status=$?
28543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544   (exit $ac_status); }; }; then
28545   ol_cv_db_db_45=yes
28546 else
28547   echo "$as_me: failed program was:" >&5
28548 sed 's/^/| /' conftest.$ac_ext >&5
28549
28550 ol_cv_db_db_45=no
28551 fi
28552 rm -f conftest.err conftest.$ac_objext \
28553       conftest$ac_exeext conftest.$ac_ext
28554
28555         LIBS="$ol_LIBS"
28556
28557 fi
28558 echo "$as_me:$LINENO: result: $ol_cv_db_db_45" >&5
28559 echo "${ECHO_T}$ol_cv_db_db_45" >&6
28560
28561         if test $ol_cv_db_db_45 = yes ; then
28562                 ol_cv_lib_db=-ldb-45
28563         fi
28564 fi
28565
28566                 if test $ol_cv_lib_db = no ; then
28567         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-5)" >&5
28568 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-5)... $ECHO_C" >&6
28569 if test "${ol_cv_db_db_4_5+set}" = set; then
28570   echo $ECHO_N "(cached) $ECHO_C" >&6
28571 else
28572
28573         ol_DB_LIB=-ldb-4-5
28574         ol_LIBS=$LIBS
28575         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28576
28577         cat >conftest.$ac_ext <<_ACEOF
28578 /* confdefs.h.  */
28579 _ACEOF
28580 cat confdefs.h >>conftest.$ac_ext
28581 cat >>conftest.$ac_ext <<_ACEOF
28582 /* end confdefs.h.  */
28583
28584 #ifdef HAVE_DB_185_H
28585 # include <db_185.h>
28586 #else
28587 # include <db.h>
28588 #endif
28589
28590 #ifndef DB_VERSION_MAJOR
28591 # define DB_VERSION_MAJOR 1
28592 #endif
28593
28594 #ifndef NULL
28595 #define NULL ((void*)0)
28596 #endif
28597
28598 int
28599 main ()
28600 {
28601
28602 #if DB_VERSION_MAJOR > 1
28603         {
28604                 char *version;
28605                 int major, minor, patch;
28606
28607                 version = db_version( &major, &minor, &patch );
28608
28609                 if( major != DB_VERSION_MAJOR ||
28610                         minor < DB_VERSION_MINOR )
28611                 {
28612                         printf("Berkeley DB version mismatch\n"
28613                                 "\theader: %s\n\tlibrary: %s\n",
28614                                 DB_VERSION_STRING, version);
28615                         return 1;
28616                 }
28617         }
28618 #endif
28619
28620 #if DB_VERSION_MAJOR > 2
28621         db_env_create( NULL, 0 );
28622 #elif DB_VERSION_MAJOR > 1
28623         db_appexit( NULL );
28624 #else
28625         (void) dbopen( NULL, 0, 0, 0, NULL);
28626 #endif
28627
28628   ;
28629   return 0;
28630 }
28631 _ACEOF
28632 rm -f conftest.$ac_objext conftest$ac_exeext
28633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28634   (eval $ac_link) 2>conftest.er1
28635   ac_status=$?
28636   grep -v '^ *+' conftest.er1 >conftest.err
28637   rm -f conftest.er1
28638   cat conftest.err >&5
28639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640   (exit $ac_status); } &&
28641          { ac_try='test -z "$ac_c_werror_flag"
28642                          || test ! -s conftest.err'
28643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28644   (eval $ac_try) 2>&5
28645   ac_status=$?
28646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647   (exit $ac_status); }; } &&
28648          { ac_try='test -s conftest$ac_exeext'
28649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28650   (eval $ac_try) 2>&5
28651   ac_status=$?
28652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653   (exit $ac_status); }; }; then
28654   ol_cv_db_db_4_5=yes
28655 else
28656   echo "$as_me: failed program was:" >&5
28657 sed 's/^/| /' conftest.$ac_ext >&5
28658
28659 ol_cv_db_db_4_5=no
28660 fi
28661 rm -f conftest.err conftest.$ac_objext \
28662       conftest$ac_exeext conftest.$ac_ext
28663
28664         LIBS="$ol_LIBS"
28665
28666 fi
28667 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_5" >&5
28668 echo "${ECHO_T}$ol_cv_db_db_4_5" >&6
28669
28670         if test $ol_cv_db_db_4_5 = yes ; then
28671                 ol_cv_lib_db=-ldb-4-5
28672         fi
28673 fi
28674
28675         elif test $ol_cv_bdb_minor = 4 ; then
28676                 if test $ol_cv_lib_db = no ; then
28677         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28678 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28679 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28680   echo $ECHO_N "(cached) $ECHO_C" >&6
28681 else
28682
28683         ol_DB_LIB=-ldb-4.4
28684         ol_LIBS=$LIBS
28685         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28686
28687         cat >conftest.$ac_ext <<_ACEOF
28688 /* confdefs.h.  */
28689 _ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h.  */
28693
28694 #ifdef HAVE_DB_185_H
28695 # include <db_185.h>
28696 #else
28697 # include <db.h>
28698 #endif
28699
28700 #ifndef DB_VERSION_MAJOR
28701 # define DB_VERSION_MAJOR 1
28702 #endif
28703
28704 #ifndef NULL
28705 #define NULL ((void*)0)
28706 #endif
28707
28708 int
28709 main ()
28710 {
28711
28712 #if DB_VERSION_MAJOR > 1
28713         {
28714                 char *version;
28715                 int major, minor, patch;
28716
28717                 version = db_version( &major, &minor, &patch );
28718
28719                 if( major != DB_VERSION_MAJOR ||
28720                         minor < DB_VERSION_MINOR )
28721                 {
28722                         printf("Berkeley DB version mismatch\n"
28723                                 "\theader: %s\n\tlibrary: %s\n",
28724                                 DB_VERSION_STRING, version);
28725                         return 1;
28726                 }
28727         }
28728 #endif
28729
28730 #if DB_VERSION_MAJOR > 2
28731         db_env_create( NULL, 0 );
28732 #elif DB_VERSION_MAJOR > 1
28733         db_appexit( NULL );
28734 #else
28735         (void) dbopen( NULL, 0, 0, 0, NULL);
28736 #endif
28737
28738   ;
28739   return 0;
28740 }
28741 _ACEOF
28742 rm -f conftest.$ac_objext conftest$ac_exeext
28743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28744   (eval $ac_link) 2>conftest.er1
28745   ac_status=$?
28746   grep -v '^ *+' conftest.er1 >conftest.err
28747   rm -f conftest.er1
28748   cat conftest.err >&5
28749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750   (exit $ac_status); } &&
28751          { ac_try='test -z "$ac_c_werror_flag"
28752                          || test ! -s conftest.err'
28753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28754   (eval $ac_try) 2>&5
28755   ac_status=$?
28756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757   (exit $ac_status); }; } &&
28758          { ac_try='test -s conftest$ac_exeext'
28759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28760   (eval $ac_try) 2>&5
28761   ac_status=$?
28762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763   (exit $ac_status); }; }; then
28764   ol_cv_db_db_4_dot_4=yes
28765 else
28766   echo "$as_me: failed program was:" >&5
28767 sed 's/^/| /' conftest.$ac_ext >&5
28768
28769 ol_cv_db_db_4_dot_4=no
28770 fi
28771 rm -f conftest.err conftest.$ac_objext \
28772       conftest$ac_exeext conftest.$ac_ext
28773
28774         LIBS="$ol_LIBS"
28775
28776 fi
28777 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28778 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28779
28780         if test $ol_cv_db_db_4_dot_4 = yes ; then
28781                 ol_cv_lib_db=-ldb-4.4
28782         fi
28783 fi
28784
28785                 if test $ol_cv_lib_db = no ; then
28786         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28787 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28788 if test "${ol_cv_db_db44+set}" = set; then
28789   echo $ECHO_N "(cached) $ECHO_C" >&6
28790 else
28791
28792         ol_DB_LIB=-ldb44
28793         ol_LIBS=$LIBS
28794         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28795
28796         cat >conftest.$ac_ext <<_ACEOF
28797 /* confdefs.h.  */
28798 _ACEOF
28799 cat confdefs.h >>conftest.$ac_ext
28800 cat >>conftest.$ac_ext <<_ACEOF
28801 /* end confdefs.h.  */
28802
28803 #ifdef HAVE_DB_185_H
28804 # include <db_185.h>
28805 #else
28806 # include <db.h>
28807 #endif
28808
28809 #ifndef DB_VERSION_MAJOR
28810 # define DB_VERSION_MAJOR 1
28811 #endif
28812
28813 #ifndef NULL
28814 #define NULL ((void*)0)
28815 #endif
28816
28817 int
28818 main ()
28819 {
28820
28821 #if DB_VERSION_MAJOR > 1
28822         {
28823                 char *version;
28824                 int major, minor, patch;
28825
28826                 version = db_version( &major, &minor, &patch );
28827
28828                 if( major != DB_VERSION_MAJOR ||
28829                         minor < DB_VERSION_MINOR )
28830                 {
28831                         printf("Berkeley DB version mismatch\n"
28832                                 "\theader: %s\n\tlibrary: %s\n",
28833                                 DB_VERSION_STRING, version);
28834                         return 1;
28835                 }
28836         }
28837 #endif
28838
28839 #if DB_VERSION_MAJOR > 2
28840         db_env_create( NULL, 0 );
28841 #elif DB_VERSION_MAJOR > 1
28842         db_appexit( NULL );
28843 #else
28844         (void) dbopen( NULL, 0, 0, 0, NULL);
28845 #endif
28846
28847   ;
28848   return 0;
28849 }
28850 _ACEOF
28851 rm -f conftest.$ac_objext conftest$ac_exeext
28852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28853   (eval $ac_link) 2>conftest.er1
28854   ac_status=$?
28855   grep -v '^ *+' conftest.er1 >conftest.err
28856   rm -f conftest.er1
28857   cat conftest.err >&5
28858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859   (exit $ac_status); } &&
28860          { ac_try='test -z "$ac_c_werror_flag"
28861                          || test ! -s conftest.err'
28862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863   (eval $ac_try) 2>&5
28864   ac_status=$?
28865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866   (exit $ac_status); }; } &&
28867          { ac_try='test -s conftest$ac_exeext'
28868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28869   (eval $ac_try) 2>&5
28870   ac_status=$?
28871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872   (exit $ac_status); }; }; then
28873   ol_cv_db_db44=yes
28874 else
28875   echo "$as_me: failed program was:" >&5
28876 sed 's/^/| /' conftest.$ac_ext >&5
28877
28878 ol_cv_db_db44=no
28879 fi
28880 rm -f conftest.err conftest.$ac_objext \
28881       conftest$ac_exeext conftest.$ac_ext
28882
28883         LIBS="$ol_LIBS"
28884
28885 fi
28886 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28887 echo "${ECHO_T}$ol_cv_db_db44" >&6
28888
28889         if test $ol_cv_db_db44 = yes ; then
28890                 ol_cv_lib_db=-ldb44
28891         fi
28892 fi
28893
28894                 if test $ol_cv_lib_db = no ; then
28895         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28896 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28897 if test "${ol_cv_db_db_44+set}" = set; then
28898   echo $ECHO_N "(cached) $ECHO_C" >&6
28899 else
28900
28901         ol_DB_LIB=-ldb-44
28902         ol_LIBS=$LIBS
28903         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28904
28905         cat >conftest.$ac_ext <<_ACEOF
28906 /* confdefs.h.  */
28907 _ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h.  */
28911
28912 #ifdef HAVE_DB_185_H
28913 # include <db_185.h>
28914 #else
28915 # include <db.h>
28916 #endif
28917
28918 #ifndef DB_VERSION_MAJOR
28919 # define DB_VERSION_MAJOR 1
28920 #endif
28921
28922 #ifndef NULL
28923 #define NULL ((void*)0)
28924 #endif
28925
28926 int
28927 main ()
28928 {
28929
28930 #if DB_VERSION_MAJOR > 1
28931         {
28932                 char *version;
28933                 int major, minor, patch;
28934
28935                 version = db_version( &major, &minor, &patch );
28936
28937                 if( major != DB_VERSION_MAJOR ||
28938                         minor < DB_VERSION_MINOR )
28939                 {
28940                         printf("Berkeley DB version mismatch\n"
28941                                 "\theader: %s\n\tlibrary: %s\n",
28942                                 DB_VERSION_STRING, version);
28943                         return 1;
28944                 }
28945         }
28946 #endif
28947
28948 #if DB_VERSION_MAJOR > 2
28949         db_env_create( NULL, 0 );
28950 #elif DB_VERSION_MAJOR > 1
28951         db_appexit( NULL );
28952 #else
28953         (void) dbopen( NULL, 0, 0, 0, NULL);
28954 #endif
28955
28956   ;
28957   return 0;
28958 }
28959 _ACEOF
28960 rm -f conftest.$ac_objext conftest$ac_exeext
28961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28962   (eval $ac_link) 2>conftest.er1
28963   ac_status=$?
28964   grep -v '^ *+' conftest.er1 >conftest.err
28965   rm -f conftest.er1
28966   cat conftest.err >&5
28967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968   (exit $ac_status); } &&
28969          { ac_try='test -z "$ac_c_werror_flag"
28970                          || test ! -s conftest.err'
28971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28972   (eval $ac_try) 2>&5
28973   ac_status=$?
28974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975   (exit $ac_status); }; } &&
28976          { ac_try='test -s conftest$ac_exeext'
28977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28978   (eval $ac_try) 2>&5
28979   ac_status=$?
28980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28981   (exit $ac_status); }; }; then
28982   ol_cv_db_db_44=yes
28983 else
28984   echo "$as_me: failed program was:" >&5
28985 sed 's/^/| /' conftest.$ac_ext >&5
28986
28987 ol_cv_db_db_44=no
28988 fi
28989 rm -f conftest.err conftest.$ac_objext \
28990       conftest$ac_exeext conftest.$ac_ext
28991
28992         LIBS="$ol_LIBS"
28993
28994 fi
28995 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28996 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28997
28998         if test $ol_cv_db_db_44 = yes ; then
28999                 ol_cv_lib_db=-ldb-44
29000         fi
29001 fi
29002
29003                 if test $ol_cv_lib_db = no ; then
29004         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
29005 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
29006 if test "${ol_cv_db_db_4_4+set}" = set; then
29007   echo $ECHO_N "(cached) $ECHO_C" >&6
29008 else
29009
29010         ol_DB_LIB=-ldb-4-4
29011         ol_LIBS=$LIBS
29012         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29013
29014         cat >conftest.$ac_ext <<_ACEOF
29015 /* confdefs.h.  */
29016 _ACEOF
29017 cat confdefs.h >>conftest.$ac_ext
29018 cat >>conftest.$ac_ext <<_ACEOF
29019 /* end confdefs.h.  */
29020
29021 #ifdef HAVE_DB_185_H
29022 # include <db_185.h>
29023 #else
29024 # include <db.h>
29025 #endif
29026
29027 #ifndef DB_VERSION_MAJOR
29028 # define DB_VERSION_MAJOR 1
29029 #endif
29030
29031 #ifndef NULL
29032 #define NULL ((void*)0)
29033 #endif
29034
29035 int
29036 main ()
29037 {
29038
29039 #if DB_VERSION_MAJOR > 1
29040         {
29041                 char *version;
29042                 int major, minor, patch;
29043
29044                 version = db_version( &major, &minor, &patch );
29045
29046                 if( major != DB_VERSION_MAJOR ||
29047                         minor < DB_VERSION_MINOR )
29048                 {
29049                         printf("Berkeley DB version mismatch\n"
29050                                 "\theader: %s\n\tlibrary: %s\n",
29051                                 DB_VERSION_STRING, version);
29052                         return 1;
29053                 }
29054         }
29055 #endif
29056
29057 #if DB_VERSION_MAJOR > 2
29058         db_env_create( NULL, 0 );
29059 #elif DB_VERSION_MAJOR > 1
29060         db_appexit( NULL );
29061 #else
29062         (void) dbopen( NULL, 0, 0, 0, NULL);
29063 #endif
29064
29065   ;
29066   return 0;
29067 }
29068 _ACEOF
29069 rm -f conftest.$ac_objext conftest$ac_exeext
29070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29071   (eval $ac_link) 2>conftest.er1
29072   ac_status=$?
29073   grep -v '^ *+' conftest.er1 >conftest.err
29074   rm -f conftest.er1
29075   cat conftest.err >&5
29076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29077   (exit $ac_status); } &&
29078          { ac_try='test -z "$ac_c_werror_flag"
29079                          || test ! -s conftest.err'
29080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29081   (eval $ac_try) 2>&5
29082   ac_status=$?
29083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084   (exit $ac_status); }; } &&
29085          { ac_try='test -s conftest$ac_exeext'
29086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29087   (eval $ac_try) 2>&5
29088   ac_status=$?
29089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090   (exit $ac_status); }; }; then
29091   ol_cv_db_db_4_4=yes
29092 else
29093   echo "$as_me: failed program was:" >&5
29094 sed 's/^/| /' conftest.$ac_ext >&5
29095
29096 ol_cv_db_db_4_4=no
29097 fi
29098 rm -f conftest.err conftest.$ac_objext \
29099       conftest$ac_exeext conftest.$ac_ext
29100
29101         LIBS="$ol_LIBS"
29102
29103 fi
29104 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
29105 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
29106
29107         if test $ol_cv_db_db_4_4 = yes ; then
29108                 ol_cv_lib_db=-ldb-4-4
29109         fi
29110 fi
29111
29112         elif test $ol_cv_bdb_minor = 3 ; then
29113                 if test $ol_cv_lib_db = no ; then
29114         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
29115 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
29116 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
29117   echo $ECHO_N "(cached) $ECHO_C" >&6
29118 else
29119
29120         ol_DB_LIB=-ldb-4.3
29121         ol_LIBS=$LIBS
29122         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29123
29124         cat >conftest.$ac_ext <<_ACEOF
29125 /* confdefs.h.  */
29126 _ACEOF
29127 cat confdefs.h >>conftest.$ac_ext
29128 cat >>conftest.$ac_ext <<_ACEOF
29129 /* end confdefs.h.  */
29130
29131 #ifdef HAVE_DB_185_H
29132 # include <db_185.h>
29133 #else
29134 # include <db.h>
29135 #endif
29136
29137 #ifndef DB_VERSION_MAJOR
29138 # define DB_VERSION_MAJOR 1
29139 #endif
29140
29141 #ifndef NULL
29142 #define NULL ((void*)0)
29143 #endif
29144
29145 int
29146 main ()
29147 {
29148
29149 #if DB_VERSION_MAJOR > 1
29150         {
29151                 char *version;
29152                 int major, minor, patch;
29153
29154                 version = db_version( &major, &minor, &patch );
29155
29156                 if( major != DB_VERSION_MAJOR ||
29157                         minor < DB_VERSION_MINOR )
29158                 {
29159                         printf("Berkeley DB version mismatch\n"
29160                                 "\theader: %s\n\tlibrary: %s\n",
29161                                 DB_VERSION_STRING, version);
29162                         return 1;
29163                 }
29164         }
29165 #endif
29166
29167 #if DB_VERSION_MAJOR > 2
29168         db_env_create( NULL, 0 );
29169 #elif DB_VERSION_MAJOR > 1
29170         db_appexit( NULL );
29171 #else
29172         (void) dbopen( NULL, 0, 0, 0, NULL);
29173 #endif
29174
29175   ;
29176   return 0;
29177 }
29178 _ACEOF
29179 rm -f conftest.$ac_objext conftest$ac_exeext
29180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29181   (eval $ac_link) 2>conftest.er1
29182   ac_status=$?
29183   grep -v '^ *+' conftest.er1 >conftest.err
29184   rm -f conftest.er1
29185   cat conftest.err >&5
29186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187   (exit $ac_status); } &&
29188          { ac_try='test -z "$ac_c_werror_flag"
29189                          || test ! -s conftest.err'
29190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29191   (eval $ac_try) 2>&5
29192   ac_status=$?
29193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194   (exit $ac_status); }; } &&
29195          { ac_try='test -s conftest$ac_exeext'
29196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29197   (eval $ac_try) 2>&5
29198   ac_status=$?
29199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200   (exit $ac_status); }; }; then
29201   ol_cv_db_db_4_dot_3=yes
29202 else
29203   echo "$as_me: failed program was:" >&5
29204 sed 's/^/| /' conftest.$ac_ext >&5
29205
29206 ol_cv_db_db_4_dot_3=no
29207 fi
29208 rm -f conftest.err conftest.$ac_objext \
29209       conftest$ac_exeext conftest.$ac_ext
29210
29211         LIBS="$ol_LIBS"
29212
29213 fi
29214 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29215 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29216
29217         if test $ol_cv_db_db_4_dot_3 = yes ; then
29218                 ol_cv_lib_db=-ldb-4.3
29219         fi
29220 fi
29221
29222                 if test $ol_cv_lib_db = no ; then
29223         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
29224 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
29225 if test "${ol_cv_db_db43+set}" = set; then
29226   echo $ECHO_N "(cached) $ECHO_C" >&6
29227 else
29228
29229         ol_DB_LIB=-ldb43
29230         ol_LIBS=$LIBS
29231         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29232
29233         cat >conftest.$ac_ext <<_ACEOF
29234 /* confdefs.h.  */
29235 _ACEOF
29236 cat confdefs.h >>conftest.$ac_ext
29237 cat >>conftest.$ac_ext <<_ACEOF
29238 /* end confdefs.h.  */
29239
29240 #ifdef HAVE_DB_185_H
29241 # include <db_185.h>
29242 #else
29243 # include <db.h>
29244 #endif
29245
29246 #ifndef DB_VERSION_MAJOR
29247 # define DB_VERSION_MAJOR 1
29248 #endif
29249
29250 #ifndef NULL
29251 #define NULL ((void*)0)
29252 #endif
29253
29254 int
29255 main ()
29256 {
29257
29258 #if DB_VERSION_MAJOR > 1
29259         {
29260                 char *version;
29261                 int major, minor, patch;
29262
29263                 version = db_version( &major, &minor, &patch );
29264
29265                 if( major != DB_VERSION_MAJOR ||
29266                         minor < DB_VERSION_MINOR )
29267                 {
29268                         printf("Berkeley DB version mismatch\n"
29269                                 "\theader: %s\n\tlibrary: %s\n",
29270                                 DB_VERSION_STRING, version);
29271                         return 1;
29272                 }
29273         }
29274 #endif
29275
29276 #if DB_VERSION_MAJOR > 2
29277         db_env_create( NULL, 0 );
29278 #elif DB_VERSION_MAJOR > 1
29279         db_appexit( NULL );
29280 #else
29281         (void) dbopen( NULL, 0, 0, 0, NULL);
29282 #endif
29283
29284   ;
29285   return 0;
29286 }
29287 _ACEOF
29288 rm -f conftest.$ac_objext conftest$ac_exeext
29289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29290   (eval $ac_link) 2>conftest.er1
29291   ac_status=$?
29292   grep -v '^ *+' conftest.er1 >conftest.err
29293   rm -f conftest.er1
29294   cat conftest.err >&5
29295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29296   (exit $ac_status); } &&
29297          { ac_try='test -z "$ac_c_werror_flag"
29298                          || test ! -s conftest.err'
29299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29300   (eval $ac_try) 2>&5
29301   ac_status=$?
29302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303   (exit $ac_status); }; } &&
29304          { ac_try='test -s conftest$ac_exeext'
29305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29306   (eval $ac_try) 2>&5
29307   ac_status=$?
29308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309   (exit $ac_status); }; }; then
29310   ol_cv_db_db43=yes
29311 else
29312   echo "$as_me: failed program was:" >&5
29313 sed 's/^/| /' conftest.$ac_ext >&5
29314
29315 ol_cv_db_db43=no
29316 fi
29317 rm -f conftest.err conftest.$ac_objext \
29318       conftest$ac_exeext conftest.$ac_ext
29319
29320         LIBS="$ol_LIBS"
29321
29322 fi
29323 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
29324 echo "${ECHO_T}$ol_cv_db_db43" >&6
29325
29326         if test $ol_cv_db_db43 = yes ; then
29327                 ol_cv_lib_db=-ldb43
29328         fi
29329 fi
29330
29331                 if test $ol_cv_lib_db = no ; then
29332         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
29333 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
29334 if test "${ol_cv_db_db_43+set}" = set; then
29335   echo $ECHO_N "(cached) $ECHO_C" >&6
29336 else
29337
29338         ol_DB_LIB=-ldb-43
29339         ol_LIBS=$LIBS
29340         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29341
29342         cat >conftest.$ac_ext <<_ACEOF
29343 /* confdefs.h.  */
29344 _ACEOF
29345 cat confdefs.h >>conftest.$ac_ext
29346 cat >>conftest.$ac_ext <<_ACEOF
29347 /* end confdefs.h.  */
29348
29349 #ifdef HAVE_DB_185_H
29350 # include <db_185.h>
29351 #else
29352 # include <db.h>
29353 #endif
29354
29355 #ifndef DB_VERSION_MAJOR
29356 # define DB_VERSION_MAJOR 1
29357 #endif
29358
29359 #ifndef NULL
29360 #define NULL ((void*)0)
29361 #endif
29362
29363 int
29364 main ()
29365 {
29366
29367 #if DB_VERSION_MAJOR > 1
29368         {
29369                 char *version;
29370                 int major, minor, patch;
29371
29372                 version = db_version( &major, &minor, &patch );
29373
29374                 if( major != DB_VERSION_MAJOR ||
29375                         minor < DB_VERSION_MINOR )
29376                 {
29377                         printf("Berkeley DB version mismatch\n"
29378                                 "\theader: %s\n\tlibrary: %s\n",
29379                                 DB_VERSION_STRING, version);
29380                         return 1;
29381                 }
29382         }
29383 #endif
29384
29385 #if DB_VERSION_MAJOR > 2
29386         db_env_create( NULL, 0 );
29387 #elif DB_VERSION_MAJOR > 1
29388         db_appexit( NULL );
29389 #else
29390         (void) dbopen( NULL, 0, 0, 0, NULL);
29391 #endif
29392
29393   ;
29394   return 0;
29395 }
29396 _ACEOF
29397 rm -f conftest.$ac_objext conftest$ac_exeext
29398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29399   (eval $ac_link) 2>conftest.er1
29400   ac_status=$?
29401   grep -v '^ *+' conftest.er1 >conftest.err
29402   rm -f conftest.er1
29403   cat conftest.err >&5
29404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405   (exit $ac_status); } &&
29406          { ac_try='test -z "$ac_c_werror_flag"
29407                          || test ! -s conftest.err'
29408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409   (eval $ac_try) 2>&5
29410   ac_status=$?
29411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412   (exit $ac_status); }; } &&
29413          { ac_try='test -s conftest$ac_exeext'
29414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29415   (eval $ac_try) 2>&5
29416   ac_status=$?
29417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418   (exit $ac_status); }; }; then
29419   ol_cv_db_db_43=yes
29420 else
29421   echo "$as_me: failed program was:" >&5
29422 sed 's/^/| /' conftest.$ac_ext >&5
29423
29424 ol_cv_db_db_43=no
29425 fi
29426 rm -f conftest.err conftest.$ac_objext \
29427       conftest$ac_exeext conftest.$ac_ext
29428
29429         LIBS="$ol_LIBS"
29430
29431 fi
29432 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
29433 echo "${ECHO_T}$ol_cv_db_db_43" >&6
29434
29435         if test $ol_cv_db_db_43 = yes ; then
29436                 ol_cv_lib_db=-ldb-43
29437         fi
29438 fi
29439
29440                 if test $ol_cv_lib_db = no ; then
29441         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29442 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29443 if test "${ol_cv_db_db_4_3+set}" = set; then
29444   echo $ECHO_N "(cached) $ECHO_C" >&6
29445 else
29446
29447         ol_DB_LIB=-ldb-4-3
29448         ol_LIBS=$LIBS
29449         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29450
29451         cat >conftest.$ac_ext <<_ACEOF
29452 /* confdefs.h.  */
29453 _ACEOF
29454 cat confdefs.h >>conftest.$ac_ext
29455 cat >>conftest.$ac_ext <<_ACEOF
29456 /* end confdefs.h.  */
29457
29458 #ifdef HAVE_DB_185_H
29459 # include <db_185.h>
29460 #else
29461 # include <db.h>
29462 #endif
29463
29464 #ifndef DB_VERSION_MAJOR
29465 # define DB_VERSION_MAJOR 1
29466 #endif
29467
29468 #ifndef NULL
29469 #define NULL ((void*)0)
29470 #endif
29471
29472 int
29473 main ()
29474 {
29475
29476 #if DB_VERSION_MAJOR > 1
29477         {
29478                 char *version;
29479                 int major, minor, patch;
29480
29481                 version = db_version( &major, &minor, &patch );
29482
29483                 if( major != DB_VERSION_MAJOR ||
29484                         minor < DB_VERSION_MINOR )
29485                 {
29486                         printf("Berkeley DB version mismatch\n"
29487                                 "\theader: %s\n\tlibrary: %s\n",
29488                                 DB_VERSION_STRING, version);
29489                         return 1;
29490                 }
29491         }
29492 #endif
29493
29494 #if DB_VERSION_MAJOR > 2
29495         db_env_create( NULL, 0 );
29496 #elif DB_VERSION_MAJOR > 1
29497         db_appexit( NULL );
29498 #else
29499         (void) dbopen( NULL, 0, 0, 0, NULL);
29500 #endif
29501
29502   ;
29503   return 0;
29504 }
29505 _ACEOF
29506 rm -f conftest.$ac_objext conftest$ac_exeext
29507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29508   (eval $ac_link) 2>conftest.er1
29509   ac_status=$?
29510   grep -v '^ *+' conftest.er1 >conftest.err
29511   rm -f conftest.er1
29512   cat conftest.err >&5
29513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514   (exit $ac_status); } &&
29515          { ac_try='test -z "$ac_c_werror_flag"
29516                          || test ! -s conftest.err'
29517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29518   (eval $ac_try) 2>&5
29519   ac_status=$?
29520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521   (exit $ac_status); }; } &&
29522          { ac_try='test -s conftest$ac_exeext'
29523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29524   (eval $ac_try) 2>&5
29525   ac_status=$?
29526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527   (exit $ac_status); }; }; then
29528   ol_cv_db_db_4_3=yes
29529 else
29530   echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29532
29533 ol_cv_db_db_4_3=no
29534 fi
29535 rm -f conftest.err conftest.$ac_objext \
29536       conftest$ac_exeext conftest.$ac_ext
29537
29538         LIBS="$ol_LIBS"
29539
29540 fi
29541 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29542 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29543
29544         if test $ol_cv_db_db_4_3 = yes ; then
29545                 ol_cv_lib_db=-ldb-4-3
29546         fi
29547 fi
29548
29549         elif test $ol_cv_bdb_minor = 2 ; then
29550                 if test $ol_cv_lib_db = no ; then
29551         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29552 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29553 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29554   echo $ECHO_N "(cached) $ECHO_C" >&6
29555 else
29556
29557         ol_DB_LIB=-ldb-4.2
29558         ol_LIBS=$LIBS
29559         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29560
29561         cat >conftest.$ac_ext <<_ACEOF
29562 /* confdefs.h.  */
29563 _ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h.  */
29567
29568 #ifdef HAVE_DB_185_H
29569 # include <db_185.h>
29570 #else
29571 # include <db.h>
29572 #endif
29573
29574 #ifndef DB_VERSION_MAJOR
29575 # define DB_VERSION_MAJOR 1
29576 #endif
29577
29578 #ifndef NULL
29579 #define NULL ((void*)0)
29580 #endif
29581
29582 int
29583 main ()
29584 {
29585
29586 #if DB_VERSION_MAJOR > 1
29587         {
29588                 char *version;
29589                 int major, minor, patch;
29590
29591                 version = db_version( &major, &minor, &patch );
29592
29593                 if( major != DB_VERSION_MAJOR ||
29594                         minor < DB_VERSION_MINOR )
29595                 {
29596                         printf("Berkeley DB version mismatch\n"
29597                                 "\theader: %s\n\tlibrary: %s\n",
29598                                 DB_VERSION_STRING, version);
29599                         return 1;
29600                 }
29601         }
29602 #endif
29603
29604 #if DB_VERSION_MAJOR > 2
29605         db_env_create( NULL, 0 );
29606 #elif DB_VERSION_MAJOR > 1
29607         db_appexit( NULL );
29608 #else
29609         (void) dbopen( NULL, 0, 0, 0, NULL);
29610 #endif
29611
29612   ;
29613   return 0;
29614 }
29615 _ACEOF
29616 rm -f conftest.$ac_objext conftest$ac_exeext
29617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29618   (eval $ac_link) 2>conftest.er1
29619   ac_status=$?
29620   grep -v '^ *+' conftest.er1 >conftest.err
29621   rm -f conftest.er1
29622   cat conftest.err >&5
29623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624   (exit $ac_status); } &&
29625          { ac_try='test -z "$ac_c_werror_flag"
29626                          || test ! -s conftest.err'
29627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29628   (eval $ac_try) 2>&5
29629   ac_status=$?
29630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631   (exit $ac_status); }; } &&
29632          { ac_try='test -s conftest$ac_exeext'
29633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29634   (eval $ac_try) 2>&5
29635   ac_status=$?
29636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637   (exit $ac_status); }; }; then
29638   ol_cv_db_db_4_dot_2=yes
29639 else
29640   echo "$as_me: failed program was:" >&5
29641 sed 's/^/| /' conftest.$ac_ext >&5
29642
29643 ol_cv_db_db_4_dot_2=no
29644 fi
29645 rm -f conftest.err conftest.$ac_objext \
29646       conftest$ac_exeext conftest.$ac_ext
29647
29648         LIBS="$ol_LIBS"
29649
29650 fi
29651 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29652 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29653
29654         if test $ol_cv_db_db_4_dot_2 = yes ; then
29655                 ol_cv_lib_db=-ldb-4.2
29656         fi
29657 fi
29658
29659                 if test $ol_cv_lib_db = no ; then
29660         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29661 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29662 if test "${ol_cv_db_db42+set}" = set; then
29663   echo $ECHO_N "(cached) $ECHO_C" >&6
29664 else
29665
29666         ol_DB_LIB=-ldb42
29667         ol_LIBS=$LIBS
29668         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29669
29670         cat >conftest.$ac_ext <<_ACEOF
29671 /* confdefs.h.  */
29672 _ACEOF
29673 cat confdefs.h >>conftest.$ac_ext
29674 cat >>conftest.$ac_ext <<_ACEOF
29675 /* end confdefs.h.  */
29676
29677 #ifdef HAVE_DB_185_H
29678 # include <db_185.h>
29679 #else
29680 # include <db.h>
29681 #endif
29682
29683 #ifndef DB_VERSION_MAJOR
29684 # define DB_VERSION_MAJOR 1
29685 #endif
29686
29687 #ifndef NULL
29688 #define NULL ((void*)0)
29689 #endif
29690
29691 int
29692 main ()
29693 {
29694
29695 #if DB_VERSION_MAJOR > 1
29696         {
29697                 char *version;
29698                 int major, minor, patch;
29699
29700                 version = db_version( &major, &minor, &patch );
29701
29702                 if( major != DB_VERSION_MAJOR ||
29703                         minor < DB_VERSION_MINOR )
29704                 {
29705                         printf("Berkeley DB version mismatch\n"
29706                                 "\theader: %s\n\tlibrary: %s\n",
29707                                 DB_VERSION_STRING, version);
29708                         return 1;
29709                 }
29710         }
29711 #endif
29712
29713 #if DB_VERSION_MAJOR > 2
29714         db_env_create( NULL, 0 );
29715 #elif DB_VERSION_MAJOR > 1
29716         db_appexit( NULL );
29717 #else
29718         (void) dbopen( NULL, 0, 0, 0, NULL);
29719 #endif
29720
29721   ;
29722   return 0;
29723 }
29724 _ACEOF
29725 rm -f conftest.$ac_objext conftest$ac_exeext
29726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29727   (eval $ac_link) 2>conftest.er1
29728   ac_status=$?
29729   grep -v '^ *+' conftest.er1 >conftest.err
29730   rm -f conftest.er1
29731   cat conftest.err >&5
29732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733   (exit $ac_status); } &&
29734          { ac_try='test -z "$ac_c_werror_flag"
29735                          || test ! -s conftest.err'
29736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29737   (eval $ac_try) 2>&5
29738   ac_status=$?
29739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740   (exit $ac_status); }; } &&
29741          { ac_try='test -s conftest$ac_exeext'
29742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29743   (eval $ac_try) 2>&5
29744   ac_status=$?
29745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746   (exit $ac_status); }; }; then
29747   ol_cv_db_db42=yes
29748 else
29749   echo "$as_me: failed program was:" >&5
29750 sed 's/^/| /' conftest.$ac_ext >&5
29751
29752 ol_cv_db_db42=no
29753 fi
29754 rm -f conftest.err conftest.$ac_objext \
29755       conftest$ac_exeext conftest.$ac_ext
29756
29757         LIBS="$ol_LIBS"
29758
29759 fi
29760 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29761 echo "${ECHO_T}$ol_cv_db_db42" >&6
29762
29763         if test $ol_cv_db_db42 = yes ; then
29764                 ol_cv_lib_db=-ldb42
29765         fi
29766 fi
29767
29768                 if test $ol_cv_lib_db = no ; then
29769         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29770 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29771 if test "${ol_cv_db_db_42+set}" = set; then
29772   echo $ECHO_N "(cached) $ECHO_C" >&6
29773 else
29774
29775         ol_DB_LIB=-ldb-42
29776         ol_LIBS=$LIBS
29777         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29778
29779         cat >conftest.$ac_ext <<_ACEOF
29780 /* confdefs.h.  */
29781 _ACEOF
29782 cat confdefs.h >>conftest.$ac_ext
29783 cat >>conftest.$ac_ext <<_ACEOF
29784 /* end confdefs.h.  */
29785
29786 #ifdef HAVE_DB_185_H
29787 # include <db_185.h>
29788 #else
29789 # include <db.h>
29790 #endif
29791
29792 #ifndef DB_VERSION_MAJOR
29793 # define DB_VERSION_MAJOR 1
29794 #endif
29795
29796 #ifndef NULL
29797 #define NULL ((void*)0)
29798 #endif
29799
29800 int
29801 main ()
29802 {
29803
29804 #if DB_VERSION_MAJOR > 1
29805         {
29806                 char *version;
29807                 int major, minor, patch;
29808
29809                 version = db_version( &major, &minor, &patch );
29810
29811                 if( major != DB_VERSION_MAJOR ||
29812                         minor < DB_VERSION_MINOR )
29813                 {
29814                         printf("Berkeley DB version mismatch\n"
29815                                 "\theader: %s\n\tlibrary: %s\n",
29816                                 DB_VERSION_STRING, version);
29817                         return 1;
29818                 }
29819         }
29820 #endif
29821
29822 #if DB_VERSION_MAJOR > 2
29823         db_env_create( NULL, 0 );
29824 #elif DB_VERSION_MAJOR > 1
29825         db_appexit( NULL );
29826 #else
29827         (void) dbopen( NULL, 0, 0, 0, NULL);
29828 #endif
29829
29830   ;
29831   return 0;
29832 }
29833 _ACEOF
29834 rm -f conftest.$ac_objext conftest$ac_exeext
29835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29836   (eval $ac_link) 2>conftest.er1
29837   ac_status=$?
29838   grep -v '^ *+' conftest.er1 >conftest.err
29839   rm -f conftest.er1
29840   cat conftest.err >&5
29841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842   (exit $ac_status); } &&
29843          { ac_try='test -z "$ac_c_werror_flag"
29844                          || test ! -s conftest.err'
29845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29846   (eval $ac_try) 2>&5
29847   ac_status=$?
29848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849   (exit $ac_status); }; } &&
29850          { ac_try='test -s conftest$ac_exeext'
29851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29852   (eval $ac_try) 2>&5
29853   ac_status=$?
29854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855   (exit $ac_status); }; }; then
29856   ol_cv_db_db_42=yes
29857 else
29858   echo "$as_me: failed program was:" >&5
29859 sed 's/^/| /' conftest.$ac_ext >&5
29860
29861 ol_cv_db_db_42=no
29862 fi
29863 rm -f conftest.err conftest.$ac_objext \
29864       conftest$ac_exeext conftest.$ac_ext
29865
29866         LIBS="$ol_LIBS"
29867
29868 fi
29869 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29870 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29871
29872         if test $ol_cv_db_db_42 = yes ; then
29873                 ol_cv_lib_db=-ldb-42
29874         fi
29875 fi
29876
29877                 if test $ol_cv_lib_db = no ; then
29878         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29879 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29880 if test "${ol_cv_db_db_4_2+set}" = set; then
29881   echo $ECHO_N "(cached) $ECHO_C" >&6
29882 else
29883
29884         ol_DB_LIB=-ldb-4-2
29885         ol_LIBS=$LIBS
29886         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29887
29888         cat >conftest.$ac_ext <<_ACEOF
29889 /* confdefs.h.  */
29890 _ACEOF
29891 cat confdefs.h >>conftest.$ac_ext
29892 cat >>conftest.$ac_ext <<_ACEOF
29893 /* end confdefs.h.  */
29894
29895 #ifdef HAVE_DB_185_H
29896 # include <db_185.h>
29897 #else
29898 # include <db.h>
29899 #endif
29900
29901 #ifndef DB_VERSION_MAJOR
29902 # define DB_VERSION_MAJOR 1
29903 #endif
29904
29905 #ifndef NULL
29906 #define NULL ((void*)0)
29907 #endif
29908
29909 int
29910 main ()
29911 {
29912
29913 #if DB_VERSION_MAJOR > 1
29914         {
29915                 char *version;
29916                 int major, minor, patch;
29917
29918                 version = db_version( &major, &minor, &patch );
29919
29920                 if( major != DB_VERSION_MAJOR ||
29921                         minor < DB_VERSION_MINOR )
29922                 {
29923                         printf("Berkeley DB version mismatch\n"
29924                                 "\theader: %s\n\tlibrary: %s\n",
29925                                 DB_VERSION_STRING, version);
29926                         return 1;
29927                 }
29928         }
29929 #endif
29930
29931 #if DB_VERSION_MAJOR > 2
29932         db_env_create( NULL, 0 );
29933 #elif DB_VERSION_MAJOR > 1
29934         db_appexit( NULL );
29935 #else
29936         (void) dbopen( NULL, 0, 0, 0, NULL);
29937 #endif
29938
29939   ;
29940   return 0;
29941 }
29942 _ACEOF
29943 rm -f conftest.$ac_objext conftest$ac_exeext
29944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29945   (eval $ac_link) 2>conftest.er1
29946   ac_status=$?
29947   grep -v '^ *+' conftest.er1 >conftest.err
29948   rm -f conftest.er1
29949   cat conftest.err >&5
29950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951   (exit $ac_status); } &&
29952          { ac_try='test -z "$ac_c_werror_flag"
29953                          || test ! -s conftest.err'
29954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29955   (eval $ac_try) 2>&5
29956   ac_status=$?
29957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958   (exit $ac_status); }; } &&
29959          { ac_try='test -s conftest$ac_exeext'
29960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29961   (eval $ac_try) 2>&5
29962   ac_status=$?
29963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964   (exit $ac_status); }; }; then
29965   ol_cv_db_db_4_2=yes
29966 else
29967   echo "$as_me: failed program was:" >&5
29968 sed 's/^/| /' conftest.$ac_ext >&5
29969
29970 ol_cv_db_db_4_2=no
29971 fi
29972 rm -f conftest.err conftest.$ac_objext \
29973       conftest$ac_exeext conftest.$ac_ext
29974
29975         LIBS="$ol_LIBS"
29976
29977 fi
29978 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29979 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29980
29981         if test $ol_cv_db_db_4_2 = yes ; then
29982                 ol_cv_lib_db=-ldb-4-2
29983         fi
29984 fi
29985
29986         fi
29987         if test $ol_cv_lib_db = no ; then
29988         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29989 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
29990 if test "${ol_cv_db_db_4+set}" = set; then
29991   echo $ECHO_N "(cached) $ECHO_C" >&6
29992 else
29993
29994         ol_DB_LIB=-ldb-4
29995         ol_LIBS=$LIBS
29996         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29997
29998         cat >conftest.$ac_ext <<_ACEOF
29999 /* confdefs.h.  */
30000 _ACEOF
30001 cat confdefs.h >>conftest.$ac_ext
30002 cat >>conftest.$ac_ext <<_ACEOF
30003 /* end confdefs.h.  */
30004
30005 #ifdef HAVE_DB_185_H
30006 # include <db_185.h>
30007 #else
30008 # include <db.h>
30009 #endif
30010
30011 #ifndef DB_VERSION_MAJOR
30012 # define DB_VERSION_MAJOR 1
30013 #endif
30014
30015 #ifndef NULL
30016 #define NULL ((void*)0)
30017 #endif
30018
30019 int
30020 main ()
30021 {
30022
30023 #if DB_VERSION_MAJOR > 1
30024         {
30025                 char *version;
30026                 int major, minor, patch;
30027
30028                 version = db_version( &major, &minor, &patch );
30029
30030                 if( major != DB_VERSION_MAJOR ||
30031                         minor < DB_VERSION_MINOR )
30032                 {
30033                         printf("Berkeley DB version mismatch\n"
30034                                 "\theader: %s\n\tlibrary: %s\n",
30035                                 DB_VERSION_STRING, version);
30036                         return 1;
30037                 }
30038         }
30039 #endif
30040
30041 #if DB_VERSION_MAJOR > 2
30042         db_env_create( NULL, 0 );
30043 #elif DB_VERSION_MAJOR > 1
30044         db_appexit( NULL );
30045 #else
30046         (void) dbopen( NULL, 0, 0, 0, NULL);
30047 #endif
30048
30049   ;
30050   return 0;
30051 }
30052 _ACEOF
30053 rm -f conftest.$ac_objext conftest$ac_exeext
30054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30055   (eval $ac_link) 2>conftest.er1
30056   ac_status=$?
30057   grep -v '^ *+' conftest.er1 >conftest.err
30058   rm -f conftest.er1
30059   cat conftest.err >&5
30060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061   (exit $ac_status); } &&
30062          { ac_try='test -z "$ac_c_werror_flag"
30063                          || test ! -s conftest.err'
30064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30065   (eval $ac_try) 2>&5
30066   ac_status=$?
30067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068   (exit $ac_status); }; } &&
30069          { ac_try='test -s conftest$ac_exeext'
30070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30071   (eval $ac_try) 2>&5
30072   ac_status=$?
30073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074   (exit $ac_status); }; }; then
30075   ol_cv_db_db_4=yes
30076 else
30077   echo "$as_me: failed program was:" >&5
30078 sed 's/^/| /' conftest.$ac_ext >&5
30079
30080 ol_cv_db_db_4=no
30081 fi
30082 rm -f conftest.err conftest.$ac_objext \
30083       conftest$ac_exeext conftest.$ac_ext
30084
30085         LIBS="$ol_LIBS"
30086
30087 fi
30088 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30089 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30090
30091         if test $ol_cv_db_db_4 = yes ; then
30092                 ol_cv_lib_db=-ldb-4
30093         fi
30094 fi
30095
30096         if test $ol_cv_lib_db = no ; then
30097         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30098 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30099 if test "${ol_cv_db_db4+set}" = set; then
30100   echo $ECHO_N "(cached) $ECHO_C" >&6
30101 else
30102
30103         ol_DB_LIB=-ldb4
30104         ol_LIBS=$LIBS
30105         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30106
30107         cat >conftest.$ac_ext <<_ACEOF
30108 /* confdefs.h.  */
30109 _ACEOF
30110 cat confdefs.h >>conftest.$ac_ext
30111 cat >>conftest.$ac_ext <<_ACEOF
30112 /* end confdefs.h.  */
30113
30114 #ifdef HAVE_DB_185_H
30115 # include <db_185.h>
30116 #else
30117 # include <db.h>
30118 #endif
30119
30120 #ifndef DB_VERSION_MAJOR
30121 # define DB_VERSION_MAJOR 1
30122 #endif
30123
30124 #ifndef NULL
30125 #define NULL ((void*)0)
30126 #endif
30127
30128 int
30129 main ()
30130 {
30131
30132 #if DB_VERSION_MAJOR > 1
30133         {
30134                 char *version;
30135                 int major, minor, patch;
30136
30137                 version = db_version( &major, &minor, &patch );
30138
30139                 if( major != DB_VERSION_MAJOR ||
30140                         minor < DB_VERSION_MINOR )
30141                 {
30142                         printf("Berkeley DB version mismatch\n"
30143                                 "\theader: %s\n\tlibrary: %s\n",
30144                                 DB_VERSION_STRING, version);
30145                         return 1;
30146                 }
30147         }
30148 #endif
30149
30150 #if DB_VERSION_MAJOR > 2
30151         db_env_create( NULL, 0 );
30152 #elif DB_VERSION_MAJOR > 1
30153         db_appexit( NULL );
30154 #else
30155         (void) dbopen( NULL, 0, 0, 0, NULL);
30156 #endif
30157
30158   ;
30159   return 0;
30160 }
30161 _ACEOF
30162 rm -f conftest.$ac_objext conftest$ac_exeext
30163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30164   (eval $ac_link) 2>conftest.er1
30165   ac_status=$?
30166   grep -v '^ *+' conftest.er1 >conftest.err
30167   rm -f conftest.er1
30168   cat conftest.err >&5
30169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170   (exit $ac_status); } &&
30171          { ac_try='test -z "$ac_c_werror_flag"
30172                          || test ! -s conftest.err'
30173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30174   (eval $ac_try) 2>&5
30175   ac_status=$?
30176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177   (exit $ac_status); }; } &&
30178          { ac_try='test -s conftest$ac_exeext'
30179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30180   (eval $ac_try) 2>&5
30181   ac_status=$?
30182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183   (exit $ac_status); }; }; then
30184   ol_cv_db_db4=yes
30185 else
30186   echo "$as_me: failed program was:" >&5
30187 sed 's/^/| /' conftest.$ac_ext >&5
30188
30189 ol_cv_db_db4=no
30190 fi
30191 rm -f conftest.err conftest.$ac_objext \
30192       conftest$ac_exeext conftest.$ac_ext
30193
30194         LIBS="$ol_LIBS"
30195
30196 fi
30197 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30198 echo "${ECHO_T}$ol_cv_db_db4" >&6
30199
30200         if test $ol_cv_db_db4 = yes ; then
30201                 ol_cv_lib_db=-ldb4
30202         fi
30203 fi
30204
30205         if test $ol_cv_lib_db = no ; then
30206         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30207 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30208 if test "${ol_cv_db_db+set}" = set; then
30209   echo $ECHO_N "(cached) $ECHO_C" >&6
30210 else
30211
30212         ol_DB_LIB=-ldb
30213         ol_LIBS=$LIBS
30214         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30215
30216         cat >conftest.$ac_ext <<_ACEOF
30217 /* confdefs.h.  */
30218 _ACEOF
30219 cat confdefs.h >>conftest.$ac_ext
30220 cat >>conftest.$ac_ext <<_ACEOF
30221 /* end confdefs.h.  */
30222
30223 #ifdef HAVE_DB_185_H
30224 # include <db_185.h>
30225 #else
30226 # include <db.h>
30227 #endif
30228
30229 #ifndef DB_VERSION_MAJOR
30230 # define DB_VERSION_MAJOR 1
30231 #endif
30232
30233 #ifndef NULL
30234 #define NULL ((void*)0)
30235 #endif
30236
30237 int
30238 main ()
30239 {
30240
30241 #if DB_VERSION_MAJOR > 1
30242         {
30243                 char *version;
30244                 int major, minor, patch;
30245
30246                 version = db_version( &major, &minor, &patch );
30247
30248                 if( major != DB_VERSION_MAJOR ||
30249                         minor < DB_VERSION_MINOR )
30250                 {
30251                         printf("Berkeley DB version mismatch\n"
30252                                 "\theader: %s\n\tlibrary: %s\n",
30253                                 DB_VERSION_STRING, version);
30254                         return 1;
30255                 }
30256         }
30257 #endif
30258
30259 #if DB_VERSION_MAJOR > 2
30260         db_env_create( NULL, 0 );
30261 #elif DB_VERSION_MAJOR > 1
30262         db_appexit( NULL );
30263 #else
30264         (void) dbopen( NULL, 0, 0, 0, NULL);
30265 #endif
30266
30267   ;
30268   return 0;
30269 }
30270 _ACEOF
30271 rm -f conftest.$ac_objext conftest$ac_exeext
30272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30273   (eval $ac_link) 2>conftest.er1
30274   ac_status=$?
30275   grep -v '^ *+' conftest.er1 >conftest.err
30276   rm -f conftest.er1
30277   cat conftest.err >&5
30278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279   (exit $ac_status); } &&
30280          { ac_try='test -z "$ac_c_werror_flag"
30281                          || test ! -s conftest.err'
30282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30283   (eval $ac_try) 2>&5
30284   ac_status=$?
30285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286   (exit $ac_status); }; } &&
30287          { ac_try='test -s conftest$ac_exeext'
30288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30289   (eval $ac_try) 2>&5
30290   ac_status=$?
30291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292   (exit $ac_status); }; }; then
30293   ol_cv_db_db=yes
30294 else
30295   echo "$as_me: failed program was:" >&5
30296 sed 's/^/| /' conftest.$ac_ext >&5
30297
30298 ol_cv_db_db=no
30299 fi
30300 rm -f conftest.err conftest.$ac_objext \
30301       conftest$ac_exeext conftest.$ac_ext
30302
30303         LIBS="$ol_LIBS"
30304
30305 fi
30306 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30307 echo "${ECHO_T}$ol_cv_db_db" >&6
30308
30309         if test $ol_cv_db_db = yes ; then
30310                 ol_cv_lib_db=-ldb
30311         fi
30312 fi
30313
30314
30315 elif test $ol_cv_bdb_major = 3 ; then
30316         if test $ol_cv_lib_db = no ; then
30317         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30318 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30319 if test "${ol_cv_db_db3+set}" = set; then
30320   echo $ECHO_N "(cached) $ECHO_C" >&6
30321 else
30322
30323         ol_DB_LIB=-ldb3
30324         ol_LIBS=$LIBS
30325         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30326
30327         cat >conftest.$ac_ext <<_ACEOF
30328 /* confdefs.h.  */
30329 _ACEOF
30330 cat confdefs.h >>conftest.$ac_ext
30331 cat >>conftest.$ac_ext <<_ACEOF
30332 /* end confdefs.h.  */
30333
30334 #ifdef HAVE_DB_185_H
30335 # include <db_185.h>
30336 #else
30337 # include <db.h>
30338 #endif
30339
30340 #ifndef DB_VERSION_MAJOR
30341 # define DB_VERSION_MAJOR 1
30342 #endif
30343
30344 #ifndef NULL
30345 #define NULL ((void*)0)
30346 #endif
30347
30348 int
30349 main ()
30350 {
30351
30352 #if DB_VERSION_MAJOR > 1
30353         {
30354                 char *version;
30355                 int major, minor, patch;
30356
30357                 version = db_version( &major, &minor, &patch );
30358
30359                 if( major != DB_VERSION_MAJOR ||
30360                         minor < DB_VERSION_MINOR )
30361                 {
30362                         printf("Berkeley DB version mismatch\n"
30363                                 "\theader: %s\n\tlibrary: %s\n",
30364                                 DB_VERSION_STRING, version);
30365                         return 1;
30366                 }
30367         }
30368 #endif
30369
30370 #if DB_VERSION_MAJOR > 2
30371         db_env_create( NULL, 0 );
30372 #elif DB_VERSION_MAJOR > 1
30373         db_appexit( NULL );
30374 #else
30375         (void) dbopen( NULL, 0, 0, 0, NULL);
30376 #endif
30377
30378   ;
30379   return 0;
30380 }
30381 _ACEOF
30382 rm -f conftest.$ac_objext conftest$ac_exeext
30383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30384   (eval $ac_link) 2>conftest.er1
30385   ac_status=$?
30386   grep -v '^ *+' conftest.er1 >conftest.err
30387   rm -f conftest.er1
30388   cat conftest.err >&5
30389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390   (exit $ac_status); } &&
30391          { ac_try='test -z "$ac_c_werror_flag"
30392                          || test ! -s conftest.err'
30393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30394   (eval $ac_try) 2>&5
30395   ac_status=$?
30396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397   (exit $ac_status); }; } &&
30398          { ac_try='test -s conftest$ac_exeext'
30399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30400   (eval $ac_try) 2>&5
30401   ac_status=$?
30402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30403   (exit $ac_status); }; }; then
30404   ol_cv_db_db3=yes
30405 else
30406   echo "$as_me: failed program was:" >&5
30407 sed 's/^/| /' conftest.$ac_ext >&5
30408
30409 ol_cv_db_db3=no
30410 fi
30411 rm -f conftest.err conftest.$ac_objext \
30412       conftest$ac_exeext conftest.$ac_ext
30413
30414         LIBS="$ol_LIBS"
30415
30416 fi
30417 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30418 echo "${ECHO_T}$ol_cv_db_db3" >&6
30419
30420         if test $ol_cv_db_db3 = yes ; then
30421                 ol_cv_lib_db=-ldb3
30422         fi
30423 fi
30424
30425         if test $ol_cv_lib_db = no ; then
30426         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30427 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30428 if test "${ol_cv_db_db_3+set}" = set; then
30429   echo $ECHO_N "(cached) $ECHO_C" >&6
30430 else
30431
30432         ol_DB_LIB=-ldb-3
30433         ol_LIBS=$LIBS
30434         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30435
30436         cat >conftest.$ac_ext <<_ACEOF
30437 /* confdefs.h.  */
30438 _ACEOF
30439 cat confdefs.h >>conftest.$ac_ext
30440 cat >>conftest.$ac_ext <<_ACEOF
30441 /* end confdefs.h.  */
30442
30443 #ifdef HAVE_DB_185_H
30444 # include <db_185.h>
30445 #else
30446 # include <db.h>
30447 #endif
30448
30449 #ifndef DB_VERSION_MAJOR
30450 # define DB_VERSION_MAJOR 1
30451 #endif
30452
30453 #ifndef NULL
30454 #define NULL ((void*)0)
30455 #endif
30456
30457 int
30458 main ()
30459 {
30460
30461 #if DB_VERSION_MAJOR > 1
30462         {
30463                 char *version;
30464                 int major, minor, patch;
30465
30466                 version = db_version( &major, &minor, &patch );
30467
30468                 if( major != DB_VERSION_MAJOR ||
30469                         minor < DB_VERSION_MINOR )
30470                 {
30471                         printf("Berkeley DB version mismatch\n"
30472                                 "\theader: %s\n\tlibrary: %s\n",
30473                                 DB_VERSION_STRING, version);
30474                         return 1;
30475                 }
30476         }
30477 #endif
30478
30479 #if DB_VERSION_MAJOR > 2
30480         db_env_create( NULL, 0 );
30481 #elif DB_VERSION_MAJOR > 1
30482         db_appexit( NULL );
30483 #else
30484         (void) dbopen( NULL, 0, 0, 0, NULL);
30485 #endif
30486
30487   ;
30488   return 0;
30489 }
30490 _ACEOF
30491 rm -f conftest.$ac_objext conftest$ac_exeext
30492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30493   (eval $ac_link) 2>conftest.er1
30494   ac_status=$?
30495   grep -v '^ *+' conftest.er1 >conftest.err
30496   rm -f conftest.er1
30497   cat conftest.err >&5
30498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499   (exit $ac_status); } &&
30500          { ac_try='test -z "$ac_c_werror_flag"
30501                          || test ! -s conftest.err'
30502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30503   (eval $ac_try) 2>&5
30504   ac_status=$?
30505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506   (exit $ac_status); }; } &&
30507          { ac_try='test -s conftest$ac_exeext'
30508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30509   (eval $ac_try) 2>&5
30510   ac_status=$?
30511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512   (exit $ac_status); }; }; then
30513   ol_cv_db_db_3=yes
30514 else
30515   echo "$as_me: failed program was:" >&5
30516 sed 's/^/| /' conftest.$ac_ext >&5
30517
30518 ol_cv_db_db_3=no
30519 fi
30520 rm -f conftest.err conftest.$ac_objext \
30521       conftest$ac_exeext conftest.$ac_ext
30522
30523         LIBS="$ol_LIBS"
30524
30525 fi
30526 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30527 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30528
30529         if test $ol_cv_db_db_3 = yes ; then
30530                 ol_cv_lib_db=-ldb-3
30531         fi
30532 fi
30533
30534
30535 elif test $ol_cv_bdb_major = 2 ; then
30536         if test $ol_cv_lib_db = no ; then
30537         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30538 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30539 if test "${ol_cv_db_db2+set}" = set; then
30540   echo $ECHO_N "(cached) $ECHO_C" >&6
30541 else
30542
30543         ol_DB_LIB=-ldb2
30544         ol_LIBS=$LIBS
30545         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30546
30547         cat >conftest.$ac_ext <<_ACEOF
30548 /* confdefs.h.  */
30549 _ACEOF
30550 cat confdefs.h >>conftest.$ac_ext
30551 cat >>conftest.$ac_ext <<_ACEOF
30552 /* end confdefs.h.  */
30553
30554 #ifdef HAVE_DB_185_H
30555 # include <db_185.h>
30556 #else
30557 # include <db.h>
30558 #endif
30559
30560 #ifndef DB_VERSION_MAJOR
30561 # define DB_VERSION_MAJOR 1
30562 #endif
30563
30564 #ifndef NULL
30565 #define NULL ((void*)0)
30566 #endif
30567
30568 int
30569 main ()
30570 {
30571
30572 #if DB_VERSION_MAJOR > 1
30573         {
30574                 char *version;
30575                 int major, minor, patch;
30576
30577                 version = db_version( &major, &minor, &patch );
30578
30579                 if( major != DB_VERSION_MAJOR ||
30580                         minor < DB_VERSION_MINOR )
30581                 {
30582                         printf("Berkeley DB version mismatch\n"
30583                                 "\theader: %s\n\tlibrary: %s\n",
30584                                 DB_VERSION_STRING, version);
30585                         return 1;
30586                 }
30587         }
30588 #endif
30589
30590 #if DB_VERSION_MAJOR > 2
30591         db_env_create( NULL, 0 );
30592 #elif DB_VERSION_MAJOR > 1
30593         db_appexit( NULL );
30594 #else
30595         (void) dbopen( NULL, 0, 0, 0, NULL);
30596 #endif
30597
30598   ;
30599   return 0;
30600 }
30601 _ACEOF
30602 rm -f conftest.$ac_objext conftest$ac_exeext
30603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30604   (eval $ac_link) 2>conftest.er1
30605   ac_status=$?
30606   grep -v '^ *+' conftest.er1 >conftest.err
30607   rm -f conftest.er1
30608   cat conftest.err >&5
30609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610   (exit $ac_status); } &&
30611          { ac_try='test -z "$ac_c_werror_flag"
30612                          || test ! -s conftest.err'
30613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30614   (eval $ac_try) 2>&5
30615   ac_status=$?
30616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617   (exit $ac_status); }; } &&
30618          { ac_try='test -s conftest$ac_exeext'
30619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30620   (eval $ac_try) 2>&5
30621   ac_status=$?
30622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623   (exit $ac_status); }; }; then
30624   ol_cv_db_db2=yes
30625 else
30626   echo "$as_me: failed program was:" >&5
30627 sed 's/^/| /' conftest.$ac_ext >&5
30628
30629 ol_cv_db_db2=no
30630 fi
30631 rm -f conftest.err conftest.$ac_objext \
30632       conftest$ac_exeext conftest.$ac_ext
30633
30634         LIBS="$ol_LIBS"
30635
30636 fi
30637 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30638 echo "${ECHO_T}$ol_cv_db_db2" >&6
30639
30640         if test $ol_cv_db_db2 = yes ; then
30641                 ol_cv_lib_db=-ldb2
30642         fi
30643 fi
30644
30645         if test $ol_cv_lib_db = no ; then
30646         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30647 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30648 if test "${ol_cv_db_db_2+set}" = set; then
30649   echo $ECHO_N "(cached) $ECHO_C" >&6
30650 else
30651
30652         ol_DB_LIB=-ldb-2
30653         ol_LIBS=$LIBS
30654         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30655
30656         cat >conftest.$ac_ext <<_ACEOF
30657 /* confdefs.h.  */
30658 _ACEOF
30659 cat confdefs.h >>conftest.$ac_ext
30660 cat >>conftest.$ac_ext <<_ACEOF
30661 /* end confdefs.h.  */
30662
30663 #ifdef HAVE_DB_185_H
30664 # include <db_185.h>
30665 #else
30666 # include <db.h>
30667 #endif
30668
30669 #ifndef DB_VERSION_MAJOR
30670 # define DB_VERSION_MAJOR 1
30671 #endif
30672
30673 #ifndef NULL
30674 #define NULL ((void*)0)
30675 #endif
30676
30677 int
30678 main ()
30679 {
30680
30681 #if DB_VERSION_MAJOR > 1
30682         {
30683                 char *version;
30684                 int major, minor, patch;
30685
30686                 version = db_version( &major, &minor, &patch );
30687
30688                 if( major != DB_VERSION_MAJOR ||
30689                         minor < DB_VERSION_MINOR )
30690                 {
30691                         printf("Berkeley DB version mismatch\n"
30692                                 "\theader: %s\n\tlibrary: %s\n",
30693                                 DB_VERSION_STRING, version);
30694                         return 1;
30695                 }
30696         }
30697 #endif
30698
30699 #if DB_VERSION_MAJOR > 2
30700         db_env_create( NULL, 0 );
30701 #elif DB_VERSION_MAJOR > 1
30702         db_appexit( NULL );
30703 #else
30704         (void) dbopen( NULL, 0, 0, 0, NULL);
30705 #endif
30706
30707   ;
30708   return 0;
30709 }
30710 _ACEOF
30711 rm -f conftest.$ac_objext conftest$ac_exeext
30712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30713   (eval $ac_link) 2>conftest.er1
30714   ac_status=$?
30715   grep -v '^ *+' conftest.er1 >conftest.err
30716   rm -f conftest.er1
30717   cat conftest.err >&5
30718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719   (exit $ac_status); } &&
30720          { ac_try='test -z "$ac_c_werror_flag"
30721                          || test ! -s conftest.err'
30722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30723   (eval $ac_try) 2>&5
30724   ac_status=$?
30725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726   (exit $ac_status); }; } &&
30727          { ac_try='test -s conftest$ac_exeext'
30728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30729   (eval $ac_try) 2>&5
30730   ac_status=$?
30731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732   (exit $ac_status); }; }; then
30733   ol_cv_db_db_2=yes
30734 else
30735   echo "$as_me: failed program was:" >&5
30736 sed 's/^/| /' conftest.$ac_ext >&5
30737
30738 ol_cv_db_db_2=no
30739 fi
30740 rm -f conftest.err conftest.$ac_objext \
30741       conftest$ac_exeext conftest.$ac_ext
30742
30743         LIBS="$ol_LIBS"
30744
30745 fi
30746 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30747 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30748
30749         if test $ol_cv_db_db_2 = yes ; then
30750                 ol_cv_lib_db=-ldb-2
30751         fi
30752 fi
30753
30754
30755 elif test $ol_cv_bdb_major = 1 ; then
30756         if test $ol_cv_lib_db = no ; then
30757         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30758 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30759 if test "${ol_cv_db_db1+set}" = set; then
30760   echo $ECHO_N "(cached) $ECHO_C" >&6
30761 else
30762
30763         ol_DB_LIB=-ldb1
30764         ol_LIBS=$LIBS
30765         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30766
30767         cat >conftest.$ac_ext <<_ACEOF
30768 /* confdefs.h.  */
30769 _ACEOF
30770 cat confdefs.h >>conftest.$ac_ext
30771 cat >>conftest.$ac_ext <<_ACEOF
30772 /* end confdefs.h.  */
30773
30774 #ifdef HAVE_DB_185_H
30775 # include <db_185.h>
30776 #else
30777 # include <db.h>
30778 #endif
30779
30780 #ifndef DB_VERSION_MAJOR
30781 # define DB_VERSION_MAJOR 1
30782 #endif
30783
30784 #ifndef NULL
30785 #define NULL ((void*)0)
30786 #endif
30787
30788 int
30789 main ()
30790 {
30791
30792 #if DB_VERSION_MAJOR > 1
30793         {
30794                 char *version;
30795                 int major, minor, patch;
30796
30797                 version = db_version( &major, &minor, &patch );
30798
30799                 if( major != DB_VERSION_MAJOR ||
30800                         minor < DB_VERSION_MINOR )
30801                 {
30802                         printf("Berkeley DB version mismatch\n"
30803                                 "\theader: %s\n\tlibrary: %s\n",
30804                                 DB_VERSION_STRING, version);
30805                         return 1;
30806                 }
30807         }
30808 #endif
30809
30810 #if DB_VERSION_MAJOR > 2
30811         db_env_create( NULL, 0 );
30812 #elif DB_VERSION_MAJOR > 1
30813         db_appexit( NULL );
30814 #else
30815         (void) dbopen( NULL, 0, 0, 0, NULL);
30816 #endif
30817
30818   ;
30819   return 0;
30820 }
30821 _ACEOF
30822 rm -f conftest.$ac_objext conftest$ac_exeext
30823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30824   (eval $ac_link) 2>conftest.er1
30825   ac_status=$?
30826   grep -v '^ *+' conftest.er1 >conftest.err
30827   rm -f conftest.er1
30828   cat conftest.err >&5
30829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830   (exit $ac_status); } &&
30831          { ac_try='test -z "$ac_c_werror_flag"
30832                          || test ! -s conftest.err'
30833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30834   (eval $ac_try) 2>&5
30835   ac_status=$?
30836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837   (exit $ac_status); }; } &&
30838          { ac_try='test -s conftest$ac_exeext'
30839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30840   (eval $ac_try) 2>&5
30841   ac_status=$?
30842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843   (exit $ac_status); }; }; then
30844   ol_cv_db_db1=yes
30845 else
30846   echo "$as_me: failed program was:" >&5
30847 sed 's/^/| /' conftest.$ac_ext >&5
30848
30849 ol_cv_db_db1=no
30850 fi
30851 rm -f conftest.err conftest.$ac_objext \
30852       conftest$ac_exeext conftest.$ac_ext
30853
30854         LIBS="$ol_LIBS"
30855
30856 fi
30857 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30858 echo "${ECHO_T}$ol_cv_db_db1" >&6
30859
30860         if test $ol_cv_db_db1 = yes ; then
30861                 ol_cv_lib_db=-ldb1
30862         fi
30863 fi
30864
30865         if test $ol_cv_lib_db = no ; then
30866         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30867 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30868 if test "${ol_cv_db_db_1+set}" = set; then
30869   echo $ECHO_N "(cached) $ECHO_C" >&6
30870 else
30871
30872         ol_DB_LIB=-ldb-1
30873         ol_LIBS=$LIBS
30874         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30875
30876         cat >conftest.$ac_ext <<_ACEOF
30877 /* confdefs.h.  */
30878 _ACEOF
30879 cat confdefs.h >>conftest.$ac_ext
30880 cat >>conftest.$ac_ext <<_ACEOF
30881 /* end confdefs.h.  */
30882
30883 #ifdef HAVE_DB_185_H
30884 # include <db_185.h>
30885 #else
30886 # include <db.h>
30887 #endif
30888
30889 #ifndef DB_VERSION_MAJOR
30890 # define DB_VERSION_MAJOR 1
30891 #endif
30892
30893 #ifndef NULL
30894 #define NULL ((void*)0)
30895 #endif
30896
30897 int
30898 main ()
30899 {
30900
30901 #if DB_VERSION_MAJOR > 1
30902         {
30903                 char *version;
30904                 int major, minor, patch;
30905
30906                 version = db_version( &major, &minor, &patch );
30907
30908                 if( major != DB_VERSION_MAJOR ||
30909                         minor < DB_VERSION_MINOR )
30910                 {
30911                         printf("Berkeley DB version mismatch\n"
30912                                 "\theader: %s\n\tlibrary: %s\n",
30913                                 DB_VERSION_STRING, version);
30914                         return 1;
30915                 }
30916         }
30917 #endif
30918
30919 #if DB_VERSION_MAJOR > 2
30920         db_env_create( NULL, 0 );
30921 #elif DB_VERSION_MAJOR > 1
30922         db_appexit( NULL );
30923 #else
30924         (void) dbopen( NULL, 0, 0, 0, NULL);
30925 #endif
30926
30927   ;
30928   return 0;
30929 }
30930 _ACEOF
30931 rm -f conftest.$ac_objext conftest$ac_exeext
30932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30933   (eval $ac_link) 2>conftest.er1
30934   ac_status=$?
30935   grep -v '^ *+' conftest.er1 >conftest.err
30936   rm -f conftest.er1
30937   cat conftest.err >&5
30938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939   (exit $ac_status); } &&
30940          { ac_try='test -z "$ac_c_werror_flag"
30941                          || test ! -s conftest.err'
30942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30943   (eval $ac_try) 2>&5
30944   ac_status=$?
30945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946   (exit $ac_status); }; } &&
30947          { ac_try='test -s conftest$ac_exeext'
30948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30949   (eval $ac_try) 2>&5
30950   ac_status=$?
30951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952   (exit $ac_status); }; }; then
30953   ol_cv_db_db_1=yes
30954 else
30955   echo "$as_me: failed program was:" >&5
30956 sed 's/^/| /' conftest.$ac_ext >&5
30957
30958 ol_cv_db_db_1=no
30959 fi
30960 rm -f conftest.err conftest.$ac_objext \
30961       conftest$ac_exeext conftest.$ac_ext
30962
30963         LIBS="$ol_LIBS"
30964
30965 fi
30966 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30967 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30968
30969         if test $ol_cv_db_db_1 = yes ; then
30970                 ol_cv_lib_db=-ldb-1
30971         fi
30972 fi
30973
30974 fi
30975 if test $ol_cv_lib_db = no ; then
30976         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30977 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30978 if test "${ol_cv_db_none+set}" = set; then
30979   echo $ECHO_N "(cached) $ECHO_C" >&6
30980 else
30981
30982         ol_DB_LIB=
30983         ol_LIBS=$LIBS
30984         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30985
30986         cat >conftest.$ac_ext <<_ACEOF
30987 /* confdefs.h.  */
30988 _ACEOF
30989 cat confdefs.h >>conftest.$ac_ext
30990 cat >>conftest.$ac_ext <<_ACEOF
30991 /* end confdefs.h.  */
30992
30993 #ifdef HAVE_DB_185_H
30994 # include <db_185.h>
30995 #else
30996 # include <db.h>
30997 #endif
30998
30999 #ifndef DB_VERSION_MAJOR
31000 # define DB_VERSION_MAJOR 1
31001 #endif
31002
31003 #ifndef NULL
31004 #define NULL ((void*)0)
31005 #endif
31006
31007 int
31008 main ()
31009 {
31010
31011 #if DB_VERSION_MAJOR > 1
31012         {
31013                 char *version;
31014                 int major, minor, patch;
31015
31016                 version = db_version( &major, &minor, &patch );
31017
31018                 if( major != DB_VERSION_MAJOR ||
31019                         minor < DB_VERSION_MINOR )
31020                 {
31021                         printf("Berkeley DB version mismatch\n"
31022                                 "\theader: %s\n\tlibrary: %s\n",
31023                                 DB_VERSION_STRING, version);
31024                         return 1;
31025                 }
31026         }
31027 #endif
31028
31029 #if DB_VERSION_MAJOR > 2
31030         db_env_create( NULL, 0 );
31031 #elif DB_VERSION_MAJOR > 1
31032         db_appexit( NULL );
31033 #else
31034         (void) dbopen( NULL, 0, 0, 0, NULL);
31035 #endif
31036
31037   ;
31038   return 0;
31039 }
31040 _ACEOF
31041 rm -f conftest.$ac_objext conftest$ac_exeext
31042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31043   (eval $ac_link) 2>conftest.er1
31044   ac_status=$?
31045   grep -v '^ *+' conftest.er1 >conftest.err
31046   rm -f conftest.er1
31047   cat conftest.err >&5
31048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31049   (exit $ac_status); } &&
31050          { ac_try='test -z "$ac_c_werror_flag"
31051                          || test ! -s conftest.err'
31052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31053   (eval $ac_try) 2>&5
31054   ac_status=$?
31055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056   (exit $ac_status); }; } &&
31057          { ac_try='test -s conftest$ac_exeext'
31058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31059   (eval $ac_try) 2>&5
31060   ac_status=$?
31061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062   (exit $ac_status); }; }; then
31063   ol_cv_db_none=yes
31064 else
31065   echo "$as_me: failed program was:" >&5
31066 sed 's/^/| /' conftest.$ac_ext >&5
31067
31068 ol_cv_db_none=no
31069 fi
31070 rm -f conftest.err conftest.$ac_objext \
31071       conftest$ac_exeext conftest.$ac_ext
31072
31073         LIBS="$ol_LIBS"
31074
31075 fi
31076 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31077 echo "${ECHO_T}$ol_cv_db_none" >&6
31078
31079         if test $ol_cv_db_none = yes ; then
31080                 ol_cv_lib_db=yes
31081         fi
31082 fi
31083
31084
31085         if test "$ol_cv_lib_db" != no ; then
31086                 ol_cv_berkeley_db=yes
31087                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
31088 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
31089 if test "${ol_cv_berkeley_db_version+set}" = set; then
31090   echo $ECHO_N "(cached) $ECHO_C" >&6
31091 else
31092
31093         ol_LIBS="$LIBS"
31094         LIBS="$LTHREAD_LIBS $LIBS"
31095         if test $ol_cv_lib_db != yes ; then
31096                 LIBS="$ol_cv_lib_db $LIBS"
31097         fi
31098
31099         if test "$cross_compiling" = yes; then
31100   ol_cv_berkeley_db_version=cross
31101 else
31102   cat >conftest.$ac_ext <<_ACEOF
31103 /* confdefs.h.  */
31104 _ACEOF
31105 cat confdefs.h >>conftest.$ac_ext
31106 cat >>conftest.$ac_ext <<_ACEOF
31107 /* end confdefs.h.  */
31108
31109 #ifdef HAVE_DB_185_H
31110         choke me;
31111 #else
31112 #include <db.h>
31113 #endif
31114 #ifndef DB_VERSION_MAJOR
31115 # define DB_VERSION_MAJOR 1
31116 #endif
31117 #ifndef NULL
31118 #define NULL ((void *)0)
31119 #endif
31120 main()
31121 {
31122 #if DB_VERSION_MAJOR > 1
31123         char *version;
31124         int major, minor, patch;
31125
31126         version = db_version( &major, &minor, &patch );
31127
31128         if( major != DB_VERSION_MAJOR ||
31129                 minor != DB_VERSION_MINOR ||
31130                 patch != DB_VERSION_PATCH )
31131         {
31132                 printf("Berkeley DB version mismatch\n"
31133                         "\theader: %s\n\tlibrary: %s\n",
31134                         DB_VERSION_STRING, version);
31135                 return 1;
31136         }
31137 #endif
31138
31139         return 0;
31140 }
31141 _ACEOF
31142 rm -f conftest$ac_exeext
31143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31144   (eval $ac_link) 2>&5
31145   ac_status=$?
31146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31149   (eval $ac_try) 2>&5
31150   ac_status=$?
31151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31152   (exit $ac_status); }; }; then
31153   ol_cv_berkeley_db_version=yes
31154 else
31155   echo "$as_me: program exited with status $ac_status" >&5
31156 echo "$as_me: failed program was:" >&5
31157 sed 's/^/| /' conftest.$ac_ext >&5
31158
31159 ( exit $ac_status )
31160 ol_cv_berkeley_db_version=no
31161 fi
31162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31163 fi
31164
31165         LIBS="$ol_LIBS"
31166
31167 fi
31168 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
31169 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
31170
31171         if test $ol_cv_berkeley_db_version = no ; then
31172                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
31173 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
31174    { (exit 1); exit 1; }; }
31175         fi
31176
31177                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
31178 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
31179 if test "${ol_cv_berkeley_db_thread+set}" = set; then
31180   echo $ECHO_N "(cached) $ECHO_C" >&6
31181 else
31182
31183         ol_LIBS="$LIBS"
31184         LIBS="$LTHREAD_LIBS $LIBS"
31185         if test $ol_cv_lib_db != yes ; then
31186                 LIBS="$ol_cv_lib_db $LIBS"
31187         fi
31188
31189         if test "$cross_compiling" = yes; then
31190   ol_cv_berkeley_db_thread=cross
31191 else
31192   cat >conftest.$ac_ext <<_ACEOF
31193 /* confdefs.h.  */
31194 _ACEOF
31195 cat confdefs.h >>conftest.$ac_ext
31196 cat >>conftest.$ac_ext <<_ACEOF
31197 /* end confdefs.h.  */
31198
31199 #ifdef HAVE_DB_185_H
31200         choke me;
31201 #else
31202 #include <db.h>
31203 #endif
31204 #ifndef NULL
31205 #define NULL ((void *)0)
31206 #endif
31207 main()
31208 {
31209         int rc;
31210         u_int32_t flags = DB_CREATE |
31211 #ifdef DB_PRIVATE
31212                 DB_PRIVATE |
31213 #endif
31214                 DB_THREAD;
31215
31216 #if DB_VERSION_MAJOR > 2
31217         DB_ENV *env = NULL;
31218
31219         rc = db_env_create( &env, 0 );
31220
31221         flags |= DB_INIT_MPOOL;
31222 #ifdef DB_MPOOL_PRIVATE
31223         flags |= DB_MPOOL_PRIVATE;
31224 #endif
31225
31226         if( rc ) {
31227                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31228                 return rc;
31229         }
31230
31231 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
31232         rc = (env->open)( env, NULL, flags, 0 );
31233 #else
31234         rc = (env->open)( env, NULL, NULL, flags, 0 );
31235 #endif
31236
31237         if ( rc == 0 ) {
31238                 rc = env->close( env, 0 );
31239         }
31240
31241         if( rc ) {
31242                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31243                 return rc;
31244         }
31245
31246 #else
31247         DB_ENV env;
31248         memset( &env, '\0', sizeof(env) );
31249
31250         rc = db_appinit( NULL, NULL, &env, flags );
31251
31252         if( rc == 0 ) {
31253                 db_appexit( &env );
31254         }
31255
31256         unlink("__db_mpool.share");
31257         unlink("__db_lock.share");
31258 #endif
31259
31260         return rc;
31261 }
31262 _ACEOF
31263 rm -f conftest$ac_exeext
31264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31265   (eval $ac_link) 2>&5
31266   ac_status=$?
31267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31270   (eval $ac_try) 2>&5
31271   ac_status=$?
31272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273   (exit $ac_status); }; }; then
31274   ol_cv_berkeley_db_thread=yes
31275 else
31276   echo "$as_me: program exited with status $ac_status" >&5
31277 echo "$as_me: failed program was:" >&5
31278 sed 's/^/| /' conftest.$ac_ext >&5
31279
31280 ( exit $ac_status )
31281 ol_cv_berkeley_db_thread=no
31282 fi
31283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31284 fi
31285
31286         LIBS="$ol_LIBS"
31287
31288 fi
31289 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
31290 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
31291
31292         if test $ol_cv_berkeley_db_thread != no ; then
31293
31294 cat >>confdefs.h <<\_ACEOF
31295 #define HAVE_BERKELEY_DB_THREAD 1
31296 _ACEOF
31297
31298         fi
31299
31300         fi
31301 fi
31302
31303
31304         if test $ol_cv_berkeley_db = no ; then
31305                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
31306 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
31307    { (exit 1); exit 1; }; }
31308         fi
31309
31310
31311 cat >>confdefs.h <<\_ACEOF
31312 #define HAVE_BERKELEY_DB 1
31313 _ACEOF
31314
31315
31316                         if test $ol_cv_lib_db != yes ; then
31317                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
31318         fi
31319
31320         echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
31321 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31322 if test "${ol_cv_bdb_compat+set}" = set; then
31323   echo $ECHO_N "(cached) $ECHO_C" >&6
31324 else
31325
31326         cat >conftest.$ac_ext <<_ACEOF
31327 /* confdefs.h.  */
31328 _ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h.  */
31332
31333 #include <db.h>
31334
31335  /* this check could be improved */
31336 #ifndef DB_VERSION_MAJOR
31337 #       define DB_VERSION_MAJOR 1
31338 #endif
31339 #ifndef DB_VERSION_MINOR
31340 #       define DB_VERSION_MINOR 0
31341 #endif
31342
31343 /* require 4.2 or later, but exclude 4.3 */
31344 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2) && (DB_VERSION_MINOR !=3)
31345         __db_version_compat
31346 #endif
31347
31348 _ACEOF
31349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31350   $EGREP "__db_version_compat" >/dev/null 2>&1; then
31351   ol_cv_bdb_compat=yes
31352 else
31353   ol_cv_bdb_compat=no
31354 fi
31355 rm -f conftest*
31356
31357 fi
31358 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31359 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31360
31361
31362         if test $ol_cv_bdb_compat != yes ; then
31363                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31364 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31365    { (exit 1); exit 1; }; }
31366         fi
31367
31368         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31369
31370         ol_link_bdb=yes
31371 fi
31372
31373
31374 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31375         BUILD_LIBS_DYNAMIC=shared
31376
31377 cat >>confdefs.h <<\_ACEOF
31378 #define LDAP_LIBS_DYNAMIC 1
31379 _ACEOF
31380
31381         LTSTATIC=""
31382 else
31383         BUILD_LIBS_DYNAMIC=static
31384         LTSTATIC="-static"
31385 fi
31386
31387 if test $ol_enable_wrappers != no ; then
31388
31389 for ac_header in tcpd.h
31390 do
31391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31393   echo "$as_me:$LINENO: checking for $ac_header" >&5
31394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31396   echo $ECHO_N "(cached) $ECHO_C" >&6
31397 fi
31398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31400 else
31401   # Is the header compilable?
31402 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31404 cat >conftest.$ac_ext <<_ACEOF
31405 /* confdefs.h.  */
31406 _ACEOF
31407 cat confdefs.h >>conftest.$ac_ext
31408 cat >>conftest.$ac_ext <<_ACEOF
31409 /* end confdefs.h.  */
31410 $ac_includes_default
31411 #include <$ac_header>
31412 _ACEOF
31413 rm -f conftest.$ac_objext
31414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31415   (eval $ac_compile) 2>conftest.er1
31416   ac_status=$?
31417   grep -v '^ *+' conftest.er1 >conftest.err
31418   rm -f conftest.er1
31419   cat conftest.err >&5
31420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421   (exit $ac_status); } &&
31422          { ac_try='test -z "$ac_c_werror_flag"
31423                          || test ! -s conftest.err'
31424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31425   (eval $ac_try) 2>&5
31426   ac_status=$?
31427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428   (exit $ac_status); }; } &&
31429          { ac_try='test -s conftest.$ac_objext'
31430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31431   (eval $ac_try) 2>&5
31432   ac_status=$?
31433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434   (exit $ac_status); }; }; then
31435   ac_header_compiler=yes
31436 else
31437   echo "$as_me: failed program was:" >&5
31438 sed 's/^/| /' conftest.$ac_ext >&5
31439
31440 ac_header_compiler=no
31441 fi
31442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31444 echo "${ECHO_T}$ac_header_compiler" >&6
31445
31446 # Is the header present?
31447 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31449 cat >conftest.$ac_ext <<_ACEOF
31450 /* confdefs.h.  */
31451 _ACEOF
31452 cat confdefs.h >>conftest.$ac_ext
31453 cat >>conftest.$ac_ext <<_ACEOF
31454 /* end confdefs.h.  */
31455 #include <$ac_header>
31456 _ACEOF
31457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31458   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31459   ac_status=$?
31460   grep -v '^ *+' conftest.er1 >conftest.err
31461   rm -f conftest.er1
31462   cat conftest.err >&5
31463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464   (exit $ac_status); } >/dev/null; then
31465   if test -s conftest.err; then
31466     ac_cpp_err=$ac_c_preproc_warn_flag
31467     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31468   else
31469     ac_cpp_err=
31470   fi
31471 else
31472   ac_cpp_err=yes
31473 fi
31474 if test -z "$ac_cpp_err"; then
31475   ac_header_preproc=yes
31476 else
31477   echo "$as_me: failed program was:" >&5
31478 sed 's/^/| /' conftest.$ac_ext >&5
31479
31480   ac_header_preproc=no
31481 fi
31482 rm -f conftest.err conftest.$ac_ext
31483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31484 echo "${ECHO_T}$ac_header_preproc" >&6
31485
31486 # So?  What about this header?
31487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31488   yes:no: )
31489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31493     ac_header_preproc=yes
31494     ;;
31495   no:yes:* )
31496     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31498     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31499 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31500     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31502     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31503 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31506     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31508     (
31509       cat <<\_ASBOX
31510 ## --------------------------------------------- ##
31511 ## Report this to <http://www.openldap.org/its/> ##
31512 ## --------------------------------------------- ##
31513 _ASBOX
31514     ) |
31515       sed "s/^/$as_me: WARNING:     /" >&2
31516     ;;
31517 esac
31518 echo "$as_me:$LINENO: checking for $ac_header" >&5
31519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31521   echo $ECHO_N "(cached) $ECHO_C" >&6
31522 else
31523   eval "$as_ac_Header=\$ac_header_preproc"
31524 fi
31525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31527
31528 fi
31529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31530   cat >>confdefs.h <<_ACEOF
31531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31532 _ACEOF
31533
31534                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31535 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31536                 save_LIBS="$LIBS"
31537                 LIBS="$LIBS -lwrap"
31538                 cat >conftest.$ac_ext <<_ACEOF
31539 /* confdefs.h.  */
31540 _ACEOF
31541 cat confdefs.h >>conftest.$ac_ext
31542 cat >>conftest.$ac_ext <<_ACEOF
31543 /* end confdefs.h.  */
31544
31545 #include <tcpd.h>
31546 int allow_severity = 0;
31547 int deny_severity  = 0;
31548
31549 struct request_info *req;
31550
31551 int
31552 main ()
31553 {
31554
31555 hosts_access(req)
31556
31557   ;
31558   return 0;
31559 }
31560 _ACEOF
31561 rm -f conftest.$ac_objext conftest$ac_exeext
31562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31563   (eval $ac_link) 2>conftest.er1
31564   ac_status=$?
31565   grep -v '^ *+' conftest.er1 >conftest.err
31566   rm -f conftest.er1
31567   cat conftest.err >&5
31568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569   (exit $ac_status); } &&
31570          { ac_try='test -z "$ac_c_werror_flag"
31571                          || test ! -s conftest.err'
31572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31573   (eval $ac_try) 2>&5
31574   ac_status=$?
31575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31576   (exit $ac_status); }; } &&
31577          { ac_try='test -s conftest$ac_exeext'
31578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31579   (eval $ac_try) 2>&5
31580   ac_status=$?
31581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582   (exit $ac_status); }; }; then
31583   echo "$as_me:$LINENO: result: -lwrap" >&5
31584 echo "${ECHO_T}-lwrap" >&6
31585                 have_wrappers=yes
31586                 LIBS="$save_LIBS"
31587 else
31588   echo "$as_me: failed program was:" >&5
31589 sed 's/^/| /' conftest.$ac_ext >&5
31590
31591
31592                                 LIBS="$LIBS -lnsl"
31593                 cat >conftest.$ac_ext <<_ACEOF
31594 /* confdefs.h.  */
31595 _ACEOF
31596 cat confdefs.h >>conftest.$ac_ext
31597 cat >>conftest.$ac_ext <<_ACEOF
31598 /* end confdefs.h.  */
31599
31600 #include <tcpd.h>
31601 int allow_severity = 0;
31602 int deny_severity  = 0;
31603
31604 struct request_info *req;
31605
31606 int
31607 main ()
31608 {
31609
31610 hosts_access(req)
31611
31612   ;
31613   return 0;
31614 }
31615 _ACEOF
31616 rm -f conftest.$ac_objext conftest$ac_exeext
31617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31618   (eval $ac_link) 2>conftest.er1
31619   ac_status=$?
31620   grep -v '^ *+' conftest.er1 >conftest.err
31621   rm -f conftest.er1
31622   cat conftest.err >&5
31623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624   (exit $ac_status); } &&
31625          { ac_try='test -z "$ac_c_werror_flag"
31626                          || test ! -s conftest.err'
31627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31628   (eval $ac_try) 2>&5
31629   ac_status=$?
31630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631   (exit $ac_status); }; } &&
31632          { ac_try='test -s conftest$ac_exeext'
31633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31634   (eval $ac_try) 2>&5
31635   ac_status=$?
31636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637   (exit $ac_status); }; }; then
31638   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31639 echo "${ECHO_T}-lwrap -lnsl" >&6
31640                 have_wrappers=yes
31641                 LIBS="$save_LIBS -lnsl"
31642 else
31643   echo "$as_me: failed program was:" >&5
31644 sed 's/^/| /' conftest.$ac_ext >&5
31645
31646
31647                 echo "$as_me:$LINENO: result: no" >&5
31648 echo "${ECHO_T}no" >&6
31649                 have_wrappers=no
31650                 LIBS=$save_LIBS
31651 fi
31652 rm -f conftest.err conftest.$ac_objext \
31653       conftest$ac_exeext conftest.$ac_ext
31654 fi
31655 rm -f conftest.err conftest.$ac_objext \
31656       conftest$ac_exeext conftest.$ac_ext
31657 else
31658   have_wrappers=no
31659 fi
31660
31661 done
31662
31663
31664         if test $have_wrappers = yes ; then
31665
31666 cat >>confdefs.h <<\_ACEOF
31667 #define HAVE_TCPD 1
31668 _ACEOF
31669
31670                 WRAP_LIBS="-lwrap"
31671         elif test $ol_enable_wrappers = yes ; then
31672                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31673 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31674    { (exit 1); exit 1; }; }
31675         else
31676                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31677 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31678                 WRAP_LIBS=""
31679         fi
31680 fi
31681
31682 if test $ol_enable_syslog != no ; then
31683         echo "$as_me:$LINENO: checking for openlog" >&5
31684 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31685 if test "${ac_cv_func_openlog+set}" = set; then
31686   echo $ECHO_N "(cached) $ECHO_C" >&6
31687 else
31688   cat >conftest.$ac_ext <<_ACEOF
31689 /* confdefs.h.  */
31690 _ACEOF
31691 cat confdefs.h >>conftest.$ac_ext
31692 cat >>conftest.$ac_ext <<_ACEOF
31693 /* end confdefs.h.  */
31694 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31696 #define openlog innocuous_openlog
31697
31698 /* System header to define __stub macros and hopefully few prototypes,
31699     which can conflict with char openlog (); below.
31700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31701     <limits.h> exists even on freestanding compilers.  */
31702
31703 #ifdef __STDC__
31704 # include <limits.h>
31705 #else
31706 # include <assert.h>
31707 #endif
31708
31709 #undef openlog
31710
31711 /* Override any gcc2 internal prototype to avoid an error.  */
31712 #ifdef __cplusplus
31713 extern "C"
31714 {
31715 #endif
31716 /* We use char because int might match the return type of a gcc2
31717    builtin and then its argument prototype would still apply.  */
31718 char openlog ();
31719 /* The GNU C library defines this for functions which it implements
31720     to always fail with ENOSYS.  Some functions are actually named
31721     something starting with __ and the normal name is an alias.  */
31722 #if defined (__stub_openlog) || defined (__stub___openlog)
31723 choke me
31724 #else
31725 char (*f) () = openlog;
31726 #endif
31727 #ifdef __cplusplus
31728 }
31729 #endif
31730
31731 int
31732 main ()
31733 {
31734 return f != openlog;
31735   ;
31736   return 0;
31737 }
31738 _ACEOF
31739 rm -f conftest.$ac_objext conftest$ac_exeext
31740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31741   (eval $ac_link) 2>conftest.er1
31742   ac_status=$?
31743   grep -v '^ *+' conftest.er1 >conftest.err
31744   rm -f conftest.er1
31745   cat conftest.err >&5
31746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747   (exit $ac_status); } &&
31748          { ac_try='test -z "$ac_c_werror_flag"
31749                          || test ! -s conftest.err'
31750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31751   (eval $ac_try) 2>&5
31752   ac_status=$?
31753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754   (exit $ac_status); }; } &&
31755          { ac_try='test -s conftest$ac_exeext'
31756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31757   (eval $ac_try) 2>&5
31758   ac_status=$?
31759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760   (exit $ac_status); }; }; then
31761   ac_cv_func_openlog=yes
31762 else
31763   echo "$as_me: failed program was:" >&5
31764 sed 's/^/| /' conftest.$ac_ext >&5
31765
31766 ac_cv_func_openlog=no
31767 fi
31768 rm -f conftest.err conftest.$ac_objext \
31769       conftest$ac_exeext conftest.$ac_ext
31770 fi
31771 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
31772 echo "${ECHO_T}$ac_cv_func_openlog" >&6
31773
31774         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
31775                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
31776 echo "$as_me: error: could not find syslog" >&2;}
31777    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
31778         fi
31779         ol_enable_syslog=$ac_cv_func_openlog
31780 fi
31781
31782 ol_link_sql=no
31783 if test $ol_enable_sql != no ; then
31784
31785
31786 for ac_header in sql.h sqlext.h
31787 do
31788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31790   echo "$as_me:$LINENO: checking for $ac_header" >&5
31791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31793   echo $ECHO_N "(cached) $ECHO_C" >&6
31794 fi
31795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31797 else
31798   # Is the header compilable?
31799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31801 cat >conftest.$ac_ext <<_ACEOF
31802 /* confdefs.h.  */
31803 _ACEOF
31804 cat confdefs.h >>conftest.$ac_ext
31805 cat >>conftest.$ac_ext <<_ACEOF
31806 /* end confdefs.h.  */
31807 $ac_includes_default
31808 #include <$ac_header>
31809 _ACEOF
31810 rm -f conftest.$ac_objext
31811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31812   (eval $ac_compile) 2>conftest.er1
31813   ac_status=$?
31814   grep -v '^ *+' conftest.er1 >conftest.err
31815   rm -f conftest.er1
31816   cat conftest.err >&5
31817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818   (exit $ac_status); } &&
31819          { ac_try='test -z "$ac_c_werror_flag"
31820                          || test ! -s conftest.err'
31821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31822   (eval $ac_try) 2>&5
31823   ac_status=$?
31824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825   (exit $ac_status); }; } &&
31826          { ac_try='test -s conftest.$ac_objext'
31827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31828   (eval $ac_try) 2>&5
31829   ac_status=$?
31830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831   (exit $ac_status); }; }; then
31832   ac_header_compiler=yes
31833 else
31834   echo "$as_me: failed program was:" >&5
31835 sed 's/^/| /' conftest.$ac_ext >&5
31836
31837 ac_header_compiler=no
31838 fi
31839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31841 echo "${ECHO_T}$ac_header_compiler" >&6
31842
31843 # Is the header present?
31844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31846 cat >conftest.$ac_ext <<_ACEOF
31847 /* confdefs.h.  */
31848 _ACEOF
31849 cat confdefs.h >>conftest.$ac_ext
31850 cat >>conftest.$ac_ext <<_ACEOF
31851 /* end confdefs.h.  */
31852 #include <$ac_header>
31853 _ACEOF
31854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31855   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31856   ac_status=$?
31857   grep -v '^ *+' conftest.er1 >conftest.err
31858   rm -f conftest.er1
31859   cat conftest.err >&5
31860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861   (exit $ac_status); } >/dev/null; then
31862   if test -s conftest.err; then
31863     ac_cpp_err=$ac_c_preproc_warn_flag
31864     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31865   else
31866     ac_cpp_err=
31867   fi
31868 else
31869   ac_cpp_err=yes
31870 fi
31871 if test -z "$ac_cpp_err"; then
31872   ac_header_preproc=yes
31873 else
31874   echo "$as_me: failed program was:" >&5
31875 sed 's/^/| /' conftest.$ac_ext >&5
31876
31877   ac_header_preproc=no
31878 fi
31879 rm -f conftest.err conftest.$ac_ext
31880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31881 echo "${ECHO_T}$ac_header_preproc" >&6
31882
31883 # So?  What about this header?
31884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31885   yes:no: )
31886     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31890     ac_header_preproc=yes
31891     ;;
31892   no:yes:* )
31893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31895     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31896 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31897     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31899     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31900 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31903     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31905     (
31906       cat <<\_ASBOX
31907 ## --------------------------------------------- ##
31908 ## Report this to <http://www.openldap.org/its/> ##
31909 ## --------------------------------------------- ##
31910 _ASBOX
31911     ) |
31912       sed "s/^/$as_me: WARNING:     /" >&2
31913     ;;
31914 esac
31915 echo "$as_me:$LINENO: checking for $ac_header" >&5
31916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31918   echo $ECHO_N "(cached) $ECHO_C" >&6
31919 else
31920   eval "$as_ac_Header=\$ac_header_preproc"
31921 fi
31922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31924
31925 fi
31926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31927   cat >>confdefs.h <<_ACEOF
31928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31929 _ACEOF
31930
31931 else
31932
31933                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
31934 echo "$as_me: error: could not locate SQL headers" >&2;}
31935    { (exit 1); exit 1; }; }
31936
31937 fi
31938
31939 done
31940
31941
31942         sql_LIBS="$LIBS"
31943         LIBS="$LTHREAD_LIBS"
31944
31945         if test $ol_with_odbc = auto ; then
31946                 ol_with_odbc="iodbc unixodbc odbc32"
31947         fi
31948
31949         for odbc in $ol_with_odbc ; do
31950                 if test $ol_link_sql = no ; then
31951                         case $odbc in
31952                         iodbc)
31953                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
31954 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
31955 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
31956   echo $ECHO_N "(cached) $ECHO_C" >&6
31957 else
31958   ac_check_lib_save_LIBS=$LIBS
31959 LIBS="-liodbc  $LIBS"
31960 cat >conftest.$ac_ext <<_ACEOF
31961 /* confdefs.h.  */
31962 _ACEOF
31963 cat confdefs.h >>conftest.$ac_ext
31964 cat >>conftest.$ac_ext <<_ACEOF
31965 /* end confdefs.h.  */
31966
31967 /* Override any gcc2 internal prototype to avoid an error.  */
31968 #ifdef __cplusplus
31969 extern "C"
31970 #endif
31971 /* We use char because int might match the return type of a gcc2
31972    builtin and then its argument prototype would still apply.  */
31973 char SQLDriverConnect ();
31974 int
31975 main ()
31976 {
31977 SQLDriverConnect ();
31978   ;
31979   return 0;
31980 }
31981 _ACEOF
31982 rm -f conftest.$ac_objext conftest$ac_exeext
31983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31984   (eval $ac_link) 2>conftest.er1
31985   ac_status=$?
31986   grep -v '^ *+' conftest.er1 >conftest.err
31987   rm -f conftest.er1
31988   cat conftest.err >&5
31989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990   (exit $ac_status); } &&
31991          { ac_try='test -z "$ac_c_werror_flag"
31992                          || test ! -s conftest.err'
31993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31994   (eval $ac_try) 2>&5
31995   ac_status=$?
31996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997   (exit $ac_status); }; } &&
31998          { ac_try='test -s conftest$ac_exeext'
31999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32000   (eval $ac_try) 2>&5
32001   ac_status=$?
32002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003   (exit $ac_status); }; }; then
32004   ac_cv_lib_iodbc_SQLDriverConnect=yes
32005 else
32006   echo "$as_me: failed program was:" >&5
32007 sed 's/^/| /' conftest.$ac_ext >&5
32008
32009 ac_cv_lib_iodbc_SQLDriverConnect=no
32010 fi
32011 rm -f conftest.err conftest.$ac_objext \
32012       conftest$ac_exeext conftest.$ac_ext
32013 LIBS=$ac_check_lib_save_LIBS
32014 fi
32015 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
32016 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
32017 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
32018   have_iodbc=yes
32019 else
32020   have_iodbc=no
32021 fi
32022
32023                                 if test $have_iodbc = yes ; then
32024                                         ol_link_sql="-liodbc"
32025                                 fi
32026                                 ;;
32027
32028                         unixodbc)
32029                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
32030 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
32031 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
32032   echo $ECHO_N "(cached) $ECHO_C" >&6
32033 else
32034   ac_check_lib_save_LIBS=$LIBS
32035 LIBS="-lodbc  $LIBS"
32036 cat >conftest.$ac_ext <<_ACEOF
32037 /* confdefs.h.  */
32038 _ACEOF
32039 cat confdefs.h >>conftest.$ac_ext
32040 cat >>conftest.$ac_ext <<_ACEOF
32041 /* end confdefs.h.  */
32042
32043 /* Override any gcc2 internal prototype to avoid an error.  */
32044 #ifdef __cplusplus
32045 extern "C"
32046 #endif
32047 /* We use char because int might match the return type of a gcc2
32048    builtin and then its argument prototype would still apply.  */
32049 char SQLDriverConnect ();
32050 int
32051 main ()
32052 {
32053 SQLDriverConnect ();
32054   ;
32055   return 0;
32056 }
32057 _ACEOF
32058 rm -f conftest.$ac_objext conftest$ac_exeext
32059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32060   (eval $ac_link) 2>conftest.er1
32061   ac_status=$?
32062   grep -v '^ *+' conftest.er1 >conftest.err
32063   rm -f conftest.er1
32064   cat conftest.err >&5
32065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066   (exit $ac_status); } &&
32067          { ac_try='test -z "$ac_c_werror_flag"
32068                          || test ! -s conftest.err'
32069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32070   (eval $ac_try) 2>&5
32071   ac_status=$?
32072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073   (exit $ac_status); }; } &&
32074          { ac_try='test -s conftest$ac_exeext'
32075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32076   (eval $ac_try) 2>&5
32077   ac_status=$?
32078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079   (exit $ac_status); }; }; then
32080   ac_cv_lib_odbc_SQLDriverConnect=yes
32081 else
32082   echo "$as_me: failed program was:" >&5
32083 sed 's/^/| /' conftest.$ac_ext >&5
32084
32085 ac_cv_lib_odbc_SQLDriverConnect=no
32086 fi
32087 rm -f conftest.err conftest.$ac_objext \
32088       conftest$ac_exeext conftest.$ac_ext
32089 LIBS=$ac_check_lib_save_LIBS
32090 fi
32091 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
32092 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
32093 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
32094   have_odbc=yes
32095 else
32096   have_odbc=no
32097 fi
32098
32099                                 if test $have_odbc = yes ; then
32100                                         ol_link_sql="-lodbc"
32101                                 fi
32102                                 ;;
32103
32104                         odbc32)
32105                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
32106 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6
32107 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
32108   echo $ECHO_N "(cached) $ECHO_C" >&6
32109 else
32110   ac_check_lib_save_LIBS=$LIBS
32111 LIBS="-lodbc32  $LIBS"
32112 cat >conftest.$ac_ext <<_ACEOF
32113 /* confdefs.h.  */
32114 _ACEOF
32115 cat confdefs.h >>conftest.$ac_ext
32116 cat >>conftest.$ac_ext <<_ACEOF
32117 /* end confdefs.h.  */
32118
32119 /* Override any gcc2 internal prototype to avoid an error.  */
32120 #ifdef __cplusplus
32121 extern "C"
32122 #endif
32123 /* We use char because int might match the return type of a gcc2
32124    builtin and then its argument prototype would still apply.  */
32125 char SQLDriverConnect ();
32126 int
32127 main ()
32128 {
32129 SQLDriverConnect ();
32130   ;
32131   return 0;
32132 }
32133 _ACEOF
32134 rm -f conftest.$ac_objext conftest$ac_exeext
32135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32136   (eval $ac_link) 2>conftest.er1
32137   ac_status=$?
32138   grep -v '^ *+' conftest.er1 >conftest.err
32139   rm -f conftest.er1
32140   cat conftest.err >&5
32141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142   (exit $ac_status); } &&
32143          { ac_try='test -z "$ac_c_werror_flag"
32144                          || test ! -s conftest.err'
32145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32146   (eval $ac_try) 2>&5
32147   ac_status=$?
32148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149   (exit $ac_status); }; } &&
32150          { ac_try='test -s conftest$ac_exeext'
32151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32152   (eval $ac_try) 2>&5
32153   ac_status=$?
32154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155   (exit $ac_status); }; }; then
32156   ac_cv_lib_odbc32_SQLDriverConnect=yes
32157 else
32158   echo "$as_me: failed program was:" >&5
32159 sed 's/^/| /' conftest.$ac_ext >&5
32160
32161 ac_cv_lib_odbc32_SQLDriverConnect=no
32162 fi
32163 rm -f conftest.err conftest.$ac_objext \
32164       conftest$ac_exeext conftest.$ac_ext
32165 LIBS=$ac_check_lib_save_LIBS
32166 fi
32167 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
32168 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6
32169 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
32170   have_odbc32=yes
32171 else
32172   have_odbc32=no
32173 fi
32174
32175                                 if test $have_odbc32 = yes ; then
32176                                         ol_link_sql="-lodbc32"
32177                                 fi
32178                                 ;;
32179
32180                         *)
32181                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
32182 echo "$as_me: error: unknown ODBC library" >&2;}
32183    { (exit 1); exit 1; }; }
32184                                 ;;
32185                         esac
32186                 fi
32187         done
32188
32189         LIBS="$sql_LIBS"
32190
32191         if test $ol_link_sql != no ; then
32192                 SLAPD_SQL_LIBS="$ol_link_sql"
32193
32194         elif test $ol_enable_sql != auto ; then
32195                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
32196 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
32197    { (exit 1); exit 1; }; }
32198         fi
32199 fi
32200
32201 ol_link_ndb=no
32202 if test $ol_enable_ndb != no ; then
32203         # Extract the first word of "mysql_config", so it can be a program name with args.
32204 set dummy mysql_config; ac_word=$2
32205 echo "$as_me:$LINENO: checking for $ac_word" >&5
32206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32207 if test "${ac_cv_prog_MYSQL+set}" = set; then
32208   echo $ECHO_N "(cached) $ECHO_C" >&6
32209 else
32210   if test -n "$MYSQL"; then
32211   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
32212 else
32213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32214 for as_dir in $PATH
32215 do
32216   IFS=$as_save_IFS
32217   test -z "$as_dir" && as_dir=.
32218   for ac_exec_ext in '' $ac_executable_extensions; do
32219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32220     ac_cv_prog_MYSQL="yes"
32221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32222     break 2
32223   fi
32224 done
32225 done
32226
32227 fi
32228 fi
32229 MYSQL=$ac_cv_prog_MYSQL
32230 if test -n "$MYSQL"; then
32231   echo "$as_me:$LINENO: result: $MYSQL" >&5
32232 echo "${ECHO_T}$MYSQL" >&6
32233 else
32234   echo "$as_me:$LINENO: result: no" >&5
32235 echo "${ECHO_T}no" >&6
32236 fi
32237
32238         if test "$MYSQL" != yes ; then
32239                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
32240 echo "$as_me: error: could not locate mysql_config" >&2;}
32241    { (exit 1); exit 1; }; }
32242         fi
32243
32244         SQL_INC=`mysql_config --include`
32245         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
32246
32247         SQL_LIB=`mysql_config --libs_r`
32248         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lmysys -lmystrings -lstdc++"
32249
32250         if test "$ol_enable_ndb" = yes ; then
32251                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
32252         fi
32253 fi
32254
32255 ol_icu=no
32256
32257 for ac_header in unicode/utypes.h
32258 do
32259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32261   echo "$as_me:$LINENO: checking for $ac_header" >&5
32262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32264   echo $ECHO_N "(cached) $ECHO_C" >&6
32265 fi
32266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32268 else
32269   # Is the header compilable?
32270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32272 cat >conftest.$ac_ext <<_ACEOF
32273 /* confdefs.h.  */
32274 _ACEOF
32275 cat confdefs.h >>conftest.$ac_ext
32276 cat >>conftest.$ac_ext <<_ACEOF
32277 /* end confdefs.h.  */
32278 $ac_includes_default
32279 #include <$ac_header>
32280 _ACEOF
32281 rm -f conftest.$ac_objext
32282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32283   (eval $ac_compile) 2>conftest.er1
32284   ac_status=$?
32285   grep -v '^ *+' conftest.er1 >conftest.err
32286   rm -f conftest.er1
32287   cat conftest.err >&5
32288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289   (exit $ac_status); } &&
32290          { ac_try='test -z "$ac_c_werror_flag"
32291                          || test ! -s conftest.err'
32292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32293   (eval $ac_try) 2>&5
32294   ac_status=$?
32295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296   (exit $ac_status); }; } &&
32297          { ac_try='test -s conftest.$ac_objext'
32298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32299   (eval $ac_try) 2>&5
32300   ac_status=$?
32301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302   (exit $ac_status); }; }; then
32303   ac_header_compiler=yes
32304 else
32305   echo "$as_me: failed program was:" >&5
32306 sed 's/^/| /' conftest.$ac_ext >&5
32307
32308 ac_header_compiler=no
32309 fi
32310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32312 echo "${ECHO_T}$ac_header_compiler" >&6
32313
32314 # Is the header present?
32315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32317 cat >conftest.$ac_ext <<_ACEOF
32318 /* confdefs.h.  */
32319 _ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h.  */
32323 #include <$ac_header>
32324 _ACEOF
32325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32326   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32327   ac_status=$?
32328   grep -v '^ *+' conftest.er1 >conftest.err
32329   rm -f conftest.er1
32330   cat conftest.err >&5
32331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332   (exit $ac_status); } >/dev/null; then
32333   if test -s conftest.err; then
32334     ac_cpp_err=$ac_c_preproc_warn_flag
32335     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32336   else
32337     ac_cpp_err=
32338   fi
32339 else
32340   ac_cpp_err=yes
32341 fi
32342 if test -z "$ac_cpp_err"; then
32343   ac_header_preproc=yes
32344 else
32345   echo "$as_me: failed program was:" >&5
32346 sed 's/^/| /' conftest.$ac_ext >&5
32347
32348   ac_header_preproc=no
32349 fi
32350 rm -f conftest.err conftest.$ac_ext
32351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32352 echo "${ECHO_T}$ac_header_preproc" >&6
32353
32354 # So?  What about this header?
32355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32356   yes:no: )
32357     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32361     ac_header_preproc=yes
32362     ;;
32363   no:yes:* )
32364     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32366     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32367 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32368     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32370     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32371 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32374     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32376     (
32377       cat <<\_ASBOX
32378 ## --------------------------------------------- ##
32379 ## Report this to <http://www.openldap.org/its/> ##
32380 ## --------------------------------------------- ##
32381 _ASBOX
32382     ) |
32383       sed "s/^/$as_me: WARNING:     /" >&2
32384     ;;
32385 esac
32386 echo "$as_me:$LINENO: checking for $ac_header" >&5
32387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32389   echo $ECHO_N "(cached) $ECHO_C" >&6
32390 else
32391   eval "$as_ac_Header=\$ac_header_preproc"
32392 fi
32393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32395
32396 fi
32397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32398   cat >>confdefs.h <<_ACEOF
32399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32400 _ACEOF
32401
32402 fi
32403
32404 done
32405
32406 if test $ac_cv_header_unicode_utypes_h = yes ; then
32407                 OL_ICULIBS="-licuuc -licudata"
32408
32409         echo "$as_me:$LINENO: checking for ICU libraries" >&5
32410 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
32411 if test "${ol_cv_lib_icu+set}" = set; then
32412   echo $ECHO_N "(cached) $ECHO_C" >&6
32413 else
32414
32415                 ol_LIBS="$LIBS"
32416                 LIBS="$OL_ICULIBS $LIBS"
32417                 cat >conftest.$ac_ext <<_ACEOF
32418 /* confdefs.h.  */
32419 _ACEOF
32420 cat confdefs.h >>conftest.$ac_ext
32421 cat >>conftest.$ac_ext <<_ACEOF
32422 /* end confdefs.h.  */
32423
32424 #include <unicode/utypes.h>
32425
32426 int
32427 main ()
32428 {
32429
32430 (void) u_errorName(0);
32431
32432   ;
32433   return 0;
32434 }
32435 _ACEOF
32436 rm -f conftest.$ac_objext conftest$ac_exeext
32437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32438   (eval $ac_link) 2>conftest.er1
32439   ac_status=$?
32440   grep -v '^ *+' conftest.er1 >conftest.err
32441   rm -f conftest.er1
32442   cat conftest.err >&5
32443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444   (exit $ac_status); } &&
32445          { ac_try='test -z "$ac_c_werror_flag"
32446                          || test ! -s conftest.err'
32447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32448   (eval $ac_try) 2>&5
32449   ac_status=$?
32450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451   (exit $ac_status); }; } &&
32452          { ac_try='test -s conftest$ac_exeext'
32453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32454   (eval $ac_try) 2>&5
32455   ac_status=$?
32456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457   (exit $ac_status); }; }; then
32458   ol_cv_lib_icu=yes
32459 else
32460   echo "$as_me: failed program was:" >&5
32461 sed 's/^/| /' conftest.$ac_ext >&5
32462
32463 ol_cv_lib_icu=no
32464 fi
32465 rm -f conftest.err conftest.$ac_objext \
32466       conftest$ac_exeext conftest.$ac_ext
32467                 LIBS="$ol_LIBS"
32468
32469 fi
32470 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32471 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32472
32473         if test $ol_cv_lib_icu != no ; then
32474                 ol_icu="$OL_ICULIBS"
32475
32476 cat >>confdefs.h <<\_ACEOF
32477 #define HAVE_ICU 1
32478 _ACEOF
32479
32480         fi
32481 fi
32482
32483 if test "$ol_icu" = no ; then
32484         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32485 echo "$as_me: WARNING: ICU not available" >&2;}
32486 else
32487         ICU_LIBS="$ol_icu"
32488 fi
32489 WITH_SASL=no
32490 ol_link_sasl=no
32491 ol_link_spasswd=no
32492 if test $ol_with_cyrus_sasl != no ; then
32493
32494
32495 for ac_header in sasl/sasl.h sasl.h
32496 do
32497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32499   echo "$as_me:$LINENO: checking for $ac_header" >&5
32500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32502   echo $ECHO_N "(cached) $ECHO_C" >&6
32503 fi
32504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32506 else
32507   # Is the header compilable?
32508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32510 cat >conftest.$ac_ext <<_ACEOF
32511 /* confdefs.h.  */
32512 _ACEOF
32513 cat confdefs.h >>conftest.$ac_ext
32514 cat >>conftest.$ac_ext <<_ACEOF
32515 /* end confdefs.h.  */
32516 $ac_includes_default
32517 #include <$ac_header>
32518 _ACEOF
32519 rm -f conftest.$ac_objext
32520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32521   (eval $ac_compile) 2>conftest.er1
32522   ac_status=$?
32523   grep -v '^ *+' conftest.er1 >conftest.err
32524   rm -f conftest.er1
32525   cat conftest.err >&5
32526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527   (exit $ac_status); } &&
32528          { ac_try='test -z "$ac_c_werror_flag"
32529                          || test ! -s conftest.err'
32530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32531   (eval $ac_try) 2>&5
32532   ac_status=$?
32533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534   (exit $ac_status); }; } &&
32535          { ac_try='test -s conftest.$ac_objext'
32536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32537   (eval $ac_try) 2>&5
32538   ac_status=$?
32539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540   (exit $ac_status); }; }; then
32541   ac_header_compiler=yes
32542 else
32543   echo "$as_me: failed program was:" >&5
32544 sed 's/^/| /' conftest.$ac_ext >&5
32545
32546 ac_header_compiler=no
32547 fi
32548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32550 echo "${ECHO_T}$ac_header_compiler" >&6
32551
32552 # Is the header present?
32553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32555 cat >conftest.$ac_ext <<_ACEOF
32556 /* confdefs.h.  */
32557 _ACEOF
32558 cat confdefs.h >>conftest.$ac_ext
32559 cat >>conftest.$ac_ext <<_ACEOF
32560 /* end confdefs.h.  */
32561 #include <$ac_header>
32562 _ACEOF
32563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32565   ac_status=$?
32566   grep -v '^ *+' conftest.er1 >conftest.err
32567   rm -f conftest.er1
32568   cat conftest.err >&5
32569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32570   (exit $ac_status); } >/dev/null; then
32571   if test -s conftest.err; then
32572     ac_cpp_err=$ac_c_preproc_warn_flag
32573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32574   else
32575     ac_cpp_err=
32576   fi
32577 else
32578   ac_cpp_err=yes
32579 fi
32580 if test -z "$ac_cpp_err"; then
32581   ac_header_preproc=yes
32582 else
32583   echo "$as_me: failed program was:" >&5
32584 sed 's/^/| /' conftest.$ac_ext >&5
32585
32586   ac_header_preproc=no
32587 fi
32588 rm -f conftest.err conftest.$ac_ext
32589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32590 echo "${ECHO_T}$ac_header_preproc" >&6
32591
32592 # So?  What about this header?
32593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32594   yes:no: )
32595     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32599     ac_header_preproc=yes
32600     ;;
32601   no:yes:* )
32602     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32604     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32605 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32606     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32608     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32609 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32612     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32614     (
32615       cat <<\_ASBOX
32616 ## --------------------------------------------- ##
32617 ## Report this to <http://www.openldap.org/its/> ##
32618 ## --------------------------------------------- ##
32619 _ASBOX
32620     ) |
32621       sed "s/^/$as_me: WARNING:     /" >&2
32622     ;;
32623 esac
32624 echo "$as_me:$LINENO: checking for $ac_header" >&5
32625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32627   echo $ECHO_N "(cached) $ECHO_C" >&6
32628 else
32629   eval "$as_ac_Header=\$ac_header_preproc"
32630 fi
32631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32633
32634 fi
32635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32636   cat >>confdefs.h <<_ACEOF
32637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32638 _ACEOF
32639
32640 fi
32641
32642 done
32643
32644
32645         if test $ac_cv_header_sasl_sasl_h = yes ||
32646            test $ac_cv_header_sasl_h = yes; then
32647                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32648 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32649 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32650   echo $ECHO_N "(cached) $ECHO_C" >&6
32651 else
32652   ac_check_lib_save_LIBS=$LIBS
32653 LIBS="-lsasl2  $LIBS"
32654 cat >conftest.$ac_ext <<_ACEOF
32655 /* confdefs.h.  */
32656 _ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h.  */
32660
32661 /* Override any gcc2 internal prototype to avoid an error.  */
32662 #ifdef __cplusplus
32663 extern "C"
32664 #endif
32665 /* We use char because int might match the return type of a gcc2
32666    builtin and then its argument prototype would still apply.  */
32667 char sasl_client_init ();
32668 int
32669 main ()
32670 {
32671 sasl_client_init ();
32672   ;
32673   return 0;
32674 }
32675 _ACEOF
32676 rm -f conftest.$ac_objext conftest$ac_exeext
32677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32678   (eval $ac_link) 2>conftest.er1
32679   ac_status=$?
32680   grep -v '^ *+' conftest.er1 >conftest.err
32681   rm -f conftest.er1
32682   cat conftest.err >&5
32683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684   (exit $ac_status); } &&
32685          { ac_try='test -z "$ac_c_werror_flag"
32686                          || test ! -s conftest.err'
32687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32688   (eval $ac_try) 2>&5
32689   ac_status=$?
32690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691   (exit $ac_status); }; } &&
32692          { ac_try='test -s conftest$ac_exeext'
32693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32694   (eval $ac_try) 2>&5
32695   ac_status=$?
32696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697   (exit $ac_status); }; }; then
32698   ac_cv_lib_sasl2_sasl_client_init=yes
32699 else
32700   echo "$as_me: failed program was:" >&5
32701 sed 's/^/| /' conftest.$ac_ext >&5
32702
32703 ac_cv_lib_sasl2_sasl_client_init=no
32704 fi
32705 rm -f conftest.err conftest.$ac_objext \
32706       conftest$ac_exeext conftest.$ac_ext
32707 LIBS=$ac_check_lib_save_LIBS
32708 fi
32709 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32710 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32711 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32712   ol_link_sasl="-lsasl2"
32713 else
32714   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32715 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32716 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32717   echo $ECHO_N "(cached) $ECHO_C" >&6
32718 else
32719   ac_check_lib_save_LIBS=$LIBS
32720 LIBS="-lsasl  $LIBS"
32721 cat >conftest.$ac_ext <<_ACEOF
32722 /* confdefs.h.  */
32723 _ACEOF
32724 cat confdefs.h >>conftest.$ac_ext
32725 cat >>conftest.$ac_ext <<_ACEOF
32726 /* end confdefs.h.  */
32727
32728 /* Override any gcc2 internal prototype to avoid an error.  */
32729 #ifdef __cplusplus
32730 extern "C"
32731 #endif
32732 /* We use char because int might match the return type of a gcc2
32733    builtin and then its argument prototype would still apply.  */
32734 char sasl_client_init ();
32735 int
32736 main ()
32737 {
32738 sasl_client_init ();
32739   ;
32740   return 0;
32741 }
32742 _ACEOF
32743 rm -f conftest.$ac_objext conftest$ac_exeext
32744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32745   (eval $ac_link) 2>conftest.er1
32746   ac_status=$?
32747   grep -v '^ *+' conftest.er1 >conftest.err
32748   rm -f conftest.er1
32749   cat conftest.err >&5
32750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32751   (exit $ac_status); } &&
32752          { ac_try='test -z "$ac_c_werror_flag"
32753                          || test ! -s conftest.err'
32754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32755   (eval $ac_try) 2>&5
32756   ac_status=$?
32757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758   (exit $ac_status); }; } &&
32759          { ac_try='test -s conftest$ac_exeext'
32760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32761   (eval $ac_try) 2>&5
32762   ac_status=$?
32763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764   (exit $ac_status); }; }; then
32765   ac_cv_lib_sasl_sasl_client_init=yes
32766 else
32767   echo "$as_me: failed program was:" >&5
32768 sed 's/^/| /' conftest.$ac_ext >&5
32769
32770 ac_cv_lib_sasl_sasl_client_init=no
32771 fi
32772 rm -f conftest.err conftest.$ac_objext \
32773       conftest$ac_exeext conftest.$ac_ext
32774 LIBS=$ac_check_lib_save_LIBS
32775 fi
32776 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32777 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32778 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32779   ol_link_sasl="-lsasl"
32780 fi
32781
32782 fi
32783
32784         fi
32785
32786         if test $ol_link_sasl = no ; then
32787                 if test $ol_with_cyrus_sasl != auto ; then
32788                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32789 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32790    { (exit 1); exit 1; }; }
32791                 else
32792                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32793 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32794                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32795 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32796                         if test $ol_link_tls = no ; then
32797                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32798 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32799                         fi
32800                 fi
32801         else
32802                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32803 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32804 if test "${ol_cv_sasl_compat+set}" = set; then
32805   echo $ECHO_N "(cached) $ECHO_C" >&6
32806 else
32807
32808         cat >conftest.$ac_ext <<_ACEOF
32809 /* confdefs.h.  */
32810 _ACEOF
32811 cat confdefs.h >>conftest.$ac_ext
32812 cat >>conftest.$ac_ext <<_ACEOF
32813 /* end confdefs.h.  */
32814
32815 #ifdef HAVE_SASL_SASL_H
32816 #include <sasl/sasl.h>
32817 #else
32818 #include <sasl.h>
32819 #endif
32820
32821 /* Require 2.1.15+ */
32822 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
32823         char *__sasl_compat = "2.2+ or better okay (we guess)";
32824 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
32825         && SASL_VERSION_STEP >=15
32826         char *__sasl_compat = "2.1.15+ or better okay";
32827 #endif
32828
32829 _ACEOF
32830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32831   $EGREP "__sasl_compat" >/dev/null 2>&1; then
32832   ol_cv_sasl_compat=yes
32833 else
32834   ol_cv_sasl_compat=no
32835 fi
32836 rm -f conftest*
32837
32838 fi
32839 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32840 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32841
32842                 if test $ol_cv_sasl_compat = no ; then
32843                         ol_link_sasl=no
32844                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32845 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32846    { (exit 1); exit 1; }; }
32847                 fi
32848
32849
32850 cat >>confdefs.h <<\_ACEOF
32851 #define HAVE_CYRUS_SASL 1
32852 _ACEOF
32853
32854                 SASL_LIBS="$ol_link_sasl"
32855                 if test $ol_enable_spasswd != no ; then
32856                         ol_link_spasswd=yes
32857                 fi
32858
32859                 ac_save_LIBS="$LIBS"
32860                 LIBS="$LIBS $ol_link_sasl"
32861                 echo "$as_me:$LINENO: checking for sasl_version" >&5
32862 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32863 if test "${ac_cv_func_sasl_version+set}" = set; then
32864   echo $ECHO_N "(cached) $ECHO_C" >&6
32865 else
32866   cat >conftest.$ac_ext <<_ACEOF
32867 /* confdefs.h.  */
32868 _ACEOF
32869 cat confdefs.h >>conftest.$ac_ext
32870 cat >>conftest.$ac_ext <<_ACEOF
32871 /* end confdefs.h.  */
32872 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
32873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32874 #define sasl_version innocuous_sasl_version
32875
32876 /* System header to define __stub macros and hopefully few prototypes,
32877     which can conflict with char sasl_version (); below.
32878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32879     <limits.h> exists even on freestanding compilers.  */
32880
32881 #ifdef __STDC__
32882 # include <limits.h>
32883 #else
32884 # include <assert.h>
32885 #endif
32886
32887 #undef sasl_version
32888
32889 /* Override any gcc2 internal prototype to avoid an error.  */
32890 #ifdef __cplusplus
32891 extern "C"
32892 {
32893 #endif
32894 /* We use char because int might match the return type of a gcc2
32895    builtin and then its argument prototype would still apply.  */
32896 char sasl_version ();
32897 /* The GNU C library defines this for functions which it implements
32898     to always fail with ENOSYS.  Some functions are actually named
32899     something starting with __ and the normal name is an alias.  */
32900 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
32901 choke me
32902 #else
32903 char (*f) () = sasl_version;
32904 #endif
32905 #ifdef __cplusplus
32906 }
32907 #endif
32908
32909 int
32910 main ()
32911 {
32912 return f != sasl_version;
32913   ;
32914   return 0;
32915 }
32916 _ACEOF
32917 rm -f conftest.$ac_objext conftest$ac_exeext
32918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32919   (eval $ac_link) 2>conftest.er1
32920   ac_status=$?
32921   grep -v '^ *+' conftest.er1 >conftest.err
32922   rm -f conftest.er1
32923   cat conftest.err >&5
32924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32925   (exit $ac_status); } &&
32926          { ac_try='test -z "$ac_c_werror_flag"
32927                          || test ! -s conftest.err'
32928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32929   (eval $ac_try) 2>&5
32930   ac_status=$?
32931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932   (exit $ac_status); }; } &&
32933          { ac_try='test -s conftest$ac_exeext'
32934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32935   (eval $ac_try) 2>&5
32936   ac_status=$?
32937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938   (exit $ac_status); }; }; then
32939   ac_cv_func_sasl_version=yes
32940 else
32941   echo "$as_me: failed program was:" >&5
32942 sed 's/^/| /' conftest.$ac_ext >&5
32943
32944 ac_cv_func_sasl_version=no
32945 fi
32946 rm -f conftest.err conftest.$ac_objext \
32947       conftest$ac_exeext conftest.$ac_ext
32948 fi
32949 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
32950 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
32951 if test $ac_cv_func_sasl_version = yes; then
32952
32953 cat >>confdefs.h <<\_ACEOF
32954 #define HAVE_SASL_VERSION 1
32955 _ACEOF
32956
32957 fi
32958
32959                 LIBS="$ac_save_LIBS"
32960
32961                 WITH_SASL=yes
32962         fi
32963
32964 else
32965         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32966 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32967         if test $ol_link_tls = no ; then
32968                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32969 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32970         fi
32971 fi
32972
32973 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
32974         dev=no
32975         if test -r /dev/urandom ; then
32976                 dev="/dev/urandom";
32977         elif test -r /idev/urandom ; then
32978                 dev="/idev/urandom";
32979         elif test -r /dev/srandom ; then
32980                 dev="/dev/srandom";
32981         elif test -r /dev/random ; then
32982                 dev="/dev/random";
32983         elif test -r /idev/random ; then
32984                 dev="/idev/random";
32985         fi
32986
32987         if test $dev != no ; then
32988
32989 cat >>confdefs.h <<_ACEOF
32990 #define URANDOM_DEVICE "$dev"
32991 _ACEOF
32992
32993         fi
32994 fi
32995
32996 ol_link_fetch=no
32997 if test $ol_with_fetch != no ; then
32998         ol_LIBS=$LIBS
32999 LIBS="-lfetch -lcom_err $LIBS"
33000 echo "$as_me:$LINENO: checking fetch(3) library" >&5
33001 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
33002 if test "${ol_cv_lib_fetch+set}" = set; then
33003   echo $ECHO_N "(cached) $ECHO_C" >&6
33004 else
33005
33006         cat >conftest.$ac_ext <<_ACEOF
33007 /* confdefs.h.  */
33008 _ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h.  */
33012
33013 #include <sys/param.h>
33014 #include <stdio.h>
33015 #include <fetch.h>
33016 int
33017 main ()
33018 {
33019 struct url *u = fetchParseURL("file:///");
33020   ;
33021   return 0;
33022 }
33023 _ACEOF
33024 rm -f conftest.$ac_objext conftest$ac_exeext
33025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33026   (eval $ac_link) 2>conftest.er1
33027   ac_status=$?
33028   grep -v '^ *+' conftest.er1 >conftest.err
33029   rm -f conftest.er1
33030   cat conftest.err >&5
33031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33032   (exit $ac_status); } &&
33033          { ac_try='test -z "$ac_c_werror_flag"
33034                          || test ! -s conftest.err'
33035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33036   (eval $ac_try) 2>&5
33037   ac_status=$?
33038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33039   (exit $ac_status); }; } &&
33040          { ac_try='test -s conftest$ac_exeext'
33041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33042   (eval $ac_try) 2>&5
33043   ac_status=$?
33044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33045   (exit $ac_status); }; }; then
33046   ol_cv_lib_fetch=yes
33047 else
33048   echo "$as_me: failed program was:" >&5
33049 sed 's/^/| /' conftest.$ac_ext >&5
33050
33051 ol_cv_lib_fetch=no
33052 fi
33053 rm -f conftest.err conftest.$ac_objext \
33054       conftest$ac_exeext conftest.$ac_ext
33055 fi
33056 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
33057 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
33058 LIBS=$ol_LIBS
33059 if test $ol_cv_lib_fetch != no ; then
33060         ol_link_fetch="-lfetch -lcom_err"
33061
33062 cat >>confdefs.h <<\_ACEOF
33063 #define HAVE_FETCH 1
33064 _ACEOF
33065
33066 fi
33067
33068
33069         if test $ol_cv_lib_fetch != no ; then
33070                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
33071                 ol_link_fetch=freebsd
33072
33073         elif test $ol_with_fetch != auto ; then
33074                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
33075 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
33076    { (exit 1); exit 1; }; }
33077         fi
33078 fi
33079
33080 if test $ol_enable_crypt != no ; then
33081         save_LIBS="$LIBS"
33082         LIBS="$TLS_LIBS $LIBS"
33083
33084         echo "$as_me:$LINENO: checking for crypt" >&5
33085 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
33086 if test "${ac_cv_func_crypt+set}" = set; then
33087   echo $ECHO_N "(cached) $ECHO_C" >&6
33088 else
33089   cat >conftest.$ac_ext <<_ACEOF
33090 /* confdefs.h.  */
33091 _ACEOF
33092 cat confdefs.h >>conftest.$ac_ext
33093 cat >>conftest.$ac_ext <<_ACEOF
33094 /* end confdefs.h.  */
33095 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
33096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33097 #define crypt innocuous_crypt
33098
33099 /* System header to define __stub macros and hopefully few prototypes,
33100     which can conflict with char crypt (); below.
33101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33102     <limits.h> exists even on freestanding compilers.  */
33103
33104 #ifdef __STDC__
33105 # include <limits.h>
33106 #else
33107 # include <assert.h>
33108 #endif
33109
33110 #undef crypt
33111
33112 /* Override any gcc2 internal prototype to avoid an error.  */
33113 #ifdef __cplusplus
33114 extern "C"
33115 {
33116 #endif
33117 /* We use char because int might match the return type of a gcc2
33118    builtin and then its argument prototype would still apply.  */
33119 char crypt ();
33120 /* The GNU C library defines this for functions which it implements
33121     to always fail with ENOSYS.  Some functions are actually named
33122     something starting with __ and the normal name is an alias.  */
33123 #if defined (__stub_crypt) || defined (__stub___crypt)
33124 choke me
33125 #else
33126 char (*f) () = crypt;
33127 #endif
33128 #ifdef __cplusplus
33129 }
33130 #endif
33131
33132 int
33133 main ()
33134 {
33135 return f != crypt;
33136   ;
33137   return 0;
33138 }
33139 _ACEOF
33140 rm -f conftest.$ac_objext conftest$ac_exeext
33141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33142   (eval $ac_link) 2>conftest.er1
33143   ac_status=$?
33144   grep -v '^ *+' conftest.er1 >conftest.err
33145   rm -f conftest.er1
33146   cat conftest.err >&5
33147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148   (exit $ac_status); } &&
33149          { ac_try='test -z "$ac_c_werror_flag"
33150                          || test ! -s conftest.err'
33151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33152   (eval $ac_try) 2>&5
33153   ac_status=$?
33154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155   (exit $ac_status); }; } &&
33156          { ac_try='test -s conftest$ac_exeext'
33157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33158   (eval $ac_try) 2>&5
33159   ac_status=$?
33160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161   (exit $ac_status); }; }; then
33162   ac_cv_func_crypt=yes
33163 else
33164   echo "$as_me: failed program was:" >&5
33165 sed 's/^/| /' conftest.$ac_ext >&5
33166
33167 ac_cv_func_crypt=no
33168 fi
33169 rm -f conftest.err conftest.$ac_objext \
33170       conftest$ac_exeext conftest.$ac_ext
33171 fi
33172 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
33173 echo "${ECHO_T}$ac_cv_func_crypt" >&6
33174 if test $ac_cv_func_crypt = yes; then
33175   have_crypt=yes
33176 else
33177
33178                 LIBS="$save_LIBS"
33179                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
33180 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
33181 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
33182   echo $ECHO_N "(cached) $ECHO_C" >&6
33183 else
33184   ac_check_lib_save_LIBS=$LIBS
33185 LIBS="-lcrypt  $LIBS"
33186 cat >conftest.$ac_ext <<_ACEOF
33187 /* confdefs.h.  */
33188 _ACEOF
33189 cat confdefs.h >>conftest.$ac_ext
33190 cat >>conftest.$ac_ext <<_ACEOF
33191 /* end confdefs.h.  */
33192
33193 /* Override any gcc2 internal prototype to avoid an error.  */
33194 #ifdef __cplusplus
33195 extern "C"
33196 #endif
33197 /* We use char because int might match the return type of a gcc2
33198    builtin and then its argument prototype would still apply.  */
33199 char crypt ();
33200 int
33201 main ()
33202 {
33203 crypt ();
33204   ;
33205   return 0;
33206 }
33207 _ACEOF
33208 rm -f conftest.$ac_objext conftest$ac_exeext
33209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33210   (eval $ac_link) 2>conftest.er1
33211   ac_status=$?
33212   grep -v '^ *+' conftest.er1 >conftest.err
33213   rm -f conftest.er1
33214   cat conftest.err >&5
33215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216   (exit $ac_status); } &&
33217          { ac_try='test -z "$ac_c_werror_flag"
33218                          || test ! -s conftest.err'
33219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220   (eval $ac_try) 2>&5
33221   ac_status=$?
33222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223   (exit $ac_status); }; } &&
33224          { ac_try='test -s conftest$ac_exeext'
33225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33226   (eval $ac_try) 2>&5
33227   ac_status=$?
33228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229   (exit $ac_status); }; }; then
33230   ac_cv_lib_crypt_crypt=yes
33231 else
33232   echo "$as_me: failed program was:" >&5
33233 sed 's/^/| /' conftest.$ac_ext >&5
33234
33235 ac_cv_lib_crypt_crypt=no
33236 fi
33237 rm -f conftest.err conftest.$ac_objext \
33238       conftest$ac_exeext conftest.$ac_ext
33239 LIBS=$ac_check_lib_save_LIBS
33240 fi
33241 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
33242 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
33243 if test $ac_cv_lib_crypt_crypt = yes; then
33244   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
33245                         have_crypt=yes
33246 else
33247   have_crypt=no
33248 fi
33249
33250 fi
33251
33252
33253         LIBS="$save_LIBS"
33254
33255         if test $have_crypt = yes ; then
33256
33257 cat >>confdefs.h <<\_ACEOF
33258 #define HAVE_CRYPT 1
33259 _ACEOF
33260
33261         else
33262                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
33263 echo "$as_me: WARNING: could not find crypt" >&2;}
33264                 if test $ol_enable_crypt = yes ; then
33265                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
33266 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
33267    { (exit 1); exit 1; }; }
33268                 fi
33269
33270                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
33271 echo "$as_me: WARNING: disabling crypt support" >&2;}
33272                 ol_enable_crypt=no
33273         fi
33274 fi
33275
33276 if test $ol_enable_proctitle != no ; then
33277         echo "$as_me:$LINENO: checking for setproctitle" >&5
33278 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
33279 if test "${ac_cv_func_setproctitle+set}" = set; then
33280   echo $ECHO_N "(cached) $ECHO_C" >&6
33281 else
33282   cat >conftest.$ac_ext <<_ACEOF
33283 /* confdefs.h.  */
33284 _ACEOF
33285 cat confdefs.h >>conftest.$ac_ext
33286 cat >>conftest.$ac_ext <<_ACEOF
33287 /* end confdefs.h.  */
33288 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
33289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33290 #define setproctitle innocuous_setproctitle
33291
33292 /* System header to define __stub macros and hopefully few prototypes,
33293     which can conflict with char setproctitle (); below.
33294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33295     <limits.h> exists even on freestanding compilers.  */
33296
33297 #ifdef __STDC__
33298 # include <limits.h>
33299 #else
33300 # include <assert.h>
33301 #endif
33302
33303 #undef setproctitle
33304
33305 /* Override any gcc2 internal prototype to avoid an error.  */
33306 #ifdef __cplusplus
33307 extern "C"
33308 {
33309 #endif
33310 /* We use char because int might match the return type of a gcc2
33311    builtin and then its argument prototype would still apply.  */
33312 char setproctitle ();
33313 /* The GNU C library defines this for functions which it implements
33314     to always fail with ENOSYS.  Some functions are actually named
33315     something starting with __ and the normal name is an alias.  */
33316 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
33317 choke me
33318 #else
33319 char (*f) () = setproctitle;
33320 #endif
33321 #ifdef __cplusplus
33322 }
33323 #endif
33324
33325 int
33326 main ()
33327 {
33328 return f != setproctitle;
33329   ;
33330   return 0;
33331 }
33332 _ACEOF
33333 rm -f conftest.$ac_objext conftest$ac_exeext
33334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33335   (eval $ac_link) 2>conftest.er1
33336   ac_status=$?
33337   grep -v '^ *+' conftest.er1 >conftest.err
33338   rm -f conftest.er1
33339   cat conftest.err >&5
33340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341   (exit $ac_status); } &&
33342          { ac_try='test -z "$ac_c_werror_flag"
33343                          || test ! -s conftest.err'
33344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33345   (eval $ac_try) 2>&5
33346   ac_status=$?
33347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348   (exit $ac_status); }; } &&
33349          { ac_try='test -s conftest$ac_exeext'
33350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33351   (eval $ac_try) 2>&5
33352   ac_status=$?
33353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33354   (exit $ac_status); }; }; then
33355   ac_cv_func_setproctitle=yes
33356 else
33357   echo "$as_me: failed program was:" >&5
33358 sed 's/^/| /' conftest.$ac_ext >&5
33359
33360 ac_cv_func_setproctitle=no
33361 fi
33362 rm -f conftest.err conftest.$ac_objext \
33363       conftest$ac_exeext conftest.$ac_ext
33364 fi
33365 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
33366 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
33367 if test $ac_cv_func_setproctitle = yes; then
33368   have_setproctitle=yes
33369 else
33370
33371                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
33372 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
33373 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
33374   echo $ECHO_N "(cached) $ECHO_C" >&6
33375 else
33376   ac_check_lib_save_LIBS=$LIBS
33377 LIBS="-lutil  $LIBS"
33378 cat >conftest.$ac_ext <<_ACEOF
33379 /* confdefs.h.  */
33380 _ACEOF
33381 cat confdefs.h >>conftest.$ac_ext
33382 cat >>conftest.$ac_ext <<_ACEOF
33383 /* end confdefs.h.  */
33384
33385 /* Override any gcc2 internal prototype to avoid an error.  */
33386 #ifdef __cplusplus
33387 extern "C"
33388 #endif
33389 /* We use char because int might match the return type of a gcc2
33390    builtin and then its argument prototype would still apply.  */
33391 char setproctitle ();
33392 int
33393 main ()
33394 {
33395 setproctitle ();
33396   ;
33397   return 0;
33398 }
33399 _ACEOF
33400 rm -f conftest.$ac_objext conftest$ac_exeext
33401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33402   (eval $ac_link) 2>conftest.er1
33403   ac_status=$?
33404   grep -v '^ *+' conftest.er1 >conftest.err
33405   rm -f conftest.er1
33406   cat conftest.err >&5
33407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408   (exit $ac_status); } &&
33409          { ac_try='test -z "$ac_c_werror_flag"
33410                          || test ! -s conftest.err'
33411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33412   (eval $ac_try) 2>&5
33413   ac_status=$?
33414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415   (exit $ac_status); }; } &&
33416          { ac_try='test -s conftest$ac_exeext'
33417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33418   (eval $ac_try) 2>&5
33419   ac_status=$?
33420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421   (exit $ac_status); }; }; then
33422   ac_cv_lib_util_setproctitle=yes
33423 else
33424   echo "$as_me: failed program was:" >&5
33425 sed 's/^/| /' conftest.$ac_ext >&5
33426
33427 ac_cv_lib_util_setproctitle=no
33428 fi
33429 rm -f conftest.err conftest.$ac_objext \
33430       conftest$ac_exeext conftest.$ac_ext
33431 LIBS=$ac_check_lib_save_LIBS
33432 fi
33433 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
33434 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
33435 if test $ac_cv_lib_util_setproctitle = yes; then
33436   have_setproctitle=yes
33437                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
33438 else
33439   have_setproctitle=no
33440                         case $LIBOBJS in
33441     "setproctitle.$ac_objext"   | \
33442   *" setproctitle.$ac_objext"   | \
33443     "setproctitle.$ac_objext "* | \
33444   *" setproctitle.$ac_objext "* ) ;;
33445   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
33446 esac
33447
33448                         LIBSRCS="$LIBSRCS setproctitle.c"
33449 fi
33450
33451 fi
33452
33453
33454         if test $have_setproctitle = yes ; then
33455
33456 cat >>confdefs.h <<\_ACEOF
33457 #define HAVE_SETPROCTITLE 1
33458 _ACEOF
33459
33460         fi
33461 fi
33462
33463 if test $ol_enable_slp != no ; then
33464
33465 for ac_header in slp.h
33466 do
33467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33469   echo "$as_me:$LINENO: checking for $ac_header" >&5
33470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33472   echo $ECHO_N "(cached) $ECHO_C" >&6
33473 fi
33474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33476 else
33477   # Is the header compilable?
33478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33480 cat >conftest.$ac_ext <<_ACEOF
33481 /* confdefs.h.  */
33482 _ACEOF
33483 cat confdefs.h >>conftest.$ac_ext
33484 cat >>conftest.$ac_ext <<_ACEOF
33485 /* end confdefs.h.  */
33486 $ac_includes_default
33487 #include <$ac_header>
33488 _ACEOF
33489 rm -f conftest.$ac_objext
33490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33491   (eval $ac_compile) 2>conftest.er1
33492   ac_status=$?
33493   grep -v '^ *+' conftest.er1 >conftest.err
33494   rm -f conftest.er1
33495   cat conftest.err >&5
33496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497   (exit $ac_status); } &&
33498          { ac_try='test -z "$ac_c_werror_flag"
33499                          || test ! -s conftest.err'
33500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33501   (eval $ac_try) 2>&5
33502   ac_status=$?
33503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33504   (exit $ac_status); }; } &&
33505          { ac_try='test -s conftest.$ac_objext'
33506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33507   (eval $ac_try) 2>&5
33508   ac_status=$?
33509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510   (exit $ac_status); }; }; then
33511   ac_header_compiler=yes
33512 else
33513   echo "$as_me: failed program was:" >&5
33514 sed 's/^/| /' conftest.$ac_ext >&5
33515
33516 ac_header_compiler=no
33517 fi
33518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33520 echo "${ECHO_T}$ac_header_compiler" >&6
33521
33522 # Is the header present?
33523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33525 cat >conftest.$ac_ext <<_ACEOF
33526 /* confdefs.h.  */
33527 _ACEOF
33528 cat confdefs.h >>conftest.$ac_ext
33529 cat >>conftest.$ac_ext <<_ACEOF
33530 /* end confdefs.h.  */
33531 #include <$ac_header>
33532 _ACEOF
33533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33535   ac_status=$?
33536   grep -v '^ *+' conftest.er1 >conftest.err
33537   rm -f conftest.er1
33538   cat conftest.err >&5
33539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540   (exit $ac_status); } >/dev/null; then
33541   if test -s conftest.err; then
33542     ac_cpp_err=$ac_c_preproc_warn_flag
33543     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33544   else
33545     ac_cpp_err=
33546   fi
33547 else
33548   ac_cpp_err=yes
33549 fi
33550 if test -z "$ac_cpp_err"; then
33551   ac_header_preproc=yes
33552 else
33553   echo "$as_me: failed program was:" >&5
33554 sed 's/^/| /' conftest.$ac_ext >&5
33555
33556   ac_header_preproc=no
33557 fi
33558 rm -f conftest.err conftest.$ac_ext
33559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33560 echo "${ECHO_T}$ac_header_preproc" >&6
33561
33562 # So?  What about this header?
33563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33564   yes:no: )
33565     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33569     ac_header_preproc=yes
33570     ;;
33571   no:yes:* )
33572     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33574     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33575 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33576     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33578     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33579 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33582     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33584     (
33585       cat <<\_ASBOX
33586 ## --------------------------------------------- ##
33587 ## Report this to <http://www.openldap.org/its/> ##
33588 ## --------------------------------------------- ##
33589 _ASBOX
33590     ) |
33591       sed "s/^/$as_me: WARNING:     /" >&2
33592     ;;
33593 esac
33594 echo "$as_me:$LINENO: checking for $ac_header" >&5
33595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33597   echo $ECHO_N "(cached) $ECHO_C" >&6
33598 else
33599   eval "$as_ac_Header=\$ac_header_preproc"
33600 fi
33601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33603
33604 fi
33605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33606   cat >>confdefs.h <<_ACEOF
33607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33608 _ACEOF
33609
33610 fi
33611
33612 done
33613
33614
33615         if test $ac_cv_header_slp_h = yes ; then
33616                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33617 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33618 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33619   echo $ECHO_N "(cached) $ECHO_C" >&6
33620 else
33621   ac_check_lib_save_LIBS=$LIBS
33622 LIBS="-lslp  $LIBS"
33623 cat >conftest.$ac_ext <<_ACEOF
33624 /* confdefs.h.  */
33625 _ACEOF
33626 cat confdefs.h >>conftest.$ac_ext
33627 cat >>conftest.$ac_ext <<_ACEOF
33628 /* end confdefs.h.  */
33629
33630 /* Override any gcc2 internal prototype to avoid an error.  */
33631 #ifdef __cplusplus
33632 extern "C"
33633 #endif
33634 /* We use char because int might match the return type of a gcc2
33635    builtin and then its argument prototype would still apply.  */
33636 char SLPOpen ();
33637 int
33638 main ()
33639 {
33640 SLPOpen ();
33641   ;
33642   return 0;
33643 }
33644 _ACEOF
33645 rm -f conftest.$ac_objext conftest$ac_exeext
33646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33647   (eval $ac_link) 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_exeext'
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_lib_slp_SLPOpen=yes
33668 else
33669   echo "$as_me: failed program was:" >&5
33670 sed 's/^/| /' conftest.$ac_ext >&5
33671
33672 ac_cv_lib_slp_SLPOpen=no
33673 fi
33674 rm -f conftest.err conftest.$ac_objext \
33675       conftest$ac_exeext conftest.$ac_ext
33676 LIBS=$ac_check_lib_save_LIBS
33677 fi
33678 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33679 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33680 if test $ac_cv_lib_slp_SLPOpen = yes; then
33681   have_slp=yes
33682 else
33683   have_slp=no
33684 fi
33685
33686                 if test $have_slp = yes ; then
33687
33688 cat >>confdefs.h <<\_ACEOF
33689 #define HAVE_SLP 1
33690 _ACEOF
33691
33692                         SLAPD_SLP_LIBS=-lslp
33693                 fi
33694
33695         elif test $ol_enable_slp = yes ; then
33696                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33697 echo "$as_me: error: SLP not found" >&2;}
33698    { (exit 1); exit 1; }; }
33699         fi
33700 fi
33701
33702
33703 echo "$as_me:$LINENO: checking for mode_t" >&5
33704 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33705 if test "${ac_cv_type_mode_t+set}" = set; then
33706   echo $ECHO_N "(cached) $ECHO_C" >&6
33707 else
33708   cat >conftest.$ac_ext <<_ACEOF
33709 /* confdefs.h.  */
33710 _ACEOF
33711 cat confdefs.h >>conftest.$ac_ext
33712 cat >>conftest.$ac_ext <<_ACEOF
33713 /* end confdefs.h.  */
33714 $ac_includes_default
33715 int
33716 main ()
33717 {
33718 if ((mode_t *) 0)
33719   return 0;
33720 if (sizeof (mode_t))
33721   return 0;
33722   ;
33723   return 0;
33724 }
33725 _ACEOF
33726 rm -f conftest.$ac_objext
33727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33728   (eval $ac_compile) 2>conftest.er1
33729   ac_status=$?
33730   grep -v '^ *+' conftest.er1 >conftest.err
33731   rm -f conftest.er1
33732   cat conftest.err >&5
33733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734   (exit $ac_status); } &&
33735          { ac_try='test -z "$ac_c_werror_flag"
33736                          || test ! -s conftest.err'
33737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33738   (eval $ac_try) 2>&5
33739   ac_status=$?
33740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33741   (exit $ac_status); }; } &&
33742          { ac_try='test -s conftest.$ac_objext'
33743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33744   (eval $ac_try) 2>&5
33745   ac_status=$?
33746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33747   (exit $ac_status); }; }; then
33748   ac_cv_type_mode_t=yes
33749 else
33750   echo "$as_me: failed program was:" >&5
33751 sed 's/^/| /' conftest.$ac_ext >&5
33752
33753 ac_cv_type_mode_t=no
33754 fi
33755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33756 fi
33757 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33758 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33759 if test $ac_cv_type_mode_t = yes; then
33760   :
33761 else
33762
33763 cat >>confdefs.h <<_ACEOF
33764 #define mode_t int
33765 _ACEOF
33766
33767 fi
33768
33769 echo "$as_me:$LINENO: checking for off_t" >&5
33770 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33771 if test "${ac_cv_type_off_t+set}" = set; then
33772   echo $ECHO_N "(cached) $ECHO_C" >&6
33773 else
33774   cat >conftest.$ac_ext <<_ACEOF
33775 /* confdefs.h.  */
33776 _ACEOF
33777 cat confdefs.h >>conftest.$ac_ext
33778 cat >>conftest.$ac_ext <<_ACEOF
33779 /* end confdefs.h.  */
33780 $ac_includes_default
33781 int
33782 main ()
33783 {
33784 if ((off_t *) 0)
33785   return 0;
33786 if (sizeof (off_t))
33787   return 0;
33788   ;
33789   return 0;
33790 }
33791 _ACEOF
33792 rm -f conftest.$ac_objext
33793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33794   (eval $ac_compile) 2>conftest.er1
33795   ac_status=$?
33796   grep -v '^ *+' conftest.er1 >conftest.err
33797   rm -f conftest.er1
33798   cat conftest.err >&5
33799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800   (exit $ac_status); } &&
33801          { ac_try='test -z "$ac_c_werror_flag"
33802                          || test ! -s conftest.err'
33803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33804   (eval $ac_try) 2>&5
33805   ac_status=$?
33806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807   (exit $ac_status); }; } &&
33808          { ac_try='test -s conftest.$ac_objext'
33809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33810   (eval $ac_try) 2>&5
33811   ac_status=$?
33812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813   (exit $ac_status); }; }; then
33814   ac_cv_type_off_t=yes
33815 else
33816   echo "$as_me: failed program was:" >&5
33817 sed 's/^/| /' conftest.$ac_ext >&5
33818
33819 ac_cv_type_off_t=no
33820 fi
33821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33822 fi
33823 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33824 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33825 if test $ac_cv_type_off_t = yes; then
33826   :
33827 else
33828
33829 cat >>confdefs.h <<_ACEOF
33830 #define off_t long
33831 _ACEOF
33832
33833 fi
33834
33835 echo "$as_me:$LINENO: checking for pid_t" >&5
33836 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33837 if test "${ac_cv_type_pid_t+set}" = set; then
33838   echo $ECHO_N "(cached) $ECHO_C" >&6
33839 else
33840   cat >conftest.$ac_ext <<_ACEOF
33841 /* confdefs.h.  */
33842 _ACEOF
33843 cat confdefs.h >>conftest.$ac_ext
33844 cat >>conftest.$ac_ext <<_ACEOF
33845 /* end confdefs.h.  */
33846 $ac_includes_default
33847 int
33848 main ()
33849 {
33850 if ((pid_t *) 0)
33851   return 0;
33852 if (sizeof (pid_t))
33853   return 0;
33854   ;
33855   return 0;
33856 }
33857 _ACEOF
33858 rm -f conftest.$ac_objext
33859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33860   (eval $ac_compile) 2>conftest.er1
33861   ac_status=$?
33862   grep -v '^ *+' conftest.er1 >conftest.err
33863   rm -f conftest.er1
33864   cat conftest.err >&5
33865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866   (exit $ac_status); } &&
33867          { ac_try='test -z "$ac_c_werror_flag"
33868                          || test ! -s conftest.err'
33869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33870   (eval $ac_try) 2>&5
33871   ac_status=$?
33872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33873   (exit $ac_status); }; } &&
33874          { ac_try='test -s conftest.$ac_objext'
33875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33876   (eval $ac_try) 2>&5
33877   ac_status=$?
33878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879   (exit $ac_status); }; }; then
33880   ac_cv_type_pid_t=yes
33881 else
33882   echo "$as_me: failed program was:" >&5
33883 sed 's/^/| /' conftest.$ac_ext >&5
33884
33885 ac_cv_type_pid_t=no
33886 fi
33887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33888 fi
33889 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33890 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33891 if test $ac_cv_type_pid_t = yes; then
33892   :
33893 else
33894
33895 cat >>confdefs.h <<_ACEOF
33896 #define pid_t int
33897 _ACEOF
33898
33899 fi
33900
33901 echo "$as_me:$LINENO: checking for ssize_t" >&5
33902 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33903 if test "${ac_cv_type_ssize_t+set}" = set; then
33904   echo $ECHO_N "(cached) $ECHO_C" >&6
33905 else
33906   cat >conftest.$ac_ext <<_ACEOF
33907 /* confdefs.h.  */
33908 _ACEOF
33909 cat confdefs.h >>conftest.$ac_ext
33910 cat >>conftest.$ac_ext <<_ACEOF
33911 /* end confdefs.h.  */
33912 $ac_includes_default
33913 int
33914 main ()
33915 {
33916 if ((ssize_t *) 0)
33917   return 0;
33918 if (sizeof (ssize_t))
33919   return 0;
33920   ;
33921   return 0;
33922 }
33923 _ACEOF
33924 rm -f conftest.$ac_objext
33925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33926   (eval $ac_compile) 2>conftest.er1
33927   ac_status=$?
33928   grep -v '^ *+' conftest.er1 >conftest.err
33929   rm -f conftest.er1
33930   cat conftest.err >&5
33931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932   (exit $ac_status); } &&
33933          { ac_try='test -z "$ac_c_werror_flag"
33934                          || test ! -s conftest.err'
33935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33936   (eval $ac_try) 2>&5
33937   ac_status=$?
33938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939   (exit $ac_status); }; } &&
33940          { ac_try='test -s conftest.$ac_objext'
33941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33942   (eval $ac_try) 2>&5
33943   ac_status=$?
33944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945   (exit $ac_status); }; }; then
33946   ac_cv_type_ssize_t=yes
33947 else
33948   echo "$as_me: failed program was:" >&5
33949 sed 's/^/| /' conftest.$ac_ext >&5
33950
33951 ac_cv_type_ssize_t=no
33952 fi
33953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33954 fi
33955 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33956 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33957 if test $ac_cv_type_ssize_t = yes; then
33958   :
33959 else
33960
33961 cat >>confdefs.h <<_ACEOF
33962 #define ssize_t signed int
33963 _ACEOF
33964
33965 fi
33966
33967 echo "$as_me:$LINENO: checking for caddr_t" >&5
33968 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
33969 if test "${ac_cv_type_caddr_t+set}" = set; then
33970   echo $ECHO_N "(cached) $ECHO_C" >&6
33971 else
33972   cat >conftest.$ac_ext <<_ACEOF
33973 /* confdefs.h.  */
33974 _ACEOF
33975 cat confdefs.h >>conftest.$ac_ext
33976 cat >>conftest.$ac_ext <<_ACEOF
33977 /* end confdefs.h.  */
33978 $ac_includes_default
33979 int
33980 main ()
33981 {
33982 if ((caddr_t *) 0)
33983   return 0;
33984 if (sizeof (caddr_t))
33985   return 0;
33986   ;
33987   return 0;
33988 }
33989 _ACEOF
33990 rm -f conftest.$ac_objext
33991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33992   (eval $ac_compile) 2>conftest.er1
33993   ac_status=$?
33994   grep -v '^ *+' conftest.er1 >conftest.err
33995   rm -f conftest.er1
33996   cat conftest.err >&5
33997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998   (exit $ac_status); } &&
33999          { ac_try='test -z "$ac_c_werror_flag"
34000                          || test ! -s conftest.err'
34001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34002   (eval $ac_try) 2>&5
34003   ac_status=$?
34004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34005   (exit $ac_status); }; } &&
34006          { ac_try='test -s conftest.$ac_objext'
34007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34008   (eval $ac_try) 2>&5
34009   ac_status=$?
34010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011   (exit $ac_status); }; }; then
34012   ac_cv_type_caddr_t=yes
34013 else
34014   echo "$as_me: failed program was:" >&5
34015 sed 's/^/| /' conftest.$ac_ext >&5
34016
34017 ac_cv_type_caddr_t=no
34018 fi
34019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34020 fi
34021 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
34022 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
34023 if test $ac_cv_type_caddr_t = yes; then
34024   :
34025 else
34026
34027 cat >>confdefs.h <<_ACEOF
34028 #define caddr_t char *
34029 _ACEOF
34030
34031 fi
34032
34033 echo "$as_me:$LINENO: checking for size_t" >&5
34034 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34035 if test "${ac_cv_type_size_t+set}" = set; then
34036   echo $ECHO_N "(cached) $ECHO_C" >&6
34037 else
34038   cat >conftest.$ac_ext <<_ACEOF
34039 /* confdefs.h.  */
34040 _ACEOF
34041 cat confdefs.h >>conftest.$ac_ext
34042 cat >>conftest.$ac_ext <<_ACEOF
34043 /* end confdefs.h.  */
34044 $ac_includes_default
34045 int
34046 main ()
34047 {
34048 if ((size_t *) 0)
34049   return 0;
34050 if (sizeof (size_t))
34051   return 0;
34052   ;
34053   return 0;
34054 }
34055 _ACEOF
34056 rm -f conftest.$ac_objext
34057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34058   (eval $ac_compile) 2>conftest.er1
34059   ac_status=$?
34060   grep -v '^ *+' conftest.er1 >conftest.err
34061   rm -f conftest.er1
34062   cat conftest.err >&5
34063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34064   (exit $ac_status); } &&
34065          { ac_try='test -z "$ac_c_werror_flag"
34066                          || test ! -s conftest.err'
34067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34068   (eval $ac_try) 2>&5
34069   ac_status=$?
34070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071   (exit $ac_status); }; } &&
34072          { ac_try='test -s conftest.$ac_objext'
34073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34074   (eval $ac_try) 2>&5
34075   ac_status=$?
34076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34077   (exit $ac_status); }; }; then
34078   ac_cv_type_size_t=yes
34079 else
34080   echo "$as_me: failed program was:" >&5
34081 sed 's/^/| /' conftest.$ac_ext >&5
34082
34083 ac_cv_type_size_t=no
34084 fi
34085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34086 fi
34087 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34088 echo "${ECHO_T}$ac_cv_type_size_t" >&6
34089 if test $ac_cv_type_size_t = yes; then
34090   :
34091 else
34092
34093 cat >>confdefs.h <<_ACEOF
34094 #define size_t unsigned
34095 _ACEOF
34096
34097 fi
34098
34099
34100 echo "$as_me:$LINENO: checking for long long" >&5
34101 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34102 if test "${ac_cv_type_long_long+set}" = set; then
34103   echo $ECHO_N "(cached) $ECHO_C" >&6
34104 else
34105   cat >conftest.$ac_ext <<_ACEOF
34106 /* confdefs.h.  */
34107 _ACEOF
34108 cat confdefs.h >>conftest.$ac_ext
34109 cat >>conftest.$ac_ext <<_ACEOF
34110 /* end confdefs.h.  */
34111 $ac_includes_default
34112 int
34113 main ()
34114 {
34115 if ((long long *) 0)
34116   return 0;
34117 if (sizeof (long long))
34118   return 0;
34119   ;
34120   return 0;
34121 }
34122 _ACEOF
34123 rm -f conftest.$ac_objext
34124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34125   (eval $ac_compile) 2>conftest.er1
34126   ac_status=$?
34127   grep -v '^ *+' conftest.er1 >conftest.err
34128   rm -f conftest.er1
34129   cat conftest.err >&5
34130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34131   (exit $ac_status); } &&
34132          { ac_try='test -z "$ac_c_werror_flag"
34133                          || test ! -s conftest.err'
34134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34135   (eval $ac_try) 2>&5
34136   ac_status=$?
34137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34138   (exit $ac_status); }; } &&
34139          { ac_try='test -s conftest.$ac_objext'
34140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34141   (eval $ac_try) 2>&5
34142   ac_status=$?
34143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144   (exit $ac_status); }; }; then
34145   ac_cv_type_long_long=yes
34146 else
34147   echo "$as_me: failed program was:" >&5
34148 sed 's/^/| /' conftest.$ac_ext >&5
34149
34150 ac_cv_type_long_long=no
34151 fi
34152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34153 fi
34154 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34155 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34156 if test $ac_cv_type_long_long = yes; then
34157
34158 cat >>confdefs.h <<_ACEOF
34159 #define HAVE_LONG_LONG 1
34160 _ACEOF
34161
34162
34163 fi
34164
34165 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
34166 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
34167 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
34168   echo $ECHO_N "(cached) $ECHO_C" >&6
34169 else
34170   cat >conftest.$ac_ext <<_ACEOF
34171 /* confdefs.h.  */
34172 _ACEOF
34173 cat confdefs.h >>conftest.$ac_ext
34174 cat >>conftest.$ac_ext <<_ACEOF
34175 /* end confdefs.h.  */
34176 $ac_includes_default
34177 int
34178 main ()
34179 {
34180 if ((ptrdiff_t *) 0)
34181   return 0;
34182 if (sizeof (ptrdiff_t))
34183   return 0;
34184   ;
34185   return 0;
34186 }
34187 _ACEOF
34188 rm -f conftest.$ac_objext
34189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34190   (eval $ac_compile) 2>conftest.er1
34191   ac_status=$?
34192   grep -v '^ *+' conftest.er1 >conftest.err
34193   rm -f conftest.er1
34194   cat conftest.err >&5
34195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196   (exit $ac_status); } &&
34197          { ac_try='test -z "$ac_c_werror_flag"
34198                          || test ! -s conftest.err'
34199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34200   (eval $ac_try) 2>&5
34201   ac_status=$?
34202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34203   (exit $ac_status); }; } &&
34204          { ac_try='test -s conftest.$ac_objext'
34205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34206   (eval $ac_try) 2>&5
34207   ac_status=$?
34208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34209   (exit $ac_status); }; }; then
34210   ac_cv_type_ptrdiff_t=yes
34211 else
34212   echo "$as_me: failed program was:" >&5
34213 sed 's/^/| /' conftest.$ac_ext >&5
34214
34215 ac_cv_type_ptrdiff_t=no
34216 fi
34217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34218 fi
34219 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34220 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
34221 if test $ac_cv_type_ptrdiff_t = yes; then
34222
34223 cat >>confdefs.h <<_ACEOF
34224 #define HAVE_PTRDIFF_T 1
34225 _ACEOF
34226
34227
34228 fi
34229
34230
34231
34232 echo "$as_me:$LINENO: checking for socklen_t" >&5
34233 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
34234 if test "${ac_cv_type_socklen_t+set}" = set; then
34235   echo $ECHO_N "(cached) $ECHO_C" >&6
34236 else
34237   cat >conftest.$ac_ext <<_ACEOF
34238 /* confdefs.h.  */
34239 _ACEOF
34240 cat confdefs.h >>conftest.$ac_ext
34241 cat >>conftest.$ac_ext <<_ACEOF
34242 /* end confdefs.h.  */
34243 $ac_includes_default
34244 #ifdef HAVE_SYS_SOCKET_H
34245 #include <sys/socket.h>
34246 #endif
34247
34248 int
34249 main ()
34250 {
34251 if ((socklen_t *) 0)
34252   return 0;
34253 if (sizeof (socklen_t))
34254   return 0;
34255   ;
34256   return 0;
34257 }
34258 _ACEOF
34259 rm -f conftest.$ac_objext
34260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34261   (eval $ac_compile) 2>conftest.er1
34262   ac_status=$?
34263   grep -v '^ *+' conftest.er1 >conftest.err
34264   rm -f conftest.er1
34265   cat conftest.err >&5
34266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267   (exit $ac_status); } &&
34268          { ac_try='test -z "$ac_c_werror_flag"
34269                          || test ! -s conftest.err'
34270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34271   (eval $ac_try) 2>&5
34272   ac_status=$?
34273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34274   (exit $ac_status); }; } &&
34275          { ac_try='test -s conftest.$ac_objext'
34276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34277   (eval $ac_try) 2>&5
34278   ac_status=$?
34279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34280   (exit $ac_status); }; }; then
34281   ac_cv_type_socklen_t=yes
34282 else
34283   echo "$as_me: failed program was:" >&5
34284 sed 's/^/| /' conftest.$ac_ext >&5
34285
34286 ac_cv_type_socklen_t=no
34287 fi
34288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34289 fi
34290 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
34291 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
34292
34293
34294 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
34295 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
34296 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
34297   echo $ECHO_N "(cached) $ECHO_C" >&6
34298 else
34299
34300         set socklen_t int unsigned "unsigned long" long size_t
34301         test "$ac_cv_type_socklen_t" = yes || shift
34302         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
34303         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
34304                 cat >conftest.$ac_ext <<_ACEOF
34305 /* confdefs.h.  */
34306 _ACEOF
34307 cat confdefs.h >>conftest.$ac_ext
34308 cat >>conftest.$ac_ext <<_ACEOF
34309 /* end confdefs.h.  */
34310 $ac_includes_default
34311 #ifdef HAVE_SYS_SOCKET_H
34312 #include <sys/socket.h>
34313 #endif
34314 extern int accept(int s, $addrtype *ap, $lentype *lp);
34315
34316 int
34317 main ()
34318 {
34319
34320 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
34321
34322   ;
34323   return 0;
34324 }
34325 _ACEOF
34326 rm -f conftest.$ac_objext
34327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34328   (eval $ac_compile) 2>conftest.er1
34329   ac_status=$?
34330   grep -v '^ *+' conftest.er1 >conftest.err
34331   rm -f conftest.er1
34332   cat conftest.err >&5
34333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334   (exit $ac_status); } &&
34335          { ac_try='test -z "$ac_c_werror_flag"
34336                          || test ! -s conftest.err'
34337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34338   (eval $ac_try) 2>&5
34339   ac_status=$?
34340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341   (exit $ac_status); }; } &&
34342          { ac_try='test -s conftest.$ac_objext'
34343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34344   (eval $ac_try) 2>&5
34345   ac_status=$?
34346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34347   (exit $ac_status); }; }; then
34348   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
34349 else
34350   echo "$as_me: failed program was:" >&5
34351 sed 's/^/| /' conftest.$ac_ext >&5
34352
34353 fi
34354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34355         done ; done
34356 fi
34357
34358 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
34359 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
34360
34361 cat >>confdefs.h <<_ACEOF
34362 #define ber_socklen_t $ol_cv_type_ber_socklen_t
34363 _ACEOF
34364
34365
34366 if test "$ac_cv_type_socklen_t" != yes; then
34367
34368 cat >>confdefs.h <<_ACEOF
34369 #define socklen_t $ol_cv_type_ber_socklen_t
34370 _ACEOF
34371
34372 fi
34373
34374
34375 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34376 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34377 if test "${ac_cv_type_signal+set}" = set; then
34378   echo $ECHO_N "(cached) $ECHO_C" >&6
34379 else
34380   cat >conftest.$ac_ext <<_ACEOF
34381 /* confdefs.h.  */
34382 _ACEOF
34383 cat confdefs.h >>conftest.$ac_ext
34384 cat >>conftest.$ac_ext <<_ACEOF
34385 /* end confdefs.h.  */
34386 #include <sys/types.h>
34387 #include <signal.h>
34388 #ifdef signal
34389 # undef signal
34390 #endif
34391 #ifdef __cplusplus
34392 extern "C" void (*signal (int, void (*)(int)))(int);
34393 #else
34394 void (*signal ()) ();
34395 #endif
34396
34397 int
34398 main ()
34399 {
34400 int i;
34401   ;
34402   return 0;
34403 }
34404 _ACEOF
34405 rm -f conftest.$ac_objext
34406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34407   (eval $ac_compile) 2>conftest.er1
34408   ac_status=$?
34409   grep -v '^ *+' conftest.er1 >conftest.err
34410   rm -f conftest.er1
34411   cat conftest.err >&5
34412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34413   (exit $ac_status); } &&
34414          { ac_try='test -z "$ac_c_werror_flag"
34415                          || test ! -s conftest.err'
34416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34417   (eval $ac_try) 2>&5
34418   ac_status=$?
34419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34420   (exit $ac_status); }; } &&
34421          { ac_try='test -s conftest.$ac_objext'
34422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34423   (eval $ac_try) 2>&5
34424   ac_status=$?
34425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34426   (exit $ac_status); }; }; then
34427   ac_cv_type_signal=void
34428 else
34429   echo "$as_me: failed program was:" >&5
34430 sed 's/^/| /' conftest.$ac_ext >&5
34431
34432 ac_cv_type_signal=int
34433 fi
34434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34435 fi
34436 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34437 echo "${ECHO_T}$ac_cv_type_signal" >&6
34438
34439 cat >>confdefs.h <<_ACEOF
34440 #define RETSIGTYPE $ac_cv_type_signal
34441 _ACEOF
34442
34443
34444
34445 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
34446 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
34447 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
34448   echo $ECHO_N "(cached) $ECHO_C" >&6
34449 else
34450   cat >conftest.$ac_ext <<_ACEOF
34451 /* confdefs.h.  */
34452 _ACEOF
34453 cat confdefs.h >>conftest.$ac_ext
34454 cat >>conftest.$ac_ext <<_ACEOF
34455 /* end confdefs.h.  */
34456 $ac_includes_default
34457 #include <signal.h>
34458
34459
34460 int
34461 main ()
34462 {
34463 if ((sig_atomic_t *) 0)
34464   return 0;
34465 if (sizeof (sig_atomic_t))
34466   return 0;
34467   ;
34468   return 0;
34469 }
34470 _ACEOF
34471 rm -f conftest.$ac_objext
34472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34473   (eval $ac_compile) 2>conftest.er1
34474   ac_status=$?
34475   grep -v '^ *+' conftest.er1 >conftest.err
34476   rm -f conftest.er1
34477   cat conftest.err >&5
34478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34479   (exit $ac_status); } &&
34480          { ac_try='test -z "$ac_c_werror_flag"
34481                          || test ! -s conftest.err'
34482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34483   (eval $ac_try) 2>&5
34484   ac_status=$?
34485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34486   (exit $ac_status); }; } &&
34487          { ac_try='test -s conftest.$ac_objext'
34488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34489   (eval $ac_try) 2>&5
34490   ac_status=$?
34491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34492   (exit $ac_status); }; }; then
34493   ac_cv_type_sig_atomic_t=yes
34494 else
34495   echo "$as_me: failed program was:" >&5
34496 sed 's/^/| /' conftest.$ac_ext >&5
34497
34498 ac_cv_type_sig_atomic_t=no
34499 fi
34500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34501 fi
34502 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
34503 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
34504 if test $ac_cv_type_sig_atomic_t = yes; then
34505   :
34506 else
34507
34508 cat >>confdefs.h <<_ACEOF
34509 #define sig_atomic_t int
34510 _ACEOF
34511
34512 fi
34513
34514
34515 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34516 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34517 if test "${ac_cv_type_uid_t+set}" = set; then
34518   echo $ECHO_N "(cached) $ECHO_C" >&6
34519 else
34520   cat >conftest.$ac_ext <<_ACEOF
34521 /* confdefs.h.  */
34522 _ACEOF
34523 cat confdefs.h >>conftest.$ac_ext
34524 cat >>conftest.$ac_ext <<_ACEOF
34525 /* end confdefs.h.  */
34526 #include <sys/types.h>
34527
34528 _ACEOF
34529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34530   $EGREP "uid_t" >/dev/null 2>&1; then
34531   ac_cv_type_uid_t=yes
34532 else
34533   ac_cv_type_uid_t=no
34534 fi
34535 rm -f conftest*
34536
34537 fi
34538 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34539 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34540 if test $ac_cv_type_uid_t = no; then
34541
34542 cat >>confdefs.h <<\_ACEOF
34543 #define uid_t int
34544 _ACEOF
34545
34546
34547 cat >>confdefs.h <<\_ACEOF
34548 #define gid_t int
34549 _ACEOF
34550
34551 fi
34552
34553
34554 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34555 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34556 if test "${ac_cv_header_time+set}" = set; then
34557   echo $ECHO_N "(cached) $ECHO_C" >&6
34558 else
34559   cat >conftest.$ac_ext <<_ACEOF
34560 /* confdefs.h.  */
34561 _ACEOF
34562 cat confdefs.h >>conftest.$ac_ext
34563 cat >>conftest.$ac_ext <<_ACEOF
34564 /* end confdefs.h.  */
34565 #include <sys/types.h>
34566 #include <sys/time.h>
34567 #include <time.h>
34568
34569 int
34570 main ()
34571 {
34572 if ((struct tm *) 0)
34573 return 0;
34574   ;
34575   return 0;
34576 }
34577 _ACEOF
34578 rm -f conftest.$ac_objext
34579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34580   (eval $ac_compile) 2>conftest.er1
34581   ac_status=$?
34582   grep -v '^ *+' conftest.er1 >conftest.err
34583   rm -f conftest.er1
34584   cat conftest.err >&5
34585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34586   (exit $ac_status); } &&
34587          { ac_try='test -z "$ac_c_werror_flag"
34588                          || test ! -s conftest.err'
34589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34590   (eval $ac_try) 2>&5
34591   ac_status=$?
34592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34593   (exit $ac_status); }; } &&
34594          { ac_try='test -s conftest.$ac_objext'
34595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34596   (eval $ac_try) 2>&5
34597   ac_status=$?
34598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34599   (exit $ac_status); }; }; then
34600   ac_cv_header_time=yes
34601 else
34602   echo "$as_me: failed program was:" >&5
34603 sed 's/^/| /' conftest.$ac_ext >&5
34604
34605 ac_cv_header_time=no
34606 fi
34607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34608 fi
34609 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34610 echo "${ECHO_T}$ac_cv_header_time" >&6
34611 if test $ac_cv_header_time = yes; then
34612
34613 cat >>confdefs.h <<\_ACEOF
34614 #define TIME_WITH_SYS_TIME 1
34615 _ACEOF
34616
34617 fi
34618
34619 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34620 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34621 if test "${ac_cv_struct_tm+set}" = set; then
34622   echo $ECHO_N "(cached) $ECHO_C" >&6
34623 else
34624   cat >conftest.$ac_ext <<_ACEOF
34625 /* confdefs.h.  */
34626 _ACEOF
34627 cat confdefs.h >>conftest.$ac_ext
34628 cat >>conftest.$ac_ext <<_ACEOF
34629 /* end confdefs.h.  */
34630 #include <sys/types.h>
34631 #include <time.h>
34632
34633 int
34634 main ()
34635 {
34636 struct tm *tp; tp->tm_sec;
34637   ;
34638   return 0;
34639 }
34640 _ACEOF
34641 rm -f conftest.$ac_objext
34642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34643   (eval $ac_compile) 2>conftest.er1
34644   ac_status=$?
34645   grep -v '^ *+' conftest.er1 >conftest.err
34646   rm -f conftest.er1
34647   cat conftest.err >&5
34648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34649   (exit $ac_status); } &&
34650          { ac_try='test -z "$ac_c_werror_flag"
34651                          || test ! -s conftest.err'
34652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34653   (eval $ac_try) 2>&5
34654   ac_status=$?
34655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656   (exit $ac_status); }; } &&
34657          { ac_try='test -s conftest.$ac_objext'
34658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34659   (eval $ac_try) 2>&5
34660   ac_status=$?
34661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662   (exit $ac_status); }; }; then
34663   ac_cv_struct_tm=time.h
34664 else
34665   echo "$as_me: failed program was:" >&5
34666 sed 's/^/| /' conftest.$ac_ext >&5
34667
34668 ac_cv_struct_tm=sys/time.h
34669 fi
34670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34671 fi
34672 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34673 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34674 if test $ac_cv_struct_tm = sys/time.h; then
34675
34676 cat >>confdefs.h <<\_ACEOF
34677 #define TM_IN_SYS_TIME 1
34678 _ACEOF
34679
34680 fi
34681
34682 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34683 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34684 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34685   echo $ECHO_N "(cached) $ECHO_C" >&6
34686 else
34687   cat >conftest.$ac_ext <<_ACEOF
34688 /* confdefs.h.  */
34689 _ACEOF
34690 cat confdefs.h >>conftest.$ac_ext
34691 cat >>conftest.$ac_ext <<_ACEOF
34692 /* end confdefs.h.  */
34693 $ac_includes_default
34694 int
34695 main ()
34696 {
34697 static struct stat ac_aggr;
34698 if (ac_aggr.st_blksize)
34699 return 0;
34700   ;
34701   return 0;
34702 }
34703 _ACEOF
34704 rm -f conftest.$ac_objext
34705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34706   (eval $ac_compile) 2>conftest.er1
34707   ac_status=$?
34708   grep -v '^ *+' conftest.er1 >conftest.err
34709   rm -f conftest.er1
34710   cat conftest.err >&5
34711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712   (exit $ac_status); } &&
34713          { ac_try='test -z "$ac_c_werror_flag"
34714                          || test ! -s conftest.err'
34715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34716   (eval $ac_try) 2>&5
34717   ac_status=$?
34718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719   (exit $ac_status); }; } &&
34720          { ac_try='test -s conftest.$ac_objext'
34721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34722   (eval $ac_try) 2>&5
34723   ac_status=$?
34724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725   (exit $ac_status); }; }; then
34726   ac_cv_member_struct_stat_st_blksize=yes
34727 else
34728   echo "$as_me: failed program was:" >&5
34729 sed 's/^/| /' conftest.$ac_ext >&5
34730
34731 cat >conftest.$ac_ext <<_ACEOF
34732 /* confdefs.h.  */
34733 _ACEOF
34734 cat confdefs.h >>conftest.$ac_ext
34735 cat >>conftest.$ac_ext <<_ACEOF
34736 /* end confdefs.h.  */
34737 $ac_includes_default
34738 int
34739 main ()
34740 {
34741 static struct stat ac_aggr;
34742 if (sizeof ac_aggr.st_blksize)
34743 return 0;
34744   ;
34745   return 0;
34746 }
34747 _ACEOF
34748 rm -f conftest.$ac_objext
34749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34750   (eval $ac_compile) 2>conftest.er1
34751   ac_status=$?
34752   grep -v '^ *+' conftest.er1 >conftest.err
34753   rm -f conftest.er1
34754   cat conftest.err >&5
34755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756   (exit $ac_status); } &&
34757          { ac_try='test -z "$ac_c_werror_flag"
34758                          || test ! -s conftest.err'
34759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34760   (eval $ac_try) 2>&5
34761   ac_status=$?
34762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763   (exit $ac_status); }; } &&
34764          { ac_try='test -s conftest.$ac_objext'
34765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34766   (eval $ac_try) 2>&5
34767   ac_status=$?
34768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769   (exit $ac_status); }; }; then
34770   ac_cv_member_struct_stat_st_blksize=yes
34771 else
34772   echo "$as_me: failed program was:" >&5
34773 sed 's/^/| /' conftest.$ac_ext >&5
34774
34775 ac_cv_member_struct_stat_st_blksize=no
34776 fi
34777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34778 fi
34779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34780 fi
34781 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34782 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34783 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34784
34785 cat >>confdefs.h <<_ACEOF
34786 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34787 _ACEOF
34788
34789
34790 fi
34791
34792 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34793 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34794 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34795   echo $ECHO_N "(cached) $ECHO_C" >&6
34796 else
34797   cat >conftest.$ac_ext <<_ACEOF
34798 /* confdefs.h.  */
34799 _ACEOF
34800 cat confdefs.h >>conftest.$ac_ext
34801 cat >>conftest.$ac_ext <<_ACEOF
34802 /* end confdefs.h.  */
34803 $ac_includes_default
34804 #include <pwd.h>
34805
34806 int
34807 main ()
34808 {
34809 static struct passwd ac_aggr;
34810 if (ac_aggr.pw_gecos)
34811 return 0;
34812   ;
34813   return 0;
34814 }
34815 _ACEOF
34816 rm -f conftest.$ac_objext
34817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34818   (eval $ac_compile) 2>conftest.er1
34819   ac_status=$?
34820   grep -v '^ *+' conftest.er1 >conftest.err
34821   rm -f conftest.er1
34822   cat conftest.err >&5
34823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34824   (exit $ac_status); } &&
34825          { ac_try='test -z "$ac_c_werror_flag"
34826                          || test ! -s conftest.err'
34827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34828   (eval $ac_try) 2>&5
34829   ac_status=$?
34830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34831   (exit $ac_status); }; } &&
34832          { ac_try='test -s conftest.$ac_objext'
34833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34834   (eval $ac_try) 2>&5
34835   ac_status=$?
34836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34837   (exit $ac_status); }; }; then
34838   ac_cv_member_struct_passwd_pw_gecos=yes
34839 else
34840   echo "$as_me: failed program was:" >&5
34841 sed 's/^/| /' conftest.$ac_ext >&5
34842
34843 cat >conftest.$ac_ext <<_ACEOF
34844 /* confdefs.h.  */
34845 _ACEOF
34846 cat confdefs.h >>conftest.$ac_ext
34847 cat >>conftest.$ac_ext <<_ACEOF
34848 /* end confdefs.h.  */
34849 $ac_includes_default
34850 #include <pwd.h>
34851
34852 int
34853 main ()
34854 {
34855 static struct passwd ac_aggr;
34856 if (sizeof ac_aggr.pw_gecos)
34857 return 0;
34858   ;
34859   return 0;
34860 }
34861 _ACEOF
34862 rm -f conftest.$ac_objext
34863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34864   (eval $ac_compile) 2>conftest.er1
34865   ac_status=$?
34866   grep -v '^ *+' conftest.er1 >conftest.err
34867   rm -f conftest.er1
34868   cat conftest.err >&5
34869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870   (exit $ac_status); } &&
34871          { ac_try='test -z "$ac_c_werror_flag"
34872                          || test ! -s conftest.err'
34873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34874   (eval $ac_try) 2>&5
34875   ac_status=$?
34876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877   (exit $ac_status); }; } &&
34878          { ac_try='test -s conftest.$ac_objext'
34879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34880   (eval $ac_try) 2>&5
34881   ac_status=$?
34882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883   (exit $ac_status); }; }; then
34884   ac_cv_member_struct_passwd_pw_gecos=yes
34885 else
34886   echo "$as_me: failed program was:" >&5
34887 sed 's/^/| /' conftest.$ac_ext >&5
34888
34889 ac_cv_member_struct_passwd_pw_gecos=no
34890 fi
34891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34892 fi
34893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34894 fi
34895 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34896 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34897 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34898
34899 cat >>confdefs.h <<_ACEOF
34900 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34901 _ACEOF
34902
34903
34904 fi
34905
34906 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34907 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34908 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34909   echo $ECHO_N "(cached) $ECHO_C" >&6
34910 else
34911   cat >conftest.$ac_ext <<_ACEOF
34912 /* confdefs.h.  */
34913 _ACEOF
34914 cat confdefs.h >>conftest.$ac_ext
34915 cat >>conftest.$ac_ext <<_ACEOF
34916 /* end confdefs.h.  */
34917 $ac_includes_default
34918 #include <pwd.h>
34919
34920 int
34921 main ()
34922 {
34923 static struct passwd ac_aggr;
34924 if (ac_aggr.pw_passwd)
34925 return 0;
34926   ;
34927   return 0;
34928 }
34929 _ACEOF
34930 rm -f conftest.$ac_objext
34931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34932   (eval $ac_compile) 2>conftest.er1
34933   ac_status=$?
34934   grep -v '^ *+' conftest.er1 >conftest.err
34935   rm -f conftest.er1
34936   cat conftest.err >&5
34937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938   (exit $ac_status); } &&
34939          { ac_try='test -z "$ac_c_werror_flag"
34940                          || test ! -s conftest.err'
34941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34942   (eval $ac_try) 2>&5
34943   ac_status=$?
34944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945   (exit $ac_status); }; } &&
34946          { ac_try='test -s conftest.$ac_objext'
34947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34948   (eval $ac_try) 2>&5
34949   ac_status=$?
34950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951   (exit $ac_status); }; }; then
34952   ac_cv_member_struct_passwd_pw_passwd=yes
34953 else
34954   echo "$as_me: failed program was:" >&5
34955 sed 's/^/| /' conftest.$ac_ext >&5
34956
34957 cat >conftest.$ac_ext <<_ACEOF
34958 /* confdefs.h.  */
34959 _ACEOF
34960 cat confdefs.h >>conftest.$ac_ext
34961 cat >>conftest.$ac_ext <<_ACEOF
34962 /* end confdefs.h.  */
34963 $ac_includes_default
34964 #include <pwd.h>
34965
34966 int
34967 main ()
34968 {
34969 static struct passwd ac_aggr;
34970 if (sizeof ac_aggr.pw_passwd)
34971 return 0;
34972   ;
34973   return 0;
34974 }
34975 _ACEOF
34976 rm -f conftest.$ac_objext
34977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34978   (eval $ac_compile) 2>conftest.er1
34979   ac_status=$?
34980   grep -v '^ *+' conftest.er1 >conftest.err
34981   rm -f conftest.er1
34982   cat conftest.err >&5
34983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984   (exit $ac_status); } &&
34985          { ac_try='test -z "$ac_c_werror_flag"
34986                          || test ! -s conftest.err'
34987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34988   (eval $ac_try) 2>&5
34989   ac_status=$?
34990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34991   (exit $ac_status); }; } &&
34992          { ac_try='test -s conftest.$ac_objext'
34993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34994   (eval $ac_try) 2>&5
34995   ac_status=$?
34996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34997   (exit $ac_status); }; }; then
34998   ac_cv_member_struct_passwd_pw_passwd=yes
34999 else
35000   echo "$as_me: failed program was:" >&5
35001 sed 's/^/| /' conftest.$ac_ext >&5
35002
35003 ac_cv_member_struct_passwd_pw_passwd=no
35004 fi
35005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35006 fi
35007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35008 fi
35009 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
35010 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
35011 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
35012
35013 cat >>confdefs.h <<_ACEOF
35014 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
35015 _ACEOF
35016
35017
35018 fi
35019
35020
35021 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
35022 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
35023 if test "${ol_cv_c_upper_lower+set}" = set; then
35024   echo $ECHO_N "(cached) $ECHO_C" >&6
35025 else
35026
35027         if test "$cross_compiling" = yes; then
35028   ol_cv_c_upper_lower=safe
35029 else
35030   cat >conftest.$ac_ext <<_ACEOF
35031 /* confdefs.h.  */
35032 _ACEOF
35033 cat confdefs.h >>conftest.$ac_ext
35034 cat >>conftest.$ac_ext <<_ACEOF
35035 /* end confdefs.h.  */
35036
35037 #include <ctype.h>
35038 main()
35039 {
35040         if ('C' == toupper('C'))
35041                 exit(0);
35042         else
35043                 exit(1);
35044 }
35045 _ACEOF
35046 rm -f conftest$ac_exeext
35047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35048   (eval $ac_link) 2>&5
35049   ac_status=$?
35050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35053   (eval $ac_try) 2>&5
35054   ac_status=$?
35055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056   (exit $ac_status); }; }; then
35057   ol_cv_c_upper_lower=no
35058 else
35059   echo "$as_me: program exited with status $ac_status" >&5
35060 echo "$as_me: failed program was:" >&5
35061 sed 's/^/| /' conftest.$ac_ext >&5
35062
35063 ( exit $ac_status )
35064 ol_cv_c_upper_lower=yes
35065 fi
35066 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35067 fi
35068 fi
35069 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
35070 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
35071 if test $ol_cv_c_upper_lower != no ; then
35072
35073 cat >>confdefs.h <<\_ACEOF
35074 #define C_UPPER_LOWER 1
35075 _ACEOF
35076
35077 fi
35078
35079 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
35080 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
35081 if test "${ac_cv_c_const+set}" = set; then
35082   echo $ECHO_N "(cached) $ECHO_C" >&6
35083 else
35084   cat >conftest.$ac_ext <<_ACEOF
35085 /* confdefs.h.  */
35086 _ACEOF
35087 cat confdefs.h >>conftest.$ac_ext
35088 cat >>conftest.$ac_ext <<_ACEOF
35089 /* end confdefs.h.  */
35090
35091 int
35092 main ()
35093 {
35094 /* FIXME: Include the comments suggested by Paul. */
35095 #ifndef __cplusplus
35096   /* Ultrix mips cc rejects this.  */
35097   typedef int charset[2];
35098   const charset x;
35099   /* SunOS 4.1.1 cc rejects this.  */
35100   char const *const *ccp;
35101   char **p;
35102   /* NEC SVR4.0.2 mips cc rejects this.  */
35103   struct point {int x, y;};
35104   static struct point const zero = {0,0};
35105   /* AIX XL C 1.02.0.0 rejects this.
35106      It does not let you subtract one const X* pointer from another in
35107      an arm of an if-expression whose if-part is not a constant
35108      expression */
35109   const char *g = "string";
35110   ccp = &g + (g ? g-g : 0);
35111   /* HPUX 7.0 cc rejects these. */
35112   ++ccp;
35113   p = (char**) ccp;
35114   ccp = (char const *const *) p;
35115   { /* SCO 3.2v4 cc rejects this.  */
35116     char *t;
35117     char const *s = 0 ? (char *) 0 : (char const *) 0;
35118
35119     *t++ = 0;
35120   }
35121   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
35122     int x[] = {25, 17};
35123     const int *foo = &x[0];
35124     ++foo;
35125   }
35126   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
35127     typedef const int *iptr;
35128     iptr p = 0;
35129     ++p;
35130   }
35131   { /* AIX XL C 1.02.0.0 rejects this saying
35132        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35133     struct s { int j; const int *ap[3]; };
35134     struct s *b; b->j = 5;
35135   }
35136   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35137     const int foo = 10;
35138   }
35139 #endif
35140
35141   ;
35142   return 0;
35143 }
35144 _ACEOF
35145 rm -f conftest.$ac_objext
35146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35147   (eval $ac_compile) 2>conftest.er1
35148   ac_status=$?
35149   grep -v '^ *+' conftest.er1 >conftest.err
35150   rm -f conftest.er1
35151   cat conftest.err >&5
35152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35153   (exit $ac_status); } &&
35154          { ac_try='test -z "$ac_c_werror_flag"
35155                          || test ! -s conftest.err'
35156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35157   (eval $ac_try) 2>&5
35158   ac_status=$?
35159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35160   (exit $ac_status); }; } &&
35161          { ac_try='test -s conftest.$ac_objext'
35162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35163   (eval $ac_try) 2>&5
35164   ac_status=$?
35165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166   (exit $ac_status); }; }; then
35167   ac_cv_c_const=yes
35168 else
35169   echo "$as_me: failed program was:" >&5
35170 sed 's/^/| /' conftest.$ac_ext >&5
35171
35172 ac_cv_c_const=no
35173 fi
35174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35175 fi
35176 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35177 echo "${ECHO_T}$ac_cv_c_const" >&6
35178 if test $ac_cv_c_const = no; then
35179
35180 cat >>confdefs.h <<\_ACEOF
35181 #define const
35182 _ACEOF
35183
35184 fi
35185
35186 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
35187 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
35188 if test "${ol_cv_c_volatile+set}" = set; then
35189   echo $ECHO_N "(cached) $ECHO_C" >&6
35190 else
35191   cat >conftest.$ac_ext <<_ACEOF
35192 /* confdefs.h.  */
35193 _ACEOF
35194 cat confdefs.h >>conftest.$ac_ext
35195 cat >>conftest.$ac_ext <<_ACEOF
35196 /* end confdefs.h.  */
35197 int x, y, z;
35198 int
35199 main ()
35200 {
35201 volatile int a; int * volatile b = x ? &y : &z;
35202       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
35203       *b = 0;
35204   ;
35205   return 0;
35206 }
35207 _ACEOF
35208 rm -f conftest.$ac_objext
35209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35210   (eval $ac_compile) 2>conftest.er1
35211   ac_status=$?
35212   grep -v '^ *+' conftest.er1 >conftest.err
35213   rm -f conftest.er1
35214   cat conftest.err >&5
35215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35216   (exit $ac_status); } &&
35217          { ac_try='test -z "$ac_c_werror_flag"
35218                          || test ! -s conftest.err'
35219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35220   (eval $ac_try) 2>&5
35221   ac_status=$?
35222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35223   (exit $ac_status); }; } &&
35224          { ac_try='test -s conftest.$ac_objext'
35225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35226   (eval $ac_try) 2>&5
35227   ac_status=$?
35228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35229   (exit $ac_status); }; }; then
35230   ol_cv_c_volatile=yes
35231 else
35232   echo "$as_me: failed program was:" >&5
35233 sed 's/^/| /' conftest.$ac_ext >&5
35234
35235 ol_cv_c_volatile=no
35236 fi
35237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35238 fi
35239 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
35240 echo "${ECHO_T}$ol_cv_c_volatile" >&6
35241   if test $ol_cv_c_volatile = yes; then
35242     :
35243   else
35244
35245 cat >>confdefs.h <<\_ACEOF
35246 #define volatile
35247 _ACEOF
35248
35249   fi
35250
35251
35252 if test $cross_compiling = yes ; then
35253         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
35254 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
35255
35256 cat >>confdefs.h <<\_ACEOF
35257 #define CROSS_COMPILING 1
35258 _ACEOF
35259
35260 else
35261         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
35262 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
35263 if test "${ac_cv_c_bigendian+set}" = set; then
35264   echo $ECHO_N "(cached) $ECHO_C" >&6
35265 else
35266   # See if sys/param.h defines the BYTE_ORDER macro.
35267 cat >conftest.$ac_ext <<_ACEOF
35268 /* confdefs.h.  */
35269 _ACEOF
35270 cat confdefs.h >>conftest.$ac_ext
35271 cat >>conftest.$ac_ext <<_ACEOF
35272 /* end confdefs.h.  */
35273 #include <sys/types.h>
35274 #include <sys/param.h>
35275
35276 int
35277 main ()
35278 {
35279 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
35280  bogus endian macros
35281 #endif
35282
35283   ;
35284   return 0;
35285 }
35286 _ACEOF
35287 rm -f conftest.$ac_objext
35288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35289   (eval $ac_compile) 2>conftest.er1
35290   ac_status=$?
35291   grep -v '^ *+' conftest.er1 >conftest.err
35292   rm -f conftest.er1
35293   cat conftest.err >&5
35294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295   (exit $ac_status); } &&
35296          { ac_try='test -z "$ac_c_werror_flag"
35297                          || test ! -s conftest.err'
35298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35299   (eval $ac_try) 2>&5
35300   ac_status=$?
35301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302   (exit $ac_status); }; } &&
35303          { ac_try='test -s conftest.$ac_objext'
35304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35305   (eval $ac_try) 2>&5
35306   ac_status=$?
35307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308   (exit $ac_status); }; }; then
35309   # It does; now see whether it defined to BIG_ENDIAN or not.
35310 cat >conftest.$ac_ext <<_ACEOF
35311 /* confdefs.h.  */
35312 _ACEOF
35313 cat confdefs.h >>conftest.$ac_ext
35314 cat >>conftest.$ac_ext <<_ACEOF
35315 /* end confdefs.h.  */
35316 #include <sys/types.h>
35317 #include <sys/param.h>
35318
35319 int
35320 main ()
35321 {
35322 #if BYTE_ORDER != BIG_ENDIAN
35323  not big endian
35324 #endif
35325
35326   ;
35327   return 0;
35328 }
35329 _ACEOF
35330 rm -f conftest.$ac_objext
35331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35332   (eval $ac_compile) 2>conftest.er1
35333   ac_status=$?
35334   grep -v '^ *+' conftest.er1 >conftest.err
35335   rm -f conftest.er1
35336   cat conftest.err >&5
35337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35338   (exit $ac_status); } &&
35339          { ac_try='test -z "$ac_c_werror_flag"
35340                          || test ! -s conftest.err'
35341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35342   (eval $ac_try) 2>&5
35343   ac_status=$?
35344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35345   (exit $ac_status); }; } &&
35346          { ac_try='test -s conftest.$ac_objext'
35347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35348   (eval $ac_try) 2>&5
35349   ac_status=$?
35350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351   (exit $ac_status); }; }; then
35352   ac_cv_c_bigendian=yes
35353 else
35354   echo "$as_me: failed program was:" >&5
35355 sed 's/^/| /' conftest.$ac_ext >&5
35356
35357 ac_cv_c_bigendian=no
35358 fi
35359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35360 else
35361   echo "$as_me: failed program was:" >&5
35362 sed 's/^/| /' conftest.$ac_ext >&5
35363
35364 # It does not; compile a test program.
35365 if test "$cross_compiling" = yes; then
35366   # try to guess the endianness by grepping values into an object file
35367   ac_cv_c_bigendian=unknown
35368   cat >conftest.$ac_ext <<_ACEOF
35369 /* confdefs.h.  */
35370 _ACEOF
35371 cat confdefs.h >>conftest.$ac_ext
35372 cat >>conftest.$ac_ext <<_ACEOF
35373 /* end confdefs.h.  */
35374 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35375 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35376 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
35377 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35378 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35379 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
35380 int
35381 main ()
35382 {
35383  _ascii (); _ebcdic ();
35384   ;
35385   return 0;
35386 }
35387 _ACEOF
35388 rm -f conftest.$ac_objext
35389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35390   (eval $ac_compile) 2>conftest.er1
35391   ac_status=$?
35392   grep -v '^ *+' conftest.er1 >conftest.err
35393   rm -f conftest.er1
35394   cat conftest.err >&5
35395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396   (exit $ac_status); } &&
35397          { ac_try='test -z "$ac_c_werror_flag"
35398                          || test ! -s conftest.err'
35399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35400   (eval $ac_try) 2>&5
35401   ac_status=$?
35402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35403   (exit $ac_status); }; } &&
35404          { ac_try='test -s conftest.$ac_objext'
35405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35406   (eval $ac_try) 2>&5
35407   ac_status=$?
35408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35409   (exit $ac_status); }; }; then
35410   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
35411   ac_cv_c_bigendian=yes
35412 fi
35413 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35414   if test "$ac_cv_c_bigendian" = unknown; then
35415     ac_cv_c_bigendian=no
35416   else
35417     # finding both strings is unlikely to happen, but who knows?
35418     ac_cv_c_bigendian=unknown
35419   fi
35420 fi
35421 else
35422   echo "$as_me: failed program was:" >&5
35423 sed 's/^/| /' conftest.$ac_ext >&5
35424
35425 fi
35426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35427 else
35428   cat >conftest.$ac_ext <<_ACEOF
35429 /* confdefs.h.  */
35430 _ACEOF
35431 cat confdefs.h >>conftest.$ac_ext
35432 cat >>conftest.$ac_ext <<_ACEOF
35433 /* end confdefs.h.  */
35434 int
35435 main ()
35436 {
35437   /* Are we little or big endian?  From Harbison&Steele.  */
35438   union
35439   {
35440     long l;
35441     char c[sizeof (long)];
35442   } u;
35443   u.l = 1;
35444   exit (u.c[sizeof (long) - 1] == 1);
35445 }
35446 _ACEOF
35447 rm -f conftest$ac_exeext
35448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35449   (eval $ac_link) 2>&5
35450   ac_status=$?
35451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35454   (eval $ac_try) 2>&5
35455   ac_status=$?
35456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35457   (exit $ac_status); }; }; then
35458   ac_cv_c_bigendian=no
35459 else
35460   echo "$as_me: program exited with status $ac_status" >&5
35461 echo "$as_me: failed program was:" >&5
35462 sed 's/^/| /' conftest.$ac_ext >&5
35463
35464 ( exit $ac_status )
35465 ac_cv_c_bigendian=yes
35466 fi
35467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35468 fi
35469 fi
35470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35471 fi
35472 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
35473 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
35474 case $ac_cv_c_bigendian in
35475   yes)
35476
35477 cat >>confdefs.h <<\_ACEOF
35478 #define WORDS_BIGENDIAN 1
35479 _ACEOF
35480  ;;
35481   no)
35482      ;;
35483   *)
35484     { { echo "$as_me:$LINENO: error: unknown endianness
35485 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35486 echo "$as_me: error: unknown endianness
35487 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35488    { (exit 1); exit 1; }; } ;;
35489 esac
35490
35491 fi
35492
35493 echo "$as_me:$LINENO: checking for short" >&5
35494 echo $ECHO_N "checking for short... $ECHO_C" >&6
35495 if test "${ac_cv_type_short+set}" = set; then
35496   echo $ECHO_N "(cached) $ECHO_C" >&6
35497 else
35498   cat >conftest.$ac_ext <<_ACEOF
35499 /* confdefs.h.  */
35500 _ACEOF
35501 cat confdefs.h >>conftest.$ac_ext
35502 cat >>conftest.$ac_ext <<_ACEOF
35503 /* end confdefs.h.  */
35504 $ac_includes_default
35505 int
35506 main ()
35507 {
35508 if ((short *) 0)
35509   return 0;
35510 if (sizeof (short))
35511   return 0;
35512   ;
35513   return 0;
35514 }
35515 _ACEOF
35516 rm -f conftest.$ac_objext
35517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35518   (eval $ac_compile) 2>conftest.er1
35519   ac_status=$?
35520   grep -v '^ *+' conftest.er1 >conftest.err
35521   rm -f conftest.er1
35522   cat conftest.err >&5
35523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35524   (exit $ac_status); } &&
35525          { ac_try='test -z "$ac_c_werror_flag"
35526                          || test ! -s conftest.err'
35527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35528   (eval $ac_try) 2>&5
35529   ac_status=$?
35530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35531   (exit $ac_status); }; } &&
35532          { ac_try='test -s conftest.$ac_objext'
35533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35534   (eval $ac_try) 2>&5
35535   ac_status=$?
35536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35537   (exit $ac_status); }; }; then
35538   ac_cv_type_short=yes
35539 else
35540   echo "$as_me: failed program was:" >&5
35541 sed 's/^/| /' conftest.$ac_ext >&5
35542
35543 ac_cv_type_short=no
35544 fi
35545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35546 fi
35547 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35548 echo "${ECHO_T}$ac_cv_type_short" >&6
35549
35550 echo "$as_me:$LINENO: checking size of short" >&5
35551 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35552 if test "${ac_cv_sizeof_short+set}" = set; then
35553   echo $ECHO_N "(cached) $ECHO_C" >&6
35554 else
35555   if test "$ac_cv_type_short" = yes; then
35556   # The cast to unsigned long works around a bug in the HP C Compiler
35557   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35558   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35559   # This bug is HP SR number 8606223364.
35560   if test "$cross_compiling" = yes; then
35561   # Depending upon the size, compute the lo and hi bounds.
35562 cat >conftest.$ac_ext <<_ACEOF
35563 /* confdefs.h.  */
35564 _ACEOF
35565 cat confdefs.h >>conftest.$ac_ext
35566 cat >>conftest.$ac_ext <<_ACEOF
35567 /* end confdefs.h.  */
35568 $ac_includes_default
35569 int
35570 main ()
35571 {
35572 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35573 test_array [0] = 0
35574
35575   ;
35576   return 0;
35577 }
35578 _ACEOF
35579 rm -f conftest.$ac_objext
35580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35581   (eval $ac_compile) 2>conftest.er1
35582   ac_status=$?
35583   grep -v '^ *+' conftest.er1 >conftest.err
35584   rm -f conftest.er1
35585   cat conftest.err >&5
35586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35587   (exit $ac_status); } &&
35588          { ac_try='test -z "$ac_c_werror_flag"
35589                          || test ! -s conftest.err'
35590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35591   (eval $ac_try) 2>&5
35592   ac_status=$?
35593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35594   (exit $ac_status); }; } &&
35595          { ac_try='test -s conftest.$ac_objext'
35596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35597   (eval $ac_try) 2>&5
35598   ac_status=$?
35599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35600   (exit $ac_status); }; }; then
35601   ac_lo=0 ac_mid=0
35602   while :; do
35603     cat >conftest.$ac_ext <<_ACEOF
35604 /* confdefs.h.  */
35605 _ACEOF
35606 cat confdefs.h >>conftest.$ac_ext
35607 cat >>conftest.$ac_ext <<_ACEOF
35608 /* end confdefs.h.  */
35609 $ac_includes_default
35610 int
35611 main ()
35612 {
35613 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35614 test_array [0] = 0
35615
35616   ;
35617   return 0;
35618 }
35619 _ACEOF
35620 rm -f conftest.$ac_objext
35621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35622   (eval $ac_compile) 2>conftest.er1
35623   ac_status=$?
35624   grep -v '^ *+' conftest.er1 >conftest.err
35625   rm -f conftest.er1
35626   cat conftest.err >&5
35627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628   (exit $ac_status); } &&
35629          { ac_try='test -z "$ac_c_werror_flag"
35630                          || test ! -s conftest.err'
35631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35632   (eval $ac_try) 2>&5
35633   ac_status=$?
35634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35635   (exit $ac_status); }; } &&
35636          { ac_try='test -s conftest.$ac_objext'
35637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35638   (eval $ac_try) 2>&5
35639   ac_status=$?
35640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35641   (exit $ac_status); }; }; then
35642   ac_hi=$ac_mid; break
35643 else
35644   echo "$as_me: failed program was:" >&5
35645 sed 's/^/| /' conftest.$ac_ext >&5
35646
35647 ac_lo=`expr $ac_mid + 1`
35648                     if test $ac_lo -le $ac_mid; then
35649                       ac_lo= ac_hi=
35650                       break
35651                     fi
35652                     ac_mid=`expr 2 '*' $ac_mid + 1`
35653 fi
35654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35655   done
35656 else
35657   echo "$as_me: failed program was:" >&5
35658 sed 's/^/| /' conftest.$ac_ext >&5
35659
35660 cat >conftest.$ac_ext <<_ACEOF
35661 /* confdefs.h.  */
35662 _ACEOF
35663 cat confdefs.h >>conftest.$ac_ext
35664 cat >>conftest.$ac_ext <<_ACEOF
35665 /* end confdefs.h.  */
35666 $ac_includes_default
35667 int
35668 main ()
35669 {
35670 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35671 test_array [0] = 0
35672
35673   ;
35674   return 0;
35675 }
35676 _ACEOF
35677 rm -f conftest.$ac_objext
35678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35679   (eval $ac_compile) 2>conftest.er1
35680   ac_status=$?
35681   grep -v '^ *+' conftest.er1 >conftest.err
35682   rm -f conftest.er1
35683   cat conftest.err >&5
35684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685   (exit $ac_status); } &&
35686          { ac_try='test -z "$ac_c_werror_flag"
35687                          || test ! -s conftest.err'
35688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35689   (eval $ac_try) 2>&5
35690   ac_status=$?
35691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692   (exit $ac_status); }; } &&
35693          { ac_try='test -s conftest.$ac_objext'
35694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35695   (eval $ac_try) 2>&5
35696   ac_status=$?
35697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698   (exit $ac_status); }; }; then
35699   ac_hi=-1 ac_mid=-1
35700   while :; do
35701     cat >conftest.$ac_ext <<_ACEOF
35702 /* confdefs.h.  */
35703 _ACEOF
35704 cat confdefs.h >>conftest.$ac_ext
35705 cat >>conftest.$ac_ext <<_ACEOF
35706 /* end confdefs.h.  */
35707 $ac_includes_default
35708 int
35709 main ()
35710 {
35711 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35712 test_array [0] = 0
35713
35714   ;
35715   return 0;
35716 }
35717 _ACEOF
35718 rm -f conftest.$ac_objext
35719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35720   (eval $ac_compile) 2>conftest.er1
35721   ac_status=$?
35722   grep -v '^ *+' conftest.er1 >conftest.err
35723   rm -f conftest.er1
35724   cat conftest.err >&5
35725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35726   (exit $ac_status); } &&
35727          { ac_try='test -z "$ac_c_werror_flag"
35728                          || test ! -s conftest.err'
35729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35730   (eval $ac_try) 2>&5
35731   ac_status=$?
35732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35733   (exit $ac_status); }; } &&
35734          { ac_try='test -s conftest.$ac_objext'
35735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35736   (eval $ac_try) 2>&5
35737   ac_status=$?
35738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35739   (exit $ac_status); }; }; then
35740   ac_lo=$ac_mid; break
35741 else
35742   echo "$as_me: failed program was:" >&5
35743 sed 's/^/| /' conftest.$ac_ext >&5
35744
35745 ac_hi=`expr '(' $ac_mid ')' - 1`
35746                        if test $ac_mid -le $ac_hi; then
35747                          ac_lo= ac_hi=
35748                          break
35749                        fi
35750                        ac_mid=`expr 2 '*' $ac_mid`
35751 fi
35752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35753   done
35754 else
35755   echo "$as_me: failed program was:" >&5
35756 sed 's/^/| /' conftest.$ac_ext >&5
35757
35758 ac_lo= ac_hi=
35759 fi
35760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35761 fi
35762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35763 # Binary search between lo and hi bounds.
35764 while test "x$ac_lo" != "x$ac_hi"; do
35765   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35766   cat >conftest.$ac_ext <<_ACEOF
35767 /* confdefs.h.  */
35768 _ACEOF
35769 cat confdefs.h >>conftest.$ac_ext
35770 cat >>conftest.$ac_ext <<_ACEOF
35771 /* end confdefs.h.  */
35772 $ac_includes_default
35773 int
35774 main ()
35775 {
35776 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35777 test_array [0] = 0
35778
35779   ;
35780   return 0;
35781 }
35782 _ACEOF
35783 rm -f conftest.$ac_objext
35784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35785   (eval $ac_compile) 2>conftest.er1
35786   ac_status=$?
35787   grep -v '^ *+' conftest.er1 >conftest.err
35788   rm -f conftest.er1
35789   cat conftest.err >&5
35790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35791   (exit $ac_status); } &&
35792          { ac_try='test -z "$ac_c_werror_flag"
35793                          || test ! -s conftest.err'
35794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35795   (eval $ac_try) 2>&5
35796   ac_status=$?
35797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35798   (exit $ac_status); }; } &&
35799          { ac_try='test -s conftest.$ac_objext'
35800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35801   (eval $ac_try) 2>&5
35802   ac_status=$?
35803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804   (exit $ac_status); }; }; then
35805   ac_hi=$ac_mid
35806 else
35807   echo "$as_me: failed program was:" >&5
35808 sed 's/^/| /' conftest.$ac_ext >&5
35809
35810 ac_lo=`expr '(' $ac_mid ')' + 1`
35811 fi
35812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35813 done
35814 case $ac_lo in
35815 ?*) ac_cv_sizeof_short=$ac_lo;;
35816 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35817 See \`config.log' for more details." >&5
35818 echo "$as_me: error: cannot compute sizeof (short), 77
35819 See \`config.log' for more details." >&2;}
35820    { (exit 1); exit 1; }; } ;;
35821 esac
35822 else
35823   if test "$cross_compiling" = yes; then
35824   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35825 See \`config.log' for more details." >&5
35826 echo "$as_me: error: cannot run test program while cross compiling
35827 See \`config.log' for more details." >&2;}
35828    { (exit 1); exit 1; }; }
35829 else
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 long longval () { return (long) (sizeof (short)); }
35838 unsigned long ulongval () { return (long) (sizeof (short)); }
35839 #include <stdio.h>
35840 #include <stdlib.h>
35841 int
35842 main ()
35843 {
35844
35845   FILE *f = fopen ("conftest.val", "w");
35846   if (! f)
35847     exit (1);
35848   if (((long) (sizeof (short))) < 0)
35849     {
35850       long i = longval ();
35851       if (i != ((long) (sizeof (short))))
35852         exit (1);
35853       fprintf (f, "%ld\n", i);
35854     }
35855   else
35856     {
35857       unsigned long i = ulongval ();
35858       if (i != ((long) (sizeof (short))))
35859         exit (1);
35860       fprintf (f, "%lu\n", i);
35861     }
35862   exit (ferror (f) || fclose (f) != 0);
35863
35864   ;
35865   return 0;
35866 }
35867 _ACEOF
35868 rm -f conftest$ac_exeext
35869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35870   (eval $ac_link) 2>&5
35871   ac_status=$?
35872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35875   (eval $ac_try) 2>&5
35876   ac_status=$?
35877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878   (exit $ac_status); }; }; then
35879   ac_cv_sizeof_short=`cat conftest.val`
35880 else
35881   echo "$as_me: program exited with status $ac_status" >&5
35882 echo "$as_me: failed program was:" >&5
35883 sed 's/^/| /' conftest.$ac_ext >&5
35884
35885 ( exit $ac_status )
35886 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35887 See \`config.log' for more details." >&5
35888 echo "$as_me: error: cannot compute sizeof (short), 77
35889 See \`config.log' for more details." >&2;}
35890    { (exit 1); exit 1; }; }
35891 fi
35892 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35893 fi
35894 fi
35895 rm -f conftest.val
35896 else
35897   ac_cv_sizeof_short=0
35898 fi
35899 fi
35900 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35901 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35902 cat >>confdefs.h <<_ACEOF
35903 #define SIZEOF_SHORT $ac_cv_sizeof_short
35904 _ACEOF
35905
35906
35907 echo "$as_me:$LINENO: checking for int" >&5
35908 echo $ECHO_N "checking for int... $ECHO_C" >&6
35909 if test "${ac_cv_type_int+set}" = set; then
35910   echo $ECHO_N "(cached) $ECHO_C" >&6
35911 else
35912   cat >conftest.$ac_ext <<_ACEOF
35913 /* confdefs.h.  */
35914 _ACEOF
35915 cat confdefs.h >>conftest.$ac_ext
35916 cat >>conftest.$ac_ext <<_ACEOF
35917 /* end confdefs.h.  */
35918 $ac_includes_default
35919 int
35920 main ()
35921 {
35922 if ((int *) 0)
35923   return 0;
35924 if (sizeof (int))
35925   return 0;
35926   ;
35927   return 0;
35928 }
35929 _ACEOF
35930 rm -f conftest.$ac_objext
35931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35932   (eval $ac_compile) 2>conftest.er1
35933   ac_status=$?
35934   grep -v '^ *+' conftest.er1 >conftest.err
35935   rm -f conftest.er1
35936   cat conftest.err >&5
35937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938   (exit $ac_status); } &&
35939          { ac_try='test -z "$ac_c_werror_flag"
35940                          || test ! -s conftest.err'
35941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35942   (eval $ac_try) 2>&5
35943   ac_status=$?
35944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35945   (exit $ac_status); }; } &&
35946          { ac_try='test -s conftest.$ac_objext'
35947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35948   (eval $ac_try) 2>&5
35949   ac_status=$?
35950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35951   (exit $ac_status); }; }; then
35952   ac_cv_type_int=yes
35953 else
35954   echo "$as_me: failed program was:" >&5
35955 sed 's/^/| /' conftest.$ac_ext >&5
35956
35957 ac_cv_type_int=no
35958 fi
35959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35960 fi
35961 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35962 echo "${ECHO_T}$ac_cv_type_int" >&6
35963
35964 echo "$as_me:$LINENO: checking size of int" >&5
35965 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35966 if test "${ac_cv_sizeof_int+set}" = set; then
35967   echo $ECHO_N "(cached) $ECHO_C" >&6
35968 else
35969   if test "$ac_cv_type_int" = yes; then
35970   # The cast to unsigned long works around a bug in the HP C Compiler
35971   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35972   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35973   # This bug is HP SR number 8606223364.
35974   if test "$cross_compiling" = yes; then
35975   # Depending upon the size, compute the lo and hi bounds.
35976 cat >conftest.$ac_ext <<_ACEOF
35977 /* confdefs.h.  */
35978 _ACEOF
35979 cat confdefs.h >>conftest.$ac_ext
35980 cat >>conftest.$ac_ext <<_ACEOF
35981 /* end confdefs.h.  */
35982 $ac_includes_default
35983 int
35984 main ()
35985 {
35986 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
35987 test_array [0] = 0
35988
35989   ;
35990   return 0;
35991 }
35992 _ACEOF
35993 rm -f conftest.$ac_objext
35994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35995   (eval $ac_compile) 2>conftest.er1
35996   ac_status=$?
35997   grep -v '^ *+' conftest.er1 >conftest.err
35998   rm -f conftest.er1
35999   cat conftest.err >&5
36000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36001   (exit $ac_status); } &&
36002          { ac_try='test -z "$ac_c_werror_flag"
36003                          || test ! -s conftest.err'
36004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36005   (eval $ac_try) 2>&5
36006   ac_status=$?
36007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008   (exit $ac_status); }; } &&
36009          { ac_try='test -s conftest.$ac_objext'
36010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36011   (eval $ac_try) 2>&5
36012   ac_status=$?
36013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014   (exit $ac_status); }; }; then
36015   ac_lo=0 ac_mid=0
36016   while :; do
36017     cat >conftest.$ac_ext <<_ACEOF
36018 /* confdefs.h.  */
36019 _ACEOF
36020 cat confdefs.h >>conftest.$ac_ext
36021 cat >>conftest.$ac_ext <<_ACEOF
36022 /* end confdefs.h.  */
36023 $ac_includes_default
36024 int
36025 main ()
36026 {
36027 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36028 test_array [0] = 0
36029
36030   ;
36031   return 0;
36032 }
36033 _ACEOF
36034 rm -f conftest.$ac_objext
36035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36036   (eval $ac_compile) 2>conftest.er1
36037   ac_status=$?
36038   grep -v '^ *+' conftest.er1 >conftest.err
36039   rm -f conftest.er1
36040   cat conftest.err >&5
36041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36042   (exit $ac_status); } &&
36043          { ac_try='test -z "$ac_c_werror_flag"
36044                          || test ! -s conftest.err'
36045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36046   (eval $ac_try) 2>&5
36047   ac_status=$?
36048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36049   (exit $ac_status); }; } &&
36050          { ac_try='test -s conftest.$ac_objext'
36051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36052   (eval $ac_try) 2>&5
36053   ac_status=$?
36054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36055   (exit $ac_status); }; }; then
36056   ac_hi=$ac_mid; break
36057 else
36058   echo "$as_me: failed program was:" >&5
36059 sed 's/^/| /' conftest.$ac_ext >&5
36060
36061 ac_lo=`expr $ac_mid + 1`
36062                     if test $ac_lo -le $ac_mid; then
36063                       ac_lo= ac_hi=
36064                       break
36065                     fi
36066                     ac_mid=`expr 2 '*' $ac_mid + 1`
36067 fi
36068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36069   done
36070 else
36071   echo "$as_me: failed program was:" >&5
36072 sed 's/^/| /' conftest.$ac_ext >&5
36073
36074 cat >conftest.$ac_ext <<_ACEOF
36075 /* confdefs.h.  */
36076 _ACEOF
36077 cat confdefs.h >>conftest.$ac_ext
36078 cat >>conftest.$ac_ext <<_ACEOF
36079 /* end confdefs.h.  */
36080 $ac_includes_default
36081 int
36082 main ()
36083 {
36084 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
36085 test_array [0] = 0
36086
36087   ;
36088   return 0;
36089 }
36090 _ACEOF
36091 rm -f conftest.$ac_objext
36092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36093   (eval $ac_compile) 2>conftest.er1
36094   ac_status=$?
36095   grep -v '^ *+' conftest.er1 >conftest.err
36096   rm -f conftest.er1
36097   cat conftest.err >&5
36098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099   (exit $ac_status); } &&
36100          { ac_try='test -z "$ac_c_werror_flag"
36101                          || test ! -s conftest.err'
36102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36103   (eval $ac_try) 2>&5
36104   ac_status=$?
36105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36106   (exit $ac_status); }; } &&
36107          { ac_try='test -s conftest.$ac_objext'
36108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36109   (eval $ac_try) 2>&5
36110   ac_status=$?
36111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36112   (exit $ac_status); }; }; then
36113   ac_hi=-1 ac_mid=-1
36114   while :; do
36115     cat >conftest.$ac_ext <<_ACEOF
36116 /* confdefs.h.  */
36117 _ACEOF
36118 cat confdefs.h >>conftest.$ac_ext
36119 cat >>conftest.$ac_ext <<_ACEOF
36120 /* end confdefs.h.  */
36121 $ac_includes_default
36122 int
36123 main ()
36124 {
36125 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
36126 test_array [0] = 0
36127
36128   ;
36129   return 0;
36130 }
36131 _ACEOF
36132 rm -f conftest.$ac_objext
36133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36134   (eval $ac_compile) 2>conftest.er1
36135   ac_status=$?
36136   grep -v '^ *+' conftest.er1 >conftest.err
36137   rm -f conftest.er1
36138   cat conftest.err >&5
36139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140   (exit $ac_status); } &&
36141          { ac_try='test -z "$ac_c_werror_flag"
36142                          || test ! -s conftest.err'
36143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36144   (eval $ac_try) 2>&5
36145   ac_status=$?
36146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36147   (exit $ac_status); }; } &&
36148          { ac_try='test -s conftest.$ac_objext'
36149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36150   (eval $ac_try) 2>&5
36151   ac_status=$?
36152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153   (exit $ac_status); }; }; then
36154   ac_lo=$ac_mid; break
36155 else
36156   echo "$as_me: failed program was:" >&5
36157 sed 's/^/| /' conftest.$ac_ext >&5
36158
36159 ac_hi=`expr '(' $ac_mid ')' - 1`
36160                        if test $ac_mid -le $ac_hi; then
36161                          ac_lo= ac_hi=
36162                          break
36163                        fi
36164                        ac_mid=`expr 2 '*' $ac_mid`
36165 fi
36166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36167   done
36168 else
36169   echo "$as_me: failed program was:" >&5
36170 sed 's/^/| /' conftest.$ac_ext >&5
36171
36172 ac_lo= ac_hi=
36173 fi
36174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36175 fi
36176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36177 # Binary search between lo and hi bounds.
36178 while test "x$ac_lo" != "x$ac_hi"; do
36179   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36180   cat >conftest.$ac_ext <<_ACEOF
36181 /* confdefs.h.  */
36182 _ACEOF
36183 cat confdefs.h >>conftest.$ac_ext
36184 cat >>conftest.$ac_ext <<_ACEOF
36185 /* end confdefs.h.  */
36186 $ac_includes_default
36187 int
36188 main ()
36189 {
36190 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36191 test_array [0] = 0
36192
36193   ;
36194   return 0;
36195 }
36196 _ACEOF
36197 rm -f conftest.$ac_objext
36198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36199   (eval $ac_compile) 2>conftest.er1
36200   ac_status=$?
36201   grep -v '^ *+' conftest.er1 >conftest.err
36202   rm -f conftest.er1
36203   cat conftest.err >&5
36204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36205   (exit $ac_status); } &&
36206          { ac_try='test -z "$ac_c_werror_flag"
36207                          || test ! -s conftest.err'
36208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36209   (eval $ac_try) 2>&5
36210   ac_status=$?
36211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212   (exit $ac_status); }; } &&
36213          { ac_try='test -s conftest.$ac_objext'
36214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36215   (eval $ac_try) 2>&5
36216   ac_status=$?
36217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218   (exit $ac_status); }; }; then
36219   ac_hi=$ac_mid
36220 else
36221   echo "$as_me: failed program was:" >&5
36222 sed 's/^/| /' conftest.$ac_ext >&5
36223
36224 ac_lo=`expr '(' $ac_mid ')' + 1`
36225 fi
36226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36227 done
36228 case $ac_lo in
36229 ?*) ac_cv_sizeof_int=$ac_lo;;
36230 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36231 See \`config.log' for more details." >&5
36232 echo "$as_me: error: cannot compute sizeof (int), 77
36233 See \`config.log' for more details." >&2;}
36234    { (exit 1); exit 1; }; } ;;
36235 esac
36236 else
36237   if test "$cross_compiling" = yes; then
36238   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36239 See \`config.log' for more details." >&5
36240 echo "$as_me: error: cannot run test program while cross compiling
36241 See \`config.log' for more details." >&2;}
36242    { (exit 1); exit 1; }; }
36243 else
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 long longval () { return (long) (sizeof (int)); }
36252 unsigned long ulongval () { return (long) (sizeof (int)); }
36253 #include <stdio.h>
36254 #include <stdlib.h>
36255 int
36256 main ()
36257 {
36258
36259   FILE *f = fopen ("conftest.val", "w");
36260   if (! f)
36261     exit (1);
36262   if (((long) (sizeof (int))) < 0)
36263     {
36264       long i = longval ();
36265       if (i != ((long) (sizeof (int))))
36266         exit (1);
36267       fprintf (f, "%ld\n", i);
36268     }
36269   else
36270     {
36271       unsigned long i = ulongval ();
36272       if (i != ((long) (sizeof (int))))
36273         exit (1);
36274       fprintf (f, "%lu\n", i);
36275     }
36276   exit (ferror (f) || fclose (f) != 0);
36277
36278   ;
36279   return 0;
36280 }
36281 _ACEOF
36282 rm -f conftest$ac_exeext
36283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36284   (eval $ac_link) 2>&5
36285   ac_status=$?
36286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36289   (eval $ac_try) 2>&5
36290   ac_status=$?
36291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36292   (exit $ac_status); }; }; then
36293   ac_cv_sizeof_int=`cat conftest.val`
36294 else
36295   echo "$as_me: program exited with status $ac_status" >&5
36296 echo "$as_me: failed program was:" >&5
36297 sed 's/^/| /' conftest.$ac_ext >&5
36298
36299 ( exit $ac_status )
36300 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36301 See \`config.log' for more details." >&5
36302 echo "$as_me: error: cannot compute sizeof (int), 77
36303 See \`config.log' for more details." >&2;}
36304    { (exit 1); exit 1; }; }
36305 fi
36306 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36307 fi
36308 fi
36309 rm -f conftest.val
36310 else
36311   ac_cv_sizeof_int=0
36312 fi
36313 fi
36314 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36315 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
36316 cat >>confdefs.h <<_ACEOF
36317 #define SIZEOF_INT $ac_cv_sizeof_int
36318 _ACEOF
36319
36320
36321 echo "$as_me:$LINENO: checking for long" >&5
36322 echo $ECHO_N "checking for long... $ECHO_C" >&6
36323 if test "${ac_cv_type_long+set}" = set; then
36324   echo $ECHO_N "(cached) $ECHO_C" >&6
36325 else
36326   cat >conftest.$ac_ext <<_ACEOF
36327 /* confdefs.h.  */
36328 _ACEOF
36329 cat confdefs.h >>conftest.$ac_ext
36330 cat >>conftest.$ac_ext <<_ACEOF
36331 /* end confdefs.h.  */
36332 $ac_includes_default
36333 int
36334 main ()
36335 {
36336 if ((long *) 0)
36337   return 0;
36338 if (sizeof (long))
36339   return 0;
36340   ;
36341   return 0;
36342 }
36343 _ACEOF
36344 rm -f conftest.$ac_objext
36345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36346   (eval $ac_compile) 2>conftest.er1
36347   ac_status=$?
36348   grep -v '^ *+' conftest.er1 >conftest.err
36349   rm -f conftest.er1
36350   cat conftest.err >&5
36351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36352   (exit $ac_status); } &&
36353          { ac_try='test -z "$ac_c_werror_flag"
36354                          || test ! -s conftest.err'
36355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36356   (eval $ac_try) 2>&5
36357   ac_status=$?
36358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359   (exit $ac_status); }; } &&
36360          { ac_try='test -s conftest.$ac_objext'
36361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36362   (eval $ac_try) 2>&5
36363   ac_status=$?
36364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365   (exit $ac_status); }; }; then
36366   ac_cv_type_long=yes
36367 else
36368   echo "$as_me: failed program was:" >&5
36369 sed 's/^/| /' conftest.$ac_ext >&5
36370
36371 ac_cv_type_long=no
36372 fi
36373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36374 fi
36375 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36376 echo "${ECHO_T}$ac_cv_type_long" >&6
36377
36378 echo "$as_me:$LINENO: checking size of long" >&5
36379 echo $ECHO_N "checking size of long... $ECHO_C" >&6
36380 if test "${ac_cv_sizeof_long+set}" = set; then
36381   echo $ECHO_N "(cached) $ECHO_C" >&6
36382 else
36383   if test "$ac_cv_type_long" = yes; then
36384   # The cast to unsigned long works around a bug in the HP C Compiler
36385   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36386   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36387   # This bug is HP SR number 8606223364.
36388   if test "$cross_compiling" = yes; then
36389   # Depending upon the size, compute the lo and hi bounds.
36390 cat >conftest.$ac_ext <<_ACEOF
36391 /* confdefs.h.  */
36392 _ACEOF
36393 cat confdefs.h >>conftest.$ac_ext
36394 cat >>conftest.$ac_ext <<_ACEOF
36395 /* end confdefs.h.  */
36396 $ac_includes_default
36397 int
36398 main ()
36399 {
36400 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
36401 test_array [0] = 0
36402
36403   ;
36404   return 0;
36405 }
36406 _ACEOF
36407 rm -f conftest.$ac_objext
36408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36409   (eval $ac_compile) 2>conftest.er1
36410   ac_status=$?
36411   grep -v '^ *+' conftest.er1 >conftest.err
36412   rm -f conftest.er1
36413   cat conftest.err >&5
36414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415   (exit $ac_status); } &&
36416          { ac_try='test -z "$ac_c_werror_flag"
36417                          || test ! -s conftest.err'
36418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36419   (eval $ac_try) 2>&5
36420   ac_status=$?
36421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422   (exit $ac_status); }; } &&
36423          { ac_try='test -s conftest.$ac_objext'
36424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36425   (eval $ac_try) 2>&5
36426   ac_status=$?
36427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428   (exit $ac_status); }; }; then
36429   ac_lo=0 ac_mid=0
36430   while :; do
36431     cat >conftest.$ac_ext <<_ACEOF
36432 /* confdefs.h.  */
36433 _ACEOF
36434 cat confdefs.h >>conftest.$ac_ext
36435 cat >>conftest.$ac_ext <<_ACEOF
36436 /* end confdefs.h.  */
36437 $ac_includes_default
36438 int
36439 main ()
36440 {
36441 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36442 test_array [0] = 0
36443
36444   ;
36445   return 0;
36446 }
36447 _ACEOF
36448 rm -f conftest.$ac_objext
36449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36450   (eval $ac_compile) 2>conftest.er1
36451   ac_status=$?
36452   grep -v '^ *+' conftest.er1 >conftest.err
36453   rm -f conftest.er1
36454   cat conftest.err >&5
36455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36456   (exit $ac_status); } &&
36457          { ac_try='test -z "$ac_c_werror_flag"
36458                          || test ! -s conftest.err'
36459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36460   (eval $ac_try) 2>&5
36461   ac_status=$?
36462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36463   (exit $ac_status); }; } &&
36464          { ac_try='test -s conftest.$ac_objext'
36465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36466   (eval $ac_try) 2>&5
36467   ac_status=$?
36468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36469   (exit $ac_status); }; }; then
36470   ac_hi=$ac_mid; break
36471 else
36472   echo "$as_me: failed program was:" >&5
36473 sed 's/^/| /' conftest.$ac_ext >&5
36474
36475 ac_lo=`expr $ac_mid + 1`
36476                     if test $ac_lo -le $ac_mid; then
36477                       ac_lo= ac_hi=
36478                       break
36479                     fi
36480                     ac_mid=`expr 2 '*' $ac_mid + 1`
36481 fi
36482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36483   done
36484 else
36485   echo "$as_me: failed program was:" >&5
36486 sed 's/^/| /' conftest.$ac_ext >&5
36487
36488 cat >conftest.$ac_ext <<_ACEOF
36489 /* confdefs.h.  */
36490 _ACEOF
36491 cat confdefs.h >>conftest.$ac_ext
36492 cat >>conftest.$ac_ext <<_ACEOF
36493 /* end confdefs.h.  */
36494 $ac_includes_default
36495 int
36496 main ()
36497 {
36498 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
36499 test_array [0] = 0
36500
36501   ;
36502   return 0;
36503 }
36504 _ACEOF
36505 rm -f conftest.$ac_objext
36506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36507   (eval $ac_compile) 2>conftest.er1
36508   ac_status=$?
36509   grep -v '^ *+' conftest.er1 >conftest.err
36510   rm -f conftest.er1
36511   cat conftest.err >&5
36512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36513   (exit $ac_status); } &&
36514          { ac_try='test -z "$ac_c_werror_flag"
36515                          || test ! -s conftest.err'
36516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36517   (eval $ac_try) 2>&5
36518   ac_status=$?
36519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520   (exit $ac_status); }; } &&
36521          { ac_try='test -s conftest.$ac_objext'
36522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36523   (eval $ac_try) 2>&5
36524   ac_status=$?
36525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36526   (exit $ac_status); }; }; then
36527   ac_hi=-1 ac_mid=-1
36528   while :; do
36529     cat >conftest.$ac_ext <<_ACEOF
36530 /* confdefs.h.  */
36531 _ACEOF
36532 cat confdefs.h >>conftest.$ac_ext
36533 cat >>conftest.$ac_ext <<_ACEOF
36534 /* end confdefs.h.  */
36535 $ac_includes_default
36536 int
36537 main ()
36538 {
36539 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36540 test_array [0] = 0
36541
36542   ;
36543   return 0;
36544 }
36545 _ACEOF
36546 rm -f conftest.$ac_objext
36547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36548   (eval $ac_compile) 2>conftest.er1
36549   ac_status=$?
36550   grep -v '^ *+' conftest.er1 >conftest.err
36551   rm -f conftest.er1
36552   cat conftest.err >&5
36553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554   (exit $ac_status); } &&
36555          { ac_try='test -z "$ac_c_werror_flag"
36556                          || test ! -s conftest.err'
36557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36558   (eval $ac_try) 2>&5
36559   ac_status=$?
36560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36561   (exit $ac_status); }; } &&
36562          { ac_try='test -s conftest.$ac_objext'
36563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36564   (eval $ac_try) 2>&5
36565   ac_status=$?
36566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567   (exit $ac_status); }; }; then
36568   ac_lo=$ac_mid; break
36569 else
36570   echo "$as_me: failed program was:" >&5
36571 sed 's/^/| /' conftest.$ac_ext >&5
36572
36573 ac_hi=`expr '(' $ac_mid ')' - 1`
36574                        if test $ac_mid -le $ac_hi; then
36575                          ac_lo= ac_hi=
36576                          break
36577                        fi
36578                        ac_mid=`expr 2 '*' $ac_mid`
36579 fi
36580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36581   done
36582 else
36583   echo "$as_me: failed program was:" >&5
36584 sed 's/^/| /' conftest.$ac_ext >&5
36585
36586 ac_lo= ac_hi=
36587 fi
36588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36589 fi
36590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36591 # Binary search between lo and hi bounds.
36592 while test "x$ac_lo" != "x$ac_hi"; do
36593   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36594   cat >conftest.$ac_ext <<_ACEOF
36595 /* confdefs.h.  */
36596 _ACEOF
36597 cat confdefs.h >>conftest.$ac_ext
36598 cat >>conftest.$ac_ext <<_ACEOF
36599 /* end confdefs.h.  */
36600 $ac_includes_default
36601 int
36602 main ()
36603 {
36604 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36605 test_array [0] = 0
36606
36607   ;
36608   return 0;
36609 }
36610 _ACEOF
36611 rm -f conftest.$ac_objext
36612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36613   (eval $ac_compile) 2>conftest.er1
36614   ac_status=$?
36615   grep -v '^ *+' conftest.er1 >conftest.err
36616   rm -f conftest.er1
36617   cat conftest.err >&5
36618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36619   (exit $ac_status); } &&
36620          { ac_try='test -z "$ac_c_werror_flag"
36621                          || test ! -s conftest.err'
36622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36623   (eval $ac_try) 2>&5
36624   ac_status=$?
36625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36626   (exit $ac_status); }; } &&
36627          { ac_try='test -s conftest.$ac_objext'
36628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36629   (eval $ac_try) 2>&5
36630   ac_status=$?
36631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36632   (exit $ac_status); }; }; then
36633   ac_hi=$ac_mid
36634 else
36635   echo "$as_me: failed program was:" >&5
36636 sed 's/^/| /' conftest.$ac_ext >&5
36637
36638 ac_lo=`expr '(' $ac_mid ')' + 1`
36639 fi
36640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36641 done
36642 case $ac_lo in
36643 ?*) ac_cv_sizeof_long=$ac_lo;;
36644 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36645 See \`config.log' for more details." >&5
36646 echo "$as_me: error: cannot compute sizeof (long), 77
36647 See \`config.log' for more details." >&2;}
36648    { (exit 1); exit 1; }; } ;;
36649 esac
36650 else
36651   if test "$cross_compiling" = yes; then
36652   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36653 See \`config.log' for more details." >&5
36654 echo "$as_me: error: cannot run test program while cross compiling
36655 See \`config.log' for more details." >&2;}
36656    { (exit 1); exit 1; }; }
36657 else
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 long longval () { return (long) (sizeof (long)); }
36666 unsigned long ulongval () { return (long) (sizeof (long)); }
36667 #include <stdio.h>
36668 #include <stdlib.h>
36669 int
36670 main ()
36671 {
36672
36673   FILE *f = fopen ("conftest.val", "w");
36674   if (! f)
36675     exit (1);
36676   if (((long) (sizeof (long))) < 0)
36677     {
36678       long i = longval ();
36679       if (i != ((long) (sizeof (long))))
36680         exit (1);
36681       fprintf (f, "%ld\n", i);
36682     }
36683   else
36684     {
36685       unsigned long i = ulongval ();
36686       if (i != ((long) (sizeof (long))))
36687         exit (1);
36688       fprintf (f, "%lu\n", i);
36689     }
36690   exit (ferror (f) || fclose (f) != 0);
36691
36692   ;
36693   return 0;
36694 }
36695 _ACEOF
36696 rm -f conftest$ac_exeext
36697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36698   (eval $ac_link) 2>&5
36699   ac_status=$?
36700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36703   (eval $ac_try) 2>&5
36704   ac_status=$?
36705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706   (exit $ac_status); }; }; then
36707   ac_cv_sizeof_long=`cat conftest.val`
36708 else
36709   echo "$as_me: program exited with status $ac_status" >&5
36710 echo "$as_me: failed program was:" >&5
36711 sed 's/^/| /' conftest.$ac_ext >&5
36712
36713 ( exit $ac_status )
36714 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36715 See \`config.log' for more details." >&5
36716 echo "$as_me: error: cannot compute sizeof (long), 77
36717 See \`config.log' for more details." >&2;}
36718    { (exit 1); exit 1; }; }
36719 fi
36720 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36721 fi
36722 fi
36723 rm -f conftest.val
36724 else
36725   ac_cv_sizeof_long=0
36726 fi
36727 fi
36728 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36729 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36730 cat >>confdefs.h <<_ACEOF
36731 #define SIZEOF_LONG $ac_cv_sizeof_long
36732 _ACEOF
36733
36734
36735 echo "$as_me:$LINENO: checking for long long" >&5
36736 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36737 if test "${ac_cv_type_long_long+set}" = set; then
36738   echo $ECHO_N "(cached) $ECHO_C" >&6
36739 else
36740   cat >conftest.$ac_ext <<_ACEOF
36741 /* confdefs.h.  */
36742 _ACEOF
36743 cat confdefs.h >>conftest.$ac_ext
36744 cat >>conftest.$ac_ext <<_ACEOF
36745 /* end confdefs.h.  */
36746 $ac_includes_default
36747 int
36748 main ()
36749 {
36750 if ((long long *) 0)
36751   return 0;
36752 if (sizeof (long long))
36753   return 0;
36754   ;
36755   return 0;
36756 }
36757 _ACEOF
36758 rm -f conftest.$ac_objext
36759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36760   (eval $ac_compile) 2>conftest.er1
36761   ac_status=$?
36762   grep -v '^ *+' conftest.er1 >conftest.err
36763   rm -f conftest.er1
36764   cat conftest.err >&5
36765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766   (exit $ac_status); } &&
36767          { ac_try='test -z "$ac_c_werror_flag"
36768                          || test ! -s conftest.err'
36769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36770   (eval $ac_try) 2>&5
36771   ac_status=$?
36772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36773   (exit $ac_status); }; } &&
36774          { ac_try='test -s conftest.$ac_objext'
36775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36776   (eval $ac_try) 2>&5
36777   ac_status=$?
36778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36779   (exit $ac_status); }; }; then
36780   ac_cv_type_long_long=yes
36781 else
36782   echo "$as_me: failed program was:" >&5
36783 sed 's/^/| /' conftest.$ac_ext >&5
36784
36785 ac_cv_type_long_long=no
36786 fi
36787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36788 fi
36789 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36790 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36791
36792 echo "$as_me:$LINENO: checking size of long long" >&5
36793 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36794 if test "${ac_cv_sizeof_long_long+set}" = set; then
36795   echo $ECHO_N "(cached) $ECHO_C" >&6
36796 else
36797   if test "$ac_cv_type_long_long" = yes; then
36798   # The cast to unsigned long works around a bug in the HP C Compiler
36799   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36800   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36801   # This bug is HP SR number 8606223364.
36802   if test "$cross_compiling" = yes; then
36803   # Depending upon the size, compute the lo and hi bounds.
36804 cat >conftest.$ac_ext <<_ACEOF
36805 /* confdefs.h.  */
36806 _ACEOF
36807 cat confdefs.h >>conftest.$ac_ext
36808 cat >>conftest.$ac_ext <<_ACEOF
36809 /* end confdefs.h.  */
36810 $ac_includes_default
36811 int
36812 main ()
36813 {
36814 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36815 test_array [0] = 0
36816
36817   ;
36818   return 0;
36819 }
36820 _ACEOF
36821 rm -f conftest.$ac_objext
36822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36823   (eval $ac_compile) 2>conftest.er1
36824   ac_status=$?
36825   grep -v '^ *+' conftest.er1 >conftest.err
36826   rm -f conftest.er1
36827   cat conftest.err >&5
36828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36829   (exit $ac_status); } &&
36830          { ac_try='test -z "$ac_c_werror_flag"
36831                          || test ! -s conftest.err'
36832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36833   (eval $ac_try) 2>&5
36834   ac_status=$?
36835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36836   (exit $ac_status); }; } &&
36837          { ac_try='test -s conftest.$ac_objext'
36838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36839   (eval $ac_try) 2>&5
36840   ac_status=$?
36841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36842   (exit $ac_status); }; }; then
36843   ac_lo=0 ac_mid=0
36844   while :; do
36845     cat >conftest.$ac_ext <<_ACEOF
36846 /* confdefs.h.  */
36847 _ACEOF
36848 cat confdefs.h >>conftest.$ac_ext
36849 cat >>conftest.$ac_ext <<_ACEOF
36850 /* end confdefs.h.  */
36851 $ac_includes_default
36852 int
36853 main ()
36854 {
36855 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36856 test_array [0] = 0
36857
36858   ;
36859   return 0;
36860 }
36861 _ACEOF
36862 rm -f conftest.$ac_objext
36863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36864   (eval $ac_compile) 2>conftest.er1
36865   ac_status=$?
36866   grep -v '^ *+' conftest.er1 >conftest.err
36867   rm -f conftest.er1
36868   cat conftest.err >&5
36869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870   (exit $ac_status); } &&
36871          { ac_try='test -z "$ac_c_werror_flag"
36872                          || test ! -s conftest.err'
36873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36874   (eval $ac_try) 2>&5
36875   ac_status=$?
36876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36877   (exit $ac_status); }; } &&
36878          { ac_try='test -s conftest.$ac_objext'
36879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36880   (eval $ac_try) 2>&5
36881   ac_status=$?
36882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36883   (exit $ac_status); }; }; then
36884   ac_hi=$ac_mid; break
36885 else
36886   echo "$as_me: failed program was:" >&5
36887 sed 's/^/| /' conftest.$ac_ext >&5
36888
36889 ac_lo=`expr $ac_mid + 1`
36890                     if test $ac_lo -le $ac_mid; then
36891                       ac_lo= ac_hi=
36892                       break
36893                     fi
36894                     ac_mid=`expr 2 '*' $ac_mid + 1`
36895 fi
36896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36897   done
36898 else
36899   echo "$as_me: failed program was:" >&5
36900 sed 's/^/| /' conftest.$ac_ext >&5
36901
36902 cat >conftest.$ac_ext <<_ACEOF
36903 /* confdefs.h.  */
36904 _ACEOF
36905 cat confdefs.h >>conftest.$ac_ext
36906 cat >>conftest.$ac_ext <<_ACEOF
36907 /* end confdefs.h.  */
36908 $ac_includes_default
36909 int
36910 main ()
36911 {
36912 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36913 test_array [0] = 0
36914
36915   ;
36916   return 0;
36917 }
36918 _ACEOF
36919 rm -f conftest.$ac_objext
36920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36921   (eval $ac_compile) 2>conftest.er1
36922   ac_status=$?
36923   grep -v '^ *+' conftest.er1 >conftest.err
36924   rm -f conftest.er1
36925   cat conftest.err >&5
36926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36927   (exit $ac_status); } &&
36928          { ac_try='test -z "$ac_c_werror_flag"
36929                          || test ! -s conftest.err'
36930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36931   (eval $ac_try) 2>&5
36932   ac_status=$?
36933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36934   (exit $ac_status); }; } &&
36935          { ac_try='test -s conftest.$ac_objext'
36936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36937   (eval $ac_try) 2>&5
36938   ac_status=$?
36939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36940   (exit $ac_status); }; }; then
36941   ac_hi=-1 ac_mid=-1
36942   while :; do
36943     cat >conftest.$ac_ext <<_ACEOF
36944 /* confdefs.h.  */
36945 _ACEOF
36946 cat confdefs.h >>conftest.$ac_ext
36947 cat >>conftest.$ac_ext <<_ACEOF
36948 /* end confdefs.h.  */
36949 $ac_includes_default
36950 int
36951 main ()
36952 {
36953 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36954 test_array [0] = 0
36955
36956   ;
36957   return 0;
36958 }
36959 _ACEOF
36960 rm -f conftest.$ac_objext
36961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36962   (eval $ac_compile) 2>conftest.er1
36963   ac_status=$?
36964   grep -v '^ *+' conftest.er1 >conftest.err
36965   rm -f conftest.er1
36966   cat conftest.err >&5
36967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968   (exit $ac_status); } &&
36969          { ac_try='test -z "$ac_c_werror_flag"
36970                          || test ! -s conftest.err'
36971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36972   (eval $ac_try) 2>&5
36973   ac_status=$?
36974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36975   (exit $ac_status); }; } &&
36976          { ac_try='test -s conftest.$ac_objext'
36977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36978   (eval $ac_try) 2>&5
36979   ac_status=$?
36980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36981   (exit $ac_status); }; }; then
36982   ac_lo=$ac_mid; break
36983 else
36984   echo "$as_me: failed program was:" >&5
36985 sed 's/^/| /' conftest.$ac_ext >&5
36986
36987 ac_hi=`expr '(' $ac_mid ')' - 1`
36988                        if test $ac_mid -le $ac_hi; then
36989                          ac_lo= ac_hi=
36990                          break
36991                        fi
36992                        ac_mid=`expr 2 '*' $ac_mid`
36993 fi
36994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36995   done
36996 else
36997   echo "$as_me: failed program was:" >&5
36998 sed 's/^/| /' conftest.$ac_ext >&5
36999
37000 ac_lo= ac_hi=
37001 fi
37002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37003 fi
37004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37005 # Binary search between lo and hi bounds.
37006 while test "x$ac_lo" != "x$ac_hi"; do
37007   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37008   cat >conftest.$ac_ext <<_ACEOF
37009 /* confdefs.h.  */
37010 _ACEOF
37011 cat confdefs.h >>conftest.$ac_ext
37012 cat >>conftest.$ac_ext <<_ACEOF
37013 /* end confdefs.h.  */
37014 $ac_includes_default
37015 int
37016 main ()
37017 {
37018 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
37019 test_array [0] = 0
37020
37021   ;
37022   return 0;
37023 }
37024 _ACEOF
37025 rm -f conftest.$ac_objext
37026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37027   (eval $ac_compile) 2>conftest.er1
37028   ac_status=$?
37029   grep -v '^ *+' conftest.er1 >conftest.err
37030   rm -f conftest.er1
37031   cat conftest.err >&5
37032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37033   (exit $ac_status); } &&
37034          { ac_try='test -z "$ac_c_werror_flag"
37035                          || test ! -s conftest.err'
37036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37037   (eval $ac_try) 2>&5
37038   ac_status=$?
37039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37040   (exit $ac_status); }; } &&
37041          { ac_try='test -s conftest.$ac_objext'
37042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37043   (eval $ac_try) 2>&5
37044   ac_status=$?
37045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37046   (exit $ac_status); }; }; then
37047   ac_hi=$ac_mid
37048 else
37049   echo "$as_me: failed program was:" >&5
37050 sed 's/^/| /' conftest.$ac_ext >&5
37051
37052 ac_lo=`expr '(' $ac_mid ')' + 1`
37053 fi
37054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37055 done
37056 case $ac_lo in
37057 ?*) ac_cv_sizeof_long_long=$ac_lo;;
37058 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37059 See \`config.log' for more details." >&5
37060 echo "$as_me: error: cannot compute sizeof (long long), 77
37061 See \`config.log' for more details." >&2;}
37062    { (exit 1); exit 1; }; } ;;
37063 esac
37064 else
37065   if test "$cross_compiling" = yes; then
37066   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37067 See \`config.log' for more details." >&5
37068 echo "$as_me: error: cannot run test program while cross compiling
37069 See \`config.log' for more details." >&2;}
37070    { (exit 1); exit 1; }; }
37071 else
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 long longval () { return (long) (sizeof (long long)); }
37080 unsigned long ulongval () { return (long) (sizeof (long long)); }
37081 #include <stdio.h>
37082 #include <stdlib.h>
37083 int
37084 main ()
37085 {
37086
37087   FILE *f = fopen ("conftest.val", "w");
37088   if (! f)
37089     exit (1);
37090   if (((long) (sizeof (long long))) < 0)
37091     {
37092       long i = longval ();
37093       if (i != ((long) (sizeof (long long))))
37094         exit (1);
37095       fprintf (f, "%ld\n", i);
37096     }
37097   else
37098     {
37099       unsigned long i = ulongval ();
37100       if (i != ((long) (sizeof (long long))))
37101         exit (1);
37102       fprintf (f, "%lu\n", i);
37103     }
37104   exit (ferror (f) || fclose (f) != 0);
37105
37106   ;
37107   return 0;
37108 }
37109 _ACEOF
37110 rm -f conftest$ac_exeext
37111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37112   (eval $ac_link) 2>&5
37113   ac_status=$?
37114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37117   (eval $ac_try) 2>&5
37118   ac_status=$?
37119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37120   (exit $ac_status); }; }; then
37121   ac_cv_sizeof_long_long=`cat conftest.val`
37122 else
37123   echo "$as_me: program exited with status $ac_status" >&5
37124 echo "$as_me: failed program was:" >&5
37125 sed 's/^/| /' conftest.$ac_ext >&5
37126
37127 ( exit $ac_status )
37128 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37129 See \`config.log' for more details." >&5
37130 echo "$as_me: error: cannot compute sizeof (long long), 77
37131 See \`config.log' for more details." >&2;}
37132    { (exit 1); exit 1; }; }
37133 fi
37134 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37135 fi
37136 fi
37137 rm -f conftest.val
37138 else
37139   ac_cv_sizeof_long_long=0
37140 fi
37141 fi
37142 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
37143 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
37144 cat >>confdefs.h <<_ACEOF
37145 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
37146 _ACEOF
37147
37148
37149 echo "$as_me:$LINENO: checking for wchar_t" >&5
37150 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
37151 if test "${ac_cv_type_wchar_t+set}" = set; then
37152   echo $ECHO_N "(cached) $ECHO_C" >&6
37153 else
37154   cat >conftest.$ac_ext <<_ACEOF
37155 /* confdefs.h.  */
37156 _ACEOF
37157 cat confdefs.h >>conftest.$ac_ext
37158 cat >>conftest.$ac_ext <<_ACEOF
37159 /* end confdefs.h.  */
37160 $ac_includes_default
37161 int
37162 main ()
37163 {
37164 if ((wchar_t *) 0)
37165   return 0;
37166 if (sizeof (wchar_t))
37167   return 0;
37168   ;
37169   return 0;
37170 }
37171 _ACEOF
37172 rm -f conftest.$ac_objext
37173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37174   (eval $ac_compile) 2>conftest.er1
37175   ac_status=$?
37176   grep -v '^ *+' conftest.er1 >conftest.err
37177   rm -f conftest.er1
37178   cat conftest.err >&5
37179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180   (exit $ac_status); } &&
37181          { ac_try='test -z "$ac_c_werror_flag"
37182                          || test ! -s conftest.err'
37183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37184   (eval $ac_try) 2>&5
37185   ac_status=$?
37186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37187   (exit $ac_status); }; } &&
37188          { ac_try='test -s conftest.$ac_objext'
37189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37190   (eval $ac_try) 2>&5
37191   ac_status=$?
37192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37193   (exit $ac_status); }; }; then
37194   ac_cv_type_wchar_t=yes
37195 else
37196   echo "$as_me: failed program was:" >&5
37197 sed 's/^/| /' conftest.$ac_ext >&5
37198
37199 ac_cv_type_wchar_t=no
37200 fi
37201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37202 fi
37203 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
37204 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
37205
37206 echo "$as_me:$LINENO: checking size of wchar_t" >&5
37207 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
37208 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
37209   echo $ECHO_N "(cached) $ECHO_C" >&6
37210 else
37211   if test "$ac_cv_type_wchar_t" = yes; then
37212   # The cast to unsigned long works around a bug in the HP C Compiler
37213   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37214   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37215   # This bug is HP SR number 8606223364.
37216   if test "$cross_compiling" = yes; then
37217   # Depending upon the size, compute the lo and hi bounds.
37218 cat >conftest.$ac_ext <<_ACEOF
37219 /* confdefs.h.  */
37220 _ACEOF
37221 cat confdefs.h >>conftest.$ac_ext
37222 cat >>conftest.$ac_ext <<_ACEOF
37223 /* end confdefs.h.  */
37224 $ac_includes_default
37225 int
37226 main ()
37227 {
37228 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
37229 test_array [0] = 0
37230
37231   ;
37232   return 0;
37233 }
37234 _ACEOF
37235 rm -f conftest.$ac_objext
37236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37237   (eval $ac_compile) 2>conftest.er1
37238   ac_status=$?
37239   grep -v '^ *+' conftest.er1 >conftest.err
37240   rm -f conftest.er1
37241   cat conftest.err >&5
37242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37243   (exit $ac_status); } &&
37244          { ac_try='test -z "$ac_c_werror_flag"
37245                          || test ! -s conftest.err'
37246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37247   (eval $ac_try) 2>&5
37248   ac_status=$?
37249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37250   (exit $ac_status); }; } &&
37251          { ac_try='test -s conftest.$ac_objext'
37252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37253   (eval $ac_try) 2>&5
37254   ac_status=$?
37255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37256   (exit $ac_status); }; }; then
37257   ac_lo=0 ac_mid=0
37258   while :; do
37259     cat >conftest.$ac_ext <<_ACEOF
37260 /* confdefs.h.  */
37261 _ACEOF
37262 cat confdefs.h >>conftest.$ac_ext
37263 cat >>conftest.$ac_ext <<_ACEOF
37264 /* end confdefs.h.  */
37265 $ac_includes_default
37266 int
37267 main ()
37268 {
37269 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37270 test_array [0] = 0
37271
37272   ;
37273   return 0;
37274 }
37275 _ACEOF
37276 rm -f conftest.$ac_objext
37277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37278   (eval $ac_compile) 2>conftest.er1
37279   ac_status=$?
37280   grep -v '^ *+' conftest.er1 >conftest.err
37281   rm -f conftest.er1
37282   cat conftest.err >&5
37283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37284   (exit $ac_status); } &&
37285          { ac_try='test -z "$ac_c_werror_flag"
37286                          || test ! -s conftest.err'
37287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37288   (eval $ac_try) 2>&5
37289   ac_status=$?
37290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37291   (exit $ac_status); }; } &&
37292          { ac_try='test -s conftest.$ac_objext'
37293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37294   (eval $ac_try) 2>&5
37295   ac_status=$?
37296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37297   (exit $ac_status); }; }; then
37298   ac_hi=$ac_mid; break
37299 else
37300   echo "$as_me: failed program was:" >&5
37301 sed 's/^/| /' conftest.$ac_ext >&5
37302
37303 ac_lo=`expr $ac_mid + 1`
37304                     if test $ac_lo -le $ac_mid; then
37305                       ac_lo= ac_hi=
37306                       break
37307                     fi
37308                     ac_mid=`expr 2 '*' $ac_mid + 1`
37309 fi
37310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37311   done
37312 else
37313   echo "$as_me: failed program was:" >&5
37314 sed 's/^/| /' conftest.$ac_ext >&5
37315
37316 cat >conftest.$ac_ext <<_ACEOF
37317 /* confdefs.h.  */
37318 _ACEOF
37319 cat confdefs.h >>conftest.$ac_ext
37320 cat >>conftest.$ac_ext <<_ACEOF
37321 /* end confdefs.h.  */
37322 $ac_includes_default
37323 int
37324 main ()
37325 {
37326 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
37327 test_array [0] = 0
37328
37329   ;
37330   return 0;
37331 }
37332 _ACEOF
37333 rm -f conftest.$ac_objext
37334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37335   (eval $ac_compile) 2>conftest.er1
37336   ac_status=$?
37337   grep -v '^ *+' conftest.er1 >conftest.err
37338   rm -f conftest.er1
37339   cat conftest.err >&5
37340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37341   (exit $ac_status); } &&
37342          { ac_try='test -z "$ac_c_werror_flag"
37343                          || test ! -s conftest.err'
37344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37345   (eval $ac_try) 2>&5
37346   ac_status=$?
37347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348   (exit $ac_status); }; } &&
37349          { ac_try='test -s conftest.$ac_objext'
37350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37351   (eval $ac_try) 2>&5
37352   ac_status=$?
37353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37354   (exit $ac_status); }; }; then
37355   ac_hi=-1 ac_mid=-1
37356   while :; do
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 int
37365 main ()
37366 {
37367 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
37368 test_array [0] = 0
37369
37370   ;
37371   return 0;
37372 }
37373 _ACEOF
37374 rm -f conftest.$ac_objext
37375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37376   (eval $ac_compile) 2>conftest.er1
37377   ac_status=$?
37378   grep -v '^ *+' conftest.er1 >conftest.err
37379   rm -f conftest.er1
37380   cat conftest.err >&5
37381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37382   (exit $ac_status); } &&
37383          { ac_try='test -z "$ac_c_werror_flag"
37384                          || test ! -s conftest.err'
37385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37386   (eval $ac_try) 2>&5
37387   ac_status=$?
37388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37389   (exit $ac_status); }; } &&
37390          { ac_try='test -s conftest.$ac_objext'
37391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37392   (eval $ac_try) 2>&5
37393   ac_status=$?
37394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37395   (exit $ac_status); }; }; then
37396   ac_lo=$ac_mid; break
37397 else
37398   echo "$as_me: failed program was:" >&5
37399 sed 's/^/| /' conftest.$ac_ext >&5
37400
37401 ac_hi=`expr '(' $ac_mid ')' - 1`
37402                        if test $ac_mid -le $ac_hi; then
37403                          ac_lo= ac_hi=
37404                          break
37405                        fi
37406                        ac_mid=`expr 2 '*' $ac_mid`
37407 fi
37408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37409   done
37410 else
37411   echo "$as_me: failed program was:" >&5
37412 sed 's/^/| /' conftest.$ac_ext >&5
37413
37414 ac_lo= ac_hi=
37415 fi
37416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37417 fi
37418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37419 # Binary search between lo and hi bounds.
37420 while test "x$ac_lo" != "x$ac_hi"; do
37421   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37422   cat >conftest.$ac_ext <<_ACEOF
37423 /* confdefs.h.  */
37424 _ACEOF
37425 cat confdefs.h >>conftest.$ac_ext
37426 cat >>conftest.$ac_ext <<_ACEOF
37427 /* end confdefs.h.  */
37428 $ac_includes_default
37429 int
37430 main ()
37431 {
37432 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37433 test_array [0] = 0
37434
37435   ;
37436   return 0;
37437 }
37438 _ACEOF
37439 rm -f conftest.$ac_objext
37440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37441   (eval $ac_compile) 2>conftest.er1
37442   ac_status=$?
37443   grep -v '^ *+' conftest.er1 >conftest.err
37444   rm -f conftest.er1
37445   cat conftest.err >&5
37446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447   (exit $ac_status); } &&
37448          { ac_try='test -z "$ac_c_werror_flag"
37449                          || test ! -s conftest.err'
37450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37451   (eval $ac_try) 2>&5
37452   ac_status=$?
37453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454   (exit $ac_status); }; } &&
37455          { ac_try='test -s conftest.$ac_objext'
37456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37457   (eval $ac_try) 2>&5
37458   ac_status=$?
37459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460   (exit $ac_status); }; }; then
37461   ac_hi=$ac_mid
37462 else
37463   echo "$as_me: failed program was:" >&5
37464 sed 's/^/| /' conftest.$ac_ext >&5
37465
37466 ac_lo=`expr '(' $ac_mid ')' + 1`
37467 fi
37468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37469 done
37470 case $ac_lo in
37471 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
37472 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37473 See \`config.log' for more details." >&5
37474 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37475 See \`config.log' for more details." >&2;}
37476    { (exit 1); exit 1; }; } ;;
37477 esac
37478 else
37479   if test "$cross_compiling" = yes; then
37480   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37481 See \`config.log' for more details." >&5
37482 echo "$as_me: error: cannot run test program while cross compiling
37483 See \`config.log' for more details." >&2;}
37484    { (exit 1); exit 1; }; }
37485 else
37486   cat >conftest.$ac_ext <<_ACEOF
37487 /* confdefs.h.  */
37488 _ACEOF
37489 cat confdefs.h >>conftest.$ac_ext
37490 cat >>conftest.$ac_ext <<_ACEOF
37491 /* end confdefs.h.  */
37492 $ac_includes_default
37493 long longval () { return (long) (sizeof (wchar_t)); }
37494 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
37495 #include <stdio.h>
37496 #include <stdlib.h>
37497 int
37498 main ()
37499 {
37500
37501   FILE *f = fopen ("conftest.val", "w");
37502   if (! f)
37503     exit (1);
37504   if (((long) (sizeof (wchar_t))) < 0)
37505     {
37506       long i = longval ();
37507       if (i != ((long) (sizeof (wchar_t))))
37508         exit (1);
37509       fprintf (f, "%ld\n", i);
37510     }
37511   else
37512     {
37513       unsigned long i = ulongval ();
37514       if (i != ((long) (sizeof (wchar_t))))
37515         exit (1);
37516       fprintf (f, "%lu\n", i);
37517     }
37518   exit (ferror (f) || fclose (f) != 0);
37519
37520   ;
37521   return 0;
37522 }
37523 _ACEOF
37524 rm -f conftest$ac_exeext
37525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37526   (eval $ac_link) 2>&5
37527   ac_status=$?
37528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37531   (eval $ac_try) 2>&5
37532   ac_status=$?
37533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37534   (exit $ac_status); }; }; then
37535   ac_cv_sizeof_wchar_t=`cat conftest.val`
37536 else
37537   echo "$as_me: program exited with status $ac_status" >&5
37538 echo "$as_me: failed program was:" >&5
37539 sed 's/^/| /' conftest.$ac_ext >&5
37540
37541 ( exit $ac_status )
37542 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37543 See \`config.log' for more details." >&5
37544 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37545 See \`config.log' for more details." >&2;}
37546    { (exit 1); exit 1; }; }
37547 fi
37548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37549 fi
37550 fi
37551 rm -f conftest.val
37552 else
37553   ac_cv_sizeof_wchar_t=0
37554 fi
37555 fi
37556 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37557 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37558 cat >>confdefs.h <<_ACEOF
37559 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37560 _ACEOF
37561
37562
37563
37564 if test "$ac_cv_sizeof_int" -lt 4 ; then
37565         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37566 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37567
37568
37569 cat >>confdefs.h <<\_ACEOF
37570 #define LBER_INT_T long
37571 _ACEOF
37572
37573 else
37574
37575 cat >>confdefs.h <<\_ACEOF
37576 #define LBER_INT_T int
37577 _ACEOF
37578
37579 fi
37580
37581
37582 cat >>confdefs.h <<\_ACEOF
37583 #define LBER_LEN_T long
37584 _ACEOF
37585
37586
37587 cat >>confdefs.h <<\_ACEOF
37588 #define LBER_SOCKET_T int
37589 _ACEOF
37590
37591
37592 cat >>confdefs.h <<\_ACEOF
37593 #define LBER_TAG_T long
37594 _ACEOF
37595
37596
37597 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37598         if test $ac_cv_sizeof_long_long -gt 4 ; then
37599                 ol_with_mp=longlong
37600
37601 cat >>confdefs.h <<\_ACEOF
37602 #define USE_MP_LONG_LONG 1
37603 _ACEOF
37604
37605         elif test $ol_with_mp = longlong ; then
37606                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37607 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37608    { (exit 1); exit 1; }; }
37609         fi
37610 fi
37611 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37612         if test $ac_cv_sizeof_long -gt 4 ; then
37613                 ol_with_mp=long
37614
37615 cat >>confdefs.h <<\_ACEOF
37616 #define USE_MP_LONG 1
37617 _ACEOF
37618
37619         elif test $ol_with_mp = long ; then
37620                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37621 echo "$as_me: error: long unusable for multiple precision" >&2;}
37622    { (exit 1); exit 1; }; }
37623         fi
37624 fi
37625 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37626
37627 for ac_header in openssl/bn.h
37628 do
37629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37631   echo "$as_me:$LINENO: checking for $ac_header" >&5
37632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37634   echo $ECHO_N "(cached) $ECHO_C" >&6
37635 fi
37636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37638 else
37639   # Is the header compilable?
37640 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37642 cat >conftest.$ac_ext <<_ACEOF
37643 /* confdefs.h.  */
37644 _ACEOF
37645 cat confdefs.h >>conftest.$ac_ext
37646 cat >>conftest.$ac_ext <<_ACEOF
37647 /* end confdefs.h.  */
37648 $ac_includes_default
37649 #include <$ac_header>
37650 _ACEOF
37651 rm -f conftest.$ac_objext
37652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37653   (eval $ac_compile) 2>conftest.er1
37654   ac_status=$?
37655   grep -v '^ *+' conftest.er1 >conftest.err
37656   rm -f conftest.er1
37657   cat conftest.err >&5
37658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37659   (exit $ac_status); } &&
37660          { ac_try='test -z "$ac_c_werror_flag"
37661                          || test ! -s conftest.err'
37662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37663   (eval $ac_try) 2>&5
37664   ac_status=$?
37665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666   (exit $ac_status); }; } &&
37667          { ac_try='test -s conftest.$ac_objext'
37668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37669   (eval $ac_try) 2>&5
37670   ac_status=$?
37671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37672   (exit $ac_status); }; }; then
37673   ac_header_compiler=yes
37674 else
37675   echo "$as_me: failed program was:" >&5
37676 sed 's/^/| /' conftest.$ac_ext >&5
37677
37678 ac_header_compiler=no
37679 fi
37680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37681 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37682 echo "${ECHO_T}$ac_header_compiler" >&6
37683
37684 # Is the header present?
37685 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37687 cat >conftest.$ac_ext <<_ACEOF
37688 /* confdefs.h.  */
37689 _ACEOF
37690 cat confdefs.h >>conftest.$ac_ext
37691 cat >>conftest.$ac_ext <<_ACEOF
37692 /* end confdefs.h.  */
37693 #include <$ac_header>
37694 _ACEOF
37695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37696   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37697   ac_status=$?
37698   grep -v '^ *+' conftest.er1 >conftest.err
37699   rm -f conftest.er1
37700   cat conftest.err >&5
37701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37702   (exit $ac_status); } >/dev/null; then
37703   if test -s conftest.err; then
37704     ac_cpp_err=$ac_c_preproc_warn_flag
37705     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37706   else
37707     ac_cpp_err=
37708   fi
37709 else
37710   ac_cpp_err=yes
37711 fi
37712 if test -z "$ac_cpp_err"; then
37713   ac_header_preproc=yes
37714 else
37715   echo "$as_me: failed program was:" >&5
37716 sed 's/^/| /' conftest.$ac_ext >&5
37717
37718   ac_header_preproc=no
37719 fi
37720 rm -f conftest.err conftest.$ac_ext
37721 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37722 echo "${ECHO_T}$ac_header_preproc" >&6
37723
37724 # So?  What about this header?
37725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37726   yes:no: )
37727     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37729     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37731     ac_header_preproc=yes
37732     ;;
37733   no:yes:* )
37734     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37736     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37737 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37738     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37740     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37741 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37744     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37746     (
37747       cat <<\_ASBOX
37748 ## --------------------------------------------- ##
37749 ## Report this to <http://www.openldap.org/its/> ##
37750 ## --------------------------------------------- ##
37751 _ASBOX
37752     ) |
37753       sed "s/^/$as_me: WARNING:     /" >&2
37754     ;;
37755 esac
37756 echo "$as_me:$LINENO: checking for $ac_header" >&5
37757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37759   echo $ECHO_N "(cached) $ECHO_C" >&6
37760 else
37761   eval "$as_ac_Header=\$ac_header_preproc"
37762 fi
37763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37765
37766 fi
37767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37768   cat >>confdefs.h <<_ACEOF
37769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37770 _ACEOF
37771
37772 fi
37773
37774 done
37775
37776
37777 for ac_header in openssl/crypto.h
37778 do
37779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37781   echo "$as_me:$LINENO: checking for $ac_header" >&5
37782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37784   echo $ECHO_N "(cached) $ECHO_C" >&6
37785 fi
37786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37788 else
37789   # Is the header compilable?
37790 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37792 cat >conftest.$ac_ext <<_ACEOF
37793 /* confdefs.h.  */
37794 _ACEOF
37795 cat confdefs.h >>conftest.$ac_ext
37796 cat >>conftest.$ac_ext <<_ACEOF
37797 /* end confdefs.h.  */
37798 $ac_includes_default
37799 #include <$ac_header>
37800 _ACEOF
37801 rm -f conftest.$ac_objext
37802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37803   (eval $ac_compile) 2>conftest.er1
37804   ac_status=$?
37805   grep -v '^ *+' conftest.er1 >conftest.err
37806   rm -f conftest.er1
37807   cat conftest.err >&5
37808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37809   (exit $ac_status); } &&
37810          { ac_try='test -z "$ac_c_werror_flag"
37811                          || test ! -s conftest.err'
37812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37813   (eval $ac_try) 2>&5
37814   ac_status=$?
37815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37816   (exit $ac_status); }; } &&
37817          { ac_try='test -s conftest.$ac_objext'
37818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37819   (eval $ac_try) 2>&5
37820   ac_status=$?
37821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37822   (exit $ac_status); }; }; then
37823   ac_header_compiler=yes
37824 else
37825   echo "$as_me: failed program was:" >&5
37826 sed 's/^/| /' conftest.$ac_ext >&5
37827
37828 ac_header_compiler=no
37829 fi
37830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37832 echo "${ECHO_T}$ac_header_compiler" >&6
37833
37834 # Is the header present?
37835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37837 cat >conftest.$ac_ext <<_ACEOF
37838 /* confdefs.h.  */
37839 _ACEOF
37840 cat confdefs.h >>conftest.$ac_ext
37841 cat >>conftest.$ac_ext <<_ACEOF
37842 /* end confdefs.h.  */
37843 #include <$ac_header>
37844 _ACEOF
37845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37846   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37847   ac_status=$?
37848   grep -v '^ *+' conftest.er1 >conftest.err
37849   rm -f conftest.er1
37850   cat conftest.err >&5
37851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37852   (exit $ac_status); } >/dev/null; then
37853   if test -s conftest.err; then
37854     ac_cpp_err=$ac_c_preproc_warn_flag
37855     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37856   else
37857     ac_cpp_err=
37858   fi
37859 else
37860   ac_cpp_err=yes
37861 fi
37862 if test -z "$ac_cpp_err"; then
37863   ac_header_preproc=yes
37864 else
37865   echo "$as_me: failed program was:" >&5
37866 sed 's/^/| /' conftest.$ac_ext >&5
37867
37868   ac_header_preproc=no
37869 fi
37870 rm -f conftest.err conftest.$ac_ext
37871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37872 echo "${ECHO_T}$ac_header_preproc" >&6
37873
37874 # So?  What about this header?
37875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37876   yes:no: )
37877     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37881     ac_header_preproc=yes
37882     ;;
37883   no:yes:* )
37884     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37886     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37887 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37888     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37890     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37891 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37894     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37896     (
37897       cat <<\_ASBOX
37898 ## --------------------------------------------- ##
37899 ## Report this to <http://www.openldap.org/its/> ##
37900 ## --------------------------------------------- ##
37901 _ASBOX
37902     ) |
37903       sed "s/^/$as_me: WARNING:     /" >&2
37904     ;;
37905 esac
37906 echo "$as_me:$LINENO: checking for $ac_header" >&5
37907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37909   echo $ECHO_N "(cached) $ECHO_C" >&6
37910 else
37911   eval "$as_ac_Header=\$ac_header_preproc"
37912 fi
37913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37915
37916 fi
37917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37918   cat >>confdefs.h <<_ACEOF
37919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37920 _ACEOF
37921
37922 fi
37923
37924 done
37925
37926         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37927                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37928                 test "$ol_with_tls" = "found" ; then
37929                 ol_with_mp=bignum
37930
37931 cat >>confdefs.h <<\_ACEOF
37932 #define USE_MP_BIGNUM 1
37933 _ACEOF
37934
37935         elif test $ol_with_mp = bignum ; then
37936                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
37937 echo "$as_me: error: bignum not available" >&2;}
37938    { (exit 1); exit 1; }; }
37939         fi
37940 fi
37941 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
37942
37943 for ac_header in gmp.h
37944 do
37945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37947   echo "$as_me:$LINENO: checking for $ac_header" >&5
37948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37950   echo $ECHO_N "(cached) $ECHO_C" >&6
37951 fi
37952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37954 else
37955   # Is the header compilable?
37956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37958 cat >conftest.$ac_ext <<_ACEOF
37959 /* confdefs.h.  */
37960 _ACEOF
37961 cat confdefs.h >>conftest.$ac_ext
37962 cat >>conftest.$ac_ext <<_ACEOF
37963 /* end confdefs.h.  */
37964 $ac_includes_default
37965 #include <$ac_header>
37966 _ACEOF
37967 rm -f conftest.$ac_objext
37968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37969   (eval $ac_compile) 2>conftest.er1
37970   ac_status=$?
37971   grep -v '^ *+' conftest.er1 >conftest.err
37972   rm -f conftest.er1
37973   cat conftest.err >&5
37974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37975   (exit $ac_status); } &&
37976          { ac_try='test -z "$ac_c_werror_flag"
37977                          || test ! -s conftest.err'
37978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37979   (eval $ac_try) 2>&5
37980   ac_status=$?
37981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982   (exit $ac_status); }; } &&
37983          { ac_try='test -s conftest.$ac_objext'
37984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37985   (eval $ac_try) 2>&5
37986   ac_status=$?
37987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37988   (exit $ac_status); }; }; then
37989   ac_header_compiler=yes
37990 else
37991   echo "$as_me: failed program was:" >&5
37992 sed 's/^/| /' conftest.$ac_ext >&5
37993
37994 ac_header_compiler=no
37995 fi
37996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37998 echo "${ECHO_T}$ac_header_compiler" >&6
37999
38000 # Is the header present?
38001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38003 cat >conftest.$ac_ext <<_ACEOF
38004 /* confdefs.h.  */
38005 _ACEOF
38006 cat confdefs.h >>conftest.$ac_ext
38007 cat >>conftest.$ac_ext <<_ACEOF
38008 /* end confdefs.h.  */
38009 #include <$ac_header>
38010 _ACEOF
38011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38012   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38013   ac_status=$?
38014   grep -v '^ *+' conftest.er1 >conftest.err
38015   rm -f conftest.er1
38016   cat conftest.err >&5
38017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38018   (exit $ac_status); } >/dev/null; then
38019   if test -s conftest.err; then
38020     ac_cpp_err=$ac_c_preproc_warn_flag
38021     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38022   else
38023     ac_cpp_err=
38024   fi
38025 else
38026   ac_cpp_err=yes
38027 fi
38028 if test -z "$ac_cpp_err"; then
38029   ac_header_preproc=yes
38030 else
38031   echo "$as_me: failed program was:" >&5
38032 sed 's/^/| /' conftest.$ac_ext >&5
38033
38034   ac_header_preproc=no
38035 fi
38036 rm -f conftest.err conftest.$ac_ext
38037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38038 echo "${ECHO_T}$ac_header_preproc" >&6
38039
38040 # So?  What about this header?
38041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38042   yes:no: )
38043     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38047     ac_header_preproc=yes
38048     ;;
38049   no:yes:* )
38050     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38052     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38053 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38054     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38056     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38057 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38060     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38062     (
38063       cat <<\_ASBOX
38064 ## --------------------------------------------- ##
38065 ## Report this to <http://www.openldap.org/its/> ##
38066 ## --------------------------------------------- ##
38067 _ASBOX
38068     ) |
38069       sed "s/^/$as_me: WARNING:     /" >&2
38070     ;;
38071 esac
38072 echo "$as_me:$LINENO: checking for $ac_header" >&5
38073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38075   echo $ECHO_N "(cached) $ECHO_C" >&6
38076 else
38077   eval "$as_ac_Header=\$ac_header_preproc"
38078 fi
38079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38081
38082 fi
38083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38084   cat >>confdefs.h <<_ACEOF
38085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38086 _ACEOF
38087
38088 fi
38089
38090 done
38091
38092
38093 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38094 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38095 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38096   echo $ECHO_N "(cached) $ECHO_C" >&6
38097 else
38098   ac_check_lib_save_LIBS=$LIBS
38099 LIBS="-lgmp  $LIBS"
38100 cat >conftest.$ac_ext <<_ACEOF
38101 /* confdefs.h.  */
38102 _ACEOF
38103 cat confdefs.h >>conftest.$ac_ext
38104 cat >>conftest.$ac_ext <<_ACEOF
38105 /* end confdefs.h.  */
38106
38107 /* Override any gcc2 internal prototype to avoid an error.  */
38108 #ifdef __cplusplus
38109 extern "C"
38110 #endif
38111 /* We use char because int might match the return type of a gcc2
38112    builtin and then its argument prototype would still apply.  */
38113 char __gmpz_add_ui ();
38114 int
38115 main ()
38116 {
38117 __gmpz_add_ui ();
38118   ;
38119   return 0;
38120 }
38121 _ACEOF
38122 rm -f conftest.$ac_objext conftest$ac_exeext
38123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38124   (eval $ac_link) 2>conftest.er1
38125   ac_status=$?
38126   grep -v '^ *+' conftest.er1 >conftest.err
38127   rm -f conftest.er1
38128   cat conftest.err >&5
38129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38130   (exit $ac_status); } &&
38131          { ac_try='test -z "$ac_c_werror_flag"
38132                          || test ! -s conftest.err'
38133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38134   (eval $ac_try) 2>&5
38135   ac_status=$?
38136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137   (exit $ac_status); }; } &&
38138          { ac_try='test -s conftest$ac_exeext'
38139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38140   (eval $ac_try) 2>&5
38141   ac_status=$?
38142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38143   (exit $ac_status); }; }; then
38144   ac_cv_lib_gmp___gmpz_add_ui=yes
38145 else
38146   echo "$as_me: failed program was:" >&5
38147 sed 's/^/| /' conftest.$ac_ext >&5
38148
38149 ac_cv_lib_gmp___gmpz_add_ui=no
38150 fi
38151 rm -f conftest.err conftest.$ac_objext \
38152       conftest$ac_exeext conftest.$ac_ext
38153 LIBS=$ac_check_lib_save_LIBS
38154 fi
38155 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38156 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38157 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38158   cat >>confdefs.h <<_ACEOF
38159 #define HAVE_LIBGMP 1
38160 _ACEOF
38161
38162   LIBS="-lgmp $LIBS"
38163
38164 fi
38165
38166         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
38167
38168 cat >>confdefs.h <<\_ACEOF
38169 #define USE_MP_GMP 1
38170 _ACEOF
38171
38172                 ol_with_mp=gmp
38173         elif test $ol_with_mp = gmp ; then
38174                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
38175 echo "$as_me: error: gmp not available" >&2;}
38176    { (exit 1); exit 1; }; }
38177         fi
38178 fi
38179 if test $ol_with_mp = auto ; then
38180         ol_with_mp=no
38181 fi
38182
38183 echo "$as_me:$LINENO: checking for working memcmp" >&5
38184 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
38185 if test "${ac_cv_func_memcmp_working+set}" = set; then
38186   echo $ECHO_N "(cached) $ECHO_C" >&6
38187 else
38188   if test "$cross_compiling" = yes; then
38189   ac_cv_func_memcmp_working=no
38190 else
38191   cat >conftest.$ac_ext <<_ACEOF
38192 /* confdefs.h.  */
38193 _ACEOF
38194 cat confdefs.h >>conftest.$ac_ext
38195 cat >>conftest.$ac_ext <<_ACEOF
38196 /* end confdefs.h.  */
38197 $ac_includes_default
38198 int
38199 main ()
38200 {
38201
38202   /* Some versions of memcmp are not 8-bit clean.  */
38203   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
38204   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
38205     exit (1);
38206
38207   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
38208      or more and with at least one buffer not starting on a 4-byte boundary.
38209      William Lewis provided this test program.   */
38210   {
38211     char foo[21];
38212     char bar[21];
38213     int i;
38214     for (i = 0; i < 4; i++)
38215       {
38216         char *a = foo + i;
38217         char *b = bar + i;
38218         strcpy (a, "--------01111111");
38219         strcpy (b, "--------10000000");
38220         if (memcmp (a, b, 16) >= 0)
38221           exit (1);
38222       }
38223     exit (0);
38224   }
38225
38226   ;
38227   return 0;
38228 }
38229 _ACEOF
38230 rm -f conftest$ac_exeext
38231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38232   (eval $ac_link) 2>&5
38233   ac_status=$?
38234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38237   (eval $ac_try) 2>&5
38238   ac_status=$?
38239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38240   (exit $ac_status); }; }; then
38241   ac_cv_func_memcmp_working=yes
38242 else
38243   echo "$as_me: program exited with status $ac_status" >&5
38244 echo "$as_me: failed program was:" >&5
38245 sed 's/^/| /' conftest.$ac_ext >&5
38246
38247 ( exit $ac_status )
38248 ac_cv_func_memcmp_working=no
38249 fi
38250 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38251 fi
38252 fi
38253 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
38254 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
38255 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
38256     "memcmp.$ac_objext"   | \
38257   *" memcmp.$ac_objext"   | \
38258     "memcmp.$ac_objext "* | \
38259   *" memcmp.$ac_objext "* ) ;;
38260   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
38261 esac
38262
38263
38264
38265 if test $ac_cv_func_memcmp_working = no ; then
38266
38267 cat >>confdefs.h <<\_ACEOF
38268 #define NEED_MEMCMP_REPLACEMENT 1
38269 _ACEOF
38270
38271 fi
38272
38273
38274 for ac_func in strftime
38275 do
38276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38277 echo "$as_me:$LINENO: checking for $ac_func" >&5
38278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38279 if eval "test \"\${$as_ac_var+set}\" = set"; then
38280   echo $ECHO_N "(cached) $ECHO_C" >&6
38281 else
38282   cat >conftest.$ac_ext <<_ACEOF
38283 /* confdefs.h.  */
38284 _ACEOF
38285 cat confdefs.h >>conftest.$ac_ext
38286 cat >>conftest.$ac_ext <<_ACEOF
38287 /* end confdefs.h.  */
38288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38290 #define $ac_func innocuous_$ac_func
38291
38292 /* System header to define __stub macros and hopefully few prototypes,
38293     which can conflict with char $ac_func (); below.
38294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38295     <limits.h> exists even on freestanding compilers.  */
38296
38297 #ifdef __STDC__
38298 # include <limits.h>
38299 #else
38300 # include <assert.h>
38301 #endif
38302
38303 #undef $ac_func
38304
38305 /* Override any gcc2 internal prototype to avoid an error.  */
38306 #ifdef __cplusplus
38307 extern "C"
38308 {
38309 #endif
38310 /* We use char because int might match the return type of a gcc2
38311    builtin and then its argument prototype would still apply.  */
38312 char $ac_func ();
38313 /* The GNU C library defines this for functions which it implements
38314     to always fail with ENOSYS.  Some functions are actually named
38315     something starting with __ and the normal name is an alias.  */
38316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38317 choke me
38318 #else
38319 char (*f) () = $ac_func;
38320 #endif
38321 #ifdef __cplusplus
38322 }
38323 #endif
38324
38325 int
38326 main ()
38327 {
38328 return f != $ac_func;
38329   ;
38330   return 0;
38331 }
38332 _ACEOF
38333 rm -f conftest.$ac_objext conftest$ac_exeext
38334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38335   (eval $ac_link) 2>conftest.er1
38336   ac_status=$?
38337   grep -v '^ *+' conftest.er1 >conftest.err
38338   rm -f conftest.er1
38339   cat conftest.err >&5
38340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341   (exit $ac_status); } &&
38342          { ac_try='test -z "$ac_c_werror_flag"
38343                          || test ! -s conftest.err'
38344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38345   (eval $ac_try) 2>&5
38346   ac_status=$?
38347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38348   (exit $ac_status); }; } &&
38349          { ac_try='test -s conftest$ac_exeext'
38350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38351   (eval $ac_try) 2>&5
38352   ac_status=$?
38353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38354   (exit $ac_status); }; }; then
38355   eval "$as_ac_var=yes"
38356 else
38357   echo "$as_me: failed program was:" >&5
38358 sed 's/^/| /' conftest.$ac_ext >&5
38359
38360 eval "$as_ac_var=no"
38361 fi
38362 rm -f conftest.err conftest.$ac_objext \
38363       conftest$ac_exeext conftest.$ac_ext
38364 fi
38365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38367 if test `eval echo '${'$as_ac_var'}'` = yes; then
38368   cat >>confdefs.h <<_ACEOF
38369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38370 _ACEOF
38371
38372 else
38373   # strftime is in -lintl on SCO UNIX.
38374 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38375 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
38376 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38377   echo $ECHO_N "(cached) $ECHO_C" >&6
38378 else
38379   ac_check_lib_save_LIBS=$LIBS
38380 LIBS="-lintl  $LIBS"
38381 cat >conftest.$ac_ext <<_ACEOF
38382 /* confdefs.h.  */
38383 _ACEOF
38384 cat confdefs.h >>conftest.$ac_ext
38385 cat >>conftest.$ac_ext <<_ACEOF
38386 /* end confdefs.h.  */
38387
38388 /* Override any gcc2 internal prototype to avoid an error.  */
38389 #ifdef __cplusplus
38390 extern "C"
38391 #endif
38392 /* We use char because int might match the return type of a gcc2
38393    builtin and then its argument prototype would still apply.  */
38394 char strftime ();
38395 int
38396 main ()
38397 {
38398 strftime ();
38399   ;
38400   return 0;
38401 }
38402 _ACEOF
38403 rm -f conftest.$ac_objext conftest$ac_exeext
38404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38405   (eval $ac_link) 2>conftest.er1
38406   ac_status=$?
38407   grep -v '^ *+' conftest.er1 >conftest.err
38408   rm -f conftest.er1
38409   cat conftest.err >&5
38410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38411   (exit $ac_status); } &&
38412          { ac_try='test -z "$ac_c_werror_flag"
38413                          || test ! -s conftest.err'
38414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38415   (eval $ac_try) 2>&5
38416   ac_status=$?
38417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38418   (exit $ac_status); }; } &&
38419          { ac_try='test -s conftest$ac_exeext'
38420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38421   (eval $ac_try) 2>&5
38422   ac_status=$?
38423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38424   (exit $ac_status); }; }; then
38425   ac_cv_lib_intl_strftime=yes
38426 else
38427   echo "$as_me: failed program was:" >&5
38428 sed 's/^/| /' conftest.$ac_ext >&5
38429
38430 ac_cv_lib_intl_strftime=no
38431 fi
38432 rm -f conftest.err conftest.$ac_objext \
38433       conftest$ac_exeext conftest.$ac_ext
38434 LIBS=$ac_check_lib_save_LIBS
38435 fi
38436 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38437 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
38438 if test $ac_cv_lib_intl_strftime = yes; then
38439   cat >>confdefs.h <<\_ACEOF
38440 #define HAVE_STRFTIME 1
38441 _ACEOF
38442
38443 LIBS="-lintl $LIBS"
38444 fi
38445
38446 fi
38447 done
38448
38449
38450 echo "$as_me:$LINENO: checking for inet_aton()" >&5
38451 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
38452 if test "${ol_cv_func_inet_aton+set}" = set; then
38453   echo $ECHO_N "(cached) $ECHO_C" >&6
38454 else
38455   cat >conftest.$ac_ext <<_ACEOF
38456 /* confdefs.h.  */
38457 _ACEOF
38458 cat confdefs.h >>conftest.$ac_ext
38459 cat >>conftest.$ac_ext <<_ACEOF
38460 /* end confdefs.h.  */
38461
38462 #ifdef HAVE_SYS_TYPES_H
38463 #       include <sys/types.h>
38464 #endif
38465 #ifdef HAVE_SYS_SOCKET_H
38466 #       include <sys/socket.h>
38467 #       ifdef HAVE_SYS_SELECT_H
38468 #               include <sys/select.h>
38469 #       endif
38470 #       include <netinet/in.h>
38471 #       ifdef HAVE_ARPA_INET_H
38472 #               include <arpa/inet.h>
38473 #       endif
38474 #endif
38475
38476 int
38477 main ()
38478 {
38479 struct in_addr in;
38480 int rc = inet_aton( "255.255.255.255", &in );
38481   ;
38482   return 0;
38483 }
38484 _ACEOF
38485 rm -f conftest.$ac_objext conftest$ac_exeext
38486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38487   (eval $ac_link) 2>conftest.er1
38488   ac_status=$?
38489   grep -v '^ *+' conftest.er1 >conftest.err
38490   rm -f conftest.er1
38491   cat conftest.err >&5
38492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38493   (exit $ac_status); } &&
38494          { ac_try='test -z "$ac_c_werror_flag"
38495                          || test ! -s conftest.err'
38496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38497   (eval $ac_try) 2>&5
38498   ac_status=$?
38499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38500   (exit $ac_status); }; } &&
38501          { ac_try='test -s conftest$ac_exeext'
38502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38503   (eval $ac_try) 2>&5
38504   ac_status=$?
38505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506   (exit $ac_status); }; }; then
38507   ol_cv_func_inet_aton=yes
38508 else
38509   echo "$as_me: failed program was:" >&5
38510 sed 's/^/| /' conftest.$ac_ext >&5
38511
38512 ol_cv_func_inet_aton=no
38513 fi
38514 rm -f conftest.err conftest.$ac_objext \
38515       conftest$ac_exeext conftest.$ac_ext
38516 fi
38517 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
38518 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
38519   if test $ol_cv_func_inet_aton != no; then
38520
38521 cat >>confdefs.h <<\_ACEOF
38522 #define HAVE_INET_ATON 1
38523 _ACEOF
38524
38525   fi
38526
38527
38528 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38529 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38530 if test "${ac_cv_func__spawnlp+set}" = set; then
38531   echo $ECHO_N "(cached) $ECHO_C" >&6
38532 else
38533   cat >conftest.$ac_ext <<_ACEOF
38534 /* confdefs.h.  */
38535 _ACEOF
38536 cat confdefs.h >>conftest.$ac_ext
38537 cat >>conftest.$ac_ext <<_ACEOF
38538 /* end confdefs.h.  */
38539 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38541 #define _spawnlp innocuous__spawnlp
38542
38543 /* System header to define __stub macros and hopefully few prototypes,
38544     which can conflict with char _spawnlp (); below.
38545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38546     <limits.h> exists even on freestanding compilers.  */
38547
38548 #ifdef __STDC__
38549 # include <limits.h>
38550 #else
38551 # include <assert.h>
38552 #endif
38553
38554 #undef _spawnlp
38555
38556 /* Override any gcc2 internal prototype to avoid an error.  */
38557 #ifdef __cplusplus
38558 extern "C"
38559 {
38560 #endif
38561 /* We use char because int might match the return type of a gcc2
38562    builtin and then its argument prototype would still apply.  */
38563 char _spawnlp ();
38564 /* The GNU C library defines this for functions which it implements
38565     to always fail with ENOSYS.  Some functions are actually named
38566     something starting with __ and the normal name is an alias.  */
38567 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38568 choke me
38569 #else
38570 char (*f) () = _spawnlp;
38571 #endif
38572 #ifdef __cplusplus
38573 }
38574 #endif
38575
38576 int
38577 main ()
38578 {
38579 return f != _spawnlp;
38580   ;
38581   return 0;
38582 }
38583 _ACEOF
38584 rm -f conftest.$ac_objext conftest$ac_exeext
38585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38586   (eval $ac_link) 2>conftest.er1
38587   ac_status=$?
38588   grep -v '^ *+' conftest.er1 >conftest.err
38589   rm -f conftest.er1
38590   cat conftest.err >&5
38591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38592   (exit $ac_status); } &&
38593          { ac_try='test -z "$ac_c_werror_flag"
38594                          || test ! -s conftest.err'
38595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38596   (eval $ac_try) 2>&5
38597   ac_status=$?
38598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38599   (exit $ac_status); }; } &&
38600          { ac_try='test -s conftest$ac_exeext'
38601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38602   (eval $ac_try) 2>&5
38603   ac_status=$?
38604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38605   (exit $ac_status); }; }; then
38606   ac_cv_func__spawnlp=yes
38607 else
38608   echo "$as_me: failed program was:" >&5
38609 sed 's/^/| /' conftest.$ac_ext >&5
38610
38611 ac_cv_func__spawnlp=no
38612 fi
38613 rm -f conftest.err conftest.$ac_objext \
38614       conftest$ac_exeext conftest.$ac_ext
38615 fi
38616 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38617 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38618 if test $ac_cv_func__spawnlp = yes; then
38619
38620 cat >>confdefs.h <<\_ACEOF
38621 #define HAVE_SPAWNLP 1
38622 _ACEOF
38623
38624 fi
38625
38626
38627 echo "$as_me:$LINENO: checking for _snprintf" >&5
38628 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38629 if test "${ac_cv_func__snprintf+set}" = set; then
38630   echo $ECHO_N "(cached) $ECHO_C" >&6
38631 else
38632   cat >conftest.$ac_ext <<_ACEOF
38633 /* confdefs.h.  */
38634 _ACEOF
38635 cat confdefs.h >>conftest.$ac_ext
38636 cat >>conftest.$ac_ext <<_ACEOF
38637 /* end confdefs.h.  */
38638 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38640 #define _snprintf innocuous__snprintf
38641
38642 /* System header to define __stub macros and hopefully few prototypes,
38643     which can conflict with char _snprintf (); below.
38644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38645     <limits.h> exists even on freestanding compilers.  */
38646
38647 #ifdef __STDC__
38648 # include <limits.h>
38649 #else
38650 # include <assert.h>
38651 #endif
38652
38653 #undef _snprintf
38654
38655 /* Override any gcc2 internal prototype to avoid an error.  */
38656 #ifdef __cplusplus
38657 extern "C"
38658 {
38659 #endif
38660 /* We use char because int might match the return type of a gcc2
38661    builtin and then its argument prototype would still apply.  */
38662 char _snprintf ();
38663 /* The GNU C library defines this for functions which it implements
38664     to always fail with ENOSYS.  Some functions are actually named
38665     something starting with __ and the normal name is an alias.  */
38666 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38667 choke me
38668 #else
38669 char (*f) () = _snprintf;
38670 #endif
38671 #ifdef __cplusplus
38672 }
38673 #endif
38674
38675 int
38676 main ()
38677 {
38678 return f != _snprintf;
38679   ;
38680   return 0;
38681 }
38682 _ACEOF
38683 rm -f conftest.$ac_objext conftest$ac_exeext
38684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38685   (eval $ac_link) 2>conftest.er1
38686   ac_status=$?
38687   grep -v '^ *+' conftest.er1 >conftest.err
38688   rm -f conftest.er1
38689   cat conftest.err >&5
38690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38691   (exit $ac_status); } &&
38692          { ac_try='test -z "$ac_c_werror_flag"
38693                          || test ! -s conftest.err'
38694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38695   (eval $ac_try) 2>&5
38696   ac_status=$?
38697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38698   (exit $ac_status); }; } &&
38699          { ac_try='test -s conftest$ac_exeext'
38700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38701   (eval $ac_try) 2>&5
38702   ac_status=$?
38703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38704   (exit $ac_status); }; }; then
38705   ac_cv_func__snprintf=yes
38706 else
38707   echo "$as_me: failed program was:" >&5
38708 sed 's/^/| /' conftest.$ac_ext >&5
38709
38710 ac_cv_func__snprintf=no
38711 fi
38712 rm -f conftest.err conftest.$ac_objext \
38713       conftest$ac_exeext conftest.$ac_ext
38714 fi
38715 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38716 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38717 if test $ac_cv_func__snprintf = yes; then
38718   ac_cv_func_snprintf=yes
38719
38720 cat >>confdefs.h <<\_ACEOF
38721 #define snprintf _snprintf
38722 _ACEOF
38723
38724
38725 fi
38726
38727
38728 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38729 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38730 if test "${ac_cv_func__vsnprintf+set}" = set; then
38731   echo $ECHO_N "(cached) $ECHO_C" >&6
38732 else
38733   cat >conftest.$ac_ext <<_ACEOF
38734 /* confdefs.h.  */
38735 _ACEOF
38736 cat confdefs.h >>conftest.$ac_ext
38737 cat >>conftest.$ac_ext <<_ACEOF
38738 /* end confdefs.h.  */
38739 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38741 #define _vsnprintf innocuous__vsnprintf
38742
38743 /* System header to define __stub macros and hopefully few prototypes,
38744     which can conflict with char _vsnprintf (); below.
38745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38746     <limits.h> exists even on freestanding compilers.  */
38747
38748 #ifdef __STDC__
38749 # include <limits.h>
38750 #else
38751 # include <assert.h>
38752 #endif
38753
38754 #undef _vsnprintf
38755
38756 /* Override any gcc2 internal prototype to avoid an error.  */
38757 #ifdef __cplusplus
38758 extern "C"
38759 {
38760 #endif
38761 /* We use char because int might match the return type of a gcc2
38762    builtin and then its argument prototype would still apply.  */
38763 char _vsnprintf ();
38764 /* The GNU C library defines this for functions which it implements
38765     to always fail with ENOSYS.  Some functions are actually named
38766     something starting with __ and the normal name is an alias.  */
38767 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38768 choke me
38769 #else
38770 char (*f) () = _vsnprintf;
38771 #endif
38772 #ifdef __cplusplus
38773 }
38774 #endif
38775
38776 int
38777 main ()
38778 {
38779 return f != _vsnprintf;
38780   ;
38781   return 0;
38782 }
38783 _ACEOF
38784 rm -f conftest.$ac_objext conftest$ac_exeext
38785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38786   (eval $ac_link) 2>conftest.er1
38787   ac_status=$?
38788   grep -v '^ *+' conftest.er1 >conftest.err
38789   rm -f conftest.er1
38790   cat conftest.err >&5
38791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792   (exit $ac_status); } &&
38793          { ac_try='test -z "$ac_c_werror_flag"
38794                          || test ! -s conftest.err'
38795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38796   (eval $ac_try) 2>&5
38797   ac_status=$?
38798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38799   (exit $ac_status); }; } &&
38800          { ac_try='test -s conftest$ac_exeext'
38801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38802   (eval $ac_try) 2>&5
38803   ac_status=$?
38804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38805   (exit $ac_status); }; }; then
38806   ac_cv_func__vsnprintf=yes
38807 else
38808   echo "$as_me: failed program was:" >&5
38809 sed 's/^/| /' conftest.$ac_ext >&5
38810
38811 ac_cv_func__vsnprintf=no
38812 fi
38813 rm -f conftest.err conftest.$ac_objext \
38814       conftest$ac_exeext conftest.$ac_ext
38815 fi
38816 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38817 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38818 if test $ac_cv_func__vsnprintf = yes; then
38819   ac_cv_func_vsnprintf=yes
38820
38821 cat >>confdefs.h <<\_ACEOF
38822 #define vsnprintf _vsnprintf
38823 _ACEOF
38824
38825
38826 fi
38827
38828
38829
38830 for ac_func in vprintf
38831 do
38832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38833 echo "$as_me:$LINENO: checking for $ac_func" >&5
38834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38835 if eval "test \"\${$as_ac_var+set}\" = set"; then
38836   echo $ECHO_N "(cached) $ECHO_C" >&6
38837 else
38838   cat >conftest.$ac_ext <<_ACEOF
38839 /* confdefs.h.  */
38840 _ACEOF
38841 cat confdefs.h >>conftest.$ac_ext
38842 cat >>conftest.$ac_ext <<_ACEOF
38843 /* end confdefs.h.  */
38844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38846 #define $ac_func innocuous_$ac_func
38847
38848 /* System header to define __stub macros and hopefully few prototypes,
38849     which can conflict with char $ac_func (); below.
38850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38851     <limits.h> exists even on freestanding compilers.  */
38852
38853 #ifdef __STDC__
38854 # include <limits.h>
38855 #else
38856 # include <assert.h>
38857 #endif
38858
38859 #undef $ac_func
38860
38861 /* Override any gcc2 internal prototype to avoid an error.  */
38862 #ifdef __cplusplus
38863 extern "C"
38864 {
38865 #endif
38866 /* We use char because int might match the return type of a gcc2
38867    builtin and then its argument prototype would still apply.  */
38868 char $ac_func ();
38869 /* The GNU C library defines this for functions which it implements
38870     to always fail with ENOSYS.  Some functions are actually named
38871     something starting with __ and the normal name is an alias.  */
38872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38873 choke me
38874 #else
38875 char (*f) () = $ac_func;
38876 #endif
38877 #ifdef __cplusplus
38878 }
38879 #endif
38880
38881 int
38882 main ()
38883 {
38884 return f != $ac_func;
38885   ;
38886   return 0;
38887 }
38888 _ACEOF
38889 rm -f conftest.$ac_objext conftest$ac_exeext
38890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38891   (eval $ac_link) 2>conftest.er1
38892   ac_status=$?
38893   grep -v '^ *+' conftest.er1 >conftest.err
38894   rm -f conftest.er1
38895   cat conftest.err >&5
38896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38897   (exit $ac_status); } &&
38898          { ac_try='test -z "$ac_c_werror_flag"
38899                          || test ! -s conftest.err'
38900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38901   (eval $ac_try) 2>&5
38902   ac_status=$?
38903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38904   (exit $ac_status); }; } &&
38905          { ac_try='test -s conftest$ac_exeext'
38906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38907   (eval $ac_try) 2>&5
38908   ac_status=$?
38909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38910   (exit $ac_status); }; }; then
38911   eval "$as_ac_var=yes"
38912 else
38913   echo "$as_me: failed program was:" >&5
38914 sed 's/^/| /' conftest.$ac_ext >&5
38915
38916 eval "$as_ac_var=no"
38917 fi
38918 rm -f conftest.err conftest.$ac_objext \
38919       conftest$ac_exeext conftest.$ac_ext
38920 fi
38921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38923 if test `eval echo '${'$as_ac_var'}'` = yes; then
38924   cat >>confdefs.h <<_ACEOF
38925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38926 _ACEOF
38927
38928 echo "$as_me:$LINENO: checking for _doprnt" >&5
38929 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38930 if test "${ac_cv_func__doprnt+set}" = set; then
38931   echo $ECHO_N "(cached) $ECHO_C" >&6
38932 else
38933   cat >conftest.$ac_ext <<_ACEOF
38934 /* confdefs.h.  */
38935 _ACEOF
38936 cat confdefs.h >>conftest.$ac_ext
38937 cat >>conftest.$ac_ext <<_ACEOF
38938 /* end confdefs.h.  */
38939 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38941 #define _doprnt innocuous__doprnt
38942
38943 /* System header to define __stub macros and hopefully few prototypes,
38944     which can conflict with char _doprnt (); below.
38945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38946     <limits.h> exists even on freestanding compilers.  */
38947
38948 #ifdef __STDC__
38949 # include <limits.h>
38950 #else
38951 # include <assert.h>
38952 #endif
38953
38954 #undef _doprnt
38955
38956 /* Override any gcc2 internal prototype to avoid an error.  */
38957 #ifdef __cplusplus
38958 extern "C"
38959 {
38960 #endif
38961 /* We use char because int might match the return type of a gcc2
38962    builtin and then its argument prototype would still apply.  */
38963 char _doprnt ();
38964 /* The GNU C library defines this for functions which it implements
38965     to always fail with ENOSYS.  Some functions are actually named
38966     something starting with __ and the normal name is an alias.  */
38967 #if defined (__stub__doprnt) || defined (__stub____doprnt)
38968 choke me
38969 #else
38970 char (*f) () = _doprnt;
38971 #endif
38972 #ifdef __cplusplus
38973 }
38974 #endif
38975
38976 int
38977 main ()
38978 {
38979 return f != _doprnt;
38980   ;
38981   return 0;
38982 }
38983 _ACEOF
38984 rm -f conftest.$ac_objext conftest$ac_exeext
38985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38986   (eval $ac_link) 2>conftest.er1
38987   ac_status=$?
38988   grep -v '^ *+' conftest.er1 >conftest.err
38989   rm -f conftest.er1
38990   cat conftest.err >&5
38991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38992   (exit $ac_status); } &&
38993          { ac_try='test -z "$ac_c_werror_flag"
38994                          || test ! -s conftest.err'
38995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38996   (eval $ac_try) 2>&5
38997   ac_status=$?
38998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38999   (exit $ac_status); }; } &&
39000          { ac_try='test -s conftest$ac_exeext'
39001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39002   (eval $ac_try) 2>&5
39003   ac_status=$?
39004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39005   (exit $ac_status); }; }; then
39006   ac_cv_func__doprnt=yes
39007 else
39008   echo "$as_me: failed program was:" >&5
39009 sed 's/^/| /' conftest.$ac_ext >&5
39010
39011 ac_cv_func__doprnt=no
39012 fi
39013 rm -f conftest.err conftest.$ac_objext \
39014       conftest$ac_exeext conftest.$ac_ext
39015 fi
39016 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39017 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
39018 if test $ac_cv_func__doprnt = yes; then
39019
39020 cat >>confdefs.h <<\_ACEOF
39021 #define HAVE_DOPRNT 1
39022 _ACEOF
39023
39024 fi
39025
39026 fi
39027 done
39028
39029
39030
39031 if test $ac_cv_func_vprintf = yes ; then
39032
39033
39034 for ac_func in snprintf vsnprintf
39035 do
39036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39037 echo "$as_me:$LINENO: checking for $ac_func" >&5
39038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39039 if eval "test \"\${$as_ac_var+set}\" = set"; then
39040   echo $ECHO_N "(cached) $ECHO_C" >&6
39041 else
39042   cat >conftest.$ac_ext <<_ACEOF
39043 /* confdefs.h.  */
39044 _ACEOF
39045 cat confdefs.h >>conftest.$ac_ext
39046 cat >>conftest.$ac_ext <<_ACEOF
39047 /* end confdefs.h.  */
39048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39050 #define $ac_func innocuous_$ac_func
39051
39052 /* System header to define __stub macros and hopefully few prototypes,
39053     which can conflict with char $ac_func (); below.
39054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39055     <limits.h> exists even on freestanding compilers.  */
39056
39057 #ifdef __STDC__
39058 # include <limits.h>
39059 #else
39060 # include <assert.h>
39061 #endif
39062
39063 #undef $ac_func
39064
39065 /* Override any gcc2 internal prototype to avoid an error.  */
39066 #ifdef __cplusplus
39067 extern "C"
39068 {
39069 #endif
39070 /* We use char because int might match the return type of a gcc2
39071    builtin and then its argument prototype would still apply.  */
39072 char $ac_func ();
39073 /* The GNU C library defines this for functions which it implements
39074     to always fail with ENOSYS.  Some functions are actually named
39075     something starting with __ and the normal name is an alias.  */
39076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39077 choke me
39078 #else
39079 char (*f) () = $ac_func;
39080 #endif
39081 #ifdef __cplusplus
39082 }
39083 #endif
39084
39085 int
39086 main ()
39087 {
39088 return f != $ac_func;
39089   ;
39090   return 0;
39091 }
39092 _ACEOF
39093 rm -f conftest.$ac_objext conftest$ac_exeext
39094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39095   (eval $ac_link) 2>conftest.er1
39096   ac_status=$?
39097   grep -v '^ *+' conftest.er1 >conftest.err
39098   rm -f conftest.er1
39099   cat conftest.err >&5
39100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39101   (exit $ac_status); } &&
39102          { ac_try='test -z "$ac_c_werror_flag"
39103                          || test ! -s conftest.err'
39104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39105   (eval $ac_try) 2>&5
39106   ac_status=$?
39107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39108   (exit $ac_status); }; } &&
39109          { ac_try='test -s conftest$ac_exeext'
39110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39111   (eval $ac_try) 2>&5
39112   ac_status=$?
39113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39114   (exit $ac_status); }; }; then
39115   eval "$as_ac_var=yes"
39116 else
39117   echo "$as_me: failed program was:" >&5
39118 sed 's/^/| /' conftest.$ac_ext >&5
39119
39120 eval "$as_ac_var=no"
39121 fi
39122 rm -f conftest.err conftest.$ac_objext \
39123       conftest$ac_exeext conftest.$ac_ext
39124 fi
39125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39127 if test `eval echo '${'$as_ac_var'}'` = yes; then
39128   cat >>confdefs.h <<_ACEOF
39129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39130 _ACEOF
39131
39132 fi
39133 done
39134
39135 fi
39136
39137
39138
39139
39140
39141
39142
39143
39144
39145
39146
39147
39148
39149
39150
39151
39152
39153
39154
39155
39156
39157
39158
39159
39160
39161
39162
39163
39164
39165
39166
39167
39168
39169
39170
39171
39172
39173
39174
39175
39176
39177
39178
39179
39180
39181
39182
39183
39184
39185
39186
39187
39188
39189
39190
39191
39192 for ac_func in \
39193         bcopy                   \
39194         closesocket             \
39195         chroot                  \
39196         endgrent                \
39197         endpwent                \
39198         fcntl                   \
39199         flock                   \
39200         fstat                   \
39201         getdtablesize           \
39202         getgrgid                \
39203         gethostname             \
39204         getpass                 \
39205         getpassphrase           \
39206         getpwuid                \
39207         getpwnam                \
39208         getspnam                \
39209         gettimeofday            \
39210         initgroups              \
39211         inet_ntoa_b             \
39212         ioctl                   \
39213         lockf                   \
39214         memcpy                  \
39215         memmove                 \
39216         memrchr                 \
39217         mkstemp                 \
39218         mktemp                  \
39219         pipe                    \
39220         read                    \
39221         recv                    \
39222         recvfrom                \
39223         setpwfile               \
39224         setgid                  \
39225         setegid                 \
39226         setsid                  \
39227         setuid                  \
39228         seteuid                 \
39229         signal                  \
39230         strdup                  \
39231         strpbrk                 \
39232         strrchr                 \
39233         strsep                  \
39234         strstr                  \
39235         strtol                  \
39236         strtoul                 \
39237         strtoq                  \
39238         strtouq                 \
39239         strtoll                 \
39240         strspn                  \
39241         sysconf                 \
39242         waitpid                 \
39243         wait4                   \
39244         write                   \
39245         send                    \
39246         sendmsg                 \
39247         sendto                  \
39248
39249 do
39250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39251 echo "$as_me:$LINENO: checking for $ac_func" >&5
39252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39253 if eval "test \"\${$as_ac_var+set}\" = set"; then
39254   echo $ECHO_N "(cached) $ECHO_C" >&6
39255 else
39256   cat >conftest.$ac_ext <<_ACEOF
39257 /* confdefs.h.  */
39258 _ACEOF
39259 cat confdefs.h >>conftest.$ac_ext
39260 cat >>conftest.$ac_ext <<_ACEOF
39261 /* end confdefs.h.  */
39262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39264 #define $ac_func innocuous_$ac_func
39265
39266 /* System header to define __stub macros and hopefully few prototypes,
39267     which can conflict with char $ac_func (); below.
39268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39269     <limits.h> exists even on freestanding compilers.  */
39270
39271 #ifdef __STDC__
39272 # include <limits.h>
39273 #else
39274 # include <assert.h>
39275 #endif
39276
39277 #undef $ac_func
39278
39279 /* Override any gcc2 internal prototype to avoid an error.  */
39280 #ifdef __cplusplus
39281 extern "C"
39282 {
39283 #endif
39284 /* We use char because int might match the return type of a gcc2
39285    builtin and then its argument prototype would still apply.  */
39286 char $ac_func ();
39287 /* The GNU C library defines this for functions which it implements
39288     to always fail with ENOSYS.  Some functions are actually named
39289     something starting with __ and the normal name is an alias.  */
39290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39291 choke me
39292 #else
39293 char (*f) () = $ac_func;
39294 #endif
39295 #ifdef __cplusplus
39296 }
39297 #endif
39298
39299 int
39300 main ()
39301 {
39302 return f != $ac_func;
39303   ;
39304   return 0;
39305 }
39306 _ACEOF
39307 rm -f conftest.$ac_objext conftest$ac_exeext
39308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39309   (eval $ac_link) 2>conftest.er1
39310   ac_status=$?
39311   grep -v '^ *+' conftest.er1 >conftest.err
39312   rm -f conftest.er1
39313   cat conftest.err >&5
39314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39315   (exit $ac_status); } &&
39316          { ac_try='test -z "$ac_c_werror_flag"
39317                          || test ! -s conftest.err'
39318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39319   (eval $ac_try) 2>&5
39320   ac_status=$?
39321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39322   (exit $ac_status); }; } &&
39323          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
39329   eval "$as_ac_var=yes"
39330 else
39331   echo "$as_me: failed program was:" >&5
39332 sed 's/^/| /' conftest.$ac_ext >&5
39333
39334 eval "$as_ac_var=no"
39335 fi
39336 rm -f conftest.err conftest.$ac_objext \
39337       conftest$ac_exeext conftest.$ac_ext
39338 fi
39339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39341 if test `eval echo '${'$as_ac_var'}'` = yes; then
39342   cat >>confdefs.h <<_ACEOF
39343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39344 _ACEOF
39345
39346 fi
39347 done
39348
39349
39350
39351
39352 for ac_func in getopt getpeereid
39353 do
39354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39355 echo "$as_me:$LINENO: checking for $ac_func" >&5
39356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39357 if eval "test \"\${$as_ac_var+set}\" = set"; then
39358   echo $ECHO_N "(cached) $ECHO_C" >&6
39359 else
39360   cat >conftest.$ac_ext <<_ACEOF
39361 /* confdefs.h.  */
39362 _ACEOF
39363 cat confdefs.h >>conftest.$ac_ext
39364 cat >>conftest.$ac_ext <<_ACEOF
39365 /* end confdefs.h.  */
39366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39368 #define $ac_func innocuous_$ac_func
39369
39370 /* System header to define __stub macros and hopefully few prototypes,
39371     which can conflict with char $ac_func (); below.
39372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39373     <limits.h> exists even on freestanding compilers.  */
39374
39375 #ifdef __STDC__
39376 # include <limits.h>
39377 #else
39378 # include <assert.h>
39379 #endif
39380
39381 #undef $ac_func
39382
39383 /* Override any gcc2 internal prototype to avoid an error.  */
39384 #ifdef __cplusplus
39385 extern "C"
39386 {
39387 #endif
39388 /* We use char because int might match the return type of a gcc2
39389    builtin and then its argument prototype would still apply.  */
39390 char $ac_func ();
39391 /* The GNU C library defines this for functions which it implements
39392     to always fail with ENOSYS.  Some functions are actually named
39393     something starting with __ and the normal name is an alias.  */
39394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39395 choke me
39396 #else
39397 char (*f) () = $ac_func;
39398 #endif
39399 #ifdef __cplusplus
39400 }
39401 #endif
39402
39403 int
39404 main ()
39405 {
39406 return f != $ac_func;
39407   ;
39408   return 0;
39409 }
39410 _ACEOF
39411 rm -f conftest.$ac_objext conftest$ac_exeext
39412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39413   (eval $ac_link) 2>conftest.er1
39414   ac_status=$?
39415   grep -v '^ *+' conftest.er1 >conftest.err
39416   rm -f conftest.er1
39417   cat conftest.err >&5
39418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39419   (exit $ac_status); } &&
39420          { ac_try='test -z "$ac_c_werror_flag"
39421                          || test ! -s conftest.err'
39422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39423   (eval $ac_try) 2>&5
39424   ac_status=$?
39425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39426   (exit $ac_status); }; } &&
39427          { ac_try='test -s conftest$ac_exeext'
39428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39429   (eval $ac_try) 2>&5
39430   ac_status=$?
39431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39432   (exit $ac_status); }; }; then
39433   eval "$as_ac_var=yes"
39434 else
39435   echo "$as_me: failed program was:" >&5
39436 sed 's/^/| /' conftest.$ac_ext >&5
39437
39438 eval "$as_ac_var=no"
39439 fi
39440 rm -f conftest.err conftest.$ac_objext \
39441       conftest$ac_exeext conftest.$ac_ext
39442 fi
39443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39444 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39445 if test `eval echo '${'$as_ac_var'}'` = yes; then
39446   cat >>confdefs.h <<_ACEOF
39447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39448 _ACEOF
39449
39450 else
39451   case $LIBOBJS in
39452     "$ac_func.$ac_objext"   | \
39453   *" $ac_func.$ac_objext"   | \
39454     "$ac_func.$ac_objext "* | \
39455   *" $ac_func.$ac_objext "* ) ;;
39456   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39457 esac
39458
39459 fi
39460 done
39461
39462
39463
39464 if test "$ac_cv_func_getopt" != yes; then
39465         LIBSRCS="$LIBSRCS getopt.c"
39466 fi
39467
39468 if test "$ac_cv_func_getpeereid" != yes; then
39469
39470 for ac_func in getpeerucred
39471 do
39472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39473 echo "$as_me:$LINENO: checking for $ac_func" >&5
39474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39475 if eval "test \"\${$as_ac_var+set}\" = set"; then
39476   echo $ECHO_N "(cached) $ECHO_C" >&6
39477 else
39478   cat >conftest.$ac_ext <<_ACEOF
39479 /* confdefs.h.  */
39480 _ACEOF
39481 cat confdefs.h >>conftest.$ac_ext
39482 cat >>conftest.$ac_ext <<_ACEOF
39483 /* end confdefs.h.  */
39484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39486 #define $ac_func innocuous_$ac_func
39487
39488 /* System header to define __stub macros and hopefully few prototypes,
39489     which can conflict with char $ac_func (); below.
39490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39491     <limits.h> exists even on freestanding compilers.  */
39492
39493 #ifdef __STDC__
39494 # include <limits.h>
39495 #else
39496 # include <assert.h>
39497 #endif
39498
39499 #undef $ac_func
39500
39501 /* Override any gcc2 internal prototype to avoid an error.  */
39502 #ifdef __cplusplus
39503 extern "C"
39504 {
39505 #endif
39506 /* We use char because int might match the return type of a gcc2
39507    builtin and then its argument prototype would still apply.  */
39508 char $ac_func ();
39509 /* The GNU C library defines this for functions which it implements
39510     to always fail with ENOSYS.  Some functions are actually named
39511     something starting with __ and the normal name is an alias.  */
39512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39513 choke me
39514 #else
39515 char (*f) () = $ac_func;
39516 #endif
39517 #ifdef __cplusplus
39518 }
39519 #endif
39520
39521 int
39522 main ()
39523 {
39524 return f != $ac_func;
39525   ;
39526   return 0;
39527 }
39528 _ACEOF
39529 rm -f conftest.$ac_objext conftest$ac_exeext
39530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39531   (eval $ac_link) 2>conftest.er1
39532   ac_status=$?
39533   grep -v '^ *+' conftest.er1 >conftest.err
39534   rm -f conftest.er1
39535   cat conftest.err >&5
39536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39537   (exit $ac_status); } &&
39538          { ac_try='test -z "$ac_c_werror_flag"
39539                          || test ! -s conftest.err'
39540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39541   (eval $ac_try) 2>&5
39542   ac_status=$?
39543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39544   (exit $ac_status); }; } &&
39545          { ac_try='test -s conftest$ac_exeext'
39546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39547   (eval $ac_try) 2>&5
39548   ac_status=$?
39549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39550   (exit $ac_status); }; }; then
39551   eval "$as_ac_var=yes"
39552 else
39553   echo "$as_me: failed program was:" >&5
39554 sed 's/^/| /' conftest.$ac_ext >&5
39555
39556 eval "$as_ac_var=no"
39557 fi
39558 rm -f conftest.err conftest.$ac_objext \
39559       conftest$ac_exeext conftest.$ac_ext
39560 fi
39561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39563 if test `eval echo '${'$as_ac_var'}'` = yes; then
39564   cat >>confdefs.h <<_ACEOF
39565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39566 _ACEOF
39567
39568 fi
39569 done
39570
39571         if test "$ac_cv_func_getpeerucred" != yes ; then
39572                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39573 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39574 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39575   echo $ECHO_N "(cached) $ECHO_C" >&6
39576 else
39577   cat >conftest.$ac_ext <<_ACEOF
39578 /* confdefs.h.  */
39579 _ACEOF
39580 cat confdefs.h >>conftest.$ac_ext
39581 cat >>conftest.$ac_ext <<_ACEOF
39582 /* end confdefs.h.  */
39583 $ac_includes_default
39584 #ifdef HAVE_SYS_SOCKET_H
39585 #include <sys/socket.h>
39586 #endif
39587
39588 int
39589 main ()
39590 {
39591 static struct msghdr ac_aggr;
39592 if (ac_aggr.msg_accrightslen)
39593 return 0;
39594   ;
39595   return 0;
39596 }
39597 _ACEOF
39598 rm -f conftest.$ac_objext
39599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39600   (eval $ac_compile) 2>conftest.er1
39601   ac_status=$?
39602   grep -v '^ *+' conftest.er1 >conftest.err
39603   rm -f conftest.er1
39604   cat conftest.err >&5
39605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39606   (exit $ac_status); } &&
39607          { ac_try='test -z "$ac_c_werror_flag"
39608                          || test ! -s conftest.err'
39609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39610   (eval $ac_try) 2>&5
39611   ac_status=$?
39612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39613   (exit $ac_status); }; } &&
39614          { ac_try='test -s conftest.$ac_objext'
39615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39616   (eval $ac_try) 2>&5
39617   ac_status=$?
39618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39619   (exit $ac_status); }; }; then
39620   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39621 else
39622   echo "$as_me: failed program was:" >&5
39623 sed 's/^/| /' conftest.$ac_ext >&5
39624
39625 cat >conftest.$ac_ext <<_ACEOF
39626 /* confdefs.h.  */
39627 _ACEOF
39628 cat confdefs.h >>conftest.$ac_ext
39629 cat >>conftest.$ac_ext <<_ACEOF
39630 /* end confdefs.h.  */
39631 $ac_includes_default
39632 #ifdef HAVE_SYS_SOCKET_H
39633 #include <sys/socket.h>
39634 #endif
39635
39636 int
39637 main ()
39638 {
39639 static struct msghdr ac_aggr;
39640 if (sizeof ac_aggr.msg_accrightslen)
39641 return 0;
39642   ;
39643   return 0;
39644 }
39645 _ACEOF
39646 rm -f conftest.$ac_objext
39647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39648   (eval $ac_compile) 2>conftest.er1
39649   ac_status=$?
39650   grep -v '^ *+' conftest.er1 >conftest.err
39651   rm -f conftest.er1
39652   cat conftest.err >&5
39653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39654   (exit $ac_status); } &&
39655          { ac_try='test -z "$ac_c_werror_flag"
39656                          || test ! -s conftest.err'
39657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39658   (eval $ac_try) 2>&5
39659   ac_status=$?
39660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39661   (exit $ac_status); }; } &&
39662          { ac_try='test -s conftest.$ac_objext'
39663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39664   (eval $ac_try) 2>&5
39665   ac_status=$?
39666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39667   (exit $ac_status); }; }; then
39668   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39669 else
39670   echo "$as_me: failed program was:" >&5
39671 sed 's/^/| /' conftest.$ac_ext >&5
39672
39673 ac_cv_member_struct_msghdr_msg_accrightslen=no
39674 fi
39675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39676 fi
39677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39678 fi
39679 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39680 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39681 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39682
39683 cat >>confdefs.h <<_ACEOF
39684 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39685 _ACEOF
39686
39687
39688 fi
39689
39690                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39691                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39692 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39693 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39694   echo $ECHO_N "(cached) $ECHO_C" >&6
39695 else
39696   cat >conftest.$ac_ext <<_ACEOF
39697 /* confdefs.h.  */
39698 _ACEOF
39699 cat confdefs.h >>conftest.$ac_ext
39700 cat >>conftest.$ac_ext <<_ACEOF
39701 /* end confdefs.h.  */
39702 $ac_includes_default
39703 #ifdef HAVE_SYS_SOCKET_H
39704 #include <sys/socket.h>
39705 #endif
39706
39707 int
39708 main ()
39709 {
39710 static struct msghdr ac_aggr;
39711 if (ac_aggr.msg_control)
39712 return 0;
39713   ;
39714   return 0;
39715 }
39716 _ACEOF
39717 rm -f conftest.$ac_objext
39718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39719   (eval $ac_compile) 2>conftest.er1
39720   ac_status=$?
39721   grep -v '^ *+' conftest.er1 >conftest.err
39722   rm -f conftest.er1
39723   cat conftest.err >&5
39724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39725   (exit $ac_status); } &&
39726          { ac_try='test -z "$ac_c_werror_flag"
39727                          || test ! -s conftest.err'
39728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39729   (eval $ac_try) 2>&5
39730   ac_status=$?
39731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39732   (exit $ac_status); }; } &&
39733          { ac_try='test -s conftest.$ac_objext'
39734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39735   (eval $ac_try) 2>&5
39736   ac_status=$?
39737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39738   (exit $ac_status); }; }; then
39739   ac_cv_member_struct_msghdr_msg_control=yes
39740 else
39741   echo "$as_me: failed program was:" >&5
39742 sed 's/^/| /' conftest.$ac_ext >&5
39743
39744 cat >conftest.$ac_ext <<_ACEOF
39745 /* confdefs.h.  */
39746 _ACEOF
39747 cat confdefs.h >>conftest.$ac_ext
39748 cat >>conftest.$ac_ext <<_ACEOF
39749 /* end confdefs.h.  */
39750 $ac_includes_default
39751 #ifdef HAVE_SYS_SOCKET_H
39752 #include <sys/socket.h>
39753 #endif
39754
39755 int
39756 main ()
39757 {
39758 static struct msghdr ac_aggr;
39759 if (sizeof ac_aggr.msg_control)
39760 return 0;
39761   ;
39762   return 0;
39763 }
39764 _ACEOF
39765 rm -f conftest.$ac_objext
39766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39767   (eval $ac_compile) 2>conftest.er1
39768   ac_status=$?
39769   grep -v '^ *+' conftest.er1 >conftest.err
39770   rm -f conftest.er1
39771   cat conftest.err >&5
39772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39773   (exit $ac_status); } &&
39774          { ac_try='test -z "$ac_c_werror_flag"
39775                          || test ! -s conftest.err'
39776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39777   (eval $ac_try) 2>&5
39778   ac_status=$?
39779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39780   (exit $ac_status); }; } &&
39781          { ac_try='test -s conftest.$ac_objext'
39782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39783   (eval $ac_try) 2>&5
39784   ac_status=$?
39785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39786   (exit $ac_status); }; }; then
39787   ac_cv_member_struct_msghdr_msg_control=yes
39788 else
39789   echo "$as_me: failed program was:" >&5
39790 sed 's/^/| /' conftest.$ac_ext >&5
39791
39792 ac_cv_member_struct_msghdr_msg_control=no
39793 fi
39794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39795 fi
39796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39797 fi
39798 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39799 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39800 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39801
39802 cat >>confdefs.h <<_ACEOF
39803 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39804 _ACEOF
39805
39806
39807 fi
39808
39809                 fi
39810                 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
39811 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
39812 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
39813   echo $ECHO_N "(cached) $ECHO_C" >&6
39814 else
39815   cat >conftest.$ac_ext <<_ACEOF
39816 /* confdefs.h.  */
39817 _ACEOF
39818 cat confdefs.h >>conftest.$ac_ext
39819 cat >>conftest.$ac_ext <<_ACEOF
39820 /* end confdefs.h.  */
39821 $ac_includes_default
39822 int
39823 main ()
39824 {
39825 static struct stat ac_aggr;
39826 if (ac_aggr.st_fstype)
39827 return 0;
39828   ;
39829   return 0;
39830 }
39831 _ACEOF
39832 rm -f conftest.$ac_objext
39833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39834   (eval $ac_compile) 2>conftest.er1
39835   ac_status=$?
39836   grep -v '^ *+' conftest.er1 >conftest.err
39837   rm -f conftest.er1
39838   cat conftest.err >&5
39839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39840   (exit $ac_status); } &&
39841          { ac_try='test -z "$ac_c_werror_flag"
39842                          || test ! -s conftest.err'
39843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39844   (eval $ac_try) 2>&5
39845   ac_status=$?
39846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39847   (exit $ac_status); }; } &&
39848          { ac_try='test -s conftest.$ac_objext'
39849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39850   (eval $ac_try) 2>&5
39851   ac_status=$?
39852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39853   (exit $ac_status); }; }; then
39854   ac_cv_member_struct_stat_st_fstype=yes
39855 else
39856   echo "$as_me: failed program was:" >&5
39857 sed 's/^/| /' conftest.$ac_ext >&5
39858
39859 cat >conftest.$ac_ext <<_ACEOF
39860 /* confdefs.h.  */
39861 _ACEOF
39862 cat confdefs.h >>conftest.$ac_ext
39863 cat >>conftest.$ac_ext <<_ACEOF
39864 /* end confdefs.h.  */
39865 $ac_includes_default
39866 int
39867 main ()
39868 {
39869 static struct stat ac_aggr;
39870 if (sizeof ac_aggr.st_fstype)
39871 return 0;
39872   ;
39873   return 0;
39874 }
39875 _ACEOF
39876 rm -f conftest.$ac_objext
39877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39878   (eval $ac_compile) 2>conftest.er1
39879   ac_status=$?
39880   grep -v '^ *+' conftest.er1 >conftest.err
39881   rm -f conftest.er1
39882   cat conftest.err >&5
39883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39884   (exit $ac_status); } &&
39885          { ac_try='test -z "$ac_c_werror_flag"
39886                          || test ! -s conftest.err'
39887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39888   (eval $ac_try) 2>&5
39889   ac_status=$?
39890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891   (exit $ac_status); }; } &&
39892          { ac_try='test -s conftest.$ac_objext'
39893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39894   (eval $ac_try) 2>&5
39895   ac_status=$?
39896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39897   (exit $ac_status); }; }; then
39898   ac_cv_member_struct_stat_st_fstype=yes
39899 else
39900   echo "$as_me: failed program was:" >&5
39901 sed 's/^/| /' conftest.$ac_ext >&5
39902
39903 ac_cv_member_struct_stat_st_fstype=no
39904 fi
39905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39906 fi
39907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39908 fi
39909 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
39910 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
39911 if test $ac_cv_member_struct_stat_st_fstype = yes; then
39912
39913 cat >>confdefs.h <<_ACEOF
39914 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
39915 _ACEOF
39916
39917
39918 fi
39919 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
39920 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
39921 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
39922   echo $ECHO_N "(cached) $ECHO_C" >&6
39923 else
39924   cat >conftest.$ac_ext <<_ACEOF
39925 /* confdefs.h.  */
39926 _ACEOF
39927 cat confdefs.h >>conftest.$ac_ext
39928 cat >>conftest.$ac_ext <<_ACEOF
39929 /* end confdefs.h.  */
39930 $ac_includes_default
39931 int
39932 main ()
39933 {
39934 static struct stat ac_aggr;
39935 if (ac_aggr.st_vfstype)
39936 return 0;
39937   ;
39938   return 0;
39939 }
39940 _ACEOF
39941 rm -f conftest.$ac_objext
39942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39943   (eval $ac_compile) 2>conftest.er1
39944   ac_status=$?
39945   grep -v '^ *+' conftest.er1 >conftest.err
39946   rm -f conftest.er1
39947   cat conftest.err >&5
39948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39949   (exit $ac_status); } &&
39950          { ac_try='test -z "$ac_c_werror_flag"
39951                          || test ! -s conftest.err'
39952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39953   (eval $ac_try) 2>&5
39954   ac_status=$?
39955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39956   (exit $ac_status); }; } &&
39957          { ac_try='test -s conftest.$ac_objext'
39958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39959   (eval $ac_try) 2>&5
39960   ac_status=$?
39961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39962   (exit $ac_status); }; }; then
39963   ac_cv_member_struct_stat_st_vfstype=yes
39964 else
39965   echo "$as_me: failed program was:" >&5
39966 sed 's/^/| /' conftest.$ac_ext >&5
39967
39968 cat >conftest.$ac_ext <<_ACEOF
39969 /* confdefs.h.  */
39970 _ACEOF
39971 cat confdefs.h >>conftest.$ac_ext
39972 cat >>conftest.$ac_ext <<_ACEOF
39973 /* end confdefs.h.  */
39974 $ac_includes_default
39975 int
39976 main ()
39977 {
39978 static struct stat ac_aggr;
39979 if (sizeof ac_aggr.st_vfstype)
39980 return 0;
39981   ;
39982   return 0;
39983 }
39984 _ACEOF
39985 rm -f conftest.$ac_objext
39986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39987   (eval $ac_compile) 2>conftest.er1
39988   ac_status=$?
39989   grep -v '^ *+' conftest.er1 >conftest.err
39990   rm -f conftest.er1
39991   cat conftest.err >&5
39992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39993   (exit $ac_status); } &&
39994          { ac_try='test -z "$ac_c_werror_flag"
39995                          || test ! -s conftest.err'
39996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39997   (eval $ac_try) 2>&5
39998   ac_status=$?
39999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40000   (exit $ac_status); }; } &&
40001          { ac_try='test -s conftest.$ac_objext'
40002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40003   (eval $ac_try) 2>&5
40004   ac_status=$?
40005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40006   (exit $ac_status); }; }; then
40007   ac_cv_member_struct_stat_st_vfstype=yes
40008 else
40009   echo "$as_me: failed program was:" >&5
40010 sed 's/^/| /' conftest.$ac_ext >&5
40011
40012 ac_cv_member_struct_stat_st_vfstype=no
40013 fi
40014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40015 fi
40016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40017 fi
40018 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
40019 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
40020 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
40021
40022 cat >>confdefs.h <<_ACEOF
40023 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
40024 _ACEOF
40025
40026
40027 fi
40028
40029                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
40030                         cat >conftest.$ac_ext <<_ACEOF
40031 struct stat st; char *ptr=st.st_fstype;
40032 _ACEOF
40033 rm -f conftest.$ac_objext
40034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40035   (eval $ac_compile) 2>conftest.er1
40036   ac_status=$?
40037   grep -v '^ *+' conftest.er1 >conftest.err
40038   rm -f conftest.er1
40039   cat conftest.err >&5
40040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041   (exit $ac_status); } &&
40042          { ac_try='test -z "$ac_c_werror_flag"
40043                          || test ! -s conftest.err'
40044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40045   (eval $ac_try) 2>&5
40046   ac_status=$?
40047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40048   (exit $ac_status); }; } &&
40049          { ac_try='test -s conftest.$ac_objext'
40050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40051   (eval $ac_try) 2>&5
40052   ac_status=$?
40053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40054   (exit $ac_status); }; }; then
40055
40056 cat >>confdefs.h <<\_ACEOF
40057 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
40058 _ACEOF
40059
40060 else
40061   echo "$as_me: failed program was:" >&5
40062 sed 's/^/| /' conftest.$ac_ext >&5
40063
40064
40065 cat >>confdefs.h <<\_ACEOF
40066 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
40067 _ACEOF
40068
40069 fi
40070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40071                 fi
40072         fi
40073         LIBSRCS="$LIBSRCS getpeereid.c"
40074 fi
40075
40076 if test "$ac_cv_func_snprintf" != yes ||
40077    test "$ac_cv_func_vsnprintf" != yes; then
40078         if test "$ac_cv_func_snprintf" != yes; then
40079
40080 cat >>confdefs.h <<\_ACEOF
40081 #define snprintf ber_pvt_snprintf
40082 _ACEOF
40083
40084         fi
40085         if test "$ac_cv_func_vsnprintf" != yes; then
40086
40087 cat >>confdefs.h <<\_ACEOF
40088 #define vsnprintf ber_pvt_vsnprintf
40089 _ACEOF
40090
40091         fi
40092 fi
40093
40094
40095 if test "$ol_enable_slapi" != no ; then
40096
40097 for ac_header in ltdl.h
40098 do
40099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40101   echo "$as_me:$LINENO: checking for $ac_header" >&5
40102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40104   echo $ECHO_N "(cached) $ECHO_C" >&6
40105 fi
40106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40108 else
40109   # Is the header compilable?
40110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40112 cat >conftest.$ac_ext <<_ACEOF
40113 /* confdefs.h.  */
40114 _ACEOF
40115 cat confdefs.h >>conftest.$ac_ext
40116 cat >>conftest.$ac_ext <<_ACEOF
40117 /* end confdefs.h.  */
40118 $ac_includes_default
40119 #include <$ac_header>
40120 _ACEOF
40121 rm -f conftest.$ac_objext
40122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40123   (eval $ac_compile) 2>conftest.er1
40124   ac_status=$?
40125   grep -v '^ *+' conftest.er1 >conftest.err
40126   rm -f conftest.er1
40127   cat conftest.err >&5
40128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40129   (exit $ac_status); } &&
40130          { ac_try='test -z "$ac_c_werror_flag"
40131                          || test ! -s conftest.err'
40132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40133   (eval $ac_try) 2>&5
40134   ac_status=$?
40135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40136   (exit $ac_status); }; } &&
40137          { ac_try='test -s conftest.$ac_objext'
40138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40139   (eval $ac_try) 2>&5
40140   ac_status=$?
40141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40142   (exit $ac_status); }; }; then
40143   ac_header_compiler=yes
40144 else
40145   echo "$as_me: failed program was:" >&5
40146 sed 's/^/| /' conftest.$ac_ext >&5
40147
40148 ac_header_compiler=no
40149 fi
40150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40152 echo "${ECHO_T}$ac_header_compiler" >&6
40153
40154 # Is the header present?
40155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40157 cat >conftest.$ac_ext <<_ACEOF
40158 /* confdefs.h.  */
40159 _ACEOF
40160 cat confdefs.h >>conftest.$ac_ext
40161 cat >>conftest.$ac_ext <<_ACEOF
40162 /* end confdefs.h.  */
40163 #include <$ac_header>
40164 _ACEOF
40165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40167   ac_status=$?
40168   grep -v '^ *+' conftest.er1 >conftest.err
40169   rm -f conftest.er1
40170   cat conftest.err >&5
40171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40172   (exit $ac_status); } >/dev/null; then
40173   if test -s conftest.err; then
40174     ac_cpp_err=$ac_c_preproc_warn_flag
40175     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40176   else
40177     ac_cpp_err=
40178   fi
40179 else
40180   ac_cpp_err=yes
40181 fi
40182 if test -z "$ac_cpp_err"; then
40183   ac_header_preproc=yes
40184 else
40185   echo "$as_me: failed program was:" >&5
40186 sed 's/^/| /' conftest.$ac_ext >&5
40187
40188   ac_header_preproc=no
40189 fi
40190 rm -f conftest.err conftest.$ac_ext
40191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40192 echo "${ECHO_T}$ac_header_preproc" >&6
40193
40194 # So?  What about this header?
40195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40196   yes:no: )
40197     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40201     ac_header_preproc=yes
40202     ;;
40203   no:yes:* )
40204     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40206     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40207 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40208     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40210     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40211 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40212     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40214     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40216     (
40217       cat <<\_ASBOX
40218 ## --------------------------------------------- ##
40219 ## Report this to <http://www.openldap.org/its/> ##
40220 ## --------------------------------------------- ##
40221 _ASBOX
40222     ) |
40223       sed "s/^/$as_me: WARNING:     /" >&2
40224     ;;
40225 esac
40226 echo "$as_me:$LINENO: checking for $ac_header" >&5
40227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40229   echo $ECHO_N "(cached) $ECHO_C" >&6
40230 else
40231   eval "$as_ac_Header=\$ac_header_preproc"
40232 fi
40233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40235
40236 fi
40237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40238   cat >>confdefs.h <<_ACEOF
40239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40240 _ACEOF
40241
40242 fi
40243
40244 done
40245
40246
40247         if test $ac_cv_header_ltdl_h != yes ; then
40248                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
40249 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
40250    { (exit 1); exit 1; }; }
40251         fi
40252         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
40253 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
40254 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
40255   echo $ECHO_N "(cached) $ECHO_C" >&6
40256 else
40257   ac_check_lib_save_LIBS=$LIBS
40258 LIBS="-lltdl  $LIBS"
40259 cat >conftest.$ac_ext <<_ACEOF
40260 /* confdefs.h.  */
40261 _ACEOF
40262 cat confdefs.h >>conftest.$ac_ext
40263 cat >>conftest.$ac_ext <<_ACEOF
40264 /* end confdefs.h.  */
40265
40266 /* Override any gcc2 internal prototype to avoid an error.  */
40267 #ifdef __cplusplus
40268 extern "C"
40269 #endif
40270 /* We use char because int might match the return type of a gcc2
40271    builtin and then its argument prototype would still apply.  */
40272 char lt_dlinit ();
40273 int
40274 main ()
40275 {
40276 lt_dlinit ();
40277   ;
40278   return 0;
40279 }
40280 _ACEOF
40281 rm -f conftest.$ac_objext conftest$ac_exeext
40282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40283   (eval $ac_link) 2>conftest.er1
40284   ac_status=$?
40285   grep -v '^ *+' conftest.er1 >conftest.err
40286   rm -f conftest.er1
40287   cat conftest.err >&5
40288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40289   (exit $ac_status); } &&
40290          { ac_try='test -z "$ac_c_werror_flag"
40291                          || test ! -s conftest.err'
40292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40293   (eval $ac_try) 2>&5
40294   ac_status=$?
40295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40296   (exit $ac_status); }; } &&
40297          { ac_try='test -s conftest$ac_exeext'
40298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40299   (eval $ac_try) 2>&5
40300   ac_status=$?
40301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40302   (exit $ac_status); }; }; then
40303   ac_cv_lib_ltdl_lt_dlinit=yes
40304 else
40305   echo "$as_me: failed program was:" >&5
40306 sed 's/^/| /' conftest.$ac_ext >&5
40307
40308 ac_cv_lib_ltdl_lt_dlinit=no
40309 fi
40310 rm -f conftest.err conftest.$ac_objext \
40311       conftest$ac_exeext conftest.$ac_ext
40312 LIBS=$ac_check_lib_save_LIBS
40313 fi
40314 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
40315 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
40316 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
40317
40318                 SLAPI_LIBS=-lltdl
40319                 LIBSLAPI=libslapi.a
40320                 LIBSLAPITOOLS=../libslapi.a
40321
40322 cat >>confdefs.h <<\_ACEOF
40323 #define HAVE_LIBLTDL 1
40324 _ACEOF
40325
40326
40327 else
40328   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
40329 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
40330    { (exit 1); exit 1; }; }
40331 fi
40332
40333
40334
40335 cat >>confdefs.h <<\_ACEOF
40336 #define LDAP_SLAPI 1
40337 _ACEOF
40338
40339 fi
40340
40341 if test "$ol_enable_debug" != no ; then
40342         if test "$ol_enable_debug" = traditional; then
40343
40344 cat >>confdefs.h <<\_ACEOF
40345 #define OLD_DEBUG 1
40346 _ACEOF
40347
40348         fi
40349
40350 cat >>confdefs.h <<\_ACEOF
40351 #define LDAP_DEBUG 1
40352 _ACEOF
40353
40354 fi
40355 if test "$ol_enable_syslog" = yes ; then
40356
40357 cat >>confdefs.h <<\_ACEOF
40358 #define LDAP_SYSLOG 1
40359 _ACEOF
40360
40361 fi
40362 if test "$ol_enable_proctitle" != no ; then
40363
40364 cat >>confdefs.h <<\_ACEOF
40365 #define LDAP_PROCTITLE 1
40366 _ACEOF
40367
40368 fi
40369 if test "$ol_enable_referrals" != no ; then
40370
40371 cat >>confdefs.h <<\_ACEOF
40372 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
40373 _ACEOF
40374
40375 fi
40376 if test "$ol_enable_local" != no; then
40377
40378 cat >>confdefs.h <<\_ACEOF
40379 #define LDAP_PF_LOCAL 1
40380 _ACEOF
40381
40382 fi
40383 if test "$ol_link_ipv6" != no; then
40384
40385 cat >>confdefs.h <<\_ACEOF
40386 #define LDAP_PF_INET6 1
40387 _ACEOF
40388
40389 fi
40390 if test "$ol_enable_cleartext" != no ; then
40391
40392 cat >>confdefs.h <<\_ACEOF
40393 #define SLAPD_CLEARTEXT 1
40394 _ACEOF
40395
40396 fi
40397 if test "$ol_enable_crypt" != no ; then
40398
40399 cat >>confdefs.h <<\_ACEOF
40400 #define SLAPD_CRYPT 1
40401 _ACEOF
40402
40403 fi
40404 if test "$ol_link_spasswd" != no ; then
40405
40406 cat >>confdefs.h <<\_ACEOF
40407 #define SLAPD_SPASSWD 1
40408 _ACEOF
40409
40410 fi
40411 if test "$ol_enable_rlookups" != no ; then
40412
40413 cat >>confdefs.h <<\_ACEOF
40414 #define SLAPD_RLOOKUPS 1
40415 _ACEOF
40416
40417 fi
40418 if test "$ol_enable_aci" != no ; then
40419         if test $ol_enable_dynacl = no ; then
40420                 ol_enable_dynacl=yes
40421                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
40422 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
40423         fi
40424         if test "$ol_enable_aci" = mod ; then
40425                 MFLAG=SLAPD_MOD_DYNAMIC
40426                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
40427 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
40428    { (exit 1); exit 1; }; }
40429         else
40430                 MFLAG=SLAPD_MOD_STATIC
40431         fi
40432         WITH_ACI_ENABLED=$ol_enable_aci
40433
40434 cat >>confdefs.h <<_ACEOF
40435 #define SLAPD_ACI_ENABLED $MFLAG
40436 _ACEOF
40437
40438 else
40439         WITH_ACI_ENABLED=no
40440 fi
40441 if test "$ol_enable_dynacl" != no ; then
40442
40443 cat >>confdefs.h <<\_ACEOF
40444 #define SLAP_DYNACL 1
40445 _ACEOF
40446
40447 fi
40448
40449 if test "$ol_link_modules" != no ; then
40450
40451 cat >>confdefs.h <<\_ACEOF
40452 #define SLAPD_MODULES 1
40453 _ACEOF
40454
40455         BUILD_SLAPD=yes
40456         SLAPD_MODULES_LDFLAGS="-dlopen self"
40457 fi
40458
40459
40460 cat >>confdefs.h <<\_ACEOF
40461 #define SLAPD_MOD_STATIC 1
40462 _ACEOF
40463
40464
40465 cat >>confdefs.h <<\_ACEOF
40466 #define SLAPD_MOD_DYNAMIC 2
40467 _ACEOF
40468
40469
40470 if test "$ol_enable_monitor" != no ; then
40471         BUILD_SLAPD=yes
40472         BUILD_MONITOR=$ol_enable_monitor
40473         if test "$ol_enable_monitor" = mod ; then
40474                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
40475                 MFLAG=SLAPD_MOD_DYNAMIC
40476         else
40477                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
40478                 MFLAG=SLAPD_MOD_STATIC
40479         fi
40480
40481 cat >>confdefs.h <<_ACEOF
40482 #define SLAPD_MONITOR $MFLAG
40483 _ACEOF
40484
40485 fi
40486
40487 if test "$ol_enable_bdb" != no ; then
40488         BUILD_SLAPD=yes
40489         BUILD_BDB=$ol_enable_bdb
40490         if test "$ol_enable_bdb" = mod ; then
40491                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
40492                 MFLAG=SLAPD_MOD_DYNAMIC
40493         else
40494                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
40495                 MFLAG=SLAPD_MOD_STATIC
40496         fi
40497
40498 cat >>confdefs.h <<_ACEOF
40499 #define SLAPD_BDB $MFLAG
40500 _ACEOF
40501
40502 fi
40503
40504 if test "$ol_enable_dnssrv" != no ; then
40505         BUILD_SLAPD=yes
40506         BUILD_DNSSRV=$ol_enable_dnssrv
40507         if test "$ol_enable_dnssrv" = mod ; then
40508                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
40509                 MFLAG=SLAPD_MOD_DYNAMIC
40510         else
40511                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
40512                 MFLAG=SLAPD_MOD_STATIC
40513         fi
40514
40515 cat >>confdefs.h <<_ACEOF
40516 #define SLAPD_DNSSRV $MFLAG
40517 _ACEOF
40518
40519 fi
40520
40521 if test "$ol_enable_hdb" != no ; then
40522         BUILD_SLAPD=yes
40523         BUILD_HDB=$ol_enable_hdb
40524         if test "$ol_enable_hdb" = mod ; then
40525                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
40526                 MFLAG=SLAPD_MOD_DYNAMIC
40527         else
40528                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
40529                 MFLAG=SLAPD_MOD_STATIC
40530         fi
40531
40532 cat >>confdefs.h <<_ACEOF
40533 #define SLAPD_HDB $MFLAG
40534 _ACEOF
40535
40536 fi
40537
40538 if test "$ol_enable_ldap" != no ; then
40539         BUILD_SLAPD=yes
40540         BUILD_LDAP=$ol_enable_ldap
40541         if test "$ol_enable_ldap" = mod ; then
40542                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
40543                 MFLAG=SLAPD_MOD_DYNAMIC
40544         else
40545                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
40546                 MFLAG=SLAPD_MOD_STATIC
40547         fi
40548
40549 cat >>confdefs.h <<_ACEOF
40550 #define SLAPD_LDAP $MFLAG
40551 _ACEOF
40552
40553 fi
40554
40555 if test "$ol_enable_meta" != no ; then
40556         BUILD_SLAPD=yes
40557         BUILD_META=$ol_enable_meta
40558         BUILD_REWRITE=yes
40559         if test "$ol_enable_meta" = mod ; then
40560                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40561                 MFLAG=SLAPD_MOD_DYNAMIC
40562         else
40563                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40564                 MFLAG=SLAPD_MOD_STATIC
40565         fi
40566
40567 cat >>confdefs.h <<_ACEOF
40568 #define SLAPD_META $MFLAG
40569 _ACEOF
40570
40571 fi
40572
40573 if test "$ol_enable_ndb" != no ; then
40574         BUILD_SLAPD=yes
40575         BUILD_NDB=$ol_enable_ndb
40576         if test "$ol_enable_ndb" = mod ; then
40577                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
40578                 MFLAG=SLAPD_MOD_DYNAMIC
40579         else
40580                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
40581                 MFLAG=SLAPD_MOD_STATIC
40582         fi
40583
40584 cat >>confdefs.h <<_ACEOF
40585 #define SLAPD_NDB $MFLAG
40586 _ACEOF
40587
40588 fi
40589
40590 if test "$ol_enable_null" != no ; then
40591         BUILD_SLAPD=yes
40592         BUILD_NULL=$ol_enable_null
40593         if test "$ol_enable_null" = mod ; then
40594                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40595                 MFLAG=SLAPD_MOD_DYNAMIC
40596         else
40597                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40598                 MFLAG=SLAPD_MOD_STATIC
40599         fi
40600
40601 cat >>confdefs.h <<_ACEOF
40602 #define SLAPD_NULL $MFLAG
40603 _ACEOF
40604
40605 fi
40606
40607 if test "$ol_enable_passwd" != no ; then
40608         BUILD_SLAPD=yes
40609         BUILD_PASSWD=$ol_enable_passwd
40610         if test "$ol_enable_passwd" = mod ; then
40611                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40612                 MFLAG=SLAPD_MOD_DYNAMIC
40613         else
40614                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40615                 MFLAG=SLAPD_MOD_STATIC
40616         fi
40617
40618 cat >>confdefs.h <<_ACEOF
40619 #define SLAPD_PASSWD $MFLAG
40620 _ACEOF
40621
40622 fi
40623
40624 if test "$ol_link_perl" != no ; then
40625         BUILD_SLAPD=yes
40626         BUILD_PERL=$ol_enable_perl
40627         if test "$ol_enable_perl" = mod ; then
40628                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40629                 MFLAG=SLAPD_MOD_DYNAMIC
40630         else
40631                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40632                 MFLAG=SLAPD_MOD_STATIC
40633         fi
40634
40635 cat >>confdefs.h <<_ACEOF
40636 #define SLAPD_PERL $MFLAG
40637 _ACEOF
40638
40639 fi
40640
40641 if test "$ol_enable_relay" != no ; then
40642         BUILD_SLAPD=yes
40643         BUILD_RELAY=$ol_enable_relay
40644         if test "$ol_enable_relay" = mod ; then
40645                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40646                 MFLAG=SLAPD_MOD_DYNAMIC
40647         else
40648                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40649                 MFLAG=SLAPD_MOD_STATIC
40650         fi
40651
40652 cat >>confdefs.h <<_ACEOF
40653 #define SLAPD_RELAY $MFLAG
40654 _ACEOF
40655
40656 fi
40657
40658 if test "$ol_enable_shell" != no ; then
40659         if test "$ol_link_threads" != no ; then
40660                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40661 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40662         fi
40663         BUILD_SLAPD=yes
40664         BUILD_SHELL=$ol_enable_shell
40665         if test "$ol_enable_shell" = mod ; then
40666                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40667                 MFLAG=SLAPD_MOD_DYNAMIC
40668         else
40669                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40670                 MFLAG=SLAPD_MOD_STATIC
40671         fi
40672
40673 cat >>confdefs.h <<_ACEOF
40674 #define SLAPD_SHELL $MFLAG
40675 _ACEOF
40676
40677 fi
40678
40679 if test "$ol_enable_sock" != no ; then
40680         BUILD_SLAPD=yes
40681         BUILD_SOCK=$ol_enable_sock
40682         if test "$ol_enable_sock" = mod ; then
40683                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
40684                 MFLAG=SLAPD_MOD_DYNAMIC
40685         else
40686                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
40687                 MFLAG=SLAPD_MOD_STATIC
40688         fi
40689
40690 cat >>confdefs.h <<_ACEOF
40691 #define SLAPD_SOCK $MFLAG
40692 _ACEOF
40693
40694 fi
40695
40696 if test "$ol_link_sql" != no ; then
40697         BUILD_SLAPD=yes
40698         BUILD_SQL=$ol_enable_sql
40699         if test "$ol_enable_sql" = mod; then
40700                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40701                 MFLAG=SLAPD_MOD_DYNAMIC
40702         else
40703                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40704                 MFLAG=SLAPD_MOD_STATIC
40705         fi
40706
40707 cat >>confdefs.h <<_ACEOF
40708 #define SLAPD_SQL $MFLAG
40709 _ACEOF
40710
40711 fi
40712
40713 if test "$ol_enable_accesslog" != no ; then
40714         BUILD_ACCESSLOG=$ol_enable_accesslog
40715         if test "$ol_enable_accesslog" = mod ; then
40716                 MFLAG=SLAPD_MOD_DYNAMIC
40717                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40718         else
40719                 MFLAG=SLAPD_MOD_STATIC
40720                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40721         fi
40722
40723 cat >>confdefs.h <<_ACEOF
40724 #define SLAPD_OVER_ACCESSLOG $MFLAG
40725 _ACEOF
40726
40727 fi
40728
40729 if test "$ol_enable_auditlog" != no ; then
40730         BUILD_AUDITLOG=$ol_enable_auditlog
40731         if test "$ol_enable_auditlog" = mod ; then
40732                 MFLAG=SLAPD_MOD_DYNAMIC
40733                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40734         else
40735                 MFLAG=SLAPD_MOD_STATIC
40736                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40737         fi
40738
40739 cat >>confdefs.h <<_ACEOF
40740 #define SLAPD_OVER_AUDITLOG $MFLAG
40741 _ACEOF
40742
40743 fi
40744
40745 if test "$ol_enable_constraint" != no ; then
40746         BUILD_CONSTRAINT=$ol_enable_constraint
40747         if test "$ol_enable_constraint" = mod ; then
40748                 MFLAG=SLAPD_MOD_DYNAMIC
40749                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
40750         else
40751                 MFLAG=SLAPD_MOD_STATIC
40752                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
40753         fi
40754
40755 cat >>confdefs.h <<_ACEOF
40756 #define SLAPD_OVER_CONSTRAINT $MFLAG
40757 _ACEOF
40758
40759 fi
40760
40761 if test "$ol_enable_dds" != no ; then
40762         BUILD_DDS=$ol_enable_dds
40763         if test "$ol_enable_dds" = mod ; then
40764                 MFLAG=SLAPD_MOD_DYNAMIC
40765                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40766         else
40767                 MFLAG=SLAPD_MOD_STATIC
40768                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40769         fi
40770
40771 cat >>confdefs.h <<_ACEOF
40772 #define SLAPD_OVER_DDS $MFLAG
40773 _ACEOF
40774
40775 fi
40776
40777 if test "$ol_enable_dyngroup" != no ; then
40778         BUILD_DYNGROUP=$ol_enable_dyngroup
40779         if test "$ol_enable_dyngroup" = mod ; then
40780                 MFLAG=SLAPD_MOD_DYNAMIC
40781                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40782         else
40783                 MFLAG=SLAPD_MOD_STATIC
40784                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40785         fi
40786
40787 cat >>confdefs.h <<_ACEOF
40788 #define SLAPD_OVER_DYNGROUP $MFLAG
40789 _ACEOF
40790
40791 fi
40792
40793 if test "$ol_enable_dynlist" != no ; then
40794         BUILD_DYNLIST=$ol_enable_dynlist
40795         if test "$ol_enable_dynlist" = mod ; then
40796                 MFLAG=SLAPD_MOD_DYNAMIC
40797                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40798         else
40799                 MFLAG=SLAPD_MOD_STATIC
40800                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40801         fi
40802
40803 cat >>confdefs.h <<_ACEOF
40804 #define SLAPD_OVER_DYNLIST $MFLAG
40805 _ACEOF
40806
40807 fi
40808
40809 if test "$ol_enable_memberof" != no ; then
40810         BUILD_MEMBEROF=$ol_enable_memberof
40811         if test "$ol_enable_memberof" = mod ; then
40812                 MFLAG=SLAPD_MOD_DYNAMIC
40813                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
40814         else
40815                 MFLAG=SLAPD_MOD_STATIC
40816                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
40817         fi
40818
40819 cat >>confdefs.h <<_ACEOF
40820 #define SLAPD_OVER_MEMBEROF $MFLAG
40821 _ACEOF
40822
40823 fi
40824
40825 if test "$ol_enable_ppolicy" != no ; then
40826         BUILD_PPOLICY=$ol_enable_ppolicy
40827         if test "$ol_enable_ppolicy" = mod ; then
40828                 MFLAG=SLAPD_MOD_DYNAMIC
40829                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40830         else
40831                 MFLAG=SLAPD_MOD_STATIC
40832                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40833         fi
40834
40835 cat >>confdefs.h <<_ACEOF
40836 #define SLAPD_OVER_PPOLICY $MFLAG
40837 _ACEOF
40838
40839 fi
40840
40841 if test "$ol_enable_proxycache" != no ; then
40842         BUILD_PROXYCACHE=$ol_enable_proxycache
40843         if test "$ol_enable_proxycache" = mod ; then
40844                 MFLAG=SLAPD_MOD_DYNAMIC
40845                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40846         else
40847                 MFLAG=SLAPD_MOD_STATIC
40848                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40849         fi
40850
40851 cat >>confdefs.h <<_ACEOF
40852 #define SLAPD_OVER_PROXYCACHE $MFLAG
40853 _ACEOF
40854
40855 fi
40856
40857 if test "$ol_enable_refint" != no ; then
40858         BUILD_REFINT=$ol_enable_refint
40859         if test "$ol_enable_refint" = mod ; then
40860                 MFLAG=SLAPD_MOD_DYNAMIC
40861                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40862         else
40863                 MFLAG=SLAPD_MOD_STATIC
40864                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40865         fi
40866
40867 cat >>confdefs.h <<_ACEOF
40868 #define SLAPD_OVER_REFINT $MFLAG
40869 _ACEOF
40870
40871 fi
40872
40873 if test "$ol_enable_retcode" != no ; then
40874         BUILD_RETCODE=$ol_enable_retcode
40875         if test "$ol_enable_retcode" = mod ; then
40876                 MFLAG=SLAPD_MOD_DYNAMIC
40877                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40878         else
40879                 MFLAG=SLAPD_MOD_STATIC
40880                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40881         fi
40882
40883 cat >>confdefs.h <<_ACEOF
40884 #define SLAPD_OVER_RETCODE $MFLAG
40885 _ACEOF
40886
40887 fi
40888
40889 if test "$ol_enable_rwm" != no ; then
40890         BUILD_REWRITE=yes
40891         BUILD_RWM=$ol_enable_rwm
40892         if test "$ol_enable_rwm" = mod ; then
40893                 MFLAG=SLAPD_MOD_DYNAMIC
40894                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40895         else
40896                 MFLAG=SLAPD_MOD_STATIC
40897                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40898         fi
40899
40900 cat >>confdefs.h <<_ACEOF
40901 #define SLAPD_OVER_RWM $MFLAG
40902 _ACEOF
40903
40904 fi
40905
40906 if test "$ol_enable_seqmod" != no ; then
40907         BUILD_SEQMOD=$ol_enable_seqmod
40908         if test "$ol_enable_seqmod" = mod ; then
40909                 MFLAG=SLAPD_MOD_DYNAMIC
40910                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40911         else
40912                 MFLAG=SLAPD_MOD_STATIC
40913                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40914         fi
40915
40916 cat >>confdefs.h <<_ACEOF
40917 #define SLAPD_OVER_SEQMOD $MFLAG
40918 _ACEOF
40919
40920 fi
40921
40922 if test "$ol_enable_syncprov" != no ; then
40923         BUILD_SYNCPROV=$ol_enable_syncprov
40924         if test "$ol_enable_syncprov" = mod ; then
40925                 MFLAG=SLAPD_MOD_DYNAMIC
40926                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40927         else
40928                 MFLAG=SLAPD_MOD_STATIC
40929                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40930         fi
40931
40932 cat >>confdefs.h <<_ACEOF
40933 #define SLAPD_OVER_SYNCPROV $MFLAG
40934 _ACEOF
40935
40936 fi
40937
40938 if test "$ol_enable_translucent" != no ; then
40939         BUILD_TRANSLUCENT=$ol_enable_translucent
40940         if test "$ol_enable_translucent" = mod ; then
40941                 MFLAG=SLAPD_MOD_DYNAMIC
40942                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40943         else
40944                 MFLAG=SLAPD_MOD_STATIC
40945                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40946         fi
40947
40948 cat >>confdefs.h <<_ACEOF
40949 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40950 _ACEOF
40951
40952 fi
40953
40954 if test "$ol_enable_unique" != no ; then
40955         BUILD_UNIQUE=$ol_enable_unique
40956         if test "$ol_enable_unique" = mod ; then
40957                 MFLAG=SLAPD_MOD_DYNAMIC
40958                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40959         else
40960                 MFLAG=SLAPD_MOD_STATIC
40961                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40962         fi
40963
40964 cat >>confdefs.h <<_ACEOF
40965 #define SLAPD_OVER_UNIQUE $MFLAG
40966 _ACEOF
40967
40968 fi
40969
40970 if test "$ol_enable_valsort" != no ; then
40971         BUILD_VALSORT=$ol_enable_valsort
40972         if test "$ol_enable_valsort" = mod ; then
40973                 MFLAG=SLAPD_MOD_DYNAMIC
40974                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40975         else
40976                 MFLAG=SLAPD_MOD_STATIC
40977                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40978         fi
40979
40980 cat >>confdefs.h <<_ACEOF
40981 #define SLAPD_OVER_VALSORT $MFLAG
40982 _ACEOF
40983
40984 fi
40985
40986 if test "$ol_enable_rewrite" != no ; then
40987
40988 cat >>confdefs.h <<\_ACEOF
40989 #define ENABLE_REWRITE 1
40990 _ACEOF
40991
40992         BUILD_REWRITE=yes
40993 fi
40994
40995 if test "$ol_enable_slapi" != no ; then
40996
40997 cat >>confdefs.h <<\_ACEOF
40998 #define ENABLE_SLAPI 1
40999 _ACEOF
41000
41001         BUILD_SLAPI=yes
41002         SLAPD_SLAPI_DEPEND=libslapi.a
41003 fi
41004
41005
41006
41007 if test "$ac_cv_mingw32" = yes ; then
41008         PLAT=NT
41009         SLAPD_MODULES_LDFLAGS=
41010 else
41011         PLAT=UNIX
41012 fi
41013
41014
41015
41016
41017
41018
41019
41020
41021
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031
41032
41033
41034
41035
41036
41037
41038
41039
41040
41041
41042
41043
41044
41045
41046
41047
41048
41049
41050
41051
41052
41053
41054
41055
41056
41057
41058
41059
41060
41061
41062
41063
41064
41065
41066
41067
41068
41069
41070
41071
41072
41073
41074
41075
41076
41077
41078
41079
41080
41081
41082
41083
41084
41085
41086
41087
41088
41089
41090
41091
41092
41093
41094
41095
41096
41097
41098
41099
41100
41101 # Check whether --with-xxinstall or --without-xxinstall was given.
41102 if test "${with_xxinstall+set}" = set; then
41103   withval="$with_xxinstall"
41104
41105 fi;
41106
41107
41108                                                                                                                                                                                                                                                                                                                                                                                                                 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-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/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-sock/Makefile:build/top.mk:servers/slapd/back-sock/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"
41109
41110
41111           ac_config_commands="$ac_config_commands default"
41112
41113
41114
41115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41116 # Let make expand exec_prefix.
41117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41118
41119 # VPATH may cause trouble with some makes, so we remove $(srcdir),
41120 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41121 # trailing colons and then remove the whole line if VPATH becomes empty
41122 # (actually we leave an empty line to preserve line numbers).
41123 if test "x$srcdir" = x.; then
41124   ac_vpsub='/^[  ]*VPATH[        ]*=/{
41125 s/:*\$(srcdir):*/:/;
41126 s/:*\${srcdir}:*/:/;
41127 s/:*@srcdir@:*/:/;
41128 s/^\([^=]*=[     ]*\):*/\1/;
41129 s/:*$//;
41130 s/^[^=]*=[       ]*$//;
41131 }'
41132 fi
41133
41134 DEFS=-DHAVE_CONFIG_H
41135
41136 ac_libobjs=
41137 ac_ltlibobjs=
41138 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41139   # 1. Remove the extension, and $U if already installed.
41140   ac_i=`echo "$ac_i" |
41141          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
41142   # 2. Add them.
41143   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41144   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41145 done
41146 LIBOBJS=$ac_libobjs
41147
41148 LTLIBOBJS=$ac_ltlibobjs
41149
41150
41151 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41152   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
41153 Usually this means the macro was only invoked conditionally." >&5
41154 echo "$as_me: error: conditional \"AMDEP\" was never defined.
41155 Usually this means the macro was only invoked conditionally." >&2;}
41156    { (exit 1); exit 1; }; }
41157 fi
41158 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41159   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
41160 Usually this means the macro was only invoked conditionally." >&5
41161 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
41162 Usually this means the macro was only invoked conditionally." >&2;}
41163    { (exit 1); exit 1; }; }
41164 fi
41165 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41166   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
41167 Usually this means the macro was only invoked conditionally." >&5
41168 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
41169 Usually this means the macro was only invoked conditionally." >&2;}
41170    { (exit 1); exit 1; }; }
41171 fi
41172
41173 : ${CONFIG_STATUS=./config.status}
41174 ac_clean_files_save=$ac_clean_files
41175 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41176 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41177 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41178 cat >$CONFIG_STATUS <<_ACEOF
41179 #! $SHELL
41180 # Generated by $as_me.
41181 # Run this file to recreate the current configuration.
41182 # Compiler output produced by configure, useful for debugging
41183 # configure, is in config.log if it exists.
41184
41185 debug=false
41186 ac_cs_recheck=false
41187 ac_cs_silent=false
41188 SHELL=\${CONFIG_SHELL-$SHELL}
41189 _ACEOF
41190
41191 cat >>$CONFIG_STATUS <<\_ACEOF
41192 ## --------------------- ##
41193 ## M4sh Initialization.  ##
41194 ## --------------------- ##
41195
41196 # Be Bourne compatible
41197 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41198   emulate sh
41199   NULLCMD=:
41200   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41201   # is contrary to our usage.  Disable this feature.
41202   alias -g '${1+"$@"}'='"$@"'
41203 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41204   set -o posix
41205 fi
41206 DUALCASE=1; export DUALCASE # for MKS sh
41207
41208 # Support unset when possible.
41209 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41210   as_unset=unset
41211 else
41212   as_unset=false
41213 fi
41214
41215
41216 # Work around bugs in pre-3.0 UWIN ksh.
41217 $as_unset ENV MAIL MAILPATH
41218 PS1='$ '
41219 PS2='> '
41220 PS4='+ '
41221
41222 # NLS nuisances.
41223 for as_var in \
41224   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41225   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41226   LC_TELEPHONE LC_TIME
41227 do
41228   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41229     eval $as_var=C; export $as_var
41230   else
41231     $as_unset $as_var
41232   fi
41233 done
41234
41235 # Required to use basename.
41236 if expr a : '\(a\)' >/dev/null 2>&1; then
41237   as_expr=expr
41238 else
41239   as_expr=false
41240 fi
41241
41242 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41243   as_basename=basename
41244 else
41245   as_basename=false
41246 fi
41247
41248
41249 # Name of the executable.
41250 as_me=`$as_basename "$0" ||
41251 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41252          X"$0" : 'X\(//\)$' \| \
41253          X"$0" : 'X\(/\)$' \| \
41254          .     : '\(.\)' 2>/dev/null ||
41255 echo X/"$0" |
41256     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41257           /^X\/\(\/\/\)$/{ s//\1/; q; }
41258           /^X\/\(\/\).*/{ s//\1/; q; }
41259           s/.*/./; q'`
41260
41261
41262 # PATH needs CR, and LINENO needs CR and PATH.
41263 # Avoid depending upon Character Ranges.
41264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41267 as_cr_digits='0123456789'
41268 as_cr_alnum=$as_cr_Letters$as_cr_digits
41269
41270 # The user is always right.
41271 if test "${PATH_SEPARATOR+set}" != set; then
41272   echo "#! /bin/sh" >conf$$.sh
41273   echo  "exit 0"   >>conf$$.sh
41274   chmod +x conf$$.sh
41275   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41276     PATH_SEPARATOR=';'
41277   else
41278     PATH_SEPARATOR=:
41279   fi
41280   rm -f conf$$.sh
41281 fi
41282
41283
41284   as_lineno_1=$LINENO
41285   as_lineno_2=$LINENO
41286   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41287   test "x$as_lineno_1" != "x$as_lineno_2" &&
41288   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
41289   # Find who we are.  Look in the path if we contain no path at all
41290   # relative or not.
41291   case $0 in
41292     *[\\/]* ) as_myself=$0 ;;
41293     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41294 for as_dir in $PATH
41295 do
41296   IFS=$as_save_IFS
41297   test -z "$as_dir" && as_dir=.
41298   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41299 done
41300
41301        ;;
41302   esac
41303   # We did not find ourselves, most probably we were run as `sh COMMAND'
41304   # in which case we are not to be found in the path.
41305   if test "x$as_myself" = x; then
41306     as_myself=$0
41307   fi
41308   if test ! -f "$as_myself"; then
41309     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41310 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41311    { (exit 1); exit 1; }; }
41312   fi
41313   case $CONFIG_SHELL in
41314   '')
41315     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41316 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41317 do
41318   IFS=$as_save_IFS
41319   test -z "$as_dir" && as_dir=.
41320   for as_base in sh bash ksh sh5; do
41321          case $as_dir in
41322          /*)
41323            if ("$as_dir/$as_base" -c '
41324   as_lineno_1=$LINENO
41325   as_lineno_2=$LINENO
41326   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41327   test "x$as_lineno_1" != "x$as_lineno_2" &&
41328   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
41329              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41330              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41331              CONFIG_SHELL=$as_dir/$as_base
41332              export CONFIG_SHELL
41333              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41334            fi;;
41335          esac
41336        done
41337 done
41338 ;;
41339   esac
41340
41341   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41342   # uniformly replaced by the line number.  The first 'sed' inserts a
41343   # line-number line before each line; the second 'sed' does the real
41344   # work.  The second script uses 'N' to pair each line-number line
41345   # with the numbered line, and appends trailing '-' during
41346   # substitution so that $LINENO is not a special case at line end.
41347   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41348   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
41349   sed '=' <$as_myself |
41350     sed '
41351       N
41352       s,$,-,
41353       : loop
41354       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41355       t loop
41356       s,-$,,
41357       s,^['$as_cr_digits']*\n,,
41358     ' >$as_me.lineno &&
41359   chmod +x $as_me.lineno ||
41360     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41361 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41362    { (exit 1); exit 1; }; }
41363
41364   # Don't try to exec as it changes $[0], causing all sort of problems
41365   # (the dirname of $[0] is not the place where we might find the
41366   # original and so on.  Autoconf is especially sensible to this).
41367   . ./$as_me.lineno
41368   # Exit status is that of the last command.
41369   exit
41370 }
41371
41372
41373 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41374   *c*,-n*) ECHO_N= ECHO_C='
41375 ' ECHO_T='      ' ;;
41376   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41377   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
41378 esac
41379
41380 if expr a : '\(a\)' >/dev/null 2>&1; then
41381   as_expr=expr
41382 else
41383   as_expr=false
41384 fi
41385
41386 rm -f conf$$ conf$$.exe conf$$.file
41387 echo >conf$$.file
41388 if ln -s conf$$.file conf$$ 2>/dev/null; then
41389   # We could just check for DJGPP; but this test a) works b) is more generic
41390   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41391   if test -f conf$$.exe; then
41392     # Don't use ln at all; we don't have any links
41393     as_ln_s='cp -p'
41394   else
41395     as_ln_s='ln -s'
41396   fi
41397 elif ln conf$$.file conf$$ 2>/dev/null; then
41398   as_ln_s=ln
41399 else
41400   as_ln_s='cp -p'
41401 fi
41402 rm -f conf$$ conf$$.exe conf$$.file
41403
41404 if mkdir -p . 2>/dev/null; then
41405   as_mkdir_p=:
41406 else
41407   test -d ./-p && rmdir ./-p
41408   as_mkdir_p=false
41409 fi
41410
41411 as_executable_p="test -f"
41412
41413 # Sed expression to map a string onto a valid CPP name.
41414 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41415
41416 # Sed expression to map a string onto a valid variable name.
41417 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41418
41419
41420 # IFS
41421 # We need space, tab and new line, in precisely that order.
41422 as_nl='
41423 '
41424 IFS="   $as_nl"
41425
41426 # CDPATH.
41427 $as_unset CDPATH
41428
41429 exec 6>&1
41430
41431 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41432 # report actual input values of CONFIG_FILES etc. instead of their
41433 # values after options handling.  Logging --version etc. is OK.
41434 exec 5>>config.log
41435 {
41436   echo
41437   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41438 ## Running $as_me. ##
41439 _ASBOX
41440 } >&5
41441 cat >&5 <<_CSEOF
41442
41443 This file was extended by $as_me, which was
41444 generated by GNU Autoconf 2.59.  Invocation command line was
41445
41446   CONFIG_FILES    = $CONFIG_FILES
41447   CONFIG_HEADERS  = $CONFIG_HEADERS
41448   CONFIG_LINKS    = $CONFIG_LINKS
41449   CONFIG_COMMANDS = $CONFIG_COMMANDS
41450   $ $0 $@
41451
41452 _CSEOF
41453 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41454 echo >&5
41455 _ACEOF
41456
41457 # Files that config.status was made for.
41458 if test -n "$ac_config_files"; then
41459   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41460 fi
41461
41462 if test -n "$ac_config_headers"; then
41463   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41464 fi
41465
41466 if test -n "$ac_config_links"; then
41467   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41468 fi
41469
41470 if test -n "$ac_config_commands"; then
41471   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41472 fi
41473
41474 cat >>$CONFIG_STATUS <<\_ACEOF
41475
41476 ac_cs_usage="\
41477 \`$as_me' instantiates files from templates according to the
41478 current configuration.
41479
41480 Usage: $0 [OPTIONS] [FILE]...
41481
41482   -h, --help       print this help, then exit
41483   -V, --version    print version number, then exit
41484   -q, --quiet      do not print progress messages
41485   -d, --debug      don't remove temporary files
41486       --recheck    update $as_me by reconfiguring in the same conditions
41487   --file=FILE[:TEMPLATE]
41488                    instantiate the configuration file FILE
41489   --header=FILE[:TEMPLATE]
41490                    instantiate the configuration header FILE
41491
41492 Configuration files:
41493 $config_files
41494
41495 Configuration headers:
41496 $config_headers
41497
41498 Configuration commands:
41499 $config_commands
41500
41501 Report bugs to <bug-autoconf@gnu.org>."
41502 _ACEOF
41503
41504 cat >>$CONFIG_STATUS <<_ACEOF
41505 ac_cs_version="\\
41506 config.status
41507 configured by $0, generated by GNU Autoconf 2.59,
41508   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41509
41510 Copyright (C) 2003 Free Software Foundation, Inc.
41511 This config.status script is free software; the Free Software Foundation
41512 gives unlimited permission to copy, distribute and modify it."
41513 srcdir=$srcdir
41514 INSTALL="$INSTALL"
41515 _ACEOF
41516
41517 cat >>$CONFIG_STATUS <<\_ACEOF
41518 # If no file are specified by the user, then we need to provide default
41519 # value.  By we need to know if files were specified by the user.
41520 ac_need_defaults=:
41521 while test $# != 0
41522 do
41523   case $1 in
41524   --*=*)
41525     ac_option=`expr "x$1" : 'x\([^=]*\)='`
41526     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41527     ac_shift=:
41528     ;;
41529   -*)
41530     ac_option=$1
41531     ac_optarg=$2
41532     ac_shift=shift
41533     ;;
41534   *) # This is not an option, so the user has probably given explicit
41535      # arguments.
41536      ac_option=$1
41537      ac_need_defaults=false;;
41538   esac
41539
41540   case $ac_option in
41541   # Handling of the options.
41542 _ACEOF
41543 cat >>$CONFIG_STATUS <<\_ACEOF
41544   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41545     ac_cs_recheck=: ;;
41546   --version | --vers* | -V )
41547     echo "$ac_cs_version"; exit 0 ;;
41548   --he | --h)
41549     # Conflict between --help and --header
41550     { { echo "$as_me:$LINENO: error: ambiguous option: $1
41551 Try \`$0 --help' for more information." >&5
41552 echo "$as_me: error: ambiguous option: $1
41553 Try \`$0 --help' for more information." >&2;}
41554    { (exit 1); exit 1; }; };;
41555   --help | --hel | -h )
41556     echo "$ac_cs_usage"; exit 0 ;;
41557   --debug | --d* | -d )
41558     debug=: ;;
41559   --file | --fil | --fi | --f )
41560     $ac_shift
41561     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41562     ac_need_defaults=false;;
41563   --header | --heade | --head | --hea )
41564     $ac_shift
41565     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41566     ac_need_defaults=false;;
41567   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41568   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41569     ac_cs_silent=: ;;
41570
41571   # This is an error.
41572   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41573 Try \`$0 --help' for more information." >&5
41574 echo "$as_me: error: unrecognized option: $1
41575 Try \`$0 --help' for more information." >&2;}
41576    { (exit 1); exit 1; }; } ;;
41577
41578   *) ac_config_targets="$ac_config_targets $1" ;;
41579
41580   esac
41581   shift
41582 done
41583
41584 ac_configure_extra_args=
41585
41586 if $ac_cs_silent; then
41587   exec 6>/dev/null
41588   ac_configure_extra_args="$ac_configure_extra_args --silent"
41589 fi
41590
41591 _ACEOF
41592 cat >>$CONFIG_STATUS <<_ACEOF
41593 if \$ac_cs_recheck; then
41594   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41595   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41596 fi
41597
41598 _ACEOF
41599
41600 cat >>$CONFIG_STATUS <<_ACEOF
41601 #
41602 # INIT-COMMANDS section.
41603 #
41604
41605 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41606
41607 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41608 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41609
41610
41611 _ACEOF
41612
41613
41614
41615 cat >>$CONFIG_STATUS <<\_ACEOF
41616 for ac_config_target in $ac_config_targets
41617 do
41618   case "$ac_config_target" in
41619   # Handling of arguments.
41620   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41621   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41622   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41623   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41624   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41625   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41626   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41627   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41628   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41629   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41630   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41631   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41632   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41633   "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" ;;
41634   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41635   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41636   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41637   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41638   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41639   "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" ;;
41640   "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" ;;
41641   "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" ;;
41642   "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" ;;
41643   "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" ;;
41644   "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" ;;
41645   "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" ;;
41646   "servers/slapd/back-ndb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk" ;;
41647   "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" ;;
41648   "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" ;;
41649   "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" ;;
41650   "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" ;;
41651   "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" ;;
41652   "servers/slapd/back-sock/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk" ;;
41653   "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" ;;
41654   "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" ;;
41655   "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" ;;
41656   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41657   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41658   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41659   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41660   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41661   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41662   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41663   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41664   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41665   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41666 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41667    { (exit 1); exit 1; }; };;
41668   esac
41669 done
41670
41671 # If the user did not use the arguments to specify the items to instantiate,
41672 # then the envvar interface is used.  Set only those that are not.
41673 # We use the long form for the default assignment because of an extremely
41674 # bizarre bug on SunOS 4.1.3.
41675 if $ac_need_defaults; then
41676   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41677   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41678   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41679 fi
41680
41681 # Have a temporary directory for convenience.  Make it in the build tree
41682 # simply because there is no reason to put it here, and in addition,
41683 # creating and moving files from /tmp can sometimes cause problems.
41684 # Create a temporary directory, and hook for its removal unless debugging.
41685 $debug ||
41686 {
41687   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41688   trap '{ (exit 1); exit 1; }' 1 2 13 15
41689 }
41690
41691 # Create a (secure) tmp directory for tmp files.
41692
41693 {
41694   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41695   test -n "$tmp" && test -d "$tmp"
41696 }  ||
41697 {
41698   tmp=./confstat$$-$RANDOM
41699   (umask 077 && mkdir $tmp)
41700 } ||
41701 {
41702    echo "$me: cannot create a temporary directory in ." >&2
41703    { (exit 1); exit 1; }
41704 }
41705
41706 _ACEOF
41707
41708 cat >>$CONFIG_STATUS <<_ACEOF
41709
41710 #
41711 # CONFIG_FILES section.
41712 #
41713
41714 # No need to generate the scripts if there are no CONFIG_FILES.
41715 # This happens for instance when ./config.status config.h
41716 if test -n "\$CONFIG_FILES"; then
41717   # Protect against being on the right side of a sed subst in config.status.
41718   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41719    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41720 s,@SHELL@,$SHELL,;t t
41721 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41722 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41723 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41724 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41725 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41726 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41727 s,@exec_prefix@,$exec_prefix,;t t
41728 s,@prefix@,$prefix,;t t
41729 s,@program_transform_name@,$program_transform_name,;t t
41730 s,@bindir@,$bindir,;t t
41731 s,@sbindir@,$sbindir,;t t
41732 s,@libexecdir@,$libexecdir,;t t
41733 s,@datadir@,$datadir,;t t
41734 s,@sysconfdir@,$sysconfdir,;t t
41735 s,@sharedstatedir@,$sharedstatedir,;t t
41736 s,@localstatedir@,$localstatedir,;t t
41737 s,@libdir@,$libdir,;t t
41738 s,@includedir@,$includedir,;t t
41739 s,@oldincludedir@,$oldincludedir,;t t
41740 s,@infodir@,$infodir,;t t
41741 s,@mandir@,$mandir,;t t
41742 s,@build_alias@,$build_alias,;t t
41743 s,@host_alias@,$host_alias,;t t
41744 s,@target_alias@,$target_alias,;t t
41745 s,@DEFS@,$DEFS,;t t
41746 s,@ECHO_C@,$ECHO_C,;t t
41747 s,@ECHO_N@,$ECHO_N,;t t
41748 s,@ECHO_T@,$ECHO_T,;t t
41749 s,@LIBS@,$LIBS,;t t
41750 s,@build@,$build,;t t
41751 s,@build_cpu@,$build_cpu,;t t
41752 s,@build_vendor@,$build_vendor,;t t
41753 s,@build_os@,$build_os,;t t
41754 s,@host@,$host,;t t
41755 s,@host_cpu@,$host_cpu,;t t
41756 s,@host_vendor@,$host_vendor,;t t
41757 s,@host_os@,$host_os,;t t
41758 s,@target@,$target,;t t
41759 s,@target_cpu@,$target_cpu,;t t
41760 s,@target_vendor@,$target_vendor,;t t
41761 s,@target_os@,$target_os,;t t
41762 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41763 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41764 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41765 s,@CYGPATH_W@,$CYGPATH_W,;t t
41766 s,@PACKAGE@,$PACKAGE,;t t
41767 s,@VERSION@,$VERSION,;t t
41768 s,@ACLOCAL@,$ACLOCAL,;t t
41769 s,@AUTOCONF@,$AUTOCONF,;t t
41770 s,@AUTOMAKE@,$AUTOMAKE,;t t
41771 s,@AUTOHEADER@,$AUTOHEADER,;t t
41772 s,@MAKEINFO@,$MAKEINFO,;t t
41773 s,@install_sh@,$install_sh,;t t
41774 s,@STRIP@,$STRIP,;t t
41775 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41776 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41777 s,@mkdir_p@,$mkdir_p,;t t
41778 s,@AWK@,$AWK,;t t
41779 s,@SET_MAKE@,$SET_MAKE,;t t
41780 s,@am__leading_dot@,$am__leading_dot,;t t
41781 s,@AMTAR@,$AMTAR,;t t
41782 s,@am__tar@,$am__tar,;t t
41783 s,@am__untar@,$am__untar,;t t
41784 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41785 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41786 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41787 s,@top_builddir@,$top_builddir,;t t
41788 s,@ldap_subdir@,$ldap_subdir,;t t
41789 s,@CC@,$CC,;t t
41790 s,@AR@,$AR,;t t
41791 s,@CFLAGS@,$CFLAGS,;t t
41792 s,@LDFLAGS@,$LDFLAGS,;t t
41793 s,@CPPFLAGS@,$CPPFLAGS,;t t
41794 s,@ac_ct_CC@,$ac_ct_CC,;t t
41795 s,@EXEEXT@,$EXEEXT,;t t
41796 s,@OBJEXT@,$OBJEXT,;t t
41797 s,@DEPDIR@,$DEPDIR,;t t
41798 s,@am__include@,$am__include,;t t
41799 s,@am__quote@,$am__quote,;t t
41800 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41801 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41802 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41803 s,@CCDEPMODE@,$CCDEPMODE,;t t
41804 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41805 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41806 s,@EGREP@,$EGREP,;t t
41807 s,@LN_S@,$LN_S,;t t
41808 s,@ECHO@,$ECHO,;t t
41809 s,@ac_ct_AR@,$ac_ct_AR,;t t
41810 s,@RANLIB@,$RANLIB,;t t
41811 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41812 s,@DLLTOOL@,$DLLTOOL,;t t
41813 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41814 s,@AS@,$AS,;t t
41815 s,@ac_ct_AS@,$ac_ct_AS,;t t
41816 s,@OBJDUMP@,$OBJDUMP,;t t
41817 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41818 s,@CPP@,$CPP,;t t
41819 s,@LIBTOOL@,$LIBTOOL,;t t
41820 s,@PERLBIN@,$PERLBIN,;t t
41821 s,@OL_MKDEP@,$OL_MKDEP,;t t
41822 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41823 s,@LTSTATIC@,$LTSTATIC,;t t
41824 s,@MYSQL@,$MYSQL,;t t
41825 s,@LIBOBJS@,$LIBOBJS,;t t
41826 s,@LIBSRCS@,$LIBSRCS,;t t
41827 s,@PLAT@,$PLAT,;t t
41828 s,@WITH_SASL@,$WITH_SASL,;t t
41829 s,@WITH_TLS@,$WITH_TLS,;t t
41830 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41831 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41832 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41833 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41834 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41835 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41836 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41837 s,@BUILD_BDB@,$BUILD_BDB,;t t
41838 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41839 s,@BUILD_HDB@,$BUILD_HDB,;t t
41840 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41841 s,@BUILD_META@,$BUILD_META,;t t
41842 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41843 s,@BUILD_NDB@,$BUILD_NDB,;t t
41844 s,@BUILD_NULL@,$BUILD_NULL,;t t
41845 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41846 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41847 s,@BUILD_PERL@,$BUILD_PERL,;t t
41848 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41849 s,@BUILD_SOCK@,$BUILD_SOCK,;t t
41850 s,@BUILD_SQL@,$BUILD_SQL,;t t
41851 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41852 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41853 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41854 s,@BUILD_DDS@,$BUILD_DDS,;t t
41855 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41856 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41857 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41858 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41859 s,@BUILD_MEMBEROF@,$BUILD_MEMBEROF,;t t
41860 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41861 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41862 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41863 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41864 s,@BUILD_RWM@,$BUILD_RWM,;t t
41865 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41866 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41867 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41868 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41869 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41870 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41871 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41872 s,@BDB_LIBS@,$BDB_LIBS,;t t
41873 s,@SLAPD_NDB_LIBS@,$SLAPD_NDB_LIBS,;t t
41874 s,@SLAPD_NDB_INCS@,$SLAPD_NDB_INCS,;t t
41875 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41876 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41877 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41878 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41879 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41880 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41881 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41882 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41883 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41884 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41885 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41886 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41887 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41888 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41889 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41890 s,@SASL_LIBS@,$SASL_LIBS,;t t
41891 s,@TLS_LIBS@,$TLS_LIBS,;t t
41892 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41893 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41894 s,@LIBSLAPI@,$LIBSLAPI,;t t
41895 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41896 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41897 s,@ICU_LIBS@,$ICU_LIBS,;t t
41898 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41899 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41900 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41901 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41902 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41903 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41904 CEOF
41905
41906 _ACEOF
41907
41908   cat >>$CONFIG_STATUS <<\_ACEOF
41909   # Split the substitutions into bite-sized pieces for seds with
41910   # small command number limits, like on Digital OSF/1 and HP-UX.
41911   ac_max_sed_lines=48
41912   ac_sed_frag=1 # Number of current file.
41913   ac_beg=1 # First line for current file.
41914   ac_end=$ac_max_sed_lines # Line after last line for current file.
41915   ac_more_lines=:
41916   ac_sed_cmds=
41917   while $ac_more_lines; do
41918     if test $ac_beg -gt 1; then
41919       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41920     else
41921       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41922     fi
41923     if test ! -s $tmp/subs.frag; then
41924       ac_more_lines=false
41925     else
41926       # The purpose of the label and of the branching condition is to
41927       # speed up the sed processing (if there are no `@' at all, there
41928       # is no need to browse any of the substitutions).
41929       # These are the two extra sed commands mentioned above.
41930       (echo ':t
41931   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41932       if test -z "$ac_sed_cmds"; then
41933         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41934       else
41935         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41936       fi
41937       ac_sed_frag=`expr $ac_sed_frag + 1`
41938       ac_beg=$ac_end
41939       ac_end=`expr $ac_end + $ac_max_sed_lines`
41940     fi
41941   done
41942   if test -z "$ac_sed_cmds"; then
41943     ac_sed_cmds=cat
41944   fi
41945 fi # test -n "$CONFIG_FILES"
41946
41947 _ACEOF
41948 cat >>$CONFIG_STATUS <<\_ACEOF
41949 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41950   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41951   case $ac_file in
41952   - | *:- | *:-:* ) # input from stdin
41953         cat >$tmp/stdin
41954         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41955         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41956   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41957         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41958   * )   ac_file_in=$ac_file.in ;;
41959   esac
41960
41961   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41962   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41963 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41964          X"$ac_file" : 'X\(//\)[^/]' \| \
41965          X"$ac_file" : 'X\(//\)$' \| \
41966          X"$ac_file" : 'X\(/\)' \| \
41967          .     : '\(.\)' 2>/dev/null ||
41968 echo X"$ac_file" |
41969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41970           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41971           /^X\(\/\/\)$/{ s//\1/; q; }
41972           /^X\(\/\).*/{ s//\1/; q; }
41973           s/.*/./; q'`
41974   { if $as_mkdir_p; then
41975     mkdir -p "$ac_dir"
41976   else
41977     as_dir="$ac_dir"
41978     as_dirs=
41979     while test ! -d "$as_dir"; do
41980       as_dirs="$as_dir $as_dirs"
41981       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41983          X"$as_dir" : 'X\(//\)[^/]' \| \
41984          X"$as_dir" : 'X\(//\)$' \| \
41985          X"$as_dir" : 'X\(/\)' \| \
41986          .     : '\(.\)' 2>/dev/null ||
41987 echo X"$as_dir" |
41988     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41989           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41990           /^X\(\/\/\)$/{ s//\1/; q; }
41991           /^X\(\/\).*/{ s//\1/; q; }
41992           s/.*/./; q'`
41993     done
41994     test ! -n "$as_dirs" || mkdir $as_dirs
41995   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41996 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41997    { (exit 1); exit 1; }; }; }
41998
41999   ac_builddir=.
42000
42001 if test "$ac_dir" != .; then
42002   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42003   # A "../" for each directory in $ac_dir_suffix.
42004   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42005 else
42006   ac_dir_suffix= ac_top_builddir=
42007 fi
42008
42009 case $srcdir in
42010   .)  # No --srcdir option.  We are building in place.
42011     ac_srcdir=.
42012     if test -z "$ac_top_builddir"; then
42013        ac_top_srcdir=.
42014     else
42015        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42016     fi ;;
42017   [\\/]* | ?:[\\/]* )  # Absolute path.
42018     ac_srcdir=$srcdir$ac_dir_suffix;
42019     ac_top_srcdir=$srcdir ;;
42020   *) # Relative path.
42021     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42022     ac_top_srcdir=$ac_top_builddir$srcdir ;;
42023 esac
42024
42025 # Do not use `cd foo && pwd` to compute absolute paths, because
42026 # the directories may not exist.
42027 case `pwd` in
42028 .) ac_abs_builddir="$ac_dir";;
42029 *)
42030   case "$ac_dir" in
42031   .) ac_abs_builddir=`pwd`;;
42032   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42033   *) ac_abs_builddir=`pwd`/"$ac_dir";;
42034   esac;;
42035 esac
42036 case $ac_abs_builddir in
42037 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42038 *)
42039   case ${ac_top_builddir}. in
42040   .) ac_abs_top_builddir=$ac_abs_builddir;;
42041   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42042   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42043   esac;;
42044 esac
42045 case $ac_abs_builddir in
42046 .) ac_abs_srcdir=$ac_srcdir;;
42047 *)
42048   case $ac_srcdir in
42049   .) ac_abs_srcdir=$ac_abs_builddir;;
42050   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42051   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42052   esac;;
42053 esac
42054 case $ac_abs_builddir in
42055 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42056 *)
42057   case $ac_top_srcdir in
42058   .) ac_abs_top_srcdir=$ac_abs_builddir;;
42059   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42060   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42061   esac;;
42062 esac
42063
42064
42065   case $INSTALL in
42066   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42067   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42068   esac
42069
42070   if test x"$ac_file" != x-; then
42071     { echo "$as_me:$LINENO: creating $ac_file" >&5
42072 echo "$as_me: creating $ac_file" >&6;}
42073     rm -f "$ac_file"
42074   fi
42075   # Let's still pretend it is `configure' which instantiates (i.e., don't
42076   # use $as_me), people would be surprised to read:
42077   #    /* config.h.  Generated by config.status.  */
42078   if test x"$ac_file" = x-; then
42079     configure_input=
42080   else
42081     configure_input="$ac_file.  "
42082   fi
42083   configure_input=$configure_input"Generated from `echo $ac_file_in |
42084                                      sed 's,.*/,,'` by configure."
42085
42086   # First look for the input files in the build tree, otherwise in the
42087   # src tree.
42088   ac_file_inputs=`IFS=:
42089     for f in $ac_file_in; do
42090       case $f in
42091       -) echo $tmp/stdin ;;
42092       [\\/$]*)
42093          # Absolute (can't be DOS-style, as IFS=:)
42094          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42095 echo "$as_me: error: cannot find input file: $f" >&2;}
42096    { (exit 1); exit 1; }; }
42097          echo "$f";;
42098       *) # Relative
42099          if test -f "$f"; then
42100            # Build tree
42101            echo "$f"
42102          elif test -f "$srcdir/$f"; then
42103            # Source tree
42104            echo "$srcdir/$f"
42105          else
42106            # /dev/null tree
42107            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42108 echo "$as_me: error: cannot find input file: $f" >&2;}
42109    { (exit 1); exit 1; }; }
42110          fi;;
42111       esac
42112     done` || { (exit 1); exit 1; }
42113 _ACEOF
42114 cat >>$CONFIG_STATUS <<_ACEOF
42115   sed "$ac_vpsub
42116 $extrasub
42117 _ACEOF
42118 cat >>$CONFIG_STATUS <<\_ACEOF
42119 :t
42120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42121 s,@configure_input@,$configure_input,;t t
42122 s,@srcdir@,$ac_srcdir,;t t
42123 s,@abs_srcdir@,$ac_abs_srcdir,;t t
42124 s,@top_srcdir@,$ac_top_srcdir,;t t
42125 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42126 s,@builddir@,$ac_builddir,;t t
42127 s,@abs_builddir@,$ac_abs_builddir,;t t
42128 s,@top_builddir@,$ac_top_builddir,;t t
42129 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42130 s,@INSTALL@,$ac_INSTALL,;t t
42131 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42132   rm -f $tmp/stdin
42133   if test x"$ac_file" != x-; then
42134     mv $tmp/out $ac_file
42135   else
42136     cat $tmp/out
42137     rm -f $tmp/out
42138   fi
42139
42140 done
42141 _ACEOF
42142 cat >>$CONFIG_STATUS <<\_ACEOF
42143
42144 #
42145 # CONFIG_HEADER section.
42146 #
42147
42148 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42149 # NAME is the cpp macro being defined and VALUE is the value it is being given.
42150 #
42151 # ac_d sets the value in "#define NAME VALUE" lines.
42152 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
42153 ac_dB='[         ].*$,\1#\2'
42154 ac_dC=' '
42155 ac_dD=',;t'
42156 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
42157 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
42158 ac_uB='$,\1#\2define\3'
42159 ac_uC=' '
42160 ac_uD=',;t'
42161
42162 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42163   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42164   case $ac_file in
42165   - | *:- | *:-:* ) # input from stdin
42166         cat >$tmp/stdin
42167         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42168         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42169   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42170         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42171   * )   ac_file_in=$ac_file.in ;;
42172   esac
42173
42174   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42175 echo "$as_me: creating $ac_file" >&6;}
42176
42177   # First look for the input files in the build tree, otherwise in the
42178   # src tree.
42179   ac_file_inputs=`IFS=:
42180     for f in $ac_file_in; do
42181       case $f in
42182       -) echo $tmp/stdin ;;
42183       [\\/$]*)
42184          # Absolute (can't be DOS-style, as IFS=:)
42185          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42186 echo "$as_me: error: cannot find input file: $f" >&2;}
42187    { (exit 1); exit 1; }; }
42188          # Do quote $f, to prevent DOS paths from being IFS'd.
42189          echo "$f";;
42190       *) # Relative
42191          if test -f "$f"; then
42192            # Build tree
42193            echo "$f"
42194          elif test -f "$srcdir/$f"; then
42195            # Source tree
42196            echo "$srcdir/$f"
42197          else
42198            # /dev/null tree
42199            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42200 echo "$as_me: error: cannot find input file: $f" >&2;}
42201    { (exit 1); exit 1; }; }
42202          fi;;
42203       esac
42204     done` || { (exit 1); exit 1; }
42205   # Remove the trailing spaces.
42206   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
42207
42208 _ACEOF
42209
42210 # Transform confdefs.h into two sed scripts, `conftest.defines' and
42211 # `conftest.undefs', that substitutes the proper values into
42212 # config.h.in to produce config.h.  The first handles `#define'
42213 # templates, and the second `#undef' templates.
42214 # And first: Protect against being on the right side of a sed subst in
42215 # config.status.  Protect against being in an unquoted here document
42216 # in config.status.
42217 rm -f conftest.defines conftest.undefs
42218 # Using a here document instead of a string reduces the quoting nightmare.
42219 # Putting comments in sed scripts is not portable.
42220 #
42221 # `end' is used to avoid that the second main sed command (meant for
42222 # 0-ary CPP macros) applies to n-ary macro definitions.
42223 # See the Autoconf documentation for `clear'.
42224 cat >confdef2sed.sed <<\_ACEOF
42225 s/[\\&,]/\\&/g
42226 s,[\\$`],\\&,g
42227 t clear
42228 : clear
42229 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
42230 t end
42231 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
42232 : end
42233 _ACEOF
42234 # If some macros were called several times there might be several times
42235 # the same #defines, which is useless.  Nevertheless, we may not want to
42236 # sort them, since we want the *last* AC-DEFINE to be honored.
42237 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42238 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42239 rm -f confdef2sed.sed
42240
42241 # This sed command replaces #undef with comments.  This is necessary, for
42242 # example, in the case of _POSIX_SOURCE, which is predefined and required
42243 # on some systems where configure will not decide to define it.
42244 cat >>conftest.undefs <<\_ACEOF
42245 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
42246 _ACEOF
42247
42248 # Break up conftest.defines because some shells have a limit on the size
42249 # of here documents, and old seds have small limits too (100 cmds).
42250 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
42251 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
42252 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42253 echo '  :' >>$CONFIG_STATUS
42254 rm -f conftest.tail
42255 while grep . conftest.defines >/dev/null
42256 do
42257   # Write a limited-size here document to $tmp/defines.sed.
42258   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42259   # Speed up: don't consider the non `#define' lines.
42260   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
42261   # Work around the forget-to-reset-the-flag bug.
42262   echo 't clr' >>$CONFIG_STATUS
42263   echo ': clr' >>$CONFIG_STATUS
42264   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42265   echo 'CEOF
42266   sed -f $tmp/defines.sed $tmp/in >$tmp/out
42267   rm -f $tmp/in
42268   mv $tmp/out $tmp/in
42269 ' >>$CONFIG_STATUS
42270   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42271   rm -f conftest.defines
42272   mv conftest.tail conftest.defines
42273 done
42274 rm -f conftest.defines
42275 echo '  fi # grep' >>$CONFIG_STATUS
42276 echo >>$CONFIG_STATUS
42277
42278 # Break up conftest.undefs because some shells have a limit on the size
42279 # of here documents, and old seds have small limits too (100 cmds).
42280 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
42281 rm -f conftest.tail
42282 while grep . conftest.undefs >/dev/null
42283 do
42284   # Write a limited-size here document to $tmp/undefs.sed.
42285   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42286   # Speed up: don't consider the non `#undef'
42287   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
42288   # Work around the forget-to-reset-the-flag bug.
42289   echo 't clr' >>$CONFIG_STATUS
42290   echo ': clr' >>$CONFIG_STATUS
42291   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42292   echo 'CEOF
42293   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42294   rm -f $tmp/in
42295   mv $tmp/out $tmp/in
42296 ' >>$CONFIG_STATUS
42297   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42298   rm -f conftest.undefs
42299   mv conftest.tail conftest.undefs
42300 done
42301 rm -f conftest.undefs
42302
42303 cat >>$CONFIG_STATUS <<\_ACEOF
42304   # Let's still pretend it is `configure' which instantiates (i.e., don't
42305   # use $as_me), people would be surprised to read:
42306   #    /* config.h.  Generated by config.status.  */
42307   if test x"$ac_file" = x-; then
42308     echo "/* Generated by configure.  */" >$tmp/config.h
42309   else
42310     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
42311   fi
42312   cat $tmp/in >>$tmp/config.h
42313   rm -f $tmp/in
42314   if test x"$ac_file" != x-; then
42315     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42316       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42317 echo "$as_me: $ac_file is unchanged" >&6;}
42318     else
42319       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42320 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42321          X"$ac_file" : 'X\(//\)[^/]' \| \
42322          X"$ac_file" : 'X\(//\)$' \| \
42323          X"$ac_file" : 'X\(/\)' \| \
42324          .     : '\(.\)' 2>/dev/null ||
42325 echo X"$ac_file" |
42326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42327           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42328           /^X\(\/\/\)$/{ s//\1/; q; }
42329           /^X\(\/\).*/{ s//\1/; q; }
42330           s/.*/./; q'`
42331       { if $as_mkdir_p; then
42332     mkdir -p "$ac_dir"
42333   else
42334     as_dir="$ac_dir"
42335     as_dirs=
42336     while test ! -d "$as_dir"; do
42337       as_dirs="$as_dir $as_dirs"
42338       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42340          X"$as_dir" : 'X\(//\)[^/]' \| \
42341          X"$as_dir" : 'X\(//\)$' \| \
42342          X"$as_dir" : 'X\(/\)' \| \
42343          .     : '\(.\)' 2>/dev/null ||
42344 echo X"$as_dir" |
42345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42346           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42347           /^X\(\/\/\)$/{ s//\1/; q; }
42348           /^X\(\/\).*/{ s//\1/; q; }
42349           s/.*/./; q'`
42350     done
42351     test ! -n "$as_dirs" || mkdir $as_dirs
42352   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42353 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42354    { (exit 1); exit 1; }; }; }
42355
42356       rm -f $ac_file
42357       mv $tmp/config.h $ac_file
42358     fi
42359   else
42360     cat $tmp/config.h
42361     rm -f $tmp/config.h
42362   fi
42363 # Compute $ac_file's index in $config_headers.
42364 _am_stamp_count=1
42365 for _am_header in $config_headers :; do
42366   case $_am_header in
42367     $ac_file | $ac_file:* )
42368       break ;;
42369     * )
42370       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42371   esac
42372 done
42373 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42374 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42375          X$ac_file : 'X\(//\)[^/]' \| \
42376          X$ac_file : 'X\(//\)$' \| \
42377          X$ac_file : 'X\(/\)' \| \
42378          .     : '\(.\)' 2>/dev/null ||
42379 echo X$ac_file |
42380     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42381           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42382           /^X\(\/\/\)$/{ s//\1/; q; }
42383           /^X\(\/\).*/{ s//\1/; q; }
42384           s/.*/./; q'`/stamp-h$_am_stamp_count
42385 done
42386 _ACEOF
42387 cat >>$CONFIG_STATUS <<\_ACEOF
42388
42389 #
42390 # CONFIG_COMMANDS section.
42391 #
42392 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42393   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42394   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42395   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42396 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42397          X"$ac_dest" : 'X\(//\)[^/]' \| \
42398          X"$ac_dest" : 'X\(//\)$' \| \
42399          X"$ac_dest" : 'X\(/\)' \| \
42400          .     : '\(.\)' 2>/dev/null ||
42401 echo X"$ac_dest" |
42402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42403           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42404           /^X\(\/\/\)$/{ s//\1/; q; }
42405           /^X\(\/\).*/{ s//\1/; q; }
42406           s/.*/./; q'`
42407   { if $as_mkdir_p; then
42408     mkdir -p "$ac_dir"
42409   else
42410     as_dir="$ac_dir"
42411     as_dirs=
42412     while test ! -d "$as_dir"; do
42413       as_dirs="$as_dir $as_dirs"
42414       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42416          X"$as_dir" : 'X\(//\)[^/]' \| \
42417          X"$as_dir" : 'X\(//\)$' \| \
42418          X"$as_dir" : 'X\(/\)' \| \
42419          .     : '\(.\)' 2>/dev/null ||
42420 echo X"$as_dir" |
42421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42422           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42423           /^X\(\/\/\)$/{ s//\1/; q; }
42424           /^X\(\/\).*/{ s//\1/; q; }
42425           s/.*/./; q'`
42426     done
42427     test ! -n "$as_dirs" || mkdir $as_dirs
42428   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42429 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42430    { (exit 1); exit 1; }; }; }
42431
42432   ac_builddir=.
42433
42434 if test "$ac_dir" != .; then
42435   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42436   # A "../" for each directory in $ac_dir_suffix.
42437   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42438 else
42439   ac_dir_suffix= ac_top_builddir=
42440 fi
42441
42442 case $srcdir in
42443   .)  # No --srcdir option.  We are building in place.
42444     ac_srcdir=.
42445     if test -z "$ac_top_builddir"; then
42446        ac_top_srcdir=.
42447     else
42448        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42449     fi ;;
42450   [\\/]* | ?:[\\/]* )  # Absolute path.
42451     ac_srcdir=$srcdir$ac_dir_suffix;
42452     ac_top_srcdir=$srcdir ;;
42453   *) # Relative path.
42454     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42455     ac_top_srcdir=$ac_top_builddir$srcdir ;;
42456 esac
42457
42458 # Do not use `cd foo && pwd` to compute absolute paths, because
42459 # the directories may not exist.
42460 case `pwd` in
42461 .) ac_abs_builddir="$ac_dir";;
42462 *)
42463   case "$ac_dir" in
42464   .) ac_abs_builddir=`pwd`;;
42465   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42466   *) ac_abs_builddir=`pwd`/"$ac_dir";;
42467   esac;;
42468 esac
42469 case $ac_abs_builddir in
42470 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42471 *)
42472   case ${ac_top_builddir}. in
42473   .) ac_abs_top_builddir=$ac_abs_builddir;;
42474   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42475   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42476   esac;;
42477 esac
42478 case $ac_abs_builddir in
42479 .) ac_abs_srcdir=$ac_srcdir;;
42480 *)
42481   case $ac_srcdir in
42482   .) ac_abs_srcdir=$ac_abs_builddir;;
42483   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42484   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42485   esac;;
42486 esac
42487 case $ac_abs_builddir in
42488 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42489 *)
42490   case $ac_top_srcdir in
42491   .) ac_abs_top_srcdir=$ac_abs_builddir;;
42492   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42493   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42494   esac;;
42495 esac
42496
42497
42498   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42499 echo "$as_me: executing $ac_dest commands" >&6;}
42500   case $ac_dest in
42501     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42502   # Strip MF so we end up with the name of the file.
42503   mf=`echo "$mf" | sed -e 's/:.*$//'`
42504   # Check whether this is an Automake generated Makefile or not.
42505   # We used to match only the files named `Makefile.in', but
42506   # some people rename them; so instead we look at the file content.
42507   # Grep'ing the first line is not enough: some people post-process
42508   # each Makefile.in and add a new line on top of each file to say so.
42509   # So let's grep whole file.
42510   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42511     dirpart=`(dirname "$mf") 2>/dev/null ||
42512 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42513          X"$mf" : 'X\(//\)[^/]' \| \
42514          X"$mf" : 'X\(//\)$' \| \
42515          X"$mf" : 'X\(/\)' \| \
42516          .     : '\(.\)' 2>/dev/null ||
42517 echo X"$mf" |
42518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42519           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42520           /^X\(\/\/\)$/{ s//\1/; q; }
42521           /^X\(\/\).*/{ s//\1/; q; }
42522           s/.*/./; q'`
42523   else
42524     continue
42525   fi
42526   # Extract the definition of DEPDIR, am__include, and am__quote
42527   # from the Makefile without running `make'.
42528   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42529   test -z "$DEPDIR" && continue
42530   am__include=`sed -n 's/^am__include = //p' < "$mf"`
42531   test -z "am__include" && continue
42532   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42533   # When using ansi2knr, U may be empty or an underscore; expand it
42534   U=`sed -n 's/^U = //p' < "$mf"`
42535   # Find all dependency output files, they are included files with
42536   # $(DEPDIR) in their names.  We invoke sed twice because it is the
42537   # simplest approach to changing $(DEPDIR) to its actual value in the
42538   # expansion.
42539   for file in `sed -n "
42540     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42541        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42542     # Make sure the directory exists.
42543     test -f "$dirpart/$file" && continue
42544     fdir=`(dirname "$file") 2>/dev/null ||
42545 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42546          X"$file" : 'X\(//\)[^/]' \| \
42547          X"$file" : 'X\(//\)$' \| \
42548          X"$file" : 'X\(/\)' \| \
42549          .     : '\(.\)' 2>/dev/null ||
42550 echo X"$file" |
42551     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42552           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42553           /^X\(\/\/\)$/{ s//\1/; q; }
42554           /^X\(\/\).*/{ s//\1/; q; }
42555           s/.*/./; q'`
42556     { if $as_mkdir_p; then
42557     mkdir -p $dirpart/$fdir
42558   else
42559     as_dir=$dirpart/$fdir
42560     as_dirs=
42561     while test ! -d "$as_dir"; do
42562       as_dirs="$as_dir $as_dirs"
42563       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42564 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42565          X"$as_dir" : 'X\(//\)[^/]' \| \
42566          X"$as_dir" : 'X\(//\)$' \| \
42567          X"$as_dir" : 'X\(/\)' \| \
42568          .     : '\(.\)' 2>/dev/null ||
42569 echo X"$as_dir" |
42570     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42571           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42572           /^X\(\/\/\)$/{ s//\1/; q; }
42573           /^X\(\/\).*/{ s//\1/; q; }
42574           s/.*/./; q'`
42575     done
42576     test ! -n "$as_dirs" || mkdir $as_dirs
42577   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42578 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42579    { (exit 1); exit 1; }; }; }
42580
42581     # echo "creating $dirpart/$file"
42582     echo '# dummy' > "$dirpart/$file"
42583   done
42584 done
42585  ;;
42586     default )
42587 chmod +x tests/run
42588 date > stamp-h
42589 BACKENDSC="servers/slapd/backends.c"
42590 echo "Making $BACKENDSC"
42591 rm -f $BACKENDSC
42592 cat > $BACKENDSC << ENDX
42593 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42594  *
42595  * Copyright 1998-2008 The OpenLDAP Foundation.
42596  * All rights reserved.
42597  *
42598  * Redistribution and use in source and binary forms, with or without
42599  * modification, are permitted only as authorized by the OpenLDAP
42600  * Public License.
42601  *
42602  * A copy of this license is available in the file LICENSE in the
42603  * top-level directory of the distribution or, alternatively, at
42604  * <http://www.OpenLDAP.org/license.html>.
42605  */
42606 /* This file is automatically generated by configure; please do not edit. */
42607
42608 #include "portable.h"
42609 #include "slap.h"
42610
42611 ENDX
42612 if test "${STATIC_BACKENDS}"; then
42613         for b in config ${STATIC_BACKENDS}; do
42614                 bb=`echo "${b}" | sed -e 's/back-//'`
42615                 cat >> $BACKENDSC << ENDX
42616 extern BI_init ${bb}_back_initialize;
42617 ENDX
42618         done
42619
42620         cat >> $BACKENDSC << ENDX
42621
42622 BackendInfo slap_binfo[] = {
42623 ENDX
42624
42625         for b in config ${STATIC_BACKENDS}; do
42626                 bb=`echo "${b}" | sed -e 's/back-//'`
42627                 echo "    Add ${bb} ..."
42628                 cat >> $BACKENDSC << ENDX
42629         { "${bb}", ${bb}_back_initialize },
42630 ENDX
42631         done
42632
42633         cat >> $BACKENDSC << ENDX
42634         { NULL, NULL },
42635 };
42636
42637 /* end of generated file */
42638 ENDX
42639 fi
42640 OVERLAYSC="servers/slapd/overlays/statover.c"
42641 echo "Making $OVERLAYSC"
42642 rm -f $OVERLAYSC
42643 cat > $OVERLAYSC << ENDX
42644 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42645  *
42646  * Copyright 1998-2008 The OpenLDAP Foundation.
42647  * All rights reserved.
42648  *
42649  * Redistribution and use in source and binary forms, with or without
42650  * modification, are permitted only as authorized by the OpenLDAP
42651  * Public License.
42652  *
42653  * A copy of this license is available in the file LICENSE in the
42654  * top-level directory of the distribution or, alternatively, at
42655  * <http://www.OpenLDAP.org/license.html>.
42656  */
42657 /* This file is automatically generated by configure; please do not edit. */
42658
42659 #include "portable.h"
42660 #include "slap.h"
42661
42662 ENDX
42663 if test "${STATIC_OVERLAYS}"; then
42664         for o in ${STATIC_OVERLAYS}; do
42665                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42666                 cat >> $OVERLAYSC << ENDX
42667 extern OV_init ${oo}_initialize;
42668 ENDX
42669         done
42670 fi
42671
42672 cat >> $OVERLAYSC << ENDX
42673
42674 OverlayInit slap_oinfo[] = {
42675 ENDX
42676
42677 if test "${STATIC_OVERLAYS}"; then
42678         for o in ${STATIC_OVERLAYS}; do
42679                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42680                 echo "    Add ${oo} ..."
42681                 cat >> $OVERLAYSC << ENDX
42682         { "${oo}", ${oo}_initialize },
42683 ENDX
42684         done
42685 fi
42686
42687         cat >> $OVERLAYSC << ENDX
42688         { NULL, NULL },
42689 };
42690
42691 /* end of generated file */
42692 ENDX
42693
42694 if test "${ol_cv_mkdep}" = no; then
42695         echo '(Do not "make depend"; we do not know how to build dependencies)'
42696 else
42697         echo 'Please run "make depend" to build dependencies'
42698 fi
42699  ;;
42700   esac
42701 done
42702 _ACEOF
42703
42704 cat >>$CONFIG_STATUS <<\_ACEOF
42705
42706 { (exit 0); exit 0; }
42707 _ACEOF
42708 chmod +x $CONFIG_STATUS
42709 ac_clean_files=$ac_clean_files_save
42710
42711
42712 # configure is writing to config.log, and then calls config.status.
42713 # config.status does its own redirection, appending to config.log.
42714 # Unfortunately, on DOS this fails, as config.log is still kept open
42715 # by configure, so config.status won't be able to write to it; its
42716 # output is simply discarded.  So we exec the FD to /dev/null,
42717 # effectively closing config.log, so it can be properly (re)opened and
42718 # appended to by config.status.  When coming back to configure, we
42719 # need to make the FD available again.
42720 if test "$no_create" != yes; then
42721   ac_cs_success=:
42722   ac_config_status_args=
42723   test "$silent" = yes &&
42724     ac_config_status_args="$ac_config_status_args --quiet"
42725   exec 5>/dev/null
42726   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42727   exec 5>>config.log
42728   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42729   # would make configure fail if this is the last instruction.
42730   $ac_cs_success || { (exit 1); exit 1; }
42731 fi
42732