]> git.sur5r.net Git - openldap/blob - configure
ITS#5756 sort filters more completely
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.693 2009/01/26 08:41:31 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2009 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_COLLECT 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 GSSAPI_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 [no]
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-collect      Collect overlay no|yes|mod [no]
1053     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1054     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1055     --enable-deref        Dereference overlay no|yes|mod [no]
1056     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1057     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1058     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1059     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1060     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1061     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1062     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1063     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1064     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1065     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1066     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1067     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1068     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1069
1070 Library Generation & Linking Options
1071   --enable-static[=PKGS]
1072                           build static libraries [default=yes]
1073   --enable-shared[=PKGS]
1074                           build shared libraries [default=yes]
1075   --enable-fast-install[=PKGS]
1076                           optimize for fast installation [default=yes]
1077   --disable-dependency-tracking  speeds up one-time build
1078   --enable-dependency-tracking   do not reject slow dependency extractors
1079   --disable-libtool-lock  avoid locking (might break parallel builds)
1080
1081 Optional Packages:
1082   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1083   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1084   --with-subdir=DIR       change default subdirectory used for installs
1085   --with-cyrus-sasl       with Cyrus SASL support [auto]
1086   --with-fetch            with fetch(3) URL support [auto]
1087   --with-gssapi           with GSSAPI support [auto]
1088   --with-threads          with threads [auto]
1089   --with-tls              with TLS/SSL support auto|openssl|gnutls [auto]
1090   --with-yielding-select  with implicitly yielding select [auto]
1091   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1092   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1093   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1094   --with-pic              try to use only PIC/non-PIC objects [default=use
1095                           both]
1096   --with-tags[=TAGS]
1097                           include additional configurations [automatic]
1098
1099 See INSTALL file for further details.
1100
1101 Some influential environment variables:
1102   CC          C compiler command
1103   CFLAGS      C compiler flags
1104   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1105               nonstandard directory <lib dir>
1106   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1107               headers in a nonstandard directory <include dir>
1108   CPP         C preprocessor
1109
1110 Use these variables to override the choices made by `configure' or to help
1111 it to find libraries and programs with nonstandard names/locations.
1112
1113 _ACEOF
1114 fi
1115
1116 if test "$ac_init_help" = "recursive"; then
1117   # If there are subdirs, report their specific --help.
1118   ac_popdir=`pwd`
1119   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1120     test -d $ac_dir || continue
1121     ac_builddir=.
1122
1123 if test "$ac_dir" != .; then
1124   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1125   # A "../" for each directory in $ac_dir_suffix.
1126   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1127 else
1128   ac_dir_suffix= ac_top_builddir=
1129 fi
1130
1131 case $srcdir in
1132   .)  # No --srcdir option.  We are building in place.
1133     ac_srcdir=.
1134     if test -z "$ac_top_builddir"; then
1135        ac_top_srcdir=.
1136     else
1137        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1138     fi ;;
1139   [\\/]* | ?:[\\/]* )  # Absolute path.
1140     ac_srcdir=$srcdir$ac_dir_suffix;
1141     ac_top_srcdir=$srcdir ;;
1142   *) # Relative path.
1143     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1144     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1145 esac
1146
1147 # Do not use `cd foo && pwd` to compute absolute paths, because
1148 # the directories may not exist.
1149 case `pwd` in
1150 .) ac_abs_builddir="$ac_dir";;
1151 *)
1152   case "$ac_dir" in
1153   .) ac_abs_builddir=`pwd`;;
1154   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1155   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1156   esac;;
1157 esac
1158 case $ac_abs_builddir in
1159 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 *)
1161   case ${ac_top_builddir}. in
1162   .) ac_abs_top_builddir=$ac_abs_builddir;;
1163   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1164   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1165   esac;;
1166 esac
1167 case $ac_abs_builddir in
1168 .) ac_abs_srcdir=$ac_srcdir;;
1169 *)
1170   case $ac_srcdir in
1171   .) ac_abs_srcdir=$ac_abs_builddir;;
1172   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1173   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1174   esac;;
1175 esac
1176 case $ac_abs_builddir in
1177 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 *)
1179   case $ac_top_srcdir in
1180   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1181   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1182   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1183   esac;;
1184 esac
1185
1186     cd $ac_dir
1187     # Check for guested configure; otherwise get Cygnus style configure.
1188     if test -f $ac_srcdir/configure.gnu; then
1189       echo
1190       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1191     elif test -f $ac_srcdir/configure; then
1192       echo
1193       $SHELL $ac_srcdir/configure  --help=recursive
1194     elif test -f $ac_srcdir/configure.ac ||
1195            test -f $ac_srcdir/configure.in; then
1196       echo
1197       $ac_configure --help
1198     else
1199       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1200     fi
1201     cd $ac_popdir
1202   done
1203 fi
1204
1205 test -n "$ac_init_help" && exit 0
1206 if $ac_init_version; then
1207   cat <<\_ACEOF
1208
1209 Copyright (C) 2003 Free Software Foundation, Inc.
1210 This configure script is free software; the Free Software Foundation
1211 gives unlimited permission to copy, distribute and modify it.
1212
1213 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1214 Restrictions apply, see COPYRIGHT and LICENSE files.
1215 _ACEOF
1216   exit 0
1217 fi
1218 exec 5>config.log
1219 cat >&5 <<_ACEOF
1220 This file contains any messages produced by compilers while
1221 running configure, to aid debugging if configure makes a mistake.
1222
1223 It was created by $as_me, which was
1224 generated by GNU Autoconf 2.59.  Invocation command line was
1225
1226   $ $0 $@
1227
1228 _ACEOF
1229 {
1230 cat <<_ASUNAME
1231 ## --------- ##
1232 ## Platform. ##
1233 ## --------- ##
1234
1235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1236 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1237 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1238 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1239 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1240
1241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1242 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1243
1244 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1245 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1247 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1248 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1249 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1250 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1251
1252 _ASUNAME
1253
1254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1255 for as_dir in $PATH
1256 do
1257   IFS=$as_save_IFS
1258   test -z "$as_dir" && as_dir=.
1259   echo "PATH: $as_dir"
1260 done
1261
1262 } >&5
1263
1264 cat >&5 <<_ACEOF
1265
1266
1267 ## ----------- ##
1268 ## Core tests. ##
1269 ## ----------- ##
1270
1271 _ACEOF
1272
1273
1274 # Keep a trace of the command line.
1275 # Strip out --no-create and --no-recursion so they do not pile up.
1276 # Strip out --silent because we don't want to record it for future runs.
1277 # Also quote any args containing shell meta-characters.
1278 # Make two passes to allow for proper duplicate-argument suppression.
1279 ac_configure_args=
1280 ac_configure_args0=
1281 ac_configure_args1=
1282 ac_sep=
1283 ac_must_keep_next=false
1284 for ac_pass in 1 2
1285 do
1286   for ac_arg
1287   do
1288     case $ac_arg in
1289     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1290     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291     | -silent | --silent | --silen | --sile | --sil)
1292       continue ;;
1293     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1295     esac
1296     case $ac_pass in
1297     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1298     2)
1299       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1300       if test $ac_must_keep_next = true; then
1301         ac_must_keep_next=false # Got value, back to normal.
1302       else
1303         case $ac_arg in
1304           *=* | --config-cache | -C | -disable-* | --disable-* \
1305           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1306           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1307           | -with-* | --with-* | -without-* | --without-* | --x)
1308             case "$ac_configure_args0 " in
1309               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1310             esac
1311             ;;
1312           -* ) ac_must_keep_next=true ;;
1313         esac
1314       fi
1315       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1316       # Get rid of the leading space.
1317       ac_sep=" "
1318       ;;
1319     esac
1320   done
1321 done
1322 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1323 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1324
1325 # When interrupted or exit'd, cleanup temporary files, and complete
1326 # config.log.  We remove comments because anyway the quotes in there
1327 # would cause problems or look ugly.
1328 # WARNING: Be sure not to use single quotes in there, as some shells,
1329 # such as our DU 5.0 friend, will then `close' the trap.
1330 trap 'exit_status=$?
1331   # Save into config.log some information that might help in debugging.
1332   {
1333     echo
1334
1335     cat <<\_ASBOX
1336 ## ---------------- ##
1337 ## Cache variables. ##
1338 ## ---------------- ##
1339 _ASBOX
1340     echo
1341     # The following way of writing the cache mishandles newlines in values,
1342 {
1343   (set) 2>&1 |
1344     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1345     *ac_space=\ *)
1346       sed -n \
1347         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1348           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1349       ;;
1350     *)
1351       sed -n \
1352         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1353       ;;
1354     esac;
1355 }
1356     echo
1357
1358     cat <<\_ASBOX
1359 ## ----------------- ##
1360 ## Output variables. ##
1361 ## ----------------- ##
1362 _ASBOX
1363     echo
1364     for ac_var in $ac_subst_vars
1365     do
1366       eval ac_val=$`echo $ac_var`
1367       echo "$ac_var='"'"'$ac_val'"'"'"
1368     done | sort
1369     echo
1370
1371     if test -n "$ac_subst_files"; then
1372       cat <<\_ASBOX
1373 ## ------------- ##
1374 ## Output files. ##
1375 ## ------------- ##
1376 _ASBOX
1377       echo
1378       for ac_var in $ac_subst_files
1379       do
1380         eval ac_val=$`echo $ac_var`
1381         echo "$ac_var='"'"'$ac_val'"'"'"
1382       done | sort
1383       echo
1384     fi
1385
1386     if test -s confdefs.h; then
1387       cat <<\_ASBOX
1388 ## ----------- ##
1389 ## confdefs.h. ##
1390 ## ----------- ##
1391 _ASBOX
1392       echo
1393       sed "/^$/d" confdefs.h | sort
1394       echo
1395     fi
1396     test "$ac_signal" != 0 &&
1397       echo "$as_me: caught signal $ac_signal"
1398     echo "$as_me: exit $exit_status"
1399   } >&5
1400   rm -f core *.core &&
1401   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1402     exit $exit_status
1403      ' 0
1404 for ac_signal in 1 2 13 15; do
1405   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1406 done
1407 ac_signal=0
1408
1409 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1410 rm -rf conftest* confdefs.h
1411 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1412 echo >confdefs.h
1413
1414 # Predefined preprocessor variables.
1415
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_NAME "$PACKAGE_NAME"
1418 _ACEOF
1419
1420
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1423 _ACEOF
1424
1425
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1428 _ACEOF
1429
1430
1431 cat >>confdefs.h <<_ACEOF
1432 #define PACKAGE_STRING "$PACKAGE_STRING"
1433 _ACEOF
1434
1435
1436 cat >>confdefs.h <<_ACEOF
1437 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1438 _ACEOF
1439
1440
1441 # Let the site file select an alternate cache file if it wants to.
1442 # Prefer explicitly selected file to automatically selected ones.
1443 if test -z "$CONFIG_SITE"; then
1444   if test "x$prefix" != xNONE; then
1445     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1446   else
1447     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1448   fi
1449 fi
1450 for ac_site_file in $CONFIG_SITE; do
1451   if test -r "$ac_site_file"; then
1452     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1453 echo "$as_me: loading site script $ac_site_file" >&6;}
1454     sed 's/^/| /' "$ac_site_file" >&5
1455     . "$ac_site_file"
1456   fi
1457 done
1458
1459
1460 # Check that the precious variables saved in the cache have kept the same
1461 # value.
1462 ac_cache_corrupted=false
1463 for ac_var in `(set) 2>&1 |
1464                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1465   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466   eval ac_new_set=\$ac_env_${ac_var}_set
1467   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468   eval ac_new_val="\$ac_env_${ac_var}_value"
1469   case $ac_old_set,$ac_new_set in
1470     set,)
1471       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473       ac_cache_corrupted=: ;;
1474     ,set)
1475       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477       ac_cache_corrupted=: ;;
1478     ,);;
1479     *)
1480       if test "x$ac_old_val" != "x$ac_new_val"; then
1481         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1482 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1483         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1484 echo "$as_me:   former value:  $ac_old_val" >&2;}
1485         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1486 echo "$as_me:   current value: $ac_new_val" >&2;}
1487         ac_cache_corrupted=:
1488       fi;;
1489   esac
1490   # Pass precious variables to config.status.
1491   if test "$ac_new_set" = set; then
1492     case $ac_new_val in
1493     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495     *) ac_arg=$ac_var=$ac_new_val ;;
1496     esac
1497     case " $ac_configure_args " in
1498       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1499       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500     esac
1501   fi
1502 done
1503 if $ac_cache_corrupted; then
1504   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508    { (exit 1); exit 1; }; }
1509 fi
1510
1511 ac_ext=c
1512 ac_cpp='$CPP $CPPFLAGS'
1513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1557
1558
1559
1560
1561 ac_aux_dir=
1562 for ac_dir in build $srcdir/build; do
1563   if test -f $ac_dir/install-sh; then
1564     ac_aux_dir=$ac_dir
1565     ac_install_sh="$ac_aux_dir/install-sh -c"
1566     break
1567   elif test -f $ac_dir/install.sh; then
1568     ac_aux_dir=$ac_dir
1569     ac_install_sh="$ac_aux_dir/install.sh -c"
1570     break
1571   elif test -f $ac_dir/shtool; then
1572     ac_aux_dir=$ac_dir
1573     ac_install_sh="$ac_aux_dir/shtool install -c"
1574     break
1575   fi
1576 done
1577 if test -z "$ac_aux_dir"; then
1578   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1579 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1580    { (exit 1); exit 1; }; }
1581 fi
1582 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1583 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1584 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1585
1586 eval `$ac_aux_dir/version.sh`
1587 if test -z "$OL_STRING"; then
1588         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1589 echo "$as_me: error: could not determine version" >&2;}
1590    { (exit 1); exit 1; }; }
1591 fi
1592
1593 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1594         ac_cv_shtool="$ac_aux_dir/shtool"
1595 else
1596         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1597 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1598    { (exit 1); exit 1; }; }
1599 fi
1600
1601 SHTOOL="$ac_cv_shtool"
1602
1603 TB="" TN=""
1604 if test -t 1; then
1605         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1606         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1607 fi
1608
1609 OPENLDAP_CVS=""
1610 if test -d $ac_aux_dir/CVS; then
1611         OPENLDAP_CVS="(from CVS sources) "
1612 fi
1613
1614 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1615
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620    { (exit 1); exit 1; }; }
1621
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629   ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633    { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637    { (exit 1); exit 1; }; }
1638
1639 fi
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1642 build=$ac_cv_build
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651   echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653   ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655   ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659    { (exit 1); exit 1; }; }
1660
1661 fi
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1664 host=$ac_cv_host
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668
1669
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673   echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675   ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677   ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681    { (exit 1); exit 1; }; }
1682
1683 fi
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690
1691
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695   test "$program_prefix$program_suffix$program_transform_name" = \
1696     NONENONEs,x,x, &&
1697   program_prefix=${target_alias}-
1698
1699 am__api_version="1.9"
1700 # Find a good install program.  We prefer a C program (faster),
1701 # so one script is as good as another.  But avoid the broken or
1702 # incompatible versions:
1703 # SysV /etc/install, /usr/sbin/install
1704 # SunOS /usr/etc/install
1705 # IRIX /sbin/install
1706 # AIX /bin/install
1707 # AmigaOS /C/install, which installs bootblocks on floppy discs
1708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1711 # OS/2's system install, which has a completely different semantic
1712 # ./install, which can be erroneously created by make from ./install.sh.
1713 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1714 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1715 if test -z "$INSTALL"; then
1716 if test "${ac_cv_path_install+set}" = set; then
1717   echo $ECHO_N "(cached) $ECHO_C" >&6
1718 else
1719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1721 do
1722   IFS=$as_save_IFS
1723   test -z "$as_dir" && as_dir=.
1724   # Account for people who put trailing slashes in PATH elements.
1725 case $as_dir/ in
1726   ./ | .// | /cC/* | \
1727   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1728   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1729   /usr/ucb/* ) ;;
1730   *)
1731     # OSF1 and SCO ODT 3.0 have their own names for install.
1732     # Don't use installbsd from OSF since it installs stuff as root
1733     # by default.
1734     for ac_prog in ginstall scoinst install; do
1735       for ac_exec_ext in '' $ac_executable_extensions; do
1736         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1737           if test $ac_prog = install &&
1738             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739             # AIX install.  It has an incompatible calling convention.
1740             :
1741           elif test $ac_prog = install &&
1742             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1743             # program-specific install script used by HP pwplus--don't use.
1744             :
1745           else
1746             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1747             break 3
1748           fi
1749         fi
1750       done
1751     done
1752     ;;
1753 esac
1754 done
1755
1756
1757 fi
1758   if test "${ac_cv_path_install+set}" = set; then
1759     INSTALL=$ac_cv_path_install
1760   else
1761     # As a last resort, use the slow shell script.  We don't cache a
1762     # path for INSTALL within a source directory, because that will
1763     # break other packages using the cache if that directory is
1764     # removed, or if the path is relative.
1765     INSTALL=$ac_install_sh
1766   fi
1767 fi
1768 echo "$as_me:$LINENO: result: $INSTALL" >&5
1769 echo "${ECHO_T}$INSTALL" >&6
1770
1771 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1772 # It thinks the first close brace ends the variable substitution.
1773 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1774
1775 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1776
1777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1778
1779 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1780 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1781 # Just in case
1782 sleep 1
1783 echo timestamp > conftest.file
1784 # Do `set' in a subshell so we don't clobber the current shell's
1785 # arguments.  Must try -L first in case configure is actually a
1786 # symlink; some systems play weird games with the mod time of symlinks
1787 # (eg FreeBSD returns the mod time of the symlink's containing
1788 # directory).
1789 if (
1790    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1791    if test "$*" = "X"; then
1792       # -L didn't work.
1793       set X `ls -t $srcdir/configure conftest.file`
1794    fi
1795    rm -f conftest.file
1796    if test "$*" != "X $srcdir/configure conftest.file" \
1797       && test "$*" != "X conftest.file $srcdir/configure"; then
1798
1799       # If neither matched, then we have a broken ls.  This can happen
1800       # if, for instance, CONFIG_SHELL is bash and it inherits a
1801       # broken ls alias from the environment.  This has actually
1802       # happened.  Such a system could not be considered "sane".
1803       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1804 alias in your environment" >&5
1805 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1806 alias in your environment" >&2;}
1807    { (exit 1); exit 1; }; }
1808    fi
1809
1810    test "$2" = conftest.file
1811    )
1812 then
1813    # Ok.
1814    :
1815 else
1816    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1817 Check your system clock" >&5
1818 echo "$as_me: error: newly created file is older than distributed files!
1819 Check your system clock" >&2;}
1820    { (exit 1); exit 1; }; }
1821 fi
1822 echo "$as_me:$LINENO: result: yes" >&5
1823 echo "${ECHO_T}yes" >&6
1824 test "$program_prefix" != NONE &&
1825   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1826 # Use a double $ so make ignores it.
1827 test "$program_suffix" != NONE &&
1828   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1829 # Double any \ or $.  echo might interpret backslashes.
1830 # By default was `s,x,x', remove it if useless.
1831 cat <<\_ACEOF >conftest.sed
1832 s/[\\$]/&&/g;s/;s,x,x,$//
1833 _ACEOF
1834 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1835 rm conftest.sed
1836
1837 # expand $ac_aux_dir to an absolute path
1838 am_aux_dir=`cd $ac_aux_dir && pwd`
1839
1840 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1841 # Use eval to expand $SHELL
1842 if eval "$MISSING --run true"; then
1843   am_missing_run="$MISSING --run "
1844 else
1845   am_missing_run=
1846   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1847 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1848 fi
1849
1850 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1851   # We used to keeping the `.' as first argument, in order to
1852   # allow $(mkdir_p) to be used without argument.  As in
1853   #   $(mkdir_p) $(somedir)
1854   # where $(somedir) is conditionally defined.  However this is wrong
1855   # for two reasons:
1856   #  1. if the package is installed by a user who cannot write `.'
1857   #     make install will fail,
1858   #  2. the above comment should most certainly read
1859   #     $(mkdir_p) $(DESTDIR)$(somedir)
1860   #     so it does not work when $(somedir) is undefined and
1861   #     $(DESTDIR) is not.
1862   #  To support the latter case, we have to write
1863   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1864   #  so the `.' trick is pointless.
1865   mkdir_p='mkdir -p --'
1866 else
1867   # On NextStep and OpenStep, the `mkdir' command does not
1868   # recognize any option.  It will interpret all options as
1869   # directories to create, and then abort because `.' already
1870   # exists.
1871   for d in ./-p ./--version;
1872   do
1873     test -d $d && rmdir $d
1874   done
1875   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1876   if test -f "$ac_aux_dir/mkinstalldirs"; then
1877     mkdir_p='$(mkinstalldirs)'
1878   else
1879     mkdir_p='$(install_sh) -d'
1880   fi
1881 fi
1882
1883 for ac_prog in gawk mawk nawk awk
1884 do
1885   # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy $ac_prog; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_AWK+set}" = set; then
1890   echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892   if test -n "$AWK"; then
1893   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1894 else
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898   IFS=$as_save_IFS
1899   test -z "$as_dir" && as_dir=.
1900   for ac_exec_ext in '' $ac_executable_extensions; do
1901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902     ac_cv_prog_AWK="$ac_prog"
1903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904     break 2
1905   fi
1906 done
1907 done
1908
1909 fi
1910 fi
1911 AWK=$ac_cv_prog_AWK
1912 if test -n "$AWK"; then
1913   echo "$as_me:$LINENO: result: $AWK" >&5
1914 echo "${ECHO_T}$AWK" >&6
1915 else
1916   echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920   test -n "$AWK" && break
1921 done
1922
1923 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1924 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1925 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1926 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   cat >conftest.make <<\_ACEOF
1930 all:
1931         @echo 'ac_maketemp="$(MAKE)"'
1932 _ACEOF
1933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1934 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1935 if test -n "$ac_maketemp"; then
1936   eval ac_cv_prog_make_${ac_make}_set=yes
1937 else
1938   eval ac_cv_prog_make_${ac_make}_set=no
1939 fi
1940 rm -f conftest.make
1941 fi
1942 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1943   echo "$as_me:$LINENO: result: yes" >&5
1944 echo "${ECHO_T}yes" >&6
1945   SET_MAKE=
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949   SET_MAKE="MAKE=${MAKE-make}"
1950 fi
1951
1952 rm -rf .tst 2>/dev/null
1953 mkdir .tst 2>/dev/null
1954 if test -d .tst; then
1955   am__leading_dot=.
1956 else
1957   am__leading_dot=_
1958 fi
1959 rmdir .tst 2>/dev/null
1960
1961 # test to see if srcdir already configured
1962 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1963    test -f $srcdir/config.status; then
1964   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1965 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1966    { (exit 1); exit 1; }; }
1967 fi
1968
1969 # test whether we have cygpath
1970 if test -z "$CYGPATH_W"; then
1971   if (cygpath --version) >/dev/null 2>/dev/null; then
1972     CYGPATH_W='cygpath -w'
1973   else
1974     CYGPATH_W=echo
1975   fi
1976 fi
1977
1978
1979 # Define the identity of the package.
1980  PACKAGE=$OL_PACKAGE
1981  VERSION=$OL_VERSION
1982
1983
1984 # Some tools Automake needs.
1985
1986 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1987
1988
1989 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1990
1991
1992 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1993
1994
1995 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1996
1997
1998 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1999
2000 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2001
2002 # Installed binaries are usually stripped using `strip' when the user
2003 # run `make install-strip'.  However `strip' might not be the right
2004 # tool to use in cross-compilation environments, therefore Automake
2005 # will honor the `STRIP' environment variable to overrule this program.
2006 if test "$cross_compiling" != no; then
2007   if test -n "$ac_tool_prefix"; then
2008   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}strip; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_STRIP+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   if test -n "$STRIP"; then
2016   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021   IFS=$as_save_IFS
2022   test -z "$as_dir" && as_dir=.
2023   for ac_exec_ext in '' $ac_executable_extensions; do
2024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027     break 2
2028   fi
2029 done
2030 done
2031
2032 fi
2033 fi
2034 STRIP=$ac_cv_prog_STRIP
2035 if test -n "$STRIP"; then
2036   echo "$as_me:$LINENO: result: $STRIP" >&5
2037 echo "${ECHO_T}$STRIP" >&6
2038 else
2039   echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2041 fi
2042
2043 fi
2044 if test -z "$ac_cv_prog_STRIP"; then
2045   ac_ct_STRIP=$STRIP
2046   # Extract the first word of "strip", so it can be a program name with args.
2047 set dummy strip; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2051   echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053   if test -n "$ac_ct_STRIP"; then
2054   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059   IFS=$as_save_IFS
2060   test -z "$as_dir" && as_dir=.
2061   for ac_exec_ext in '' $ac_executable_extensions; do
2062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063     ac_cv_prog_ac_ct_STRIP="strip"
2064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065     break 2
2066   fi
2067 done
2068 done
2069
2070   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2071 fi
2072 fi
2073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2074 if test -n "$ac_ct_STRIP"; then
2075   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2076 echo "${ECHO_T}$ac_ct_STRIP" >&6
2077 else
2078   echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2080 fi
2081
2082   STRIP=$ac_ct_STRIP
2083 else
2084   STRIP="$ac_cv_prog_STRIP"
2085 fi
2086
2087 fi
2088 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2089
2090 # We need awk for the "check" target.  The system "awk" is bad on
2091 # some platforms.
2092 # Always define AMTAR for backward compatibility.
2093
2094 AMTAR=${AMTAR-"${am_missing_run}tar"}
2095
2096 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2097
2098
2099
2100
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define OPENLDAP_PACKAGE "$PACKAGE"
2104 _ACEOF
2105
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define OPENLDAP_VERSION "$VERSION"
2109 _ACEOF
2110
2111
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define LDAP_VENDOR_VERSION $OL_API_INC
2115 _ACEOF
2116
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2120 _ACEOF
2121
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2125 _ACEOF
2126
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2130 _ACEOF
2131
2132
2133 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2134
2135 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2136
2137 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2138
2139
2140
2141
2142
2143
2144
2145           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2146
2147           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2148
2149           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2150
2151
2152 echo "$as_me:$LINENO: checking configure arguments" >&5
2153 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2154
2155
2156 top_builddir=`pwd`
2157
2158 ldap_subdir="/openldap"
2159
2160
2161 # Check whether --with-subdir or --without-subdir was given.
2162 if test "${with_subdir+set}" = set; then
2163   withval="$with_subdir"
2164   case "$withval" in
2165         no) ldap_subdir=""
2166                 ;;
2167         yes)
2168                 ;;
2169         /*|\\*)
2170                 ldap_subdir="$withval"
2171                 ;;
2172         *)
2173                 ldap_subdir="/$withval"
2174                 ;;
2175 esac
2176
2177 fi;
2178
2179 # OpenLDAP --enable-debug
2180
2181         # Check whether --enable-debug or --disable-debug was given.
2182 if test "${enable_debug+set}" = set; then
2183   enableval="$enable_debug"
2184
2185         ol_arg=invalid
2186         for ol_val in no yes traditional ; do
2187                 if test "$enableval" = "$ol_val" ; then
2188                         ol_arg="$ol_val"
2189                 fi
2190         done
2191         if test "$ol_arg" = "invalid" ; then
2192                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2193 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2194    { (exit 1); exit 1; }; }
2195         fi
2196         ol_enable_debug="$ol_arg"
2197
2198 else
2199         ol_enable_debug=yes
2200 fi;
2201 # end --enable-debug
2202 # OpenLDAP --enable-dynamic
2203
2204         # Check whether --enable-dynamic or --disable-dynamic was given.
2205 if test "${enable_dynamic+set}" = set; then
2206   enableval="$enable_dynamic"
2207
2208         ol_arg=invalid
2209         for ol_val in auto yes no ; do
2210                 if test "$enableval" = "$ol_val" ; then
2211                         ol_arg="$ol_val"
2212                 fi
2213         done
2214         if test "$ol_arg" = "invalid" ; then
2215                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2216 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2217    { (exit 1); exit 1; }; }
2218         fi
2219         ol_enable_dynamic="$ol_arg"
2220
2221 else
2222         ol_enable_dynamic=no
2223 fi;
2224 # end --enable-dynamic
2225 # OpenLDAP --enable-syslog
2226
2227         # Check whether --enable-syslog or --disable-syslog was given.
2228 if test "${enable_syslog+set}" = set; then
2229   enableval="$enable_syslog"
2230
2231         ol_arg=invalid
2232         for ol_val in auto yes no ; do
2233                 if test "$enableval" = "$ol_val" ; then
2234                         ol_arg="$ol_val"
2235                 fi
2236         done
2237         if test "$ol_arg" = "invalid" ; then
2238                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2239 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2240    { (exit 1); exit 1; }; }
2241         fi
2242         ol_enable_syslog="$ol_arg"
2243
2244 else
2245         ol_enable_syslog=auto
2246 fi;
2247 # end --enable-syslog
2248 # OpenLDAP --enable-proctitle
2249
2250         # Check whether --enable-proctitle or --disable-proctitle was given.
2251 if test "${enable_proctitle+set}" = set; then
2252   enableval="$enable_proctitle"
2253
2254         ol_arg=invalid
2255         for ol_val in auto yes no ; do
2256                 if test "$enableval" = "$ol_val" ; then
2257                         ol_arg="$ol_val"
2258                 fi
2259         done
2260         if test "$ol_arg" = "invalid" ; then
2261                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2262 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2263    { (exit 1); exit 1; }; }
2264         fi
2265         ol_enable_proctitle="$ol_arg"
2266
2267 else
2268         ol_enable_proctitle=yes
2269 fi;
2270 # end --enable-proctitle
2271 ol_enable_referrals=${ol_enable_referrals-no}
2272 # OpenLDAP --enable-ipv6
2273
2274         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2275 if test "${enable_ipv6+set}" = set; then
2276   enableval="$enable_ipv6"
2277
2278         ol_arg=invalid
2279         for ol_val in auto yes no ; do
2280                 if test "$enableval" = "$ol_val" ; then
2281                         ol_arg="$ol_val"
2282                 fi
2283         done
2284         if test "$ol_arg" = "invalid" ; then
2285                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2286 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2287    { (exit 1); exit 1; }; }
2288         fi
2289         ol_enable_ipv6="$ol_arg"
2290
2291 else
2292         ol_enable_ipv6=auto
2293 fi;
2294 # end --enable-ipv6
2295 # OpenLDAP --enable-local
2296
2297         # Check whether --enable-local or --disable-local was given.
2298 if test "${enable_local+set}" = set; then
2299   enableval="$enable_local"
2300
2301         ol_arg=invalid
2302         for ol_val in auto yes no ; do
2303                 if test "$enableval" = "$ol_val" ; then
2304                         ol_arg="$ol_val"
2305                 fi
2306         done
2307         if test "$ol_arg" = "invalid" ; then
2308                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2309 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2310    { (exit 1); exit 1; }; }
2311         fi
2312         ol_enable_local="$ol_arg"
2313
2314 else
2315         ol_enable_local=auto
2316 fi;
2317 # end --enable-local
2318
2319 # OpenLDAP --with-cyrus_sasl
2320
2321 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2322 if test "${with_cyrus_sasl+set}" = set; then
2323   withval="$with_cyrus_sasl"
2324
2325         ol_arg=invalid
2326         for ol_val in auto yes no  ; do
2327                 if test "$withval" = "$ol_val" ; then
2328                         ol_arg="$ol_val"
2329                 fi
2330         done
2331         if test "$ol_arg" = "invalid" ; then
2332                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2333 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2334    { (exit 1); exit 1; }; }
2335         fi
2336         ol_with_cyrus_sasl="$ol_arg"
2337
2338 else
2339         ol_with_cyrus_sasl="auto"
2340 fi; # end --with-cyrus_sasl
2341
2342 # OpenLDAP --with-fetch
2343
2344 # Check whether --with-fetch or --without-fetch was given.
2345 if test "${with_fetch+set}" = set; then
2346   withval="$with_fetch"
2347
2348         ol_arg=invalid
2349         for ol_val in auto yes no  ; do
2350                 if test "$withval" = "$ol_val" ; then
2351                         ol_arg="$ol_val"
2352                 fi
2353         done
2354         if test "$ol_arg" = "invalid" ; then
2355                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2356 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2357    { (exit 1); exit 1; }; }
2358         fi
2359         ol_with_fetch="$ol_arg"
2360
2361 else
2362         ol_with_fetch="auto"
2363 fi; # end --with-fetch
2364
2365 # OpenLDAP --with-gssapi
2366
2367 # Check whether --with-gssapi or --without-gssapi was given.
2368 if test "${with_gssapi+set}" = set; then
2369   withval="$with_gssapi"
2370
2371         ol_arg=invalid
2372         for ol_val in auto yes no  ; do
2373                 if test "$withval" = "$ol_val" ; then
2374                         ol_arg="$ol_val"
2375                 fi
2376         done
2377         if test "$ol_arg" = "invalid" ; then
2378                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-gssapi" >&5
2379 echo "$as_me: error: bad value $withval for --with-gssapi" >&2;}
2380    { (exit 1); exit 1; }; }
2381         fi
2382         ol_with_gssapi="$ol_arg"
2383
2384 else
2385         ol_with_gssapi="auto"
2386 fi; # end --with-gssapi
2387
2388 # OpenLDAP --with-threads
2389
2390 # Check whether --with-threads or --without-threads was given.
2391 if test "${with_threads+set}" = set; then
2392   withval="$with_threads"
2393
2394         ol_arg=invalid
2395         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2396                 if test "$withval" = "$ol_val" ; then
2397                         ol_arg="$ol_val"
2398                 fi
2399         done
2400         if test "$ol_arg" = "invalid" ; then
2401                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2402 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2403    { (exit 1); exit 1; }; }
2404         fi
2405         ol_with_threads="$ol_arg"
2406
2407 else
2408         ol_with_threads="auto"
2409 fi; # end --with-threads
2410
2411 # OpenLDAP --with-tls
2412
2413 # Check whether --with-tls or --without-tls was given.
2414 if test "${with_tls+set}" = set; then
2415   withval="$with_tls"
2416
2417         ol_arg=invalid
2418         for ol_val in auto openssl gnutls yes no  ; do
2419                 if test "$withval" = "$ol_val" ; then
2420                         ol_arg="$ol_val"
2421                 fi
2422         done
2423         if test "$ol_arg" = "invalid" ; then
2424                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2425 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2426    { (exit 1); exit 1; }; }
2427         fi
2428         ol_with_tls="$ol_arg"
2429
2430 else
2431         ol_with_tls="auto"
2432 fi; # end --with-tls
2433
2434 # OpenLDAP --with-yielding_select
2435
2436 # Check whether --with-yielding_select or --without-yielding_select was given.
2437 if test "${with_yielding_select+set}" = set; then
2438   withval="$with_yielding_select"
2439
2440         ol_arg=invalid
2441         for ol_val in auto yes no manual  ; do
2442                 if test "$withval" = "$ol_val" ; then
2443                         ol_arg="$ol_val"
2444                 fi
2445         done
2446         if test "$ol_arg" = "invalid" ; then
2447                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2448 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2449    { (exit 1); exit 1; }; }
2450         fi
2451         ol_with_yielding_select="$ol_arg"
2452
2453 else
2454         ol_with_yielding_select="auto"
2455 fi; # end --with-yielding_select
2456
2457 # OpenLDAP --with-mp
2458
2459 # Check whether --with-mp or --without-mp was given.
2460 if test "${with_mp+set}" = set; then
2461   withval="$with_mp"
2462
2463         ol_arg=invalid
2464         for ol_val in auto longlong long bignum gmp yes no ; do
2465                 if test "$withval" = "$ol_val" ; then
2466                         ol_arg="$ol_val"
2467                 fi
2468         done
2469         if test "$ol_arg" = "invalid" ; then
2470                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2471 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2472    { (exit 1); exit 1; }; }
2473         fi
2474         ol_with_mp="$ol_arg"
2475
2476 else
2477         ol_with_mp="auto"
2478 fi; # end --with-mp
2479
2480 # OpenLDAP --with-odbc
2481
2482 # Check whether --with-odbc or --without-odbc was given.
2483 if test "${with_odbc+set}" = set; then
2484   withval="$with_odbc"
2485
2486         ol_arg=invalid
2487         for ol_val in auto iodbc unixodbc odbc32  ; do
2488                 if test "$withval" = "$ol_val" ; then
2489                         ol_arg="$ol_val"
2490                 fi
2491         done
2492         if test "$ol_arg" = "invalid" ; then
2493                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2494 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2495    { (exit 1); exit 1; }; }
2496         fi
2497         ol_with_odbc="$ol_arg"
2498
2499 else
2500         ol_with_odbc="auto"
2501 fi; # end --with-odbc
2502
2503
2504
2505 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2506 if test "${enable_xxslapdoptions+set}" = set; then
2507   enableval="$enable_xxslapdoptions"
2508
2509 fi;
2510 # OpenLDAP --enable-slapd
2511
2512         # Check whether --enable-slapd or --disable-slapd was given.
2513 if test "${enable_slapd+set}" = set; then
2514   enableval="$enable_slapd"
2515
2516         ol_arg=invalid
2517         for ol_val in auto yes no ; do
2518                 if test "$enableval" = "$ol_val" ; then
2519                         ol_arg="$ol_val"
2520                 fi
2521         done
2522         if test "$ol_arg" = "invalid" ; then
2523                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2524 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2525    { (exit 1); exit 1; }; }
2526         fi
2527         ol_enable_slapd="$ol_arg"
2528
2529 else
2530         ol_enable_slapd=yes
2531 fi;
2532 # end --enable-slapd
2533 # OpenLDAP --enable-dynacl
2534
2535         # Check whether --enable-dynacl or --disable-dynacl was given.
2536 if test "${enable_dynacl+set}" = set; then
2537   enableval="$enable_dynacl"
2538
2539         ol_arg=invalid
2540         for ol_val in auto yes no ; do
2541                 if test "$enableval" = "$ol_val" ; then
2542                         ol_arg="$ol_val"
2543                 fi
2544         done
2545         if test "$ol_arg" = "invalid" ; then
2546                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2547 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2548    { (exit 1); exit 1; }; }
2549         fi
2550         ol_enable_dynacl="$ol_arg"
2551
2552 else
2553         ol_enable_dynacl=no
2554 fi;
2555 # end --enable-dynacl
2556 # OpenLDAP --enable-aci
2557
2558         # Check whether --enable-aci or --disable-aci was given.
2559 if test "${enable_aci+set}" = set; then
2560   enableval="$enable_aci"
2561
2562         ol_arg=invalid
2563         for ol_val in no yes mod ; do
2564                 if test "$enableval" = "$ol_val" ; then
2565                         ol_arg="$ol_val"
2566                 fi
2567         done
2568         if test "$ol_arg" = "invalid" ; then
2569                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2570 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2571    { (exit 1); exit 1; }; }
2572         fi
2573         ol_enable_aci="$ol_arg"
2574
2575 else
2576         ol_enable_aci=no
2577 fi;
2578 # end --enable-aci
2579 # OpenLDAP --enable-cleartext
2580
2581         # Check whether --enable-cleartext or --disable-cleartext was given.
2582 if test "${enable_cleartext+set}" = set; then
2583   enableval="$enable_cleartext"
2584
2585         ol_arg=invalid
2586         for ol_val in auto yes no ; do
2587                 if test "$enableval" = "$ol_val" ; then
2588                         ol_arg="$ol_val"
2589                 fi
2590         done
2591         if test "$ol_arg" = "invalid" ; then
2592                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2593 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2594    { (exit 1); exit 1; }; }
2595         fi
2596         ol_enable_cleartext="$ol_arg"
2597
2598 else
2599         ol_enable_cleartext=yes
2600 fi;
2601 # end --enable-cleartext
2602 # OpenLDAP --enable-crypt
2603
2604         # Check whether --enable-crypt or --disable-crypt was given.
2605 if test "${enable_crypt+set}" = set; then
2606   enableval="$enable_crypt"
2607
2608         ol_arg=invalid
2609         for ol_val in auto yes no ; do
2610                 if test "$enableval" = "$ol_val" ; then
2611                         ol_arg="$ol_val"
2612                 fi
2613         done
2614         if test "$ol_arg" = "invalid" ; then
2615                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2616 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2617    { (exit 1); exit 1; }; }
2618         fi
2619         ol_enable_crypt="$ol_arg"
2620
2621 else
2622         ol_enable_crypt=no
2623 fi;
2624 # end --enable-crypt
2625 # OpenLDAP --enable-lmpasswd
2626
2627         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2628 if test "${enable_lmpasswd+set}" = set; then
2629   enableval="$enable_lmpasswd"
2630
2631         ol_arg=invalid
2632         for ol_val in auto yes no ; do
2633                 if test "$enableval" = "$ol_val" ; then
2634                         ol_arg="$ol_val"
2635                 fi
2636         done
2637         if test "$ol_arg" = "invalid" ; then
2638                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2639 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2640    { (exit 1); exit 1; }; }
2641         fi
2642         ol_enable_lmpasswd="$ol_arg"
2643
2644 else
2645         ol_enable_lmpasswd=no
2646 fi;
2647 # end --enable-lmpasswd
2648 # OpenLDAP --enable-spasswd
2649
2650         # Check whether --enable-spasswd or --disable-spasswd was given.
2651 if test "${enable_spasswd+set}" = set; then
2652   enableval="$enable_spasswd"
2653
2654         ol_arg=invalid
2655         for ol_val in auto yes no ; do
2656                 if test "$enableval" = "$ol_val" ; then
2657                         ol_arg="$ol_val"
2658                 fi
2659         done
2660         if test "$ol_arg" = "invalid" ; then
2661                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2662 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2663    { (exit 1); exit 1; }; }
2664         fi
2665         ol_enable_spasswd="$ol_arg"
2666
2667 else
2668         ol_enable_spasswd=no
2669 fi;
2670 # end --enable-spasswd
2671 # OpenLDAP --enable-modules
2672
2673         # Check whether --enable-modules or --disable-modules was given.
2674 if test "${enable_modules+set}" = set; then
2675   enableval="$enable_modules"
2676
2677         ol_arg=invalid
2678         for ol_val in auto yes no ; do
2679                 if test "$enableval" = "$ol_val" ; then
2680                         ol_arg="$ol_val"
2681                 fi
2682         done
2683         if test "$ol_arg" = "invalid" ; then
2684                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2685 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2686    { (exit 1); exit 1; }; }
2687         fi
2688         ol_enable_modules="$ol_arg"
2689
2690 else
2691         ol_enable_modules=no
2692 fi;
2693 # end --enable-modules
2694 # OpenLDAP --enable-rewrite
2695
2696         # Check whether --enable-rewrite or --disable-rewrite was given.
2697 if test "${enable_rewrite+set}" = set; then
2698   enableval="$enable_rewrite"
2699
2700         ol_arg=invalid
2701         for ol_val in auto yes no ; do
2702                 if test "$enableval" = "$ol_val" ; then
2703                         ol_arg="$ol_val"
2704                 fi
2705         done
2706         if test "$ol_arg" = "invalid" ; then
2707                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2708 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2709    { (exit 1); exit 1; }; }
2710         fi
2711         ol_enable_rewrite="$ol_arg"
2712
2713 else
2714         ol_enable_rewrite=auto
2715 fi;
2716 # end --enable-rewrite
2717 # OpenLDAP --enable-rlookups
2718
2719         # Check whether --enable-rlookups or --disable-rlookups was given.
2720 if test "${enable_rlookups+set}" = set; then
2721   enableval="$enable_rlookups"
2722
2723         ol_arg=invalid
2724         for ol_val in auto yes no ; do
2725                 if test "$enableval" = "$ol_val" ; then
2726                         ol_arg="$ol_val"
2727                 fi
2728         done
2729         if test "$ol_arg" = "invalid" ; then
2730                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2731 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2732    { (exit 1); exit 1; }; }
2733         fi
2734         ol_enable_rlookups="$ol_arg"
2735
2736 else
2737         ol_enable_rlookups=no
2738 fi;
2739 # end --enable-rlookups
2740 # OpenLDAP --enable-slapi
2741
2742         # Check whether --enable-slapi or --disable-slapi was given.
2743 if test "${enable_slapi+set}" = set; then
2744   enableval="$enable_slapi"
2745
2746         ol_arg=invalid
2747         for ol_val in auto yes no ; do
2748                 if test "$enableval" = "$ol_val" ; then
2749                         ol_arg="$ol_val"
2750                 fi
2751         done
2752         if test "$ol_arg" = "invalid" ; then
2753                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2754 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2755    { (exit 1); exit 1; }; }
2756         fi
2757         ol_enable_slapi="$ol_arg"
2758
2759 else
2760         ol_enable_slapi=no
2761 fi;
2762 # end --enable-slapi
2763 # OpenLDAP --enable-slp
2764
2765         # Check whether --enable-slp or --disable-slp was given.
2766 if test "${enable_slp+set}" = set; then
2767   enableval="$enable_slp"
2768
2769         ol_arg=invalid
2770         for ol_val in auto yes no ; do
2771                 if test "$enableval" = "$ol_val" ; then
2772                         ol_arg="$ol_val"
2773                 fi
2774         done
2775         if test "$ol_arg" = "invalid" ; then
2776                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2777 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2778    { (exit 1); exit 1; }; }
2779         fi
2780         ol_enable_slp="$ol_arg"
2781
2782 else
2783         ol_enable_slp=no
2784 fi;
2785 # end --enable-slp
2786 # OpenLDAP --enable-wrappers
2787
2788         # Check whether --enable-wrappers or --disable-wrappers was given.
2789 if test "${enable_wrappers+set}" = set; then
2790   enableval="$enable_wrappers"
2791
2792         ol_arg=invalid
2793         for ol_val in auto yes no ; do
2794                 if test "$enableval" = "$ol_val" ; then
2795                         ol_arg="$ol_val"
2796                 fi
2797         done
2798         if test "$ol_arg" = "invalid" ; then
2799                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2800 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2801    { (exit 1); exit 1; }; }
2802         fi
2803         ol_enable_wrappers="$ol_arg"
2804
2805 else
2806         ol_enable_wrappers=no
2807 fi;
2808 # end --enable-wrappers
2809
2810 Backends="bdb \
2811         dnssrv \
2812         hdb \
2813         ldap \
2814         meta \
2815         monitor \
2816         ndb \
2817         null \
2818         passwd \
2819         perl \
2820         relay \
2821         shell \
2822         sock \
2823         sql"
2824
2825 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2826 if test "${enable_xxslapbackends+set}" = set; then
2827   enableval="$enable_xxslapbackends"
2828
2829 fi;
2830
2831 # OpenLDAP --enable-backends
2832
2833         # Check whether --enable-backends or --disable-backends was given.
2834 if test "${enable_backends+set}" = set; then
2835   enableval="$enable_backends"
2836
2837         ol_arg=invalid
2838         for ol_val in no yes mod ; do
2839                 if test "$enableval" = "$ol_val" ; then
2840                         ol_arg="$ol_val"
2841                 fi
2842         done
2843         if test "$ol_arg" = "invalid" ; then
2844                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2845 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2846    { (exit 1); exit 1; }; }
2847         fi
2848         ol_enable_backends="$ol_arg"
2849
2850 fi;
2851 # end --enable-backends
2852 # OpenLDAP --enable-bdb
2853
2854         # Check whether --enable-bdb or --disable-bdb was given.
2855 if test "${enable_bdb+set}" = set; then
2856   enableval="$enable_bdb"
2857
2858         ol_arg=invalid
2859         for ol_val in no yes mod ; do
2860                 if test "$enableval" = "$ol_val" ; then
2861                         ol_arg="$ol_val"
2862                 fi
2863         done
2864         if test "$ol_arg" = "invalid" ; then
2865                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2866 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2867    { (exit 1); exit 1; }; }
2868         fi
2869         ol_enable_bdb="$ol_arg"
2870
2871 else
2872         ol_enable_bdb=${ol_enable_backends:-no}
2873 fi;
2874 # end --enable-bdb
2875 # OpenLDAP --enable-dnssrv
2876
2877         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2878 if test "${enable_dnssrv+set}" = set; then
2879   enableval="$enable_dnssrv"
2880
2881         ol_arg=invalid
2882         for ol_val in no yes mod ; do
2883                 if test "$enableval" = "$ol_val" ; then
2884                         ol_arg="$ol_val"
2885                 fi
2886         done
2887         if test "$ol_arg" = "invalid" ; then
2888                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2889 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2890    { (exit 1); exit 1; }; }
2891         fi
2892         ol_enable_dnssrv="$ol_arg"
2893
2894 else
2895         ol_enable_dnssrv=${ol_enable_backends:-no}
2896 fi;
2897 # end --enable-dnssrv
2898 # OpenLDAP --enable-hdb
2899
2900         # Check whether --enable-hdb or --disable-hdb was given.
2901 if test "${enable_hdb+set}" = set; then
2902   enableval="$enable_hdb"
2903
2904         ol_arg=invalid
2905         for ol_val in no yes mod ; do
2906                 if test "$enableval" = "$ol_val" ; then
2907                         ol_arg="$ol_val"
2908                 fi
2909         done
2910         if test "$ol_arg" = "invalid" ; then
2911                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2912 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2913    { (exit 1); exit 1; }; }
2914         fi
2915         ol_enable_hdb="$ol_arg"
2916
2917 else
2918         ol_enable_hdb=${ol_enable_backends:-yes}
2919 fi;
2920 # end --enable-hdb
2921 # OpenLDAP --enable-ldap
2922
2923         # Check whether --enable-ldap or --disable-ldap was given.
2924 if test "${enable_ldap+set}" = set; then
2925   enableval="$enable_ldap"
2926
2927         ol_arg=invalid
2928         for ol_val in no yes mod ; do
2929                 if test "$enableval" = "$ol_val" ; then
2930                         ol_arg="$ol_val"
2931                 fi
2932         done
2933         if test "$ol_arg" = "invalid" ; then
2934                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2935 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2936    { (exit 1); exit 1; }; }
2937         fi
2938         ol_enable_ldap="$ol_arg"
2939
2940 else
2941         ol_enable_ldap=${ol_enable_backends:-no}
2942 fi;
2943 # end --enable-ldap
2944 # OpenLDAP --enable-meta
2945
2946         # Check whether --enable-meta or --disable-meta was given.
2947 if test "${enable_meta+set}" = set; then
2948   enableval="$enable_meta"
2949
2950         ol_arg=invalid
2951         for ol_val in no yes mod ; do
2952                 if test "$enableval" = "$ol_val" ; then
2953                         ol_arg="$ol_val"
2954                 fi
2955         done
2956         if test "$ol_arg" = "invalid" ; then
2957                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2958 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2959    { (exit 1); exit 1; }; }
2960         fi
2961         ol_enable_meta="$ol_arg"
2962
2963 else
2964         ol_enable_meta=${ol_enable_backends:-no}
2965 fi;
2966 # end --enable-meta
2967 # OpenLDAP --enable-monitor
2968
2969         # Check whether --enable-monitor or --disable-monitor was given.
2970 if test "${enable_monitor+set}" = set; then
2971   enableval="$enable_monitor"
2972
2973         ol_arg=invalid
2974         for ol_val in no yes mod ; do
2975                 if test "$enableval" = "$ol_val" ; then
2976                         ol_arg="$ol_val"
2977                 fi
2978         done
2979         if test "$ol_arg" = "invalid" ; then
2980                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2981 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2982    { (exit 1); exit 1; }; }
2983         fi
2984         ol_enable_monitor="$ol_arg"
2985
2986 else
2987         ol_enable_monitor=${ol_enable_backends:-yes}
2988 fi;
2989 # end --enable-monitor
2990 # OpenLDAP --enable-ndb
2991
2992         # Check whether --enable-ndb or --disable-ndb was given.
2993 if test "${enable_ndb+set}" = set; then
2994   enableval="$enable_ndb"
2995
2996         ol_arg=invalid
2997         for ol_val in no yes mod ; do
2998                 if test "$enableval" = "$ol_val" ; then
2999                         ol_arg="$ol_val"
3000                 fi
3001         done
3002         if test "$ol_arg" = "invalid" ; then
3003                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3004 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3005    { (exit 1); exit 1; }; }
3006         fi
3007         ol_enable_ndb="$ol_arg"
3008
3009 else
3010         ol_enable_ndb=${ol_enable_backends:-no}
3011 fi;
3012 # end --enable-ndb
3013 # OpenLDAP --enable-null
3014
3015         # Check whether --enable-null or --disable-null was given.
3016 if test "${enable_null+set}" = set; then
3017   enableval="$enable_null"
3018
3019         ol_arg=invalid
3020         for ol_val in no yes mod ; do
3021                 if test "$enableval" = "$ol_val" ; then
3022                         ol_arg="$ol_val"
3023                 fi
3024         done
3025         if test "$ol_arg" = "invalid" ; then
3026                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3027 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3028    { (exit 1); exit 1; }; }
3029         fi
3030         ol_enable_null="$ol_arg"
3031
3032 else
3033         ol_enable_null=${ol_enable_backends:-no}
3034 fi;
3035 # end --enable-null
3036 # OpenLDAP --enable-passwd
3037
3038         # Check whether --enable-passwd or --disable-passwd was given.
3039 if test "${enable_passwd+set}" = set; then
3040   enableval="$enable_passwd"
3041
3042         ol_arg=invalid
3043         for ol_val in no yes mod ; do
3044                 if test "$enableval" = "$ol_val" ; then
3045                         ol_arg="$ol_val"
3046                 fi
3047         done
3048         if test "$ol_arg" = "invalid" ; then
3049                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3050 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3051    { (exit 1); exit 1; }; }
3052         fi
3053         ol_enable_passwd="$ol_arg"
3054
3055 else
3056         ol_enable_passwd=${ol_enable_backends:-no}
3057 fi;
3058 # end --enable-passwd
3059 # OpenLDAP --enable-perl
3060
3061         # Check whether --enable-perl or --disable-perl was given.
3062 if test "${enable_perl+set}" = set; then
3063   enableval="$enable_perl"
3064
3065         ol_arg=invalid
3066         for ol_val in no yes mod ; do
3067                 if test "$enableval" = "$ol_val" ; then
3068                         ol_arg="$ol_val"
3069                 fi
3070         done
3071         if test "$ol_arg" = "invalid" ; then
3072                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3073 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3074    { (exit 1); exit 1; }; }
3075         fi
3076         ol_enable_perl="$ol_arg"
3077
3078 else
3079         ol_enable_perl=${ol_enable_backends:-no}
3080 fi;
3081 # end --enable-perl
3082 # OpenLDAP --enable-relay
3083
3084         # Check whether --enable-relay or --disable-relay was given.
3085 if test "${enable_relay+set}" = set; then
3086   enableval="$enable_relay"
3087
3088         ol_arg=invalid
3089         for ol_val in no yes mod ; do
3090                 if test "$enableval" = "$ol_val" ; then
3091                         ol_arg="$ol_val"
3092                 fi
3093         done
3094         if test "$ol_arg" = "invalid" ; then
3095                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3096 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3097    { (exit 1); exit 1; }; }
3098         fi
3099         ol_enable_relay="$ol_arg"
3100
3101 else
3102         ol_enable_relay=${ol_enable_backends:-yes}
3103 fi;
3104 # end --enable-relay
3105 # OpenLDAP --enable-shell
3106
3107         # Check whether --enable-shell or --disable-shell was given.
3108 if test "${enable_shell+set}" = set; then
3109   enableval="$enable_shell"
3110
3111         ol_arg=invalid
3112         for ol_val in no yes mod ; do
3113                 if test "$enableval" = "$ol_val" ; then
3114                         ol_arg="$ol_val"
3115                 fi
3116         done
3117         if test "$ol_arg" = "invalid" ; then
3118                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3119 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3120    { (exit 1); exit 1; }; }
3121         fi
3122         ol_enable_shell="$ol_arg"
3123
3124 else
3125         ol_enable_shell=${ol_enable_backends:-no}
3126 fi;
3127 # end --enable-shell
3128 # OpenLDAP --enable-sock
3129
3130         # Check whether --enable-sock or --disable-sock was given.
3131 if test "${enable_sock+set}" = set; then
3132   enableval="$enable_sock"
3133
3134         ol_arg=invalid
3135         for ol_val in no yes mod ; do
3136                 if test "$enableval" = "$ol_val" ; then
3137                         ol_arg="$ol_val"
3138                 fi
3139         done
3140         if test "$ol_arg" = "invalid" ; then
3141                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3142 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3143    { (exit 1); exit 1; }; }
3144         fi
3145         ol_enable_sock="$ol_arg"
3146
3147 else
3148         ol_enable_sock=${ol_enable_backends:-no}
3149 fi;
3150 # end --enable-sock
3151 # OpenLDAP --enable-sql
3152
3153         # Check whether --enable-sql or --disable-sql was given.
3154 if test "${enable_sql+set}" = set; then
3155   enableval="$enable_sql"
3156
3157         ol_arg=invalid
3158         for ol_val in no yes mod ; do
3159                 if test "$enableval" = "$ol_val" ; then
3160                         ol_arg="$ol_val"
3161                 fi
3162         done
3163         if test "$ol_arg" = "invalid" ; then
3164                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3165 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3166    { (exit 1); exit 1; }; }
3167         fi
3168         ol_enable_sql="$ol_arg"
3169
3170 else
3171         ol_enable_sql=${ol_enable_backends:-no}
3172 fi;
3173 # end --enable-sql
3174
3175 Overlays="accesslog \
3176         auditlog \
3177         collect \
3178         constraint \
3179         dds \
3180         deref \
3181         dyngroup \
3182         dynlist \
3183         memberof \
3184         ppolicy \
3185         proxycache \
3186         refint \
3187         retcode \
3188         rwm \
3189         seqmod \
3190         syncprov \
3191         translucent \
3192         unique \
3193         valsort"
3194
3195 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3196 if test "${enable_xxslapoverlays+set}" = set; then
3197   enableval="$enable_xxslapoverlays"
3198
3199 fi;
3200
3201 # OpenLDAP --enable-overlays
3202
3203         # Check whether --enable-overlays or --disable-overlays was given.
3204 if test "${enable_overlays+set}" = set; then
3205   enableval="$enable_overlays"
3206
3207         ol_arg=invalid
3208         for ol_val in no yes mod ; do
3209                 if test "$enableval" = "$ol_val" ; then
3210                         ol_arg="$ol_val"
3211                 fi
3212         done
3213         if test "$ol_arg" = "invalid" ; then
3214                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3215 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3216    { (exit 1); exit 1; }; }
3217         fi
3218         ol_enable_overlays="$ol_arg"
3219
3220 fi;
3221 # end --enable-overlays
3222 # OpenLDAP --enable-accesslog
3223
3224         # Check whether --enable-accesslog or --disable-accesslog was given.
3225 if test "${enable_accesslog+set}" = set; then
3226   enableval="$enable_accesslog"
3227
3228         ol_arg=invalid
3229         for ol_val in no yes mod ; do
3230                 if test "$enableval" = "$ol_val" ; then
3231                         ol_arg="$ol_val"
3232                 fi
3233         done
3234         if test "$ol_arg" = "invalid" ; then
3235                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3236 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3237    { (exit 1); exit 1; }; }
3238         fi
3239         ol_enable_accesslog="$ol_arg"
3240
3241 else
3242         ol_enable_accesslog=${ol_enable_overlays:-no}
3243 fi;
3244 # end --enable-accesslog
3245
3246 # OpenLDAP --enable-auditlog
3247
3248         # Check whether --enable-auditlog or --disable-auditlog was given.
3249 if test "${enable_auditlog+set}" = set; then
3250   enableval="$enable_auditlog"
3251
3252         ol_arg=invalid
3253         for ol_val in no yes mod ; do
3254                 if test "$enableval" = "$ol_val" ; then
3255                         ol_arg="$ol_val"
3256                 fi
3257         done
3258         if test "$ol_arg" = "invalid" ; then
3259                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3260 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3261    { (exit 1); exit 1; }; }
3262         fi
3263         ol_enable_auditlog="$ol_arg"
3264
3265 else
3266         ol_enable_auditlog=${ol_enable_overlays:-no}
3267 fi;
3268 # end --enable-auditlog
3269
3270 # OpenLDAP --enable-collect
3271
3272         # Check whether --enable-collect or --disable-collect was given.
3273 if test "${enable_collect+set}" = set; then
3274   enableval="$enable_collect"
3275
3276         ol_arg=invalid
3277         for ol_val in no yes mod ; do
3278                 if test "$enableval" = "$ol_val" ; then
3279                         ol_arg="$ol_val"
3280                 fi
3281         done
3282         if test "$ol_arg" = "invalid" ; then
3283                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3284 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3285    { (exit 1); exit 1; }; }
3286         fi
3287         ol_enable_collect="$ol_arg"
3288
3289 else
3290         ol_enable_collect=${ol_enable_overlays:-no}
3291 fi;
3292 # end --enable-collect
3293
3294 # OpenLDAP --enable-constraint
3295
3296         # Check whether --enable-constraint or --disable-constraint was given.
3297 if test "${enable_constraint+set}" = set; then
3298   enableval="$enable_constraint"
3299
3300         ol_arg=invalid
3301         for ol_val in no yes mod ; do
3302                 if test "$enableval" = "$ol_val" ; then
3303                         ol_arg="$ol_val"
3304                 fi
3305         done
3306         if test "$ol_arg" = "invalid" ; then
3307                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3308 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3309    { (exit 1); exit 1; }; }
3310         fi
3311         ol_enable_constraint="$ol_arg"
3312
3313 else
3314         ol_enable_constraint=${ol_enable_overlays:-no}
3315 fi;
3316 # end --enable-constraint
3317
3318 # OpenLDAP --enable-dds
3319
3320         # Check whether --enable-dds or --disable-dds was given.
3321 if test "${enable_dds+set}" = set; then
3322   enableval="$enable_dds"
3323
3324         ol_arg=invalid
3325         for ol_val in no yes mod ; do
3326                 if test "$enableval" = "$ol_val" ; then
3327                         ol_arg="$ol_val"
3328                 fi
3329         done
3330         if test "$ol_arg" = "invalid" ; then
3331                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3332 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3333    { (exit 1); exit 1; }; }
3334         fi
3335         ol_enable_dds="$ol_arg"
3336
3337 else
3338         ol_enable_dds=${ol_enable_overlays:-no}
3339 fi;
3340 # end --enable-dds
3341
3342 # OpenLDAP --enable-deref
3343
3344         # Check whether --enable-deref or --disable-deref was given.
3345 if test "${enable_deref+set}" = set; then
3346   enableval="$enable_deref"
3347
3348         ol_arg=invalid
3349         for ol_val in no yes mod ; do
3350                 if test "$enableval" = "$ol_val" ; then
3351                         ol_arg="$ol_val"
3352                 fi
3353         done
3354         if test "$ol_arg" = "invalid" ; then
3355                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3356 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3357    { (exit 1); exit 1; }; }
3358         fi
3359         ol_enable_deref="$ol_arg"
3360
3361 else
3362         ol_enable_deref=${ol_enable_overlays:-no}
3363 fi;
3364 # end --enable-deref
3365
3366 # OpenLDAP --enable-dyngroup
3367
3368         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3369 if test "${enable_dyngroup+set}" = set; then
3370   enableval="$enable_dyngroup"
3371
3372         ol_arg=invalid
3373         for ol_val in no yes mod ; do
3374                 if test "$enableval" = "$ol_val" ; then
3375                         ol_arg="$ol_val"
3376                 fi
3377         done
3378         if test "$ol_arg" = "invalid" ; then
3379                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3380 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3381    { (exit 1); exit 1; }; }
3382         fi
3383         ol_enable_dyngroup="$ol_arg"
3384
3385 else
3386         ol_enable_dyngroup=${ol_enable_overlays:-no}
3387 fi;
3388 # end --enable-dyngroup
3389
3390 # OpenLDAP --enable-dynlist
3391
3392         # Check whether --enable-dynlist or --disable-dynlist was given.
3393 if test "${enable_dynlist+set}" = set; then
3394   enableval="$enable_dynlist"
3395
3396         ol_arg=invalid
3397         for ol_val in no yes mod ; do
3398                 if test "$enableval" = "$ol_val" ; then
3399                         ol_arg="$ol_val"
3400                 fi
3401         done
3402         if test "$ol_arg" = "invalid" ; then
3403                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3404 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3405    { (exit 1); exit 1; }; }
3406         fi
3407         ol_enable_dynlist="$ol_arg"
3408
3409 else
3410         ol_enable_dynlist=${ol_enable_overlays:-no}
3411 fi;
3412 # end --enable-dynlist
3413
3414 # OpenLDAP --enable-memberof
3415
3416         # Check whether --enable-memberof or --disable-memberof was given.
3417 if test "${enable_memberof+set}" = set; then
3418   enableval="$enable_memberof"
3419
3420         ol_arg=invalid
3421         for ol_val in no yes mod ; do
3422                 if test "$enableval" = "$ol_val" ; then
3423                         ol_arg="$ol_val"
3424                 fi
3425         done
3426         if test "$ol_arg" = "invalid" ; then
3427                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3428 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3429    { (exit 1); exit 1; }; }
3430         fi
3431         ol_enable_memberof="$ol_arg"
3432
3433 else
3434         ol_enable_memberof=${ol_enable_overlays:-no}
3435 fi;
3436 # end --enable-memberof
3437
3438 # OpenLDAP --enable-ppolicy
3439
3440         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3441 if test "${enable_ppolicy+set}" = set; then
3442   enableval="$enable_ppolicy"
3443
3444         ol_arg=invalid
3445         for ol_val in no yes mod ; do
3446                 if test "$enableval" = "$ol_val" ; then
3447                         ol_arg="$ol_val"
3448                 fi
3449         done
3450         if test "$ol_arg" = "invalid" ; then
3451                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3452 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3453    { (exit 1); exit 1; }; }
3454         fi
3455         ol_enable_ppolicy="$ol_arg"
3456
3457 else
3458         ol_enable_ppolicy=${ol_enable_overlays:-no}
3459 fi;
3460 # end --enable-ppolicy
3461
3462 # OpenLDAP --enable-proxycache
3463
3464         # Check whether --enable-proxycache or --disable-proxycache was given.
3465 if test "${enable_proxycache+set}" = set; then
3466   enableval="$enable_proxycache"
3467
3468         ol_arg=invalid
3469         for ol_val in no yes mod ; do
3470                 if test "$enableval" = "$ol_val" ; then
3471                         ol_arg="$ol_val"
3472                 fi
3473         done
3474         if test "$ol_arg" = "invalid" ; then
3475                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3476 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3477    { (exit 1); exit 1; }; }
3478         fi
3479         ol_enable_proxycache="$ol_arg"
3480
3481 else
3482         ol_enable_proxycache=${ol_enable_overlays:-no}
3483 fi;
3484 # end --enable-proxycache
3485
3486 # OpenLDAP --enable-refint
3487
3488         # Check whether --enable-refint or --disable-refint was given.
3489 if test "${enable_refint+set}" = set; then
3490   enableval="$enable_refint"
3491
3492         ol_arg=invalid
3493         for ol_val in no yes mod ; do
3494                 if test "$enableval" = "$ol_val" ; then
3495                         ol_arg="$ol_val"
3496                 fi
3497         done
3498         if test "$ol_arg" = "invalid" ; then
3499                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3500 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3501    { (exit 1); exit 1; }; }
3502         fi
3503         ol_enable_refint="$ol_arg"
3504
3505 else
3506         ol_enable_refint=${ol_enable_overlays:-no}
3507 fi;
3508 # end --enable-refint
3509
3510 # OpenLDAP --enable-retcode
3511
3512         # Check whether --enable-retcode or --disable-retcode was given.
3513 if test "${enable_retcode+set}" = set; then
3514   enableval="$enable_retcode"
3515
3516         ol_arg=invalid
3517         for ol_val in no yes mod ; do
3518                 if test "$enableval" = "$ol_val" ; then
3519                         ol_arg="$ol_val"
3520                 fi
3521         done
3522         if test "$ol_arg" = "invalid" ; then
3523                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3524 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3525    { (exit 1); exit 1; }; }
3526         fi
3527         ol_enable_retcode="$ol_arg"
3528
3529 else
3530         ol_enable_retcode=${ol_enable_overlays:-no}
3531 fi;
3532 # end --enable-retcode
3533
3534 # OpenLDAP --enable-rwm
3535
3536         # Check whether --enable-rwm or --disable-rwm was given.
3537 if test "${enable_rwm+set}" = set; then
3538   enableval="$enable_rwm"
3539
3540         ol_arg=invalid
3541         for ol_val in no yes mod ; do
3542                 if test "$enableval" = "$ol_val" ; then
3543                         ol_arg="$ol_val"
3544                 fi
3545         done
3546         if test "$ol_arg" = "invalid" ; then
3547                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3548 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3549    { (exit 1); exit 1; }; }
3550         fi
3551         ol_enable_rwm="$ol_arg"
3552
3553 else
3554         ol_enable_rwm=${ol_enable_overlays:-no}
3555 fi;
3556 # end --enable-rwm
3557
3558 # OpenLDAP --enable-seqmod
3559
3560         # Check whether --enable-seqmod or --disable-seqmod was given.
3561 if test "${enable_seqmod+set}" = set; then
3562   enableval="$enable_seqmod"
3563
3564         ol_arg=invalid
3565         for ol_val in no yes mod ; do
3566                 if test "$enableval" = "$ol_val" ; then
3567                         ol_arg="$ol_val"
3568                 fi
3569         done
3570         if test "$ol_arg" = "invalid" ; then
3571                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3572 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3573    { (exit 1); exit 1; }; }
3574         fi
3575         ol_enable_seqmod="$ol_arg"
3576
3577 else
3578         ol_enable_seqmod=${ol_enable_overlays:-yes}
3579 fi;
3580 # end --enable-seqmod
3581
3582 # OpenLDAP --enable-syncprov
3583
3584         # Check whether --enable-syncprov or --disable-syncprov was given.
3585 if test "${enable_syncprov+set}" = set; then
3586   enableval="$enable_syncprov"
3587
3588         ol_arg=invalid
3589         for ol_val in no yes mod ; do
3590                 if test "$enableval" = "$ol_val" ; then
3591                         ol_arg="$ol_val"
3592                 fi
3593         done
3594         if test "$ol_arg" = "invalid" ; then
3595                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3596 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3597    { (exit 1); exit 1; }; }
3598         fi
3599         ol_enable_syncprov="$ol_arg"
3600
3601 else
3602         ol_enable_syncprov=${ol_enable_overlays:-yes}
3603 fi;
3604 # end --enable-syncprov
3605
3606 # OpenLDAP --enable-translucent
3607
3608         # Check whether --enable-translucent or --disable-translucent was given.
3609 if test "${enable_translucent+set}" = set; then
3610   enableval="$enable_translucent"
3611
3612         ol_arg=invalid
3613         for ol_val in no yes mod ; do
3614                 if test "$enableval" = "$ol_val" ; then
3615                         ol_arg="$ol_val"
3616                 fi
3617         done
3618         if test "$ol_arg" = "invalid" ; then
3619                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3620 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3621    { (exit 1); exit 1; }; }
3622         fi
3623         ol_enable_translucent="$ol_arg"
3624
3625 else
3626         ol_enable_translucent=${ol_enable_overlays:-no}
3627 fi;
3628 # end --enable-translucent
3629
3630 # OpenLDAP --enable-unique
3631
3632         # Check whether --enable-unique or --disable-unique was given.
3633 if test "${enable_unique+set}" = set; then
3634   enableval="$enable_unique"
3635
3636         ol_arg=invalid
3637         for ol_val in no yes mod ; do
3638                 if test "$enableval" = "$ol_val" ; then
3639                         ol_arg="$ol_val"
3640                 fi
3641         done
3642         if test "$ol_arg" = "invalid" ; then
3643                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3644 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3645    { (exit 1); exit 1; }; }
3646         fi
3647         ol_enable_unique="$ol_arg"
3648
3649 else
3650         ol_enable_unique=${ol_enable_overlays:-no}
3651 fi;
3652 # end --enable-unique
3653
3654 # OpenLDAP --enable-valsort
3655
3656         # Check whether --enable-valsort or --disable-valsort was given.
3657 if test "${enable_valsort+set}" = set; then
3658   enableval="$enable_valsort"
3659
3660         ol_arg=invalid
3661         for ol_val in no yes mod ; do
3662                 if test "$enableval" = "$ol_val" ; then
3663                         ol_arg="$ol_val"
3664                 fi
3665         done
3666         if test "$ol_arg" = "invalid" ; then
3667                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3668 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3669    { (exit 1); exit 1; }; }
3670         fi
3671         ol_enable_valsort="$ol_arg"
3672
3673 else
3674         ol_enable_valsort=${ol_enable_overlays:-no}
3675 fi;
3676 # end --enable-valsort
3677
3678
3679 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3680 if test "${enable_xxliboptions+set}" = set; then
3681   enableval="$enable_xxliboptions"
3682
3683 fi;
3684 # Check whether --enable-static or --disable-static was given.
3685 if test "${enable_static+set}" = set; then
3686   enableval="$enable_static"
3687   p=${PACKAGE-default}
3688     case $enableval in
3689     yes) enable_static=yes ;;
3690     no) enable_static=no ;;
3691     *)
3692      enable_static=no
3693       # Look at the argument we got.  We use all the common list separators.
3694       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3695       for pkg in $enableval; do
3696         IFS="$lt_save_ifs"
3697         if test "X$pkg" = "X$p"; then
3698           enable_static=yes
3699         fi
3700       done
3701       IFS="$lt_save_ifs"
3702       ;;
3703     esac
3704 else
3705   enable_static=yes
3706 fi;
3707
3708 # Check whether --enable-shared or --disable-shared was given.
3709 if test "${enable_shared+set}" = set; then
3710   enableval="$enable_shared"
3711   p=${PACKAGE-default}
3712     case $enableval in
3713     yes) enable_shared=yes ;;
3714     no) enable_shared=no ;;
3715     *)
3716       enable_shared=no
3717       # Look at the argument we got.  We use all the common list separators.
3718       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3719       for pkg in $enableval; do
3720         IFS="$lt_save_ifs"
3721         if test "X$pkg" = "X$p"; then
3722           enable_shared=yes
3723         fi
3724       done
3725       IFS="$lt_save_ifs"
3726       ;;
3727     esac
3728 else
3729   enable_shared=yes
3730 fi;
3731
3732
3733
3734 # validate options
3735 if test $ol_enable_slapd = no ; then
3736                 if test $ol_enable_slapi = yes ; then
3737                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3738 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3739         fi
3740         case "$ol_enable_backends" in yes | mod)
3741                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3742 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3743         esac
3744         for i in $Backends; do
3745                 eval "ol_tmp=\$ol_enable_$i"
3746                 if test $ol_tmp != no ; then
3747                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3748 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3749                         eval "ol_enable_$i=no"
3750                 fi
3751         done
3752         if test $ol_enable_modules = yes ; then
3753                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3754 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3755         fi
3756         if test $ol_enable_wrappers = yes ; then
3757                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3758 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3759         fi
3760         if test $ol_enable_rlookups = yes ; then
3761                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3762 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3763         fi
3764         if test $ol_enable_dynacl = yes ; then
3765                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3766 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3767         fi
3768         if test $ol_enable_aci != no ; then
3769                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3770 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3771         fi
3772         if test $ol_enable_rewrite = yes ; then
3773                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3774 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3775         fi
3776                 case "$ol_enable_overlays" in yes | mod)
3777                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3778 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3779         esac
3780         for i in $Overlays; do
3781                 eval "ol_tmp=\$ol_enable_$i"
3782                 if test $ol_tmp != no ; then
3783                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3784 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3785                         eval "ol_enable_$i=no"
3786                 fi
3787         done
3788
3789         # force settings to no
3790         ol_enable_slapi=no
3791
3792         ol_enable_backends=
3793         ol_enable_overlays=
3794         ol_enable_modules=no
3795         ol_enable_rlookups=no
3796         ol_enable_dynacl=no
3797         ol_enable_aci=no
3798         ol_enable_wrappers=no
3799
3800         ol_enable_rewrite=no
3801
3802 elif test $ol_enable_modules != yes &&
3803         test $ol_enable_bdb = no &&
3804         test $ol_enable_dnssrv = no &&
3805         test $ol_enable_hdb = no &&
3806         test $ol_enable_ldap = no &&
3807         test $ol_enable_meta = no &&
3808         test $ol_enable_monitor = no &&
3809         test $ol_enable_ndb = no &&
3810         test $ol_enable_null = no &&
3811         test $ol_enable_passwd = no &&
3812         test $ol_enable_perl = no &&
3813         test $ol_enable_relay = no &&
3814         test $ol_enable_shell = no &&
3815         test $ol_enable_sock = no &&
3816         test $ol_enable_sql = no ; then
3817
3818         if test $ol_enable_slapd = yes ; then
3819                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3820 echo "$as_me: error: slapd requires a backend" >&2;}
3821    { (exit 1); exit 1; }; }
3822         else
3823                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3824 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3825                 ol_enable_slapd=no
3826         fi
3827 fi
3828
3829 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3830         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3831 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3832    { (exit 1); exit 1; }; }
3833 fi
3834
3835 if test $ol_enable_lmpasswd = yes ; then
3836         if test $ol_with_tls = no ; then
3837                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3838 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3839    { (exit 1); exit 1; }; }
3840         fi
3841 fi
3842
3843 if test $ol_enable_spasswd = yes ; then
3844         if test $ol_with_cyrus_sasl = no ; then
3845                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3846 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3847    { (exit 1); exit 1; }; }
3848         fi
3849         ol_with_cyrus_sasl=yes
3850 fi
3851
3852 echo "$as_me:$LINENO: result: done" >&5
3853 echo "${ECHO_T}done" >&6
3854
3855 LDAP_LIBS=
3856 BDB_LIBS=
3857 SLAPD_NDB_LIBS=
3858 SLAPD_NDB_INCS=
3859 LTHREAD_LIBS=
3860 LUTIL_LIBS=
3861
3862 SLAPD_LIBS=
3863
3864 BUILD_SLAPD=no
3865
3866 BUILD_THREAD=no
3867
3868 BUILD_SLAPI=no
3869 SLAPD_SLAPI_DEPEND=
3870
3871 BUILD_BDB=no
3872 BUILD_DNSSRV=no
3873 BUILD_HDB=no
3874 BUILD_LDAP=no
3875 BUILD_META=no
3876 BUILD_MONITOR=no
3877 BUILD_NDB=no
3878 BUILD_NULL=no
3879 BUILD_PASSWD=no
3880 BUILD_PERL=no
3881 BUILD_RELAY=no
3882 BUILD_SHELL=no
3883 BUILD_SOCK=no
3884 BUILD_SQL=no
3885
3886 BUILD_ACCESSLOG=no
3887 BUILD_AUDITLOG=no
3888 BUILD_CONSTRAINT=no
3889 BUILD_DDS=no
3890 BUILD_DENYOP=no
3891 BUILD_DYNGROUP=no
3892 BUILD_DYNLIST=no
3893 BUILD_LASTMOD=no
3894 BUILD_MEMBEROF=no
3895 BUILD_PPOLICY=no
3896 BUILD_PROXYCACHE=no
3897 BUILD_REFINT=no
3898 BUILD_RETCODE=no
3899 BUILD_RWM=no
3900 BUILD_SEQMOD=no
3901 BUILD_SYNCPROV=no
3902 BUILD_TRANSLUCENT=no
3903 BUILD_UNIQUE=no
3904 BUILD_VALSORT=no
3905
3906 SLAPD_STATIC_OVERLAYS=
3907 SLAPD_DYNAMIC_OVERLAYS=
3908
3909 SLAPD_MODULES_LDFLAGS=
3910 SLAPD_MODULES_CPPFLAGS=
3911
3912 SLAPD_STATIC_BACKENDS=back-ldif
3913 SLAPD_DYNAMIC_BACKENDS=
3914
3915 SLAPD_PERL_LDFLAGS=
3916 MOD_PERL_LDFLAGS=
3917 PERL_CPPFLAGS=
3918
3919 SLAPD_SQL_LDFLAGS=
3920 SLAPD_SQL_LIBS=
3921 SLAPD_SQL_INCLUDES=
3922
3923 KRB4_LIBS=
3924 KRB5_LIBS=
3925 SASL_LIBS=
3926 GSSAPI_LIBS=
3927 TLS_LIBS=
3928 MODULES_LIBS=
3929 SLAPI_LIBS=
3930 LIBSLAPI=
3931 LIBSLAPITOOLS=
3932 AUTH_LIBS=
3933 ICU_LIBS=
3934
3935 SLAPD_SLP_LIBS=
3936 SLAPD_GMP_LIBS=
3937
3938
3939
3940 cat >>confdefs.h <<\_ACEOF
3941 #define HAVE_MKVERSION 1
3942 _ACEOF
3943
3944
3945
3946
3947 ol_aix_threads=no
3948 case "$target" in
3949 *-*-aix*)       if test -z "$CC" ; then
3950                 case "$ol_with_threads" in
3951                 auto | yes |  posix) ol_aix_threads=yes ;;
3952                 esac
3953         fi
3954 ;;
3955 esac
3956
3957 if test $ol_aix_threads = yes ; then
3958         if test -z "${CC}" ; then
3959                 for ac_prog in cc_r xlc_r cc
3960 do
3961   # Extract the first word of "$ac_prog", so it can be a program name with args.
3962 set dummy $ac_prog; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_CC+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   if test -n "$CC"; then
3969   ac_cv_prog_CC="$CC" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974   IFS=$as_save_IFS
3975   test -z "$as_dir" && as_dir=.
3976   for ac_exec_ext in '' $ac_executable_extensions; do
3977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978     ac_cv_prog_CC="$ac_prog"
3979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980     break 2
3981   fi
3982 done
3983 done
3984
3985 fi
3986 fi
3987 CC=$ac_cv_prog_CC
3988 if test -n "$CC"; then
3989   echo "$as_me:$LINENO: result: $CC" >&5
3990 echo "${ECHO_T}$CC" >&6
3991 else
3992   echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3994 fi
3995
3996   test -n "$CC" && break
3997 done
3998
3999
4000                 if test "$CC" = cc ; then
4001                                                 if test $ol_with_threads != auto ; then
4002                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4003 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4004    { (exit 1); exit 1; }; }
4005                         else
4006                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4007 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4008                         fi
4009                         ol_with_threads=no
4010                 fi
4011         fi
4012
4013         case ${CC} in cc_r | xlc_r)
4014                 ol_with_threads=posix
4015                 ol_cv_pthread_create=yes
4016                 ;;
4017         esac
4018 fi
4019
4020 if test -z "${CC}"; then
4021         for ac_prog in cc gcc
4022 do
4023   # Extract the first word of "$ac_prog", so it can be a program name with args.
4024 set dummy $ac_prog; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_CC+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   if test -n "$CC"; then
4031   ac_cv_prog_CC="$CC" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4035 do
4036   IFS=$as_save_IFS
4037   test -z "$as_dir" && as_dir=.
4038   for ac_exec_ext in '' $ac_executable_extensions; do
4039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040     ac_cv_prog_CC="$ac_prog"
4041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042     break 2
4043   fi
4044 done
4045 done
4046
4047 fi
4048 fi
4049 CC=$ac_cv_prog_CC
4050 if test -n "$CC"; then
4051   echo "$as_me:$LINENO: result: $CC" >&5
4052 echo "${ECHO_T}$CC" >&6
4053 else
4054   echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4056 fi
4057
4058   test -n "$CC" && break
4059 done
4060 test -n "$CC" || CC="missing"
4061
4062
4063         if test "${CC}" = "missing" ; then
4064                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4065 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4066    { (exit 1); exit 1; }; }
4067         fi
4068 fi
4069
4070 if test -z "${AR}"; then
4071         for ac_prog in ar gar
4072 do
4073   # Extract the first word of "$ac_prog", so it can be a program name with args.
4074 set dummy $ac_prog; ac_word=$2
4075 echo "$as_me:$LINENO: checking for $ac_word" >&5
4076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4077 if test "${ac_cv_prog_AR+set}" = set; then
4078   echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080   if test -n "$AR"; then
4081   ac_cv_prog_AR="$AR" # Let the user override the test.
4082 else
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH
4085 do
4086   IFS=$as_save_IFS
4087   test -z "$as_dir" && as_dir=.
4088   for ac_exec_ext in '' $ac_executable_extensions; do
4089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4090     ac_cv_prog_AR="$ac_prog"
4091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4092     break 2
4093   fi
4094 done
4095 done
4096
4097 fi
4098 fi
4099 AR=$ac_cv_prog_AR
4100 if test -n "$AR"; then
4101   echo "$as_me:$LINENO: result: $AR" >&5
4102 echo "${ECHO_T}$AR" >&6
4103 else
4104   echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4106 fi
4107
4108   test -n "$AR" && break
4109 done
4110 test -n "$AR" || AR="missing"
4111
4112
4113         if test "${AR}" = "missing" ; then
4114                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4115 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4116    { (exit 1); exit 1; }; }
4117         fi
4118 fi
4119
4120
4121
4122
4123
4124 # Check whether --enable-fast-install or --disable-fast-install was given.
4125 if test "${enable_fast_install+set}" = set; then
4126   enableval="$enable_fast_install"
4127   p=${PACKAGE-default}
4128     case $enableval in
4129     yes) enable_fast_install=yes ;;
4130     no) enable_fast_install=no ;;
4131     *)
4132       enable_fast_install=no
4133       # Look at the argument we got.  We use all the common list separators.
4134       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4135       for pkg in $enableval; do
4136         IFS="$lt_save_ifs"
4137         if test "X$pkg" = "X$p"; then
4138           enable_fast_install=yes
4139         fi
4140       done
4141       IFS="$lt_save_ifs"
4142       ;;
4143     esac
4144 else
4145   enable_fast_install=yes
4146 fi;
4147
4148 DEPDIR="${am__leading_dot}deps"
4149
4150           ac_config_commands="$ac_config_commands depfiles"
4151
4152
4153 am_make=${MAKE-make}
4154 cat > confinc << 'END'
4155 am__doit:
4156         @echo done
4157 .PHONY: am__doit
4158 END
4159 # If we don't find an include directive, just comment out the code.
4160 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4161 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4162 am__include="#"
4163 am__quote=
4164 _am_result=none
4165 # First try GNU make style include.
4166 echo "include confinc" > confmf
4167 # We grep out `Entering directory' and `Leaving directory'
4168 # messages which can occur if `w' ends up in MAKEFLAGS.
4169 # In particular we don't look at `^make:' because GNU make might
4170 # be invoked under some other name (usually "gmake"), in which
4171 # case it prints its new name instead of `make'.
4172 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4173    am__include=include
4174    am__quote=
4175    _am_result=GNU
4176 fi
4177 # Now try BSD make style include.
4178 if test "$am__include" = "#"; then
4179    echo '.include "confinc"' > confmf
4180    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4181       am__include=.include
4182       am__quote="\""
4183       _am_result=BSD
4184    fi
4185 fi
4186
4187
4188 echo "$as_me:$LINENO: result: $_am_result" >&5
4189 echo "${ECHO_T}$_am_result" >&6
4190 rm -f confinc confmf
4191
4192 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4193 if test "${enable_dependency_tracking+set}" = set; then
4194   enableval="$enable_dependency_tracking"
4195
4196 fi;
4197 if test "x$enable_dependency_tracking" != xno; then
4198   am_depcomp="$ac_aux_dir/depcomp"
4199   AMDEPBACKSLASH='\'
4200 fi
4201
4202
4203 if test "x$enable_dependency_tracking" != xno; then
4204   AMDEP_TRUE=
4205   AMDEP_FALSE='#'
4206 else
4207   AMDEP_TRUE='#'
4208   AMDEP_FALSE=
4209 fi
4210
4211
4212
4213 ac_ext=c
4214 ac_cpp='$CPP $CPPFLAGS'
4215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4218 if test -n "$ac_tool_prefix"; then
4219   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}gcc; 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}gcc"
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 "gcc", so it can be a program name with args.
4258 set dummy gcc; 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="gcc"
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 if test -z "$CC"; then
4298   if test -n "$ac_tool_prefix"; then
4299   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4300 set dummy ${ac_tool_prefix}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 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4311 do
4312   IFS=$as_save_IFS
4313   test -z "$as_dir" && as_dir=.
4314   for ac_exec_ext in '' $ac_executable_extensions; do
4315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316     ac_cv_prog_CC="${ac_tool_prefix}cc"
4317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318     break 2
4319   fi
4320 done
4321 done
4322
4323 fi
4324 fi
4325 CC=$ac_cv_prog_CC
4326 if test -n "$CC"; then
4327   echo "$as_me:$LINENO: result: $CC" >&5
4328 echo "${ECHO_T}$CC" >&6
4329 else
4330   echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6
4332 fi
4333
4334 fi
4335 if test -z "$ac_cv_prog_CC"; then
4336   ac_ct_CC=$CC
4337   # Extract the first word of "cc", so it can be a program name with args.
4338 set dummy cc; ac_word=$2
4339 echo "$as_me:$LINENO: checking for $ac_word" >&5
4340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4342   echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344   if test -n "$ac_ct_CC"; then
4345   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4349 do
4350   IFS=$as_save_IFS
4351   test -z "$as_dir" && as_dir=.
4352   for ac_exec_ext in '' $ac_executable_extensions; do
4353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354     ac_cv_prog_ac_ct_CC="cc"
4355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356     break 2
4357   fi
4358 done
4359 done
4360
4361 fi
4362 fi
4363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4364 if test -n "$ac_ct_CC"; then
4365   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4366 echo "${ECHO_T}$ac_ct_CC" >&6
4367 else
4368   echo "$as_me:$LINENO: result: no" >&5
4369 echo "${ECHO_T}no" >&6
4370 fi
4371
4372   CC=$ac_ct_CC
4373 else
4374   CC="$ac_cv_prog_CC"
4375 fi
4376
4377 fi
4378 if test -z "$CC"; then
4379   # Extract the first word of "cc", so it can be a program name with args.
4380 set dummy cc; ac_word=$2
4381 echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4383 if test "${ac_cv_prog_CC+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   if test -n "$CC"; then
4387   ac_cv_prog_CC="$CC" # Let the user override the test.
4388 else
4389   ac_prog_rejected=no
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4392 do
4393   IFS=$as_save_IFS
4394   test -z "$as_dir" && as_dir=.
4395   for ac_exec_ext in '' $ac_executable_extensions; do
4396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4398        ac_prog_rejected=yes
4399        continue
4400      fi
4401     ac_cv_prog_CC="cc"
4402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403     break 2
4404   fi
4405 done
4406 done
4407
4408 if test $ac_prog_rejected = yes; then
4409   # We found a bogon in the path, so make sure we never use it.
4410   set dummy $ac_cv_prog_CC
4411   shift
4412   if test $# != 0; then
4413     # We chose a different compiler from the bogus one.
4414     # However, it has the same basename, so the bogon will be chosen
4415     # first if we set CC to just the basename; use the full file name.
4416     shift
4417     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4418   fi
4419 fi
4420 fi
4421 fi
4422 CC=$ac_cv_prog_CC
4423 if test -n "$CC"; then
4424   echo "$as_me:$LINENO: result: $CC" >&5
4425 echo "${ECHO_T}$CC" >&6
4426 else
4427   echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6
4429 fi
4430
4431 fi
4432 if test -z "$CC"; then
4433   if test -n "$ac_tool_prefix"; then
4434   for ac_prog in cl
4435   do
4436     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4438 echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440 if test "${ac_cv_prog_CC+set}" = set; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   if test -n "$CC"; then
4444   ac_cv_prog_CC="$CC" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449   IFS=$as_save_IFS
4450   test -z "$as_dir" && as_dir=.
4451   for ac_exec_ext in '' $ac_executable_extensions; do
4452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455     break 2
4456   fi
4457 done
4458 done
4459
4460 fi
4461 fi
4462 CC=$ac_cv_prog_CC
4463 if test -n "$CC"; then
4464   echo "$as_me:$LINENO: result: $CC" >&5
4465 echo "${ECHO_T}$CC" >&6
4466 else
4467   echo "$as_me:$LINENO: result: no" >&5
4468 echo "${ECHO_T}no" >&6
4469 fi
4470
4471     test -n "$CC" && break
4472   done
4473 fi
4474 if test -z "$CC"; then
4475   ac_ct_CC=$CC
4476   for ac_prog in cl
4477 do
4478   # Extract the first word of "$ac_prog", so it can be a program name with args.
4479 set dummy $ac_prog; ac_word=$2
4480 echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4483   echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485   if test -n "$ac_ct_CC"; then
4486   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4487 else
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4490 do
4491   IFS=$as_save_IFS
4492   test -z "$as_dir" && as_dir=.
4493   for ac_exec_ext in '' $ac_executable_extensions; do
4494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4495     ac_cv_prog_ac_ct_CC="$ac_prog"
4496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497     break 2
4498   fi
4499 done
4500 done
4501
4502 fi
4503 fi
4504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4505 if test -n "$ac_ct_CC"; then
4506   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4507 echo "${ECHO_T}$ac_ct_CC" >&6
4508 else
4509   echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6
4511 fi
4512
4513   test -n "$ac_ct_CC" && break
4514 done
4515
4516   CC=$ac_ct_CC
4517 fi
4518
4519 fi
4520
4521
4522 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4523 See \`config.log' for more details." >&5
4524 echo "$as_me: error: no acceptable C compiler found in \$PATH
4525 See \`config.log' for more details." >&2;}
4526    { (exit 1); exit 1; }; }
4527
4528 # Provide some information about the compiler.
4529 echo "$as_me:$LINENO:" \
4530      "checking for C compiler version" >&5
4531 ac_compiler=`set X $ac_compile; echo $2`
4532 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4533   (eval $ac_compiler --version </dev/null >&5) 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); }
4537 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4538   (eval $ac_compiler -v </dev/null >&5) 2>&5
4539   ac_status=$?
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); }
4542 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4543   (eval $ac_compiler -V </dev/null >&5) 2>&5
4544   ac_status=$?
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); }
4547
4548 cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h.  */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h.  */
4554
4555 int
4556 main ()
4557 {
4558
4559   ;
4560   return 0;
4561 }
4562 _ACEOF
4563 ac_clean_files_save=$ac_clean_files
4564 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4565 # Try to create an executable without -o first, disregard a.out.
4566 # It will help us diagnose broken compilers, and finding out an intuition
4567 # of exeext.
4568 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4569 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4570 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4571 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4572   (eval $ac_link_default) 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); }; then
4576   # Find the output, starting from the most likely.  This scheme is
4577 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4578 # resort.
4579
4580 # Be careful to initialize this variable, since it used to be cached.
4581 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4582 ac_cv_exeext=
4583 # b.out is created by i960 compilers.
4584 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4585 do
4586   test -f "$ac_file" || continue
4587   case $ac_file in
4588     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4589         ;;
4590     conftest.$ac_ext )
4591         # This is the source file.
4592         ;;
4593     [ab].out )
4594         # We found the default executable, but exeext='' is most
4595         # certainly right.
4596         break;;
4597     *.* )
4598         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4599         # FIXME: I believe we export ac_cv_exeext for Libtool,
4600         # but it would be cool to find out if it's true.  Does anybody
4601         # maintain Libtool? --akim.
4602         export ac_cv_exeext
4603         break;;
4604     * )
4605         break;;
4606   esac
4607 done
4608 else
4609   echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4613 See \`config.log' for more details." >&5
4614 echo "$as_me: error: C compiler cannot create executables
4615 See \`config.log' for more details." >&2;}
4616    { (exit 77); exit 77; }; }
4617 fi
4618
4619 ac_exeext=$ac_cv_exeext
4620 echo "$as_me:$LINENO: result: $ac_file" >&5
4621 echo "${ECHO_T}$ac_file" >&6
4622
4623 # Check the compiler produces executables we can run.  If not, either
4624 # the compiler is broken, or we cross compile.
4625 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4626 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4627 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4628 # If not cross compiling, check that we can run a simple program.
4629 if test "$cross_compiling" != yes; then
4630   if { ac_try='./$ac_file'
4631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632   (eval $ac_try) 2>&5
4633   ac_status=$?
4634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); }; }; then
4636     cross_compiling=no
4637   else
4638     if test "$cross_compiling" = maybe; then
4639         cross_compiling=yes
4640     else
4641         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4642 If you meant to cross compile, use \`--host'.
4643 See \`config.log' for more details." >&5
4644 echo "$as_me: error: cannot run C compiled programs.
4645 If you meant to cross compile, use \`--host'.
4646 See \`config.log' for more details." >&2;}
4647    { (exit 1); exit 1; }; }
4648     fi
4649   fi
4650 fi
4651 echo "$as_me:$LINENO: result: yes" >&5
4652 echo "${ECHO_T}yes" >&6
4653
4654 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4655 ac_clean_files=$ac_clean_files_save
4656 # Check the compiler produces executables we can run.  If not, either
4657 # the compiler is broken, or we cross compile.
4658 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4659 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4660 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4661 echo "${ECHO_T}$cross_compiling" >&6
4662
4663 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4664 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666   (eval $ac_link) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; then
4670   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4671 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4672 # work properly (i.e., refer to `conftest.exe'), while it won't with
4673 # `rm'.
4674 for ac_file in conftest.exe conftest conftest.*; do
4675   test -f "$ac_file" || continue
4676   case $ac_file in
4677     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4678     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4679           export ac_cv_exeext
4680           break;;
4681     * ) break;;
4682   esac
4683 done
4684 else
4685   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4686 See \`config.log' for more details." >&5
4687 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4688 See \`config.log' for more details." >&2;}
4689    { (exit 1); exit 1; }; }
4690 fi
4691
4692 rm -f conftest$ac_cv_exeext
4693 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4694 echo "${ECHO_T}$ac_cv_exeext" >&6
4695
4696 rm -f conftest.$ac_ext
4697 EXEEXT=$ac_cv_exeext
4698 ac_exeext=$EXEEXT
4699 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4700 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4701 if test "${ac_cv_objext+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h.  */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h.  */
4710
4711 int
4712 main ()
4713 {
4714
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.o conftest.obj
4720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721   (eval $ac_compile) 2>&5
4722   ac_status=$?
4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724   (exit $ac_status); }; then
4725   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4726   case $ac_file in
4727     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4728     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4729        break;;
4730   esac
4731 done
4732 else
4733   echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4735
4736 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4737 See \`config.log' for more details." >&5
4738 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4739 See \`config.log' for more details." >&2;}
4740    { (exit 1); exit 1; }; }
4741 fi
4742
4743 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4744 fi
4745 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4746 echo "${ECHO_T}$ac_cv_objext" >&6
4747 OBJEXT=$ac_cv_objext
4748 ac_objext=$OBJEXT
4749 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4750 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4751 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4752   echo $ECHO_N "(cached) $ECHO_C" >&6
4753 else
4754   cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h.  */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h.  */
4760
4761 int
4762 main ()
4763 {
4764 #ifndef __GNUC__
4765        choke me
4766 #endif
4767
4768   ;
4769   return 0;
4770 }
4771 _ACEOF
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774   (eval $ac_compile) 2>conftest.er1
4775   ac_status=$?
4776   grep -v '^ *+' conftest.er1 >conftest.err
4777   rm -f conftest.er1
4778   cat conftest.err >&5
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); } &&
4781          { ac_try='test -z "$ac_c_werror_flag"
4782                          || test ! -s conftest.err'
4783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784   (eval $ac_try) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); }; } &&
4788          { ac_try='test -s conftest.$ac_objext'
4789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790   (eval $ac_try) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; }; then
4794   ac_compiler_gnu=yes
4795 else
4796   echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799 ac_compiler_gnu=no
4800 fi
4801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4802 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4803
4804 fi
4805 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4806 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4807 GCC=`test $ac_compiler_gnu = yes && echo yes`
4808 ac_test_CFLAGS=${CFLAGS+set}
4809 ac_save_CFLAGS=$CFLAGS
4810 CFLAGS="-g"
4811 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4812 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4813 if test "${ac_cv_prog_cc_g+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h.  */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h.  */
4822
4823 int
4824 main ()
4825 {
4826
4827   ;
4828   return 0;
4829 }
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833   (eval $ac_compile) 2>conftest.er1
4834   ac_status=$?
4835   grep -v '^ *+' conftest.er1 >conftest.err
4836   rm -f conftest.er1
4837   cat conftest.err >&5
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); } &&
4840          { ac_try='test -z "$ac_c_werror_flag"
4841                          || test ! -s conftest.err'
4842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843   (eval $ac_try) 2>&5
4844   ac_status=$?
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); }; } &&
4847          { ac_try='test -s conftest.$ac_objext'
4848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849   (eval $ac_try) 2>&5
4850   ac_status=$?
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); }; }; then
4853   ac_cv_prog_cc_g=yes
4854 else
4855   echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4857
4858 ac_cv_prog_cc_g=no
4859 fi
4860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4861 fi
4862 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4863 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4864 if test "$ac_test_CFLAGS" = set; then
4865   CFLAGS=$ac_save_CFLAGS
4866 elif test $ac_cv_prog_cc_g = yes; then
4867   if test "$GCC" = yes; then
4868     CFLAGS="-g -O2"
4869   else
4870     CFLAGS="-g"
4871   fi
4872 else
4873   if test "$GCC" = yes; then
4874     CFLAGS="-O2"
4875   else
4876     CFLAGS=
4877   fi
4878 fi
4879 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4880 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4881 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4882   echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884   ac_cv_prog_cc_stdc=no
4885 ac_save_CC=$CC
4886 cat >conftest.$ac_ext <<_ACEOF
4887 /* confdefs.h.  */
4888 _ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h.  */
4892 #include <stdarg.h>
4893 #include <stdio.h>
4894 #include <sys/types.h>
4895 #include <sys/stat.h>
4896 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4897 struct buf { int x; };
4898 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4899 static char *e (p, i)
4900      char **p;
4901      int i;
4902 {
4903   return p[i];
4904 }
4905 static char *f (char * (*g) (char **, int), char **p, ...)
4906 {
4907   char *s;
4908   va_list v;
4909   va_start (v,p);
4910   s = g (p, va_arg (v,int));
4911   va_end (v);
4912   return s;
4913 }
4914
4915 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4916    function prototypes and stuff, but not '\xHH' hex character constants.
4917    These don't provoke an error unfortunately, instead are silently treated
4918    as 'x'.  The following induces an error, until -std1 is added to get
4919    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4920    array size at least.  It's necessary to write '\x00'==0 to get something
4921    that's true only with -std1.  */
4922 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4923
4924 int test (int i, double x);
4925 struct s1 {int (*f) (int a);};
4926 struct s2 {int (*f) (double a);};
4927 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4928 int argc;
4929 char **argv;
4930 int
4931 main ()
4932 {
4933 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4934   ;
4935   return 0;
4936 }
4937 _ACEOF
4938 # Don't try gcc -ansi; that turns off useful extensions and
4939 # breaks some systems' header files.
4940 # AIX                   -qlanglvl=ansi
4941 # Ultrix and OSF/1      -std1
4942 # HP-UX 10.20 and later -Ae
4943 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4944 # SVR4                  -Xc -D__EXTENSIONS__
4945 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4946 do
4947   CC="$ac_save_CC $ac_arg"
4948   rm -f conftest.$ac_objext
4949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4950   (eval $ac_compile) 2>conftest.er1
4951   ac_status=$?
4952   grep -v '^ *+' conftest.er1 >conftest.err
4953   rm -f conftest.er1
4954   cat conftest.err >&5
4955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956   (exit $ac_status); } &&
4957          { ac_try='test -z "$ac_c_werror_flag"
4958                          || test ! -s conftest.err'
4959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960   (eval $ac_try) 2>&5
4961   ac_status=$?
4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963   (exit $ac_status); }; } &&
4964          { ac_try='test -s conftest.$ac_objext'
4965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966   (eval $ac_try) 2>&5
4967   ac_status=$?
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); }; }; then
4970   ac_cv_prog_cc_stdc=$ac_arg
4971 break
4972 else
4973   echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 fi
4977 rm -f conftest.err conftest.$ac_objext
4978 done
4979 rm -f conftest.$ac_ext conftest.$ac_objext
4980 CC=$ac_save_CC
4981
4982 fi
4983
4984 case "x$ac_cv_prog_cc_stdc" in
4985   x|xno)
4986     echo "$as_me:$LINENO: result: none needed" >&5
4987 echo "${ECHO_T}none needed" >&6 ;;
4988   *)
4989     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4990 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4991     CC="$CC $ac_cv_prog_cc_stdc" ;;
4992 esac
4993
4994 # Some people use a C++ compiler to compile C.  Since we use `exit',
4995 # in C++ we need to declare it.  In case someone uses the same compiler
4996 # for both compiling C and C++ we need to have the C++ compiler decide
4997 # the declaration of exit, since it's the most demanding environment.
4998 cat >conftest.$ac_ext <<_ACEOF
4999 #ifndef __cplusplus
5000   choke me
5001 #endif
5002 _ACEOF
5003 rm -f conftest.$ac_objext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005   (eval $ac_compile) 2>conftest.er1
5006   ac_status=$?
5007   grep -v '^ *+' conftest.er1 >conftest.err
5008   rm -f conftest.er1
5009   cat conftest.err >&5
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); } &&
5012          { ac_try='test -z "$ac_c_werror_flag"
5013                          || test ! -s conftest.err'
5014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015   (eval $ac_try) 2>&5
5016   ac_status=$?
5017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018   (exit $ac_status); }; } &&
5019          { ac_try='test -s conftest.$ac_objext'
5020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021   (eval $ac_try) 2>&5
5022   ac_status=$?
5023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024   (exit $ac_status); }; }; then
5025   for ac_declaration in \
5026    '' \
5027    'extern "C" void std::exit (int) throw (); using std::exit;' \
5028    'extern "C" void std::exit (int); using std::exit;' \
5029    'extern "C" void exit (int) throw ();' \
5030    'extern "C" void exit (int);' \
5031    'void exit (int);'
5032 do
5033   cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 $ac_declaration
5040 #include <stdlib.h>
5041 int
5042 main ()
5043 {
5044 exit (42);
5045   ;
5046   return 0;
5047 }
5048 _ACEOF
5049 rm -f conftest.$ac_objext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051   (eval $ac_compile) 2>conftest.er1
5052   ac_status=$?
5053   grep -v '^ *+' conftest.er1 >conftest.err
5054   rm -f conftest.er1
5055   cat conftest.err >&5
5056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057   (exit $ac_status); } &&
5058          { ac_try='test -z "$ac_c_werror_flag"
5059                          || test ! -s conftest.err'
5060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061   (eval $ac_try) 2>&5
5062   ac_status=$?
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); }; } &&
5065          { ac_try='test -s conftest.$ac_objext'
5066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067   (eval $ac_try) 2>&5
5068   ac_status=$?
5069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070   (exit $ac_status); }; }; then
5071   :
5072 else
5073   echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5075
5076 continue
5077 fi
5078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5079   cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h.  */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h.  */
5085 $ac_declaration
5086 int
5087 main ()
5088 {
5089 exit (42);
5090   ;
5091   return 0;
5092 }
5093 _ACEOF
5094 rm -f conftest.$ac_objext
5095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096   (eval $ac_compile) 2>conftest.er1
5097   ac_status=$?
5098   grep -v '^ *+' conftest.er1 >conftest.err
5099   rm -f conftest.er1
5100   cat conftest.err >&5
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); } &&
5103          { ac_try='test -z "$ac_c_werror_flag"
5104                          || test ! -s conftest.err'
5105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106   (eval $ac_try) 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); }; } &&
5110          { ac_try='test -s conftest.$ac_objext'
5111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112   (eval $ac_try) 2>&5
5113   ac_status=$?
5114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115   (exit $ac_status); }; }; then
5116   break
5117 else
5118   echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5120
5121 fi
5122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5123 done
5124 rm -f conftest*
5125 if test -n "$ac_declaration"; then
5126   echo '#ifdef __cplusplus' >>confdefs.h
5127   echo $ac_declaration      >>confdefs.h
5128   echo '#endif'             >>confdefs.h
5129 fi
5130
5131 else
5132   echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 fi
5136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5137 ac_ext=c
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142
5143 depcc="$CC"   am_compiler_list=
5144
5145 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5146 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5147 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5148   echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5151   # We make a subdir and do the tests there.  Otherwise we can end up
5152   # making bogus files that we don't know about and never remove.  For
5153   # instance it was reported that on HP-UX the gcc test will end up
5154   # making a dummy file named `D' -- because `-MD' means `put the output
5155   # in D'.
5156   mkdir conftest.dir
5157   # Copy depcomp to subdir because otherwise we won't find it if we're
5158   # using a relative directory.
5159   cp "$am_depcomp" conftest.dir
5160   cd conftest.dir
5161   # We will build objects and dependencies in a subdirectory because
5162   # it helps to detect inapplicable dependency modes.  For instance
5163   # both Tru64's cc and ICC support -MD to output dependencies as a
5164   # side effect of compilation, but ICC will put the dependencies in
5165   # the current directory while Tru64 will put them in the object
5166   # directory.
5167   mkdir sub
5168
5169   am_cv_CC_dependencies_compiler_type=none
5170   if test "$am_compiler_list" = ""; then
5171      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5172   fi
5173   for depmode in $am_compiler_list; do
5174     # Setup a source with many dependencies, because some compilers
5175     # like to wrap large dependency lists on column 80 (with \), and
5176     # we should not choose a depcomp mode which is confused by this.
5177     #
5178     # We need to recreate these files for each test, as the compiler may
5179     # overwrite some of them when testing with obscure command lines.
5180     # This happens at least with the AIX C compiler.
5181     : > sub/conftest.c
5182     for i in 1 2 3 4 5 6; do
5183       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5184       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5185       # Solaris 8's {/usr,}/bin/sh.
5186       touch sub/conftst$i.h
5187     done
5188     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5189
5190     case $depmode in
5191     nosideeffect)
5192       # after this tag, mechanisms are not by side-effect, so they'll
5193       # only be used when explicitly requested
5194       if test "x$enable_dependency_tracking" = xyes; then
5195         continue
5196       else
5197         break
5198       fi
5199       ;;
5200     none) break ;;
5201     esac
5202     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5203     # mode.  It turns out that the SunPro C++ compiler does not properly
5204     # handle `-M -o', and we need to detect this.
5205     if depmode=$depmode \
5206        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5207        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5208        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5209          >/dev/null 2>conftest.err &&
5210        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5211        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5212        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5213       # icc doesn't choke on unknown options, it will just issue warnings
5214       # or remarks (even with -Werror).  So we grep stderr for any message
5215       # that says an option was ignored or not supported.
5216       # When given -MP, icc 7.0 and 7.1 complain thusly:
5217       #   icc: Command line warning: ignoring option '-M'; no argument required
5218       # The diagnosis changed in icc 8.0:
5219       #   icc: Command line remark: option '-MP' not supported
5220       if (grep 'ignoring option' conftest.err ||
5221           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5222         am_cv_CC_dependencies_compiler_type=$depmode
5223         break
5224       fi
5225     fi
5226   done
5227
5228   cd ..
5229   rm -rf conftest.dir
5230 else
5231   am_cv_CC_dependencies_compiler_type=none
5232 fi
5233
5234 fi
5235 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5236 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5237 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5238
5239
5240
5241 if
5242   test "x$enable_dependency_tracking" != xno \
5243   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5244   am__fastdepCC_TRUE=
5245   am__fastdepCC_FALSE='#'
5246 else
5247   am__fastdepCC_TRUE='#'
5248   am__fastdepCC_FALSE=
5249 fi
5250
5251
5252 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5253 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5254 if test "${lt_cv_path_SED+set}" = set; then
5255   echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257   # Loop through the user's path and test for sed and gsed.
5258 # Then use that list of sed's as ones to test for truncation.
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264   for lt_ac_prog in sed gsed; do
5265     for ac_exec_ext in '' $ac_executable_extensions; do
5266       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5267         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5268       fi
5269     done
5270   done
5271 done
5272 lt_ac_max=0
5273 lt_ac_count=0
5274 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5275 # along with /bin/sed that truncates output.
5276 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5277   test ! -f $lt_ac_sed && continue
5278   cat /dev/null > conftest.in
5279   lt_ac_count=0
5280   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5281   # Check for GNU sed and select it if it is found.
5282   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5283     lt_cv_path_SED=$lt_ac_sed
5284     break
5285   fi
5286   while true; do
5287     cat conftest.in conftest.in >conftest.tmp
5288     mv conftest.tmp conftest.in
5289     cp conftest.in conftest.nl
5290     echo >>conftest.nl
5291     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5292     cmp -s conftest.out conftest.nl || break
5293     # 10000 chars as input seems more than enough
5294     test $lt_ac_count -gt 10 && break
5295     lt_ac_count=`expr $lt_ac_count + 1`
5296     if test $lt_ac_count -gt $lt_ac_max; then
5297       lt_ac_max=$lt_ac_count
5298       lt_cv_path_SED=$lt_ac_sed
5299     fi
5300   done
5301 done
5302
5303 fi
5304
5305 SED=$lt_cv_path_SED
5306 echo "$as_me:$LINENO: result: $SED" >&5
5307 echo "${ECHO_T}$SED" >&6
5308
5309 echo "$as_me:$LINENO: checking for egrep" >&5
5310 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5311 if test "${ac_cv_prog_egrep+set}" = set; then
5312   echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5315     then ac_cv_prog_egrep='grep -E'
5316     else ac_cv_prog_egrep='egrep'
5317     fi
5318 fi
5319 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5320 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5321  EGREP=$ac_cv_prog_egrep
5322
5323
5324
5325 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5326 if test "${with_gnu_ld+set}" = set; then
5327   withval="$with_gnu_ld"
5328   test "$withval" = no || with_gnu_ld=yes
5329 else
5330   with_gnu_ld=no
5331 fi;
5332 ac_prog=ld
5333 if test "$GCC" = yes; then
5334   # Check if gcc -print-prog-name=ld gives a path.
5335   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5336 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5337   case $host in
5338   *-*-mingw*)
5339     # gcc leaves a trailing carriage return which upsets mingw
5340     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5341   *)
5342     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5343   esac
5344   case $ac_prog in
5345     # Accept absolute paths.
5346     [\\/]* | ?:[\\/]*)
5347       re_direlt='/[^/][^/]*/\.\./'
5348       # Canonicalize the pathname of ld
5349       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5350       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5351         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5352       done
5353       test -z "$LD" && LD="$ac_prog"
5354       ;;
5355   "")
5356     # If it fails, then pretend we aren't using GCC.
5357     ac_prog=ld
5358     ;;
5359   *)
5360     # If it is relative, then search for the first ld in PATH.
5361     with_gnu_ld=unknown
5362     ;;
5363   esac
5364 elif test "$with_gnu_ld" = yes; then
5365   echo "$as_me:$LINENO: checking for GNU ld" >&5
5366 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5367 else
5368   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5369 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5370 fi
5371 if test "${lt_cv_path_LD+set}" = set; then
5372   echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374   if test -z "$LD"; then
5375   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5376   for ac_dir in $PATH; do
5377     IFS="$lt_save_ifs"
5378     test -z "$ac_dir" && ac_dir=.
5379     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5380       lt_cv_path_LD="$ac_dir/$ac_prog"
5381       # Check to see if the program is GNU ld.  I'd rather use --version,
5382       # but apparently some variants of GNU ld only accept -v.
5383       # Break only if it was the GNU/non-GNU ld that we prefer.
5384       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5385       *GNU* | *'with BFD'*)
5386         test "$with_gnu_ld" != no && break
5387         ;;
5388       *)
5389         test "$with_gnu_ld" != yes && break
5390         ;;
5391       esac
5392     fi
5393   done
5394   IFS="$lt_save_ifs"
5395 else
5396   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5397 fi
5398 fi
5399
5400 LD="$lt_cv_path_LD"
5401 if test -n "$LD"; then
5402   echo "$as_me:$LINENO: result: $LD" >&5
5403 echo "${ECHO_T}$LD" >&6
5404 else
5405   echo "$as_me:$LINENO: result: no" >&5
5406 echo "${ECHO_T}no" >&6
5407 fi
5408 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5409 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5410    { (exit 1); exit 1; }; }
5411 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5412 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5413 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5414   echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5417 case `$LD -v 2>&1 </dev/null` in
5418 *GNU* | *'with BFD'*)
5419   lt_cv_prog_gnu_ld=yes
5420   ;;
5421 *)
5422   lt_cv_prog_gnu_ld=no
5423   ;;
5424 esac
5425 fi
5426 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5427 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5428 with_gnu_ld=$lt_cv_prog_gnu_ld
5429
5430
5431 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5432 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5433 if test "${lt_cv_ld_reload_flag+set}" = set; then
5434   echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436   lt_cv_ld_reload_flag='-r'
5437 fi
5438 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5439 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5440 reload_flag=$lt_cv_ld_reload_flag
5441 case $reload_flag in
5442 "" | " "*) ;;
5443 *) reload_flag=" $reload_flag" ;;
5444 esac
5445 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5446 case $host_os in
5447   darwin*)
5448     if test "$GCC" = yes; then
5449       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5450     else
5451       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5452     fi
5453     ;;
5454 esac
5455
5456 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5457 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5458 if test "${lt_cv_path_NM+set}" = set; then
5459   echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461   if test -n "$NM"; then
5462   # Let the user override the test.
5463   lt_cv_path_NM="$NM"
5464 else
5465   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5466   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5467     IFS="$lt_save_ifs"
5468     test -z "$ac_dir" && ac_dir=.
5469     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5470     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5471       # Check to see if the nm accepts a BSD-compat flag.
5472       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5473       #   nm: unknown option "B" ignored
5474       # Tru64's nm complains that /dev/null is an invalid object file
5475       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5476       */dev/null* | *'Invalid file or object type'*)
5477         lt_cv_path_NM="$tmp_nm -B"
5478         break
5479         ;;
5480       *)
5481         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5482         */dev/null*)
5483           lt_cv_path_NM="$tmp_nm -p"
5484           break
5485           ;;
5486         *)
5487           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5488           continue # so that we can try to find one that supports BSD flags
5489           ;;
5490         esac
5491       esac
5492     fi
5493   done
5494   IFS="$lt_save_ifs"
5495   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5496 fi
5497 fi
5498 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5499 echo "${ECHO_T}$lt_cv_path_NM" >&6
5500 NM="$lt_cv_path_NM"
5501
5502 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5503 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5504 LN_S=$as_ln_s
5505 if test "$LN_S" = "ln -s"; then
5506   echo "$as_me:$LINENO: result: yes" >&5
5507 echo "${ECHO_T}yes" >&6
5508 else
5509   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5510 echo "${ECHO_T}no, using $LN_S" >&6
5511 fi
5512
5513 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5514 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5515 if test "${lt_cv_deplibs_check_method+set}" = set; then
5516   echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518   lt_cv_file_magic_cmd='$MAGIC_CMD'
5519 lt_cv_file_magic_test_file=
5520 lt_cv_deplibs_check_method='unknown'
5521 # Need to set the preceding variable on all platforms that support
5522 # interlibrary dependencies.
5523 # 'none' -- dependencies not supported.
5524 # `unknown' -- same as none, but documents that we really don't know.
5525 # 'pass_all' -- all dependencies passed with no checks.
5526 # 'test_compile' -- check by making test program.
5527 # 'file_magic [[regex]]' -- check by looking for files in library path
5528 # which responds to the $file_magic_cmd with a given extended regex.
5529 # If you have `file' or equivalent on your system and you're not sure
5530 # whether `pass_all' will *always* work, you probably want this one.
5531
5532 case $host_os in
5533 aix4* | aix5*)
5534   lt_cv_deplibs_check_method=pass_all
5535   ;;
5536
5537 beos*)
5538   lt_cv_deplibs_check_method=pass_all
5539   ;;
5540
5541 bsdi[45]*)
5542   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5543   lt_cv_file_magic_cmd='/usr/bin/file -L'
5544   lt_cv_file_magic_test_file=/shlib/libc.so
5545   ;;
5546
5547 cygwin*)
5548   # func_win32_libid is a shell function defined in ltmain.sh
5549   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5550   lt_cv_file_magic_cmd='func_win32_libid'
5551   ;;
5552
5553 mingw* | pw32*)
5554   # Base MSYS/MinGW do not provide the 'file' command needed by
5555   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5556   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5557   lt_cv_file_magic_cmd='$OBJDUMP -f'
5558   ;;
5559
5560 darwin* | rhapsody*)
5561   lt_cv_deplibs_check_method=pass_all
5562   ;;
5563
5564 freebsd* | kfreebsd*-gnu | dragonfly*)
5565   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5566     case $host_cpu in
5567     i*86 )
5568       # Not sure whether the presence of OpenBSD here was a mistake.
5569       # Let's accept both of them until this is cleared up.
5570       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5571       lt_cv_file_magic_cmd=/usr/bin/file
5572       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5573       ;;
5574     esac
5575   else
5576     lt_cv_deplibs_check_method=pass_all
5577   fi
5578   ;;
5579
5580 gnu*)
5581   lt_cv_deplibs_check_method=pass_all
5582   ;;
5583
5584 hpux10.20* | hpux11*)
5585   lt_cv_file_magic_cmd=/usr/bin/file
5586   case $host_cpu in
5587   ia64*)
5588     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5589     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5590     ;;
5591   hppa*64*)
5592     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]'
5593     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5594     ;;
5595   *)
5596     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5597     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5598     ;;
5599   esac
5600   ;;
5601
5602 irix5* | irix6* | nonstopux*)
5603   case $LD in
5604   *-32|*"-32 ") libmagic=32-bit;;
5605   *-n32|*"-n32 ") libmagic=N32;;
5606   *-64|*"-64 ") libmagic=64-bit;;
5607   *) libmagic=never-match;;
5608   esac
5609   lt_cv_deplibs_check_method=pass_all
5610   ;;
5611
5612 # This must be Linux ELF.
5613 linux*)
5614   lt_cv_deplibs_check_method=pass_all
5615   ;;
5616
5617 netbsd*)
5618   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5619     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5620   else
5621     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5622   fi
5623   ;;
5624
5625 newos6*)
5626   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5627   lt_cv_file_magic_cmd=/usr/bin/file
5628   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5629   ;;
5630
5631 nto-qnx*)
5632   lt_cv_deplibs_check_method=unknown
5633   ;;
5634
5635 openbsd*)
5636   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5637     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5638   else
5639     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5640   fi
5641   ;;
5642
5643 osf3* | osf4* | osf5*)
5644   lt_cv_deplibs_check_method=pass_all
5645   ;;
5646
5647 sco3.2v5*)
5648   lt_cv_deplibs_check_method=pass_all
5649   ;;
5650
5651 solaris*)
5652   lt_cv_deplibs_check_method=pass_all
5653   ;;
5654
5655 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5656   case $host_vendor in
5657   motorola)
5658     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]'
5659     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5660     ;;
5661   ncr)
5662     lt_cv_deplibs_check_method=pass_all
5663     ;;
5664   sequent)
5665     lt_cv_file_magic_cmd='/bin/file'
5666     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5667     ;;
5668   sni)
5669     lt_cv_file_magic_cmd='/bin/file'
5670     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5671     lt_cv_file_magic_test_file=/lib/libc.so
5672     ;;
5673   siemens)
5674     lt_cv_deplibs_check_method=pass_all
5675     ;;
5676   esac
5677   ;;
5678
5679 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5680   lt_cv_deplibs_check_method=pass_all
5681   ;;
5682 esac
5683
5684 fi
5685 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5686 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5687 file_magic_cmd=$lt_cv_file_magic_cmd
5688 deplibs_check_method=$lt_cv_deplibs_check_method
5689 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5690
5691
5692
5693
5694 # If no C compiler was specified, use CC.
5695 LTCC=${LTCC-"$CC"}
5696
5697 # Allow CC to be a program name with arguments.
5698 compiler=$CC
5699
5700
5701 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5702 if test "${enable_libtool_lock+set}" = set; then
5703   enableval="$enable_libtool_lock"
5704
5705 fi;
5706 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5707
5708 # Some flags need to be propagated to the compiler or linker for good
5709 # libtool support.
5710 case $host in
5711 ia64-*-hpux*)
5712   # Find out which ABI we are using.
5713   echo 'int i;' > conftest.$ac_ext
5714   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715   (eval $ac_compile) 2>&5
5716   ac_status=$?
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); }; then
5719     case `/usr/bin/file conftest.$ac_objext` in
5720     *ELF-32*)
5721       HPUX_IA64_MODE="32"
5722       ;;
5723     *ELF-64*)
5724       HPUX_IA64_MODE="64"
5725       ;;
5726     esac
5727   fi
5728   rm -rf conftest*
5729   ;;
5730 *-*-irix6*)
5731   # Find out which ABI we are using.
5732   echo '#line 5732 "configure"' > conftest.$ac_ext
5733   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5734   (eval $ac_compile) 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); }; then
5738    if test "$lt_cv_prog_gnu_ld" = yes; then
5739     case `/usr/bin/file conftest.$ac_objext` in
5740     *32-bit*)
5741       LD="${LD-ld} -melf32bsmip"
5742       ;;
5743     *N32*)
5744       LD="${LD-ld} -melf32bmipn32"
5745       ;;
5746     *64-bit*)
5747       LD="${LD-ld} -melf64bmip"
5748       ;;
5749     esac
5750    else
5751     case `/usr/bin/file conftest.$ac_objext` in
5752     *32-bit*)
5753       LD="${LD-ld} -32"
5754       ;;
5755     *N32*)
5756       LD="${LD-ld} -n32"
5757       ;;
5758     *64-bit*)
5759       LD="${LD-ld} -64"
5760       ;;
5761     esac
5762    fi
5763   fi
5764   rm -rf conftest*
5765   ;;
5766
5767 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5768   # Find out which ABI we are using.
5769   echo 'int i;' > conftest.$ac_ext
5770   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771   (eval $ac_compile) 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); }; then
5775     case `/usr/bin/file conftest.o` in
5776     *32-bit*)
5777       case $host in
5778         x86_64-*linux*)
5779           LD="${LD-ld} -m elf_i386"
5780           ;;
5781         ppc64-*linux*|powerpc64-*linux*)
5782           LD="${LD-ld} -m elf32ppclinux"
5783           ;;
5784         s390x-*linux*)
5785           LD="${LD-ld} -m elf_s390"
5786           ;;
5787         sparc64-*linux*)
5788           LD="${LD-ld} -m elf32_sparc"
5789           ;;
5790       esac
5791       ;;
5792     *64-bit*)
5793       case $host in
5794         x86_64-*linux*)
5795           LD="${LD-ld} -m elf_x86_64"
5796           ;;
5797         ppc*-*linux*|powerpc*-*linux*)
5798           LD="${LD-ld} -m elf64ppc"
5799           ;;
5800         s390*-*linux*)
5801           LD="${LD-ld} -m elf64_s390"
5802           ;;
5803         sparc*-*linux*)
5804           LD="${LD-ld} -m elf64_sparc"
5805           ;;
5806       esac
5807       ;;
5808     esac
5809   fi
5810   rm -rf conftest*
5811   ;;
5812
5813 *-*-sco3.2v5*)
5814   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5815   SAVE_CFLAGS="$CFLAGS"
5816   CFLAGS="$CFLAGS -belf"
5817   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5818 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5819 if test "${lt_cv_cc_needs_belf+set}" = set; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   ac_ext=c
5823 ac_cpp='$CPP $CPPFLAGS'
5824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5827
5828      cat >conftest.$ac_ext <<_ACEOF
5829 /* confdefs.h.  */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h.  */
5834
5835 int
5836 main ()
5837 {
5838
5839   ;
5840   return 0;
5841 }
5842 _ACEOF
5843 rm -f conftest.$ac_objext conftest$ac_exeext
5844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5845   (eval $ac_link) 2>conftest.er1
5846   ac_status=$?
5847   grep -v '^ *+' conftest.er1 >conftest.err
5848   rm -f conftest.er1
5849   cat conftest.err >&5
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); } &&
5852          { ac_try='test -z "$ac_c_werror_flag"
5853                          || test ! -s conftest.err'
5854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855   (eval $ac_try) 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); }; } &&
5859          { ac_try='test -s conftest$ac_exeext'
5860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861   (eval $ac_try) 2>&5
5862   ac_status=$?
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); }; }; then
5865   lt_cv_cc_needs_belf=yes
5866 else
5867   echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5869
5870 lt_cv_cc_needs_belf=no
5871 fi
5872 rm -f conftest.err conftest.$ac_objext \
5873       conftest$ac_exeext conftest.$ac_ext
5874      ac_ext=c
5875 ac_cpp='$CPP $CPPFLAGS'
5876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5879
5880 fi
5881 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5882 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5883   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5884     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5885     CFLAGS="$SAVE_CFLAGS"
5886   fi
5887   ;;
5888 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5889   if test -n "$ac_tool_prefix"; then
5890   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5891 set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+set}" = set; then
5895   echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897   if test -n "$DLLTOOL"; then
5898   ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool"
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 DLLTOOL=$ac_cv_prog_DLLTOOL
5917 if test -n "$DLLTOOL"; then
5918   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5919 echo "${ECHO_T}$DLLTOOL" >&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_DLLTOOL"; then
5927   ac_ct_DLLTOOL=$DLLTOOL
5928   # Extract the first word of "dlltool", so it can be a program name with args.
5929 set dummy dlltool; 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_DLLTOOL+set}" = set; then
5933   echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935   if test -n "$ac_ct_DLLTOOL"; then
5936   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_DLLTOOL="dlltool"
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_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5953 fi
5954 fi
5955 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5956 if test -n "$ac_ct_DLLTOOL"; then
5957   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5958 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5959 else
5960   echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6
5962 fi
5963
5964   DLLTOOL=$ac_ct_DLLTOOL
5965 else
5966   DLLTOOL="$ac_cv_prog_DLLTOOL"
5967 fi
5968
5969   if test -n "$ac_tool_prefix"; then
5970   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5971 set dummy ${ac_tool_prefix}as; 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_AS+set}" = set; then
5975   echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977   if test -n "$AS"; then
5978   ac_cv_prog_AS="$AS" # 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_AS="${ac_tool_prefix}as"
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 AS=$ac_cv_prog_AS
5997 if test -n "$AS"; then
5998   echo "$as_me:$LINENO: result: $AS" >&5
5999 echo "${ECHO_T}$AS" >&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_AS"; then
6007   ac_ct_AS=$AS
6008   # Extract the first word of "as", so it can be a program name with args.
6009 set dummy as; 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_AS+set}" = set; then
6013   echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015   if test -n "$ac_ct_AS"; then
6016   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # 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_AS="as"
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_AS" && ac_cv_prog_ac_ct_AS="false"
6033 fi
6034 fi
6035 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6036 if test -n "$ac_ct_AS"; then
6037   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6038 echo "${ECHO_T}$ac_ct_AS" >&6
6039 else
6040   echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6
6042 fi
6043
6044   AS=$ac_ct_AS
6045 else
6046   AS="$ac_cv_prog_AS"
6047 fi
6048
6049   if test -n "$ac_tool_prefix"; then
6050   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6051 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6052 echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6054 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   if test -n "$OBJDUMP"; then
6058   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063   IFS=$as_save_IFS
6064   test -z "$as_dir" && as_dir=.
6065   for ac_exec_ext in '' $ac_executable_extensions; do
6066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069     break 2
6070   fi
6071 done
6072 done
6073
6074 fi
6075 fi
6076 OBJDUMP=$ac_cv_prog_OBJDUMP
6077 if test -n "$OBJDUMP"; then
6078   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6079 echo "${ECHO_T}$OBJDUMP" >&6
6080 else
6081   echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6
6083 fi
6084
6085 fi
6086 if test -z "$ac_cv_prog_OBJDUMP"; then
6087   ac_ct_OBJDUMP=$OBJDUMP
6088   # Extract the first word of "objdump", so it can be a program name with args.
6089 set dummy objdump; ac_word=$2
6090 echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6092 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6093   echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095   if test -n "$ac_ct_OBJDUMP"; then
6096   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101   IFS=$as_save_IFS
6102   test -z "$as_dir" && as_dir=.
6103   for ac_exec_ext in '' $ac_executable_extensions; do
6104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107     break 2
6108   fi
6109 done
6110 done
6111
6112   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6113 fi
6114 fi
6115 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6116 if test -n "$ac_ct_OBJDUMP"; then
6117   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6118 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6119 else
6120   echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6
6122 fi
6123
6124   OBJDUMP=$ac_ct_OBJDUMP
6125 else
6126   OBJDUMP="$ac_cv_prog_OBJDUMP"
6127 fi
6128
6129   ;;
6130
6131 esac
6132
6133 need_locks="$enable_libtool_lock"
6134
6135
6136 ac_ext=c
6137 ac_cpp='$CPP $CPPFLAGS'
6138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6142 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6143 # On Suns, sometimes $CPP names a directory.
6144 if test -n "$CPP" && test -d "$CPP"; then
6145   CPP=
6146 fi
6147 if test -z "$CPP"; then
6148   if test "${ac_cv_prog_CPP+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151       # Double quotes because CPP needs to be expanded
6152     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6153     do
6154       ac_preproc_ok=false
6155 for ac_c_preproc_warn_flag in '' yes
6156 do
6157   # Use a header file that comes with gcc, so configuring glibc
6158   # with a fresh cross-compiler works.
6159   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6160   # <limits.h> exists even on freestanding compilers.
6161   # On the NeXT, cc -E runs the code through the compiler's parser,
6162   # not just through cpp. "Syntax error" is here to catch this case.
6163   cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h.  */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h.  */
6169 #ifdef __STDC__
6170 # include <limits.h>
6171 #else
6172 # include <assert.h>
6173 #endif
6174                      Syntax error
6175 _ACEOF
6176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6177   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6178   ac_status=$?
6179   grep -v '^ *+' conftest.er1 >conftest.err
6180   rm -f conftest.er1
6181   cat conftest.err >&5
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); } >/dev/null; then
6184   if test -s conftest.err; then
6185     ac_cpp_err=$ac_c_preproc_warn_flag
6186     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6187   else
6188     ac_cpp_err=
6189   fi
6190 else
6191   ac_cpp_err=yes
6192 fi
6193 if test -z "$ac_cpp_err"; then
6194   :
6195 else
6196   echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6198
6199   # Broken: fails on valid input.
6200 continue
6201 fi
6202 rm -f conftest.err conftest.$ac_ext
6203
6204   # OK, works on sane cases.  Now check whether non-existent headers
6205   # can be detected and how.
6206   cat >conftest.$ac_ext <<_ACEOF
6207 /* confdefs.h.  */
6208 _ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h.  */
6212 #include <ac_nonexistent.h>
6213 _ACEOF
6214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6215   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6216   ac_status=$?
6217   grep -v '^ *+' conftest.er1 >conftest.err
6218   rm -f conftest.er1
6219   cat conftest.err >&5
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); } >/dev/null; then
6222   if test -s conftest.err; then
6223     ac_cpp_err=$ac_c_preproc_warn_flag
6224     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6225   else
6226     ac_cpp_err=
6227   fi
6228 else
6229   ac_cpp_err=yes
6230 fi
6231 if test -z "$ac_cpp_err"; then
6232   # Broken: success on invalid input.
6233 continue
6234 else
6235   echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6237
6238   # Passes both tests.
6239 ac_preproc_ok=:
6240 break
6241 fi
6242 rm -f conftest.err conftest.$ac_ext
6243
6244 done
6245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6246 rm -f conftest.err conftest.$ac_ext
6247 if $ac_preproc_ok; then
6248   break
6249 fi
6250
6251     done
6252     ac_cv_prog_CPP=$CPP
6253
6254 fi
6255   CPP=$ac_cv_prog_CPP
6256 else
6257   ac_cv_prog_CPP=$CPP
6258 fi
6259 echo "$as_me:$LINENO: result: $CPP" >&5
6260 echo "${ECHO_T}$CPP" >&6
6261 ac_preproc_ok=false
6262 for ac_c_preproc_warn_flag in '' yes
6263 do
6264   # Use a header file that comes with gcc, so configuring glibc
6265   # with a fresh cross-compiler works.
6266   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6267   # <limits.h> exists even on freestanding compilers.
6268   # On the NeXT, cc -E runs the code through the compiler's parser,
6269   # not just through cpp. "Syntax error" is here to catch this case.
6270   cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h.  */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h.  */
6276 #ifdef __STDC__
6277 # include <limits.h>
6278 #else
6279 # include <assert.h>
6280 #endif
6281                      Syntax error
6282 _ACEOF
6283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6284   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6285   ac_status=$?
6286   grep -v '^ *+' conftest.er1 >conftest.err
6287   rm -f conftest.er1
6288   cat conftest.err >&5
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); } >/dev/null; then
6291   if test -s conftest.err; then
6292     ac_cpp_err=$ac_c_preproc_warn_flag
6293     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6294   else
6295     ac_cpp_err=
6296   fi
6297 else
6298   ac_cpp_err=yes
6299 fi
6300 if test -z "$ac_cpp_err"; then
6301   :
6302 else
6303   echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6305
6306   # Broken: fails on valid input.
6307 continue
6308 fi
6309 rm -f conftest.err conftest.$ac_ext
6310
6311   # OK, works on sane cases.  Now check whether non-existent headers
6312   # can be detected and how.
6313   cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h.  */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h.  */
6319 #include <ac_nonexistent.h>
6320 _ACEOF
6321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6323   ac_status=$?
6324   grep -v '^ *+' conftest.er1 >conftest.err
6325   rm -f conftest.er1
6326   cat conftest.err >&5
6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); } >/dev/null; then
6329   if test -s conftest.err; then
6330     ac_cpp_err=$ac_c_preproc_warn_flag
6331     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6332   else
6333     ac_cpp_err=
6334   fi
6335 else
6336   ac_cpp_err=yes
6337 fi
6338 if test -z "$ac_cpp_err"; then
6339   # Broken: success on invalid input.
6340 continue
6341 else
6342   echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6344
6345   # Passes both tests.
6346 ac_preproc_ok=:
6347 break
6348 fi
6349 rm -f conftest.err conftest.$ac_ext
6350
6351 done
6352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6353 rm -f conftest.err conftest.$ac_ext
6354 if $ac_preproc_ok; then
6355   :
6356 else
6357   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6358 See \`config.log' for more details." >&5
6359 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6360 See \`config.log' for more details." >&2;}
6361    { (exit 1); exit 1; }; }
6362 fi
6363
6364 ac_ext=c
6365 ac_cpp='$CPP $CPPFLAGS'
6366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6369
6370
6371 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6372 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6373 if test "${ac_cv_header_stdc+set}" = set; then
6374   echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376   cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h.  */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h.  */
6382 #include <stdlib.h>
6383 #include <stdarg.h>
6384 #include <string.h>
6385 #include <float.h>
6386
6387 int
6388 main ()
6389 {
6390
6391   ;
6392   return 0;
6393 }
6394 _ACEOF
6395 rm -f conftest.$ac_objext
6396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397   (eval $ac_compile) 2>conftest.er1
6398   ac_status=$?
6399   grep -v '^ *+' conftest.er1 >conftest.err
6400   rm -f conftest.er1
6401   cat conftest.err >&5
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); } &&
6404          { ac_try='test -z "$ac_c_werror_flag"
6405                          || test ! -s conftest.err'
6406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407   (eval $ac_try) 2>&5
6408   ac_status=$?
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); }; } &&
6411          { ac_try='test -s conftest.$ac_objext'
6412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413   (eval $ac_try) 2>&5
6414   ac_status=$?
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); }; }; then
6417   ac_cv_header_stdc=yes
6418 else
6419   echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6421
6422 ac_cv_header_stdc=no
6423 fi
6424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6425
6426 if test $ac_cv_header_stdc = yes; then
6427   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6428   cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h.  */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h.  */
6434 #include <string.h>
6435
6436 _ACEOF
6437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6438   $EGREP "memchr" >/dev/null 2>&1; then
6439   :
6440 else
6441   ac_cv_header_stdc=no
6442 fi
6443 rm -f conftest*
6444
6445 fi
6446
6447 if test $ac_cv_header_stdc = yes; then
6448   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6449   cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h.  */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h.  */
6455 #include <stdlib.h>
6456
6457 _ACEOF
6458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6459   $EGREP "free" >/dev/null 2>&1; then
6460   :
6461 else
6462   ac_cv_header_stdc=no
6463 fi
6464 rm -f conftest*
6465
6466 fi
6467
6468 if test $ac_cv_header_stdc = yes; then
6469   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6470   if test "$cross_compiling" = yes; then
6471   :
6472 else
6473   cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h.  */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h.  */
6479 #include <ctype.h>
6480 #if ((' ' & 0x0FF) == 0x020)
6481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6483 #else
6484 # define ISLOWER(c) \
6485                    (('a' <= (c) && (c) <= 'i') \
6486                      || ('j' <= (c) && (c) <= 'r') \
6487                      || ('s' <= (c) && (c) <= 'z'))
6488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6489 #endif
6490
6491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6492 int
6493 main ()
6494 {
6495   int i;
6496   for (i = 0; i < 256; i++)
6497     if (XOR (islower (i), ISLOWER (i))
6498         || toupper (i) != TOUPPER (i))
6499       exit(2);
6500   exit (0);
6501 }
6502 _ACEOF
6503 rm -f conftest$ac_exeext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505   (eval $ac_link) 2>&5
6506   ac_status=$?
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510   (eval $ac_try) 2>&5
6511   ac_status=$?
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); }; }; then
6514   :
6515 else
6516   echo "$as_me: program exited with status $ac_status" >&5
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6519
6520 ( exit $ac_status )
6521 ac_cv_header_stdc=no
6522 fi
6523 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6524 fi
6525 fi
6526 fi
6527 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6528 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6529 if test $ac_cv_header_stdc = yes; then
6530
6531 cat >>confdefs.h <<\_ACEOF
6532 #define STDC_HEADERS 1
6533 _ACEOF
6534
6535 fi
6536
6537 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6548                   inttypes.h stdint.h unistd.h
6549 do
6550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6551 echo "$as_me:$LINENO: checking for $ac_header" >&5
6552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6554   echo $ECHO_N "(cached) $ECHO_C" >&6
6555 else
6556   cat >conftest.$ac_ext <<_ACEOF
6557 /* confdefs.h.  */
6558 _ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h.  */
6562 $ac_includes_default
6563
6564 #include <$ac_header>
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568   (eval $ac_compile) 2>conftest.er1
6569   ac_status=$?
6570   grep -v '^ *+' conftest.er1 >conftest.err
6571   rm -f conftest.er1
6572   cat conftest.err >&5
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); } &&
6575          { ac_try='test -z "$ac_c_werror_flag"
6576                          || test ! -s conftest.err'
6577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578   (eval $ac_try) 2>&5
6579   ac_status=$?
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); }; } &&
6582          { ac_try='test -s conftest.$ac_objext'
6583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584   (eval $ac_try) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); }; }; then
6588   eval "$as_ac_Header=yes"
6589 else
6590   echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 eval "$as_ac_Header=no"
6594 fi
6595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6596 fi
6597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6600   cat >>confdefs.h <<_ACEOF
6601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6602 _ACEOF
6603
6604 fi
6605
6606 done
6607
6608
6609
6610 for ac_header in dlfcn.h
6611 do
6612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6614   echo "$as_me:$LINENO: checking for $ac_header" >&5
6615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 fi
6619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6621 else
6622   # Is the header compilable?
6623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h.  */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h.  */
6631 $ac_includes_default
6632 #include <$ac_header>
6633 _ACEOF
6634 rm -f conftest.$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636   (eval $ac_compile) 2>conftest.er1
6637   ac_status=$?
6638   grep -v '^ *+' conftest.er1 >conftest.err
6639   rm -f conftest.er1
6640   cat conftest.err >&5
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); } &&
6643          { ac_try='test -z "$ac_c_werror_flag"
6644                          || test ! -s conftest.err'
6645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646   (eval $ac_try) 2>&5
6647   ac_status=$?
6648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649   (exit $ac_status); }; } &&
6650          { ac_try='test -s conftest.$ac_objext'
6651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652   (eval $ac_try) 2>&5
6653   ac_status=$?
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); }; }; then
6656   ac_header_compiler=yes
6657 else
6658   echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6660
6661 ac_header_compiler=no
6662 fi
6663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6665 echo "${ECHO_T}$ac_header_compiler" >&6
6666
6667 # Is the header present?
6668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6670 cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h.  */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h.  */
6676 #include <$ac_header>
6677 _ACEOF
6678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6679   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6680   ac_status=$?
6681   grep -v '^ *+' conftest.er1 >conftest.err
6682   rm -f conftest.er1
6683   cat conftest.err >&5
6684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); } >/dev/null; then
6686   if test -s conftest.err; then
6687     ac_cpp_err=$ac_c_preproc_warn_flag
6688     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6689   else
6690     ac_cpp_err=
6691   fi
6692 else
6693   ac_cpp_err=yes
6694 fi
6695 if test -z "$ac_cpp_err"; then
6696   ac_header_preproc=yes
6697 else
6698   echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6700
6701   ac_header_preproc=no
6702 fi
6703 rm -f conftest.err conftest.$ac_ext
6704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6705 echo "${ECHO_T}$ac_header_preproc" >&6
6706
6707 # So?  What about this header?
6708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6709   yes:no: )
6710     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6714     ac_header_preproc=yes
6715     ;;
6716   no:yes:* )
6717     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6719     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6720 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6721     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6723     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6724 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6727     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6729     (
6730       cat <<\_ASBOX
6731 ## --------------------------------------------- ##
6732 ## Report this to <http://www.openldap.org/its/> ##
6733 ## --------------------------------------------- ##
6734 _ASBOX
6735     ) |
6736       sed "s/^/$as_me: WARNING:     /" >&2
6737     ;;
6738 esac
6739 echo "$as_me:$LINENO: checking for $ac_header" >&5
6740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6742   echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744   eval "$as_ac_Header=\$ac_header_preproc"
6745 fi
6746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6748
6749 fi
6750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6751   cat >>confdefs.h <<_ACEOF
6752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6753 _ACEOF
6754
6755 fi
6756
6757 done
6758
6759
6760 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6761
6762 # find the maximum length of command line arguments
6763 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6764 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6765 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6766   echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768     i=0
6769   teststring="ABCD"
6770
6771   case $build_os in
6772   msdosdjgpp*)
6773     # On DJGPP, this test can blow up pretty badly due to problems in libc
6774     # (any single argument exceeding 2000 bytes causes a buffer overrun
6775     # during glob expansion).  Even if it were fixed, the result of this
6776     # check would be larger than it should be.
6777     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6778     ;;
6779
6780   gnu*)
6781     # Under GNU Hurd, this test is not required because there is
6782     # no limit to the length of command line arguments.
6783     # Libtool will interpret -1 as no limit whatsoever
6784     lt_cv_sys_max_cmd_len=-1;
6785     ;;
6786
6787   cygwin* | mingw*)
6788     # On Win9x/ME, this test blows up -- it succeeds, but takes
6789     # about 5 minutes as the teststring grows exponentially.
6790     # Worse, since 9x/ME are not pre-emptively multitasking,
6791     # you end up with a "frozen" computer, even though with patience
6792     # the test eventually succeeds (with a max line length of 256k).
6793     # Instead, let's just punt: use the minimum linelength reported by
6794     # all of the supported platforms: 8192 (on NT/2K/XP).
6795     lt_cv_sys_max_cmd_len=8192;
6796     ;;
6797
6798   amigaos*)
6799     # On AmigaOS with pdksh, this test takes hours, literally.
6800     # So we just punt and use a minimum line length of 8192.
6801     lt_cv_sys_max_cmd_len=8192;
6802     ;;
6803
6804   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6805     # This has been around since 386BSD, at least.  Likely further.
6806     if test -x /sbin/sysctl; then
6807       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6808     elif test -x /usr/sbin/sysctl; then
6809       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6810     else
6811       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6812     fi
6813     # And add a safety zone
6814     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6815     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6816     ;;
6817   osf*)
6818     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6819     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6820     # nice to cause kernel panics so lets avoid the loop below.
6821     # First set a reasonable default.
6822     lt_cv_sys_max_cmd_len=16384
6823     #
6824     if test -x /sbin/sysconfig; then
6825       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6826         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6827       esac
6828     fi
6829     ;;
6830   *)
6831     # If test is not a shell built-in, we'll probably end up computing a
6832     # maximum length that is only half of the actual maximum length, but
6833     # we can't tell.
6834     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6835     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6836                = "XX$teststring") >/dev/null 2>&1 &&
6837             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6838             lt_cv_sys_max_cmd_len=$new_result &&
6839             test $i != 17 # 1/2 MB should be enough
6840     do
6841       i=`expr $i + 1`
6842       teststring=$teststring$teststring
6843     done
6844     teststring=
6845     # Add a significant safety factor because C++ compilers can tack on massive
6846     # amounts of additional arguments before passing them to the linker.
6847     # It appears as though 1/2 is a usable value.
6848     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6849     ;;
6850   esac
6851
6852 fi
6853
6854 if test -n $lt_cv_sys_max_cmd_len ; then
6855   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6856 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6857 else
6858   echo "$as_me:$LINENO: result: none" >&5
6859 echo "${ECHO_T}none" >&6
6860 fi
6861
6862
6863
6864
6865 # Check for command to grab the raw symbol name followed by C symbol from nm.
6866 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6867 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6868 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6869   echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871
6872 # These are sane defaults that work on at least a few old systems.
6873 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6874
6875 # Character class describing NM global symbol codes.
6876 symcode='[BCDEGRST]'
6877
6878 # Regexp to match symbols that can be accessed directly from C.
6879 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6880
6881 # Transform an extracted symbol line into a proper C declaration
6882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6883
6884 # Transform an extracted symbol line into symbol name and symbol address
6885 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'"
6886
6887 # Define system-specific variables.
6888 case $host_os in
6889 aix*)
6890   symcode='[BCDT]'
6891   ;;
6892 cygwin* | mingw* | pw32*)
6893   symcode='[ABCDGISTW]'
6894   ;;
6895 hpux*) # Its linker distinguishes data from code symbols
6896   if test "$host_cpu" = ia64; then
6897     symcode='[ABCDEGRST]'
6898   fi
6899   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6900   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'"
6901   ;;
6902 linux*)
6903   if test "$host_cpu" = ia64; then
6904     symcode='[ABCDGIRSTW]'
6905     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6906     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'"
6907   fi
6908   ;;
6909 irix* | nonstopux*)
6910   symcode='[BCDEGRST]'
6911   ;;
6912 osf*)
6913   symcode='[BCDEGQRST]'
6914   ;;
6915 solaris* | sysv5*)
6916   symcode='[BDRT]'
6917   ;;
6918 sysv4)
6919   symcode='[DFNSTU]'
6920   ;;
6921 esac
6922
6923 # Handle CRLF in mingw tool chain
6924 opt_cr=
6925 case $build_os in
6926 mingw*)
6927   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6928   ;;
6929 esac
6930
6931 # If we're using GNU nm, then use its standard symbol codes.
6932 case `$NM -V 2>&1` in
6933 *GNU* | *'with BFD'*)
6934   symcode='[ABCDGIRSTW]' ;;
6935 esac
6936
6937 # Try without a prefix undercore, then with it.
6938 for ac_symprfx in "" "_"; do
6939
6940   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6941   symxfrm="\\1 $ac_symprfx\\2 \\2"
6942
6943   # Write the raw and C identifiers.
6944   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6945
6946   # Check to see that the pipe works correctly.
6947   pipe_works=no
6948
6949   rm -f conftest*
6950   cat > conftest.$ac_ext <<EOF
6951 #ifdef __cplusplus
6952 extern "C" {
6953 #endif
6954 char nm_test_var;
6955 void nm_test_func(){}
6956 #ifdef __cplusplus
6957 }
6958 #endif
6959 int main(){nm_test_var='a';nm_test_func();return(0);}
6960 EOF
6961
6962   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963   (eval $ac_compile) 2>&5
6964   ac_status=$?
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); }; then
6967     # Now try to grab the symbols.
6968     nlist=conftest.nm
6969     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6970   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6971   ac_status=$?
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); } && test -s "$nlist"; then
6974       # Try sorting and uniquifying the output.
6975       if sort "$nlist" | uniq > "$nlist"T; then
6976         mv -f "$nlist"T "$nlist"
6977       else
6978         rm -f "$nlist"T
6979       fi
6980
6981       # Make sure that we snagged all the symbols we need.
6982       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6983         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6984           cat <<EOF > conftest.$ac_ext
6985 #ifdef __cplusplus
6986 extern "C" {
6987 #endif
6988
6989 EOF
6990           # Now generate the symbol file.
6991           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6992
6993           cat <<EOF >> conftest.$ac_ext
6994 #if defined (__STDC__) && __STDC__
6995 # define lt_ptr_t void *
6996 #else
6997 # define lt_ptr_t char *
6998 # define const
6999 #endif
7000
7001 /* The mapping between symbol names and symbols. */
7002 const struct {
7003   const char *name;
7004   lt_ptr_t address;
7005 }
7006 lt_preloaded_symbols[] =
7007 {
7008 EOF
7009           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7010           cat <<\EOF >> conftest.$ac_ext
7011   {0, (lt_ptr_t) 0}
7012 };
7013
7014 #ifdef __cplusplus
7015 }
7016 #endif
7017 EOF
7018           # Now try linking the two files.
7019           mv conftest.$ac_objext conftstm.$ac_objext
7020           lt_save_LIBS="$LIBS"
7021           lt_save_CFLAGS="$CFLAGS"
7022           LIBS="conftstm.$ac_objext"
7023           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7024           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7025   (eval $ac_link) 2>&5
7026   ac_status=$?
7027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7029             pipe_works=yes
7030           fi
7031           LIBS="$lt_save_LIBS"
7032           CFLAGS="$lt_save_CFLAGS"
7033         else
7034           echo "cannot find nm_test_func in $nlist" >&5
7035         fi
7036       else
7037         echo "cannot find nm_test_var in $nlist" >&5
7038       fi
7039     else
7040       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7041     fi
7042   else
7043     echo "$progname: failed program was:" >&5
7044     cat conftest.$ac_ext >&5
7045   fi
7046   rm -f conftest* conftst*
7047
7048   # Do not use the global_symbol_pipe unless it works.
7049   if test "$pipe_works" = yes; then
7050     break
7051   else
7052     lt_cv_sys_global_symbol_pipe=
7053   fi
7054 done
7055
7056 fi
7057
7058 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7059   lt_cv_sys_global_symbol_to_cdecl=
7060 fi
7061 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7062   echo "$as_me:$LINENO: result: failed" >&5
7063 echo "${ECHO_T}failed" >&6
7064 else
7065   echo "$as_me:$LINENO: result: ok" >&5
7066 echo "${ECHO_T}ok" >&6
7067 fi
7068
7069 echo "$as_me:$LINENO: checking for objdir" >&5
7070 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7071 if test "${lt_cv_objdir+set}" = set; then
7072   echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074   rm -f .libs 2>/dev/null
7075 mkdir .libs 2>/dev/null
7076 if test -d .libs; then
7077   lt_cv_objdir=.libs
7078 else
7079   # MS-DOS does not allow filenames that begin with a dot.
7080   lt_cv_objdir=_libs
7081 fi
7082 rmdir .libs 2>/dev/null
7083 fi
7084 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7085 echo "${ECHO_T}$lt_cv_objdir" >&6
7086 objdir=$lt_cv_objdir
7087
7088
7089
7090
7091
7092 case $host_os in
7093 aix3*)
7094   # AIX sometimes has problems with the GCC collect2 program.  For some
7095   # reason, if we set the COLLECT_NAMES environment variable, the problems
7096   # vanish in a puff of smoke.
7097   if test "X${COLLECT_NAMES+set}" != Xset; then
7098     COLLECT_NAMES=
7099     export COLLECT_NAMES
7100   fi
7101   ;;
7102 esac
7103
7104 # Sed substitution that helps us do robust quoting.  It backslashifies
7105 # metacharacters that are still active within double-quoted strings.
7106 Xsed='sed -e 1s/^X//'
7107 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7108
7109 # Same as above, but do not quote variable references.
7110 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7111
7112 # Sed substitution to delay expansion of an escaped shell variable in a
7113 # double_quote_subst'ed string.
7114 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7115
7116 # Sed substitution to avoid accidental globbing in evaled expressions
7117 no_glob_subst='s/\*/\\\*/g'
7118
7119 # Constants:
7120 rm="rm -f"
7121
7122 # Global variables:
7123 default_ofile=libtool
7124 can_build_shared=yes
7125
7126 # All known linkers require a `.a' archive for static linking (except MSVC,
7127 # which needs '.lib').
7128 libext=a
7129 ltmain="$ac_aux_dir/ltmain.sh"
7130 ofile="$default_ofile"
7131 with_gnu_ld="$lt_cv_prog_gnu_ld"
7132
7133 if test -n "$ac_tool_prefix"; then
7134   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   if test -n "$AR"; then
7142   ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
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 AR=$ac_cv_prog_AR
7161 if test -n "$AR"; then
7162   echo "$as_me:$LINENO: result: $AR" >&5
7163 echo "${ECHO_T}$AR" >&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_AR"; then
7171   ac_ct_AR=$AR
7172   # Extract the first word of "ar", so it can be a program name with args.
7173 set dummy ar; 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_AR+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179   if test -n "$ac_ct_AR"; then
7180   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="ar"
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_AR" && ac_cv_prog_ac_ct_AR="false"
7197 fi
7198 fi
7199 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7200 if test -n "$ac_ct_AR"; then
7201   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7202 echo "${ECHO_T}$ac_ct_AR" >&6
7203 else
7204   echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6
7206 fi
7207
7208   AR=$ac_ct_AR
7209 else
7210   AR="$ac_cv_prog_AR"
7211 fi
7212
7213 if test -n "$ac_tool_prefix"; then
7214   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7215 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
7219   echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221   if test -n "$RANLIB"; then
7222   ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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 RANLIB=$ac_cv_prog_RANLIB
7241 if test -n "$RANLIB"; then
7242   echo "$as_me:$LINENO: result: $RANLIB" >&5
7243 echo "${ECHO_T}$RANLIB" >&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_RANLIB"; then
7251   ac_ct_RANLIB=$RANLIB
7252   # Extract the first word of "ranlib", so it can be a program name with args.
7253 set dummy ranlib; 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_RANLIB+set}" = set; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259   if test -n "$ac_ct_RANLIB"; then
7260   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
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_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7277 fi
7278 fi
7279 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7280 if test -n "$ac_ct_RANLIB"; then
7281   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7282 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7283 else
7284   echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6
7286 fi
7287
7288   RANLIB=$ac_ct_RANLIB
7289 else
7290   RANLIB="$ac_cv_prog_RANLIB"
7291 fi
7292
7293 if test -n "$ac_tool_prefix"; then
7294   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}strip; ac_word=$2
7296 echo "$as_me:$LINENO: checking for $ac_word" >&5
7297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7298 if test "${ac_cv_prog_STRIP+set}" = set; then
7299   echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301   if test -n "$STRIP"; then
7302   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309   for ac_exec_ext in '' $ac_executable_extensions; do
7310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316 done
7317
7318 fi
7319 fi
7320 STRIP=$ac_cv_prog_STRIP
7321 if test -n "$STRIP"; then
7322   echo "$as_me:$LINENO: result: $STRIP" >&5
7323 echo "${ECHO_T}$STRIP" >&6
7324 else
7325   echo "$as_me:$LINENO: result: no" >&5
7326 echo "${ECHO_T}no" >&6
7327 fi
7328
7329 fi
7330 if test -z "$ac_cv_prog_STRIP"; then
7331   ac_ct_STRIP=$STRIP
7332   # Extract the first word of "strip", so it can be a program name with args.
7333 set dummy strip; ac_word=$2
7334 echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7336 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339   if test -n "$ac_ct_STRIP"; then
7340   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345   IFS=$as_save_IFS
7346   test -z "$as_dir" && as_dir=.
7347   for ac_exec_ext in '' $ac_executable_extensions; do
7348   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349     ac_cv_prog_ac_ct_STRIP="strip"
7350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351     break 2
7352   fi
7353 done
7354 done
7355
7356   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7357 fi
7358 fi
7359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7360 if test -n "$ac_ct_STRIP"; then
7361   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7362 echo "${ECHO_T}$ac_ct_STRIP" >&6
7363 else
7364   echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7366 fi
7367
7368   STRIP=$ac_ct_STRIP
7369 else
7370   STRIP="$ac_cv_prog_STRIP"
7371 fi
7372
7373
7374 old_CC="$CC"
7375 old_CFLAGS="$CFLAGS"
7376
7377 # Set sane defaults for various variables
7378 test -z "$AR" && AR=ar
7379 test -z "$AR_FLAGS" && AR_FLAGS=cru
7380 test -z "$AS" && AS=as
7381 test -z "$CC" && CC=cc
7382 test -z "$LTCC" && LTCC=$CC
7383 test -z "$DLLTOOL" && DLLTOOL=dlltool
7384 test -z "$LD" && LD=ld
7385 test -z "$LN_S" && LN_S="ln -s"
7386 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7387 test -z "$NM" && NM=nm
7388 test -z "$SED" && SED=sed
7389 test -z "$OBJDUMP" && OBJDUMP=objdump
7390 test -z "$RANLIB" && RANLIB=:
7391 test -z "$STRIP" && STRIP=:
7392 test -z "$ac_objext" && ac_objext=o
7393
7394 # Determine commands to create old-style static archives.
7395 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7396 old_postinstall_cmds='chmod 644 $oldlib'
7397 old_postuninstall_cmds=
7398
7399 if test -n "$RANLIB"; then
7400   case $host_os in
7401   openbsd*)
7402     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7403     ;;
7404   *)
7405     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7406     ;;
7407   esac
7408   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7409 fi
7410
7411 for cc_temp in $compiler""; do
7412   case $cc_temp in
7413     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7414     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7415     \-*) ;;
7416     *) break;;
7417   esac
7418 done
7419 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7420
7421
7422 # Only perform the check for file, if the check method requires it
7423 case $deplibs_check_method in
7424 file_magic*)
7425   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7426     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7427 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7428 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7429   echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431   case $MAGIC_CMD in
7432 [\\/*] |  ?:[\\/]*)
7433   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7434   ;;
7435 *)
7436   lt_save_MAGIC_CMD="$MAGIC_CMD"
7437   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7438   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7439   for ac_dir in $ac_dummy; do
7440     IFS="$lt_save_ifs"
7441     test -z "$ac_dir" && ac_dir=.
7442     if test -f $ac_dir/${ac_tool_prefix}file; then
7443       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7444       if test -n "$file_magic_test_file"; then
7445         case $deplibs_check_method in
7446         "file_magic "*)
7447           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7448           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7449           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7450             $EGREP "$file_magic_regex" > /dev/null; then
7451             :
7452           else
7453             cat <<EOF 1>&2
7454
7455 *** Warning: the command libtool uses to detect shared libraries,
7456 *** $file_magic_cmd, produces output that libtool cannot recognize.
7457 *** The result is that libtool may fail to recognize shared libraries
7458 *** as such.  This will affect the creation of libtool libraries that
7459 *** depend on shared libraries, but programs linked with such libtool
7460 *** libraries will work regardless of this problem.  Nevertheless, you
7461 *** may want to report the problem to your system manager and/or to
7462 *** bug-libtool@gnu.org
7463
7464 EOF
7465           fi ;;
7466         esac
7467       fi
7468       break
7469     fi
7470   done
7471   IFS="$lt_save_ifs"
7472   MAGIC_CMD="$lt_save_MAGIC_CMD"
7473   ;;
7474 esac
7475 fi
7476
7477 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7478 if test -n "$MAGIC_CMD"; then
7479   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7480 echo "${ECHO_T}$MAGIC_CMD" >&6
7481 else
7482   echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6
7484 fi
7485
7486 if test -z "$lt_cv_path_MAGIC_CMD"; then
7487   if test -n "$ac_tool_prefix"; then
7488     echo "$as_me:$LINENO: checking for file" >&5
7489 echo $ECHO_N "checking for file... $ECHO_C" >&6
7490 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   case $MAGIC_CMD in
7494 [\\/*] |  ?:[\\/]*)
7495   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7496   ;;
7497 *)
7498   lt_save_MAGIC_CMD="$MAGIC_CMD"
7499   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7500   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7501   for ac_dir in $ac_dummy; do
7502     IFS="$lt_save_ifs"
7503     test -z "$ac_dir" && ac_dir=.
7504     if test -f $ac_dir/file; then
7505       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7506       if test -n "$file_magic_test_file"; then
7507         case $deplibs_check_method in
7508         "file_magic "*)
7509           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7510           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7511           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7512             $EGREP "$file_magic_regex" > /dev/null; then
7513             :
7514           else
7515             cat <<EOF 1>&2
7516
7517 *** Warning: the command libtool uses to detect shared libraries,
7518 *** $file_magic_cmd, produces output that libtool cannot recognize.
7519 *** The result is that libtool may fail to recognize shared libraries
7520 *** as such.  This will affect the creation of libtool libraries that
7521 *** depend on shared libraries, but programs linked with such libtool
7522 *** libraries will work regardless of this problem.  Nevertheless, you
7523 *** may want to report the problem to your system manager and/or to
7524 *** bug-libtool@gnu.org
7525
7526 EOF
7527           fi ;;
7528         esac
7529       fi
7530       break
7531     fi
7532   done
7533   IFS="$lt_save_ifs"
7534   MAGIC_CMD="$lt_save_MAGIC_CMD"
7535   ;;
7536 esac
7537 fi
7538
7539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7540 if test -n "$MAGIC_CMD"; then
7541   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7542 echo "${ECHO_T}$MAGIC_CMD" >&6
7543 else
7544   echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6
7546 fi
7547
7548   else
7549     MAGIC_CMD=:
7550   fi
7551 fi
7552
7553   fi
7554   ;;
7555 esac
7556
7557 enable_dlopen=yes
7558 enable_win32_dll=yes
7559
7560 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7561 if test "${enable_libtool_lock+set}" = set; then
7562   enableval="$enable_libtool_lock"
7563
7564 fi;
7565 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7566
7567
7568 # Check whether --with-pic or --without-pic was given.
7569 if test "${with_pic+set}" = set; then
7570   withval="$with_pic"
7571   pic_mode="$withval"
7572 else
7573   pic_mode=default
7574 fi;
7575 test -z "$pic_mode" && pic_mode=default
7576
7577 # Use C for the default configuration in the libtool script
7578 tagname=
7579 lt_save_CC="$CC"
7580 ac_ext=c
7581 ac_cpp='$CPP $CPPFLAGS'
7582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7585
7586
7587 # Source file extension for C test sources.
7588 ac_ext=c
7589
7590 # Object file extension for compiled C test sources.
7591 objext=o
7592 objext=$objext
7593
7594 # Code to be used in simple compile tests
7595 lt_simple_compile_test_code="int some_variable = 0;\n"
7596
7597 # Code to be used in simple link tests
7598 lt_simple_link_test_code='int main(){return(0);}\n'
7599
7600
7601 # If no C compiler was specified, use CC.
7602 LTCC=${LTCC-"$CC"}
7603
7604 # Allow CC to be a program name with arguments.
7605 compiler=$CC
7606
7607
7608 # save warnings/boilerplate of simple test code
7609 ac_outfile=conftest.$ac_objext
7610 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7611 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7612 _lt_compiler_boilerplate=`cat conftest.err`
7613 $rm conftest*
7614
7615 ac_outfile=conftest.$ac_objext
7616 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7617 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7618 _lt_linker_boilerplate=`cat conftest.err`
7619 $rm conftest*
7620
7621
7622 #
7623 # Check for any special shared library compilation flags.
7624 #
7625 lt_prog_cc_shlib=
7626 if test "$GCC" = no; then
7627   case $host_os in
7628   sco3.2v5*)
7629     lt_prog_cc_shlib='-belf'
7630     ;;
7631   esac
7632 fi
7633 if test -n "$lt_prog_cc_shlib"; then
7634   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7635 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7636   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7637   else
7638     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7639 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7640     lt_cv_prog_cc_can_build_shared=no
7641   fi
7642 fi
7643
7644
7645 #
7646 # Check to make sure the static flag actually works.
7647 #
7648 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7649 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7650 if test "${lt_prog_compiler_static_works+set}" = set; then
7651   echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653   lt_prog_compiler_static_works=no
7654    save_LDFLAGS="$LDFLAGS"
7655    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7656    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7657    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7658      # The linker can only warn and ignore the option if not recognized
7659      # So say no if there are warnings
7660      if test -s conftest.err; then
7661        # Append any errors to the config.log.
7662        cat conftest.err 1>&5
7663        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7664        $SED '/^$/d' conftest.err >conftest.er2
7665        if diff conftest.exp conftest.er2 >/dev/null; then
7666          lt_prog_compiler_static_works=yes
7667        fi
7668      else
7669        lt_prog_compiler_static_works=yes
7670      fi
7671    fi
7672    $rm conftest*
7673    LDFLAGS="$save_LDFLAGS"
7674
7675 fi
7676 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7677 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7678
7679 if test x"$lt_prog_compiler_static_works" = xyes; then
7680     :
7681 else
7682     lt_prog_compiler_static=
7683 fi
7684
7685
7686
7687
7688 lt_prog_compiler_no_builtin_flag=
7689
7690 if test "$GCC" = yes; then
7691   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7692
7693
7694 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7695 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7696 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   lt_cv_prog_compiler_rtti_exceptions=no
7700   ac_outfile=conftest.$ac_objext
7701    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7702    lt_compiler_flag="-fno-rtti -fno-exceptions"
7703    # Insert the option either (1) after the last *FLAGS variable, or
7704    # (2) before a word containing "conftest.", or (3) at the end.
7705    # Note that $ac_compile itself does not contain backslashes and begins
7706    # with a dollar sign (not a hyphen), so the echo should work correctly.
7707    # The option is referenced via a variable to avoid confusing sed.
7708    lt_compile=`echo "$ac_compile" | $SED \
7709    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7710    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7711    -e 's:$: $lt_compiler_flag:'`
7712    (eval echo "\"\$as_me:7712: $lt_compile\"" >&5)
7713    (eval "$lt_compile" 2>conftest.err)
7714    ac_status=$?
7715    cat conftest.err >&5
7716    echo "$as_me:7716: \$? = $ac_status" >&5
7717    if (exit $ac_status) && test -s "$ac_outfile"; then
7718      # The compiler can only warn and ignore the option if not recognized
7719      # So say no if there are warnings other than the usual output.
7720      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7721      $SED '/^$/d' conftest.err >conftest.er2
7722      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7723        lt_cv_prog_compiler_rtti_exceptions=yes
7724      fi
7725    fi
7726    $rm conftest*
7727
7728 fi
7729 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7730 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7731
7732 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7733     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7734 else
7735     :
7736 fi
7737
7738 fi
7739
7740 lt_prog_compiler_wl=
7741 lt_prog_compiler_pic=
7742 lt_prog_compiler_static=
7743
7744 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7745 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7746
7747   if test "$GCC" = yes; then
7748     lt_prog_compiler_wl='-Wl,'
7749     lt_prog_compiler_static='-static'
7750
7751     case $host_os in
7752       aix*)
7753       # All AIX code is PIC.
7754       if test "$host_cpu" = ia64; then
7755         # AIX 5 now supports IA64 processor
7756         lt_prog_compiler_static='-Bstatic'
7757       fi
7758       ;;
7759
7760     amigaos*)
7761       # FIXME: we need at least 68020 code to build shared libraries, but
7762       # adding the `-m68020' flag to GCC prevents building anything better,
7763       # like `-m68040'.
7764       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7765       ;;
7766
7767     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7768       # PIC is the default for these OSes.
7769       ;;
7770
7771     mingw* | pw32* | os2*)
7772       # This hack is so that the source file can tell whether it is being
7773       # built for inclusion in a dll (and should export symbols for example).
7774       lt_prog_compiler_pic='-DDLL_EXPORT'
7775       ;;
7776
7777     darwin* | rhapsody*)
7778       # PIC is the default on this platform
7779       # Common symbols not allowed in MH_DYLIB files
7780       lt_prog_compiler_pic='-fno-common'
7781       ;;
7782
7783     msdosdjgpp*)
7784       # Just because we use GCC doesn't mean we suddenly get shared libraries
7785       # on systems that don't support them.
7786       lt_prog_compiler_can_build_shared=no
7787       enable_shared=no
7788       ;;
7789
7790     sysv4*MP*)
7791       if test -d /usr/nec; then
7792         lt_prog_compiler_pic=-Kconform_pic
7793       fi
7794       ;;
7795
7796     hpux*)
7797       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7798       # not for PA HP-UX.
7799       case $host_cpu in
7800       hppa*64*|ia64*)
7801         # +Z the default
7802         ;;
7803       *)
7804         lt_prog_compiler_pic='-fPIC'
7805         ;;
7806       esac
7807       ;;
7808
7809     *)
7810       lt_prog_compiler_pic='-fPIC'
7811       ;;
7812     esac
7813   else
7814     # PORTME Check for flag to pass linker flags through the system compiler.
7815     case $host_os in
7816     aix*)
7817       lt_prog_compiler_wl='-Wl,'
7818       if test "$host_cpu" = ia64; then
7819         # AIX 5 now supports IA64 processor
7820         lt_prog_compiler_static='-Bstatic'
7821       else
7822         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7823       fi
7824       ;;
7825       darwin*)
7826         # PIC is the default on this platform
7827         # Common symbols not allowed in MH_DYLIB files
7828        case $cc_basename in
7829          xlc*)
7830          lt_prog_compiler_pic='-qnocommon'
7831          lt_prog_compiler_wl='-Wl,'
7832          ;;
7833        esac
7834        ;;
7835
7836     mingw* | pw32* | os2*)
7837       # This hack is so that the source file can tell whether it is being
7838       # built for inclusion in a dll (and should export symbols for example).
7839       lt_prog_compiler_pic='-DDLL_EXPORT'
7840       ;;
7841
7842     hpux9* | hpux10* | hpux11*)
7843       lt_prog_compiler_wl='-Wl,'
7844       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7845       # not for PA HP-UX.
7846       case $host_cpu in
7847       hppa*64*|ia64*)
7848         # +Z the default
7849         ;;
7850       *)
7851         lt_prog_compiler_pic='+Z'
7852         ;;
7853       esac
7854       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7855       lt_prog_compiler_static='${wl}-a ${wl}archive'
7856       ;;
7857
7858     irix5* | irix6* | nonstopux*)
7859       lt_prog_compiler_wl='-Wl,'
7860       # PIC (with -KPIC) is the default.
7861       lt_prog_compiler_static='-non_shared'
7862       ;;
7863
7864     newsos6)
7865       lt_prog_compiler_pic='-KPIC'
7866       lt_prog_compiler_static='-Bstatic'
7867       ;;
7868
7869     linux*)
7870       case $cc_basename in
7871       icc* | ecc*)
7872         lt_prog_compiler_wl='-Wl,'
7873         lt_prog_compiler_pic='-KPIC'
7874         lt_prog_compiler_static='-static'
7875         ;;
7876       pgcc* | pgf77* | pgf90* | pgf95*)
7877         # Portland Group compilers (*not* the Pentium gcc compiler,
7878         # which looks to be a dead project)
7879         lt_prog_compiler_wl='-Wl,'
7880         lt_prog_compiler_pic='-fpic'
7881         lt_prog_compiler_static='-Bstatic'
7882         ;;
7883       ccc*)
7884         lt_prog_compiler_wl='-Wl,'
7885         # All Alpha code is PIC.
7886         lt_prog_compiler_static='-non_shared'
7887         ;;
7888       esac
7889       ;;
7890
7891     osf3* | osf4* | osf5*)
7892       lt_prog_compiler_wl='-Wl,'
7893       # All OSF/1 code is PIC.
7894       lt_prog_compiler_static='-non_shared'
7895       ;;
7896
7897     sco3.2v5*)
7898       lt_prog_compiler_pic='-Kpic'
7899       lt_prog_compiler_static='-dn'
7900       ;;
7901
7902     solaris*)
7903       lt_prog_compiler_pic='-KPIC'
7904       lt_prog_compiler_static='-Bstatic'
7905       case $cc_basename in
7906       f77* | f90* | f95*)
7907         lt_prog_compiler_wl='-Qoption ld ';;
7908       *)
7909         lt_prog_compiler_wl='-Wl,';;
7910       esac
7911       ;;
7912
7913     sunos4*)
7914       lt_prog_compiler_wl='-Qoption ld '
7915       lt_prog_compiler_pic='-PIC'
7916       lt_prog_compiler_static='-Bstatic'
7917       ;;
7918
7919     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7920       lt_prog_compiler_wl='-Wl,'
7921       lt_prog_compiler_pic='-KPIC'
7922       lt_prog_compiler_static='-Bstatic'
7923       ;;
7924
7925     sysv4*MP*)
7926       if test -d /usr/nec ;then
7927         lt_prog_compiler_pic='-Kconform_pic'
7928         lt_prog_compiler_static='-Bstatic'
7929       fi
7930       ;;
7931
7932     unicos*)
7933       lt_prog_compiler_wl='-Wl,'
7934       lt_prog_compiler_can_build_shared=no
7935       ;;
7936
7937     uts4*)
7938       lt_prog_compiler_pic='-pic'
7939       lt_prog_compiler_static='-Bstatic'
7940       ;;
7941
7942     *)
7943       lt_prog_compiler_can_build_shared=no
7944       ;;
7945     esac
7946   fi
7947
7948 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7949 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7950
7951 #
7952 # Check to make sure the PIC flag actually works.
7953 #
7954 if test -n "$lt_prog_compiler_pic"; then
7955
7956 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7957 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7958 if test "${lt_prog_compiler_pic_works+set}" = set; then
7959   echo $ECHO_N "(cached) $ECHO_C" >&6
7960 else
7961   lt_prog_compiler_pic_works=no
7962   ac_outfile=conftest.$ac_objext
7963    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7964    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7965    # Insert the option either (1) after the last *FLAGS variable, or
7966    # (2) before a word containing "conftest.", or (3) at the end.
7967    # Note that $ac_compile itself does not contain backslashes and begins
7968    # with a dollar sign (not a hyphen), so the echo should work correctly.
7969    # The option is referenced via a variable to avoid confusing sed.
7970    lt_compile=`echo "$ac_compile" | $SED \
7971    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7972    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7973    -e 's:$: $lt_compiler_flag:'`
7974    (eval echo "\"\$as_me:7974: $lt_compile\"" >&5)
7975    (eval "$lt_compile" 2>conftest.err)
7976    ac_status=$?
7977    cat conftest.err >&5
7978    echo "$as_me:7978: \$? = $ac_status" >&5
7979    if (exit $ac_status) && test -s "$ac_outfile"; then
7980      # The compiler can only warn and ignore the option if not recognized
7981      # So say no if there are warnings other than the usual output.
7982      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7983      $SED '/^$/d' conftest.err >conftest.er2
7984      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7985        lt_prog_compiler_pic_works=yes
7986      fi
7987    fi
7988    $rm conftest*
7989
7990 fi
7991 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7992 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7993
7994 if test x"$lt_prog_compiler_pic_works" = xyes; then
7995     case $lt_prog_compiler_pic in
7996      "" | " "*) ;;
7997      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7998      esac
7999 else
8000     lt_prog_compiler_pic=
8001      lt_prog_compiler_can_build_shared=no
8002 fi
8003
8004 fi
8005 case $host_os in
8006   # For platforms which do not support PIC, -DPIC is meaningless:
8007   *djgpp*)
8008     lt_prog_compiler_pic=
8009     ;;
8010   *)
8011     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8012     ;;
8013 esac
8014
8015 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8016 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8017 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8018   echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020   lt_cv_prog_compiler_c_o=no
8021    $rm -r conftest 2>/dev/null
8022    mkdir conftest
8023    cd conftest
8024    mkdir out
8025    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8026
8027    lt_compiler_flag="-o out/conftest2.$ac_objext"
8028    # Insert the option either (1) after the last *FLAGS variable, or
8029    # (2) before a word containing "conftest.", or (3) at the end.
8030    # Note that $ac_compile itself does not contain backslashes and begins
8031    # with a dollar sign (not a hyphen), so the echo should work correctly.
8032    lt_compile=`echo "$ac_compile" | $SED \
8033    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8034    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8035    -e 's:$: $lt_compiler_flag:'`
8036    (eval echo "\"\$as_me:8036: $lt_compile\"" >&5)
8037    (eval "$lt_compile" 2>out/conftest.err)
8038    ac_status=$?
8039    cat out/conftest.err >&5
8040    echo "$as_me:8040: \$? = $ac_status" >&5
8041    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8042    then
8043      # The compiler can only warn and ignore the option if not recognized
8044      # So say no if there are warnings
8045      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8046      $SED '/^$/d' out/conftest.err >out/conftest.er2
8047      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8048        lt_cv_prog_compiler_c_o=yes
8049      fi
8050    fi
8051    chmod u+w . 2>&5
8052    $rm conftest*
8053    # SGI C++ compiler will create directory out/ii_files/ for
8054    # template instantiation
8055    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8056    $rm out/* && rmdir out
8057    cd ..
8058    rmdir conftest
8059    $rm conftest*
8060
8061 fi
8062 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8063 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8064
8065
8066 hard_links="nottested"
8067 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8068   # do not overwrite the value of need_locks provided by the user
8069   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8070 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8071   hard_links=yes
8072   $rm conftest*
8073   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8074   touch conftest.a
8075   ln conftest.a conftest.b 2>&5 || hard_links=no
8076   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8077   echo "$as_me:$LINENO: result: $hard_links" >&5
8078 echo "${ECHO_T}$hard_links" >&6
8079   if test "$hard_links" = no; then
8080     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8081 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8082     need_locks=warn
8083   fi
8084 else
8085   need_locks=no
8086 fi
8087
8088 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8089 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8090
8091   runpath_var=
8092   allow_undefined_flag=
8093   enable_shared_with_static_runtimes=no
8094   archive_cmds=
8095   archive_expsym_cmds=
8096   old_archive_From_new_cmds=
8097   old_archive_from_expsyms_cmds=
8098   export_dynamic_flag_spec=
8099   whole_archive_flag_spec=
8100   thread_safe_flag_spec=
8101   hardcode_libdir_flag_spec=
8102   hardcode_libdir_flag_spec_ld=
8103   hardcode_libdir_separator=
8104   hardcode_direct=no
8105   hardcode_minus_L=no
8106   hardcode_shlibpath_var=unsupported
8107   link_all_deplibs=unknown
8108   hardcode_automatic=no
8109   module_cmds=
8110   module_expsym_cmds=
8111   always_export_symbols=no
8112   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8113   # include_expsyms should be a list of space-separated symbols to be *always*
8114   # included in the symbol list
8115   include_expsyms=
8116   # exclude_expsyms can be an extended regexp of symbols to exclude
8117   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8118   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8119   # as well as any symbol that contains `d'.
8120   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8121   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8122   # platforms (ab)use it in PIC code, but their linkers get confused if
8123   # the symbol is explicitly referenced.  Since portable code cannot
8124   # rely on this symbol name, it's probably fine to never include it in
8125   # preloaded symbol tables.
8126   extract_expsyms_cmds=
8127   # Just being paranoid about ensuring that cc_basename is set.
8128   for cc_temp in $compiler""; do
8129   case $cc_temp in
8130     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8131     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8132     \-*) ;;
8133     *) break;;
8134   esac
8135 done
8136 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8137
8138   case $host_os in
8139   cygwin* | mingw* | pw32*)
8140     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8141     # When not using gcc, we currently assume that we are using
8142     # Microsoft Visual C++.
8143     if test "$GCC" != yes; then
8144       with_gnu_ld=no
8145     fi
8146     ;;
8147   openbsd*)
8148     with_gnu_ld=no
8149     ;;
8150   esac
8151
8152   ld_shlibs=yes
8153   if test "$with_gnu_ld" = yes; then
8154     # If archive_cmds runs LD, not CC, wlarc should be empty
8155     wlarc='${wl}'
8156
8157     # Set some defaults for GNU ld with shared library support. These
8158     # are reset later if shared libraries are not supported. Putting them
8159     # here allows them to be overridden if necessary.
8160     runpath_var=LD_RUN_PATH
8161     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8162     export_dynamic_flag_spec='${wl}--export-dynamic'
8163     # ancient GNU ld didn't support --whole-archive et. al.
8164     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8165         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8166       else
8167         whole_archive_flag_spec=
8168     fi
8169     supports_anon_versioning=no
8170     case `$LD -v 2>/dev/null` in
8171       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8172       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8173       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8174       *\ 2.11.*) ;; # other 2.11 versions
8175       *) supports_anon_versioning=yes ;;
8176     esac
8177
8178     # See if GNU ld supports shared libraries.
8179     case $host_os in
8180     aix3* | aix4* | aix5*)
8181       # On AIX/PPC, the GNU linker is very broken
8182       if test "$host_cpu" != ia64; then
8183         ld_shlibs=no
8184         cat <<EOF 1>&2
8185
8186 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8187 *** to be unable to reliably create shared libraries on AIX.
8188 *** Therefore, libtool is disabling shared libraries support.  If you
8189 *** really care for shared libraries, you may want to modify your PATH
8190 *** so that a non-GNU linker is found, and then restart.
8191
8192 EOF
8193       fi
8194       ;;
8195
8196     amigaos*)
8197       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)'
8198       hardcode_libdir_flag_spec='-L$libdir'
8199       hardcode_minus_L=yes
8200
8201       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8202       # that the semantics of dynamic libraries on AmigaOS, at least up
8203       # to version 4, is to share data among multiple programs linked
8204       # with the same dynamic library.  Since this doesn't match the
8205       # behavior of shared libraries on other platforms, we can't use
8206       # them.
8207       ld_shlibs=no
8208       ;;
8209
8210     beos*)
8211       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8212         allow_undefined_flag=unsupported
8213         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8214         # support --undefined.  This deserves some investigation.  FIXME
8215         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8216       else
8217         ld_shlibs=no
8218       fi
8219       ;;
8220
8221     cygwin* | mingw* | pw32*)
8222       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8223       # as there is no search path for DLLs.
8224       hardcode_libdir_flag_spec='-L$libdir'
8225       allow_undefined_flag=unsupported
8226       always_export_symbols=no
8227       enable_shared_with_static_runtimes=yes
8228       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8229
8230       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8231         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8232         # If the export-symbols file already is a .def file (1st line
8233         # is EXPORTS), use it as is; otherwise, prepend...
8234         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8235           cp $export_symbols $output_objdir/$soname.def;
8236         else
8237           echo EXPORTS > $output_objdir/$soname.def;
8238           cat $export_symbols >> $output_objdir/$soname.def;
8239         fi~
8240         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8241       else
8242         ld_shlibs=no
8243       fi
8244       ;;
8245
8246     linux*)
8247       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8248         tmp_addflag=
8249         case $cc_basename,$host_cpu in
8250         pgcc*)                          # Portland Group C compiler
8251           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'
8252           tmp_addflag=' $pic_flag'
8253           ;;
8254         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8255           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'
8256           tmp_addflag=' $pic_flag -Mnomain' ;;
8257         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8258           tmp_addflag=' -i_dynamic' ;;
8259         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8260           tmp_addflag=' -i_dynamic -nofor_main' ;;
8261         ifc* | ifort*)                  # Intel Fortran compiler
8262           tmp_addflag=' -nofor_main' ;;
8263         esac
8264         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265
8266         if test $supports_anon_versioning = yes; then
8267           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8268   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8269   $echo "local: *; };" >> $output_objdir/$libname.ver~
8270           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8271         fi
8272       else
8273         ld_shlibs=no
8274       fi
8275       ;;
8276
8277     netbsd*)
8278       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8279         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8280         wlarc=
8281       else
8282         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8284       fi
8285       ;;
8286
8287     solaris* | sysv5*)
8288       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8289         ld_shlibs=no
8290         cat <<EOF 1>&2
8291
8292 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8293 *** create shared libraries on Solaris systems.  Therefore, libtool
8294 *** is disabling shared libraries support.  We urge you to upgrade GNU
8295 *** binutils to release 2.9.1 or newer.  Another option is to modify
8296 *** your PATH or compiler configuration so that the native linker is
8297 *** used, and then restart.
8298
8299 EOF
8300       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8301         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8302         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8303       else
8304         ld_shlibs=no
8305       fi
8306       ;;
8307
8308     sunos4*)
8309       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8310       wlarc=
8311       hardcode_direct=yes
8312       hardcode_shlibpath_var=no
8313       ;;
8314
8315     *)
8316       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8317         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8318         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8319       else
8320         ld_shlibs=no
8321       fi
8322       ;;
8323     esac
8324
8325     if test "$ld_shlibs" = no; then
8326       runpath_var=
8327       hardcode_libdir_flag_spec=
8328       export_dynamic_flag_spec=
8329       whole_archive_flag_spec=
8330     fi
8331   else
8332     # PORTME fill in a description of your system's linker (not GNU ld)
8333     case $host_os in
8334     aix3*)
8335       allow_undefined_flag=unsupported
8336       always_export_symbols=yes
8337       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'
8338       # Note: this linker hardcodes the directories in LIBPATH if there
8339       # are no directories specified by -L.
8340       hardcode_minus_L=yes
8341       if test "$GCC" = yes && test -z "$link_static_flag"; then
8342         # Neither direct hardcoding nor static linking is supported with a
8343         # broken collect2.
8344         hardcode_direct=unsupported
8345       fi
8346       ;;
8347
8348     aix4* | aix5*)
8349       if test "$host_cpu" = ia64; then
8350         # On IA64, the linker does run time linking by default, so we don't
8351         # have to do anything special.
8352         aix_use_runtimelinking=no
8353         exp_sym_flag='-Bexport'
8354         no_entry_flag=""
8355       else
8356         # If we're using GNU nm, then we don't want the "-C" option.
8357         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8358         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8359           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'
8360         else
8361           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'
8362         fi
8363         aix_use_runtimelinking=no
8364
8365         # Test if we are trying to use run time linking or normal
8366         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8367         # need to do runtime linking.
8368         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8369           for ld_flag in $LDFLAGS; do
8370           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8371             aix_use_runtimelinking=yes
8372             break
8373           fi
8374           done
8375         esac
8376
8377         exp_sym_flag='-bexport'
8378         no_entry_flag='-bnoentry'
8379       fi
8380
8381       # When large executables or shared objects are built, AIX ld can
8382       # have problems creating the table of contents.  If linking a library
8383       # or program results in "error TOC overflow" add -mminimal-toc to
8384       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8385       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8386
8387       archive_cmds=''
8388       hardcode_direct=yes
8389       hardcode_libdir_separator=':'
8390       link_all_deplibs=yes
8391
8392       if test "$GCC" = yes; then
8393         case $host_os in aix4.[012]|aix4.[012].*)
8394         # We only want to do this on AIX 4.2 and lower, the check
8395         # below for broken collect2 doesn't work under 4.3+
8396           collect2name=`${CC} -print-prog-name=collect2`
8397           if test -f "$collect2name" && \
8398            strings "$collect2name" | grep resolve_lib_name >/dev/null
8399           then
8400           # We have reworked collect2
8401           hardcode_direct=yes
8402           else
8403           # We have old collect2
8404           hardcode_direct=unsupported
8405           # It fails to find uninstalled libraries when the uninstalled
8406           # path is not listed in the libpath.  Setting hardcode_minus_L
8407           # to unsupported forces relinking
8408           hardcode_minus_L=yes
8409           hardcode_libdir_flag_spec='-L$libdir'
8410           hardcode_libdir_separator=
8411           fi
8412         esac
8413         shared_flag='-shared'
8414         if test "$aix_use_runtimelinking" = yes; then
8415           shared_flag="$shared_flag "'${wl}-G'
8416         fi
8417       else
8418         # not using gcc
8419         if test "$host_cpu" = ia64; then
8420         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8421         # chokes on -Wl,-G. The following line is correct:
8422           shared_flag='-G'
8423         else
8424         if test "$aix_use_runtimelinking" = yes; then
8425             shared_flag='${wl}-G'
8426           else
8427             shared_flag='${wl}-bM:SRE'
8428         fi
8429         fi
8430       fi
8431
8432       # It seems that -bexpall does not export symbols beginning with
8433       # underscore (_), so it is better to generate a list of symbols to export.
8434       always_export_symbols=yes
8435       if test "$aix_use_runtimelinking" = yes; then
8436         # Warning - without using the other runtime loading flags (-brtl),
8437         # -berok will link without error, but may produce a broken library.
8438         allow_undefined_flag='-berok'
8439        # Determine the default libpath from the value encoded in an empty executable.
8440        cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h.  */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h.  */
8446
8447 int
8448 main ()
8449 {
8450
8451   ;
8452   return 0;
8453 }
8454 _ACEOF
8455 rm -f conftest.$ac_objext conftest$ac_exeext
8456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8457   (eval $ac_link) 2>conftest.er1
8458   ac_status=$?
8459   grep -v '^ *+' conftest.er1 >conftest.err
8460   rm -f conftest.er1
8461   cat conftest.err >&5
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); } &&
8464          { ac_try='test -z "$ac_c_werror_flag"
8465                          || test ! -s conftest.err'
8466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467   (eval $ac_try) 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }; } &&
8471          { ac_try='test -s conftest$ac_exeext'
8472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473   (eval $ac_try) 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); }; }; then
8477
8478 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8479 }'`
8480 # Check for a 64-bit object if we didn't find anything.
8481 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; }
8482 }'`; fi
8483 else
8484   echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8486
8487 fi
8488 rm -f conftest.err conftest.$ac_objext \
8489       conftest$ac_exeext conftest.$ac_ext
8490 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8491
8492        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8493         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"
8494        else
8495         if test "$host_cpu" = ia64; then
8496           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8497           allow_undefined_flag="-z nodefs"
8498           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"
8499         else
8500          # Determine the default libpath from the value encoded in an empty executable.
8501          cat >conftest.$ac_ext <<_ACEOF
8502 /* confdefs.h.  */
8503 _ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h.  */
8507
8508 int
8509 main ()
8510 {
8511
8512   ;
8513   return 0;
8514 }
8515 _ACEOF
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518   (eval $ac_link) 2>conftest.er1
8519   ac_status=$?
8520   grep -v '^ *+' conftest.er1 >conftest.err
8521   rm -f conftest.er1
8522   cat conftest.err >&5
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } &&
8525          { ac_try='test -z "$ac_c_werror_flag"
8526                          || test ! -s conftest.err'
8527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528   (eval $ac_try) 2>&5
8529   ac_status=$?
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); }; } &&
8532          { ac_try='test -s conftest$ac_exeext'
8533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534   (eval $ac_try) 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); }; }; then
8538
8539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8540 }'`
8541 # Check for a 64-bit object if we didn't find anything.
8542 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; }
8543 }'`; fi
8544 else
8545   echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548 fi
8549 rm -f conftest.err conftest.$ac_objext \
8550       conftest$ac_exeext conftest.$ac_ext
8551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8552
8553          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8554           # Warning - without using the other run time loading flags,
8555           # -berok will link without error, but may produce a broken library.
8556           no_undefined_flag=' ${wl}-bernotok'
8557           allow_undefined_flag=' ${wl}-berok'
8558           # -bexpall does not export symbols beginning with underscore (_)
8559           always_export_symbols=yes
8560           # Exported symbols can be pulled into shared objects from archives
8561           whole_archive_flag_spec=' '
8562           archive_cmds_need_lc=yes
8563           # This is similar to how AIX traditionally builds its shared libraries.
8564           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'
8565         fi
8566       fi
8567       ;;
8568
8569     amigaos*)
8570       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)'
8571       hardcode_libdir_flag_spec='-L$libdir'
8572       hardcode_minus_L=yes
8573       # see comment about different semantics on the GNU ld section
8574       ld_shlibs=no
8575       ;;
8576
8577     bsdi[45]*)
8578       export_dynamic_flag_spec=-rdynamic
8579       ;;
8580
8581     cygwin* | mingw* | pw32*)
8582       # When not using gcc, we currently assume that we are using
8583       # Microsoft Visual C++.
8584       # hardcode_libdir_flag_spec is actually meaningless, as there is
8585       # no search path for DLLs.
8586       hardcode_libdir_flag_spec=' '
8587       allow_undefined_flag=unsupported
8588       # Tell ltmain to make .lib files, not .a files.
8589       libext=lib
8590       # Tell ltmain to make .dll files, not .so files.
8591       shrext_cmds=".dll"
8592       # FIXME: Setting linknames here is a bad hack.
8593       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8594       # The linker will automatically build a .lib file if we build a DLL.
8595       old_archive_From_new_cmds='true'
8596       # FIXME: Should let the user specify the lib program.
8597       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8598       fix_srcfile_path='`cygpath -w "$srcfile"`'
8599       enable_shared_with_static_runtimes=yes
8600       ;;
8601
8602     darwin* | rhapsody*)
8603       case $host_os in
8604         rhapsody* | darwin1.[012])
8605          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8606          ;;
8607        *) # Darwin 1.3 on
8608          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8609            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8610          else
8611            case ${MACOSX_DEPLOYMENT_TARGET} in
8612              10.[012])
8613                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8614                ;;
8615              10.*)
8616                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8617                ;;
8618            esac
8619          fi
8620          ;;
8621       esac
8622       archive_cmds_need_lc=no
8623       hardcode_direct=no
8624       hardcode_automatic=yes
8625       hardcode_shlibpath_var=unsupported
8626       whole_archive_flag_spec=''
8627       link_all_deplibs=yes
8628     if test "$GCC" = yes ; then
8629         output_verbose_link_cmd='echo'
8630         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8631       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8632       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8633       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}'
8634       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}'
8635     else
8636       case $cc_basename in
8637         xlc*)
8638          output_verbose_link_cmd='echo'
8639          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8640          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8641           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8642          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}'
8643           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}'
8644           ;;
8645        *)
8646          ld_shlibs=no
8647           ;;
8648       esac
8649     fi
8650       ;;
8651
8652     dgux*)
8653       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8654       hardcode_libdir_flag_spec='-L$libdir'
8655       hardcode_shlibpath_var=no
8656       ;;
8657
8658     freebsd1*)
8659       ld_shlibs=no
8660       ;;
8661
8662     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8663     # support.  Future versions do this automatically, but an explicit c++rt0.o
8664     # does not break anything, and helps significantly (at the cost of a little
8665     # extra space).
8666     freebsd2.2*)
8667       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8668       hardcode_libdir_flag_spec='-R$libdir'
8669       hardcode_direct=yes
8670       hardcode_shlibpath_var=no
8671       ;;
8672
8673     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8674     freebsd2*)
8675       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8676       hardcode_direct=yes
8677       hardcode_minus_L=yes
8678       hardcode_shlibpath_var=no
8679       ;;
8680
8681     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8682     freebsd* | kfreebsd*-gnu | dragonfly*)
8683       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8684       hardcode_libdir_flag_spec='-R$libdir'
8685       hardcode_direct=yes
8686       hardcode_shlibpath_var=no
8687       ;;
8688
8689     hpux9*)
8690       if test "$GCC" = yes; then
8691         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'
8692       else
8693         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'
8694       fi
8695       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8696       hardcode_libdir_separator=:
8697       hardcode_direct=yes
8698
8699       # hardcode_minus_L: Not really in the search PATH,
8700       # but as the default location of the library.
8701       hardcode_minus_L=yes
8702       export_dynamic_flag_spec='${wl}-E'
8703       ;;
8704
8705     hpux10* | hpux11*)
8706       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8707         case $host_cpu in
8708         hppa*64*|ia64*)
8709           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8710           ;;
8711         *)
8712           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8713           ;;
8714         esac
8715       else
8716         case $host_cpu in
8717         hppa*64*|ia64*)
8718           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8719           ;;
8720         *)
8721           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8722           ;;
8723         esac
8724       fi
8725       if test "$with_gnu_ld" = no; then
8726         case $host_cpu in
8727         hppa*64*)
8728           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8729           hardcode_libdir_flag_spec_ld='+b $libdir'
8730           hardcode_libdir_separator=:
8731           hardcode_direct=no
8732           hardcode_shlibpath_var=no
8733           ;;
8734         ia64*)
8735           hardcode_libdir_flag_spec='-L$libdir'
8736           hardcode_direct=no
8737           hardcode_shlibpath_var=no
8738
8739           # hardcode_minus_L: Not really in the search PATH,
8740           # but as the default location of the library.
8741           hardcode_minus_L=yes
8742           ;;
8743         *)
8744           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8745           hardcode_libdir_separator=:
8746           hardcode_direct=yes
8747           export_dynamic_flag_spec='${wl}-E'
8748
8749           # hardcode_minus_L: Not really in the search PATH,
8750           # but as the default location of the library.
8751           hardcode_minus_L=yes
8752           ;;
8753         esac
8754       fi
8755       ;;
8756
8757     irix5* | irix6* | nonstopux*)
8758       if test "$GCC" = yes; then
8759         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'
8760       else
8761         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'
8762         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8763       fi
8764       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8765       hardcode_libdir_separator=:
8766       link_all_deplibs=yes
8767       ;;
8768
8769     netbsd*)
8770       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8771         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8772       else
8773         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8774       fi
8775       hardcode_libdir_flag_spec='-R$libdir'
8776       hardcode_direct=yes
8777       hardcode_shlibpath_var=no
8778       ;;
8779
8780     newsos6)
8781       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782       hardcode_direct=yes
8783       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8784       hardcode_libdir_separator=:
8785       hardcode_shlibpath_var=no
8786       ;;
8787
8788     openbsd*)
8789       hardcode_direct=yes
8790       hardcode_shlibpath_var=no
8791       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8792         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8793         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8794         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8795         export_dynamic_flag_spec='${wl}-E'
8796       else
8797        case $host_os in
8798          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8799            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8800            hardcode_libdir_flag_spec='-R$libdir'
8801            ;;
8802          *)
8803            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8804            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8805            ;;
8806        esac
8807       fi
8808       ;;
8809
8810     os2*)
8811       hardcode_libdir_flag_spec='-L$libdir'
8812       hardcode_minus_L=yes
8813       allow_undefined_flag=unsupported
8814       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'
8815       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8816       ;;
8817
8818     osf3*)
8819       if test "$GCC" = yes; then
8820         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8821         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'
8822       else
8823         allow_undefined_flag=' -expect_unresolved \*'
8824         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'
8825       fi
8826       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8827       hardcode_libdir_separator=:
8828       ;;
8829
8830     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8831       if test "$GCC" = yes; then
8832         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8833         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'
8834         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835       else
8836         allow_undefined_flag=' -expect_unresolved \*'
8837         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'
8838         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8839         $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'
8840
8841         # Both c and cxx compiler support -rpath directly
8842         hardcode_libdir_flag_spec='-rpath $libdir'
8843       fi
8844       hardcode_libdir_separator=:
8845       ;;
8846
8847     sco3.2v5*)
8848       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849       hardcode_shlibpath_var=no
8850       export_dynamic_flag_spec='${wl}-Bexport'
8851       runpath_var=LD_RUN_PATH
8852       hardcode_runpath_var=yes
8853       ;;
8854
8855     solaris*)
8856       no_undefined_flag=' -z text'
8857       if test "$GCC" = yes; then
8858         wlarc='${wl}'
8859         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8861           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8862       else
8863         wlarc=''
8864         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8866         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8867       fi
8868       hardcode_libdir_flag_spec='-R$libdir'
8869       hardcode_shlibpath_var=no
8870       case $host_os in
8871       solaris2.[0-5] | solaris2.[0-5].*) ;;
8872       *)
8873         # The compiler driver will combine linker options so we
8874         # cannot just pass the convience library names through
8875         # without $wl, iff we do not link with $LD.
8876         # Luckily, gcc supports the same syntax we need for Sun Studio.
8877         # Supported since Solaris 2.6 (maybe 2.5.1?)
8878         case $wlarc in
8879         '')
8880           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8881         *)
8882           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' ;;
8883         esac ;;
8884       esac
8885       link_all_deplibs=yes
8886       ;;
8887
8888     sunos4*)
8889       if test "x$host_vendor" = xsequent; then
8890         # Use $CC to link under sequent, because it throws in some extra .o
8891         # files that make .init and .fini sections work.
8892         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8893       else
8894         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8895       fi
8896       hardcode_libdir_flag_spec='-L$libdir'
8897       hardcode_direct=yes
8898       hardcode_minus_L=yes
8899       hardcode_shlibpath_var=no
8900       ;;
8901
8902     sysv4)
8903       case $host_vendor in
8904         sni)
8905           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906           hardcode_direct=yes # is this really true???
8907         ;;
8908         siemens)
8909           ## LD is ld it makes a PLAMLIB
8910           ## CC just makes a GrossModule.
8911           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8912           reload_cmds='$CC -r -o $output$reload_objs'
8913           hardcode_direct=no
8914         ;;
8915         motorola)
8916           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8918         ;;
8919       esac
8920       runpath_var='LD_RUN_PATH'
8921       hardcode_shlibpath_var=no
8922       ;;
8923
8924     sysv4.3*)
8925       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8926       hardcode_shlibpath_var=no
8927       export_dynamic_flag_spec='-Bexport'
8928       ;;
8929
8930     sysv4*MP*)
8931       if test -d /usr/nec; then
8932         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933         hardcode_shlibpath_var=no
8934         runpath_var=LD_RUN_PATH
8935         hardcode_runpath_var=yes
8936         ld_shlibs=yes
8937       fi
8938       ;;
8939
8940     sysv4.2uw2*)
8941       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8942       hardcode_direct=yes
8943       hardcode_minus_L=no
8944       hardcode_shlibpath_var=no
8945       hardcode_runpath_var=yes
8946       runpath_var=LD_RUN_PATH
8947       ;;
8948
8949    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8950       no_undefined_flag='${wl}-z ${wl}text'
8951       if test "$GCC" = yes; then
8952         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8953       else
8954         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8955       fi
8956       runpath_var='LD_RUN_PATH'
8957       hardcode_shlibpath_var=no
8958       ;;
8959
8960     sysv5*)
8961       no_undefined_flag=' -z text'
8962       # $CC -shared without GNU ld will not create a library from C++
8963       # object files and a static libstdc++, better avoid it by now
8964       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8965       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8966                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8967       hardcode_libdir_flag_spec=
8968       hardcode_shlibpath_var=no
8969       runpath_var='LD_RUN_PATH'
8970       ;;
8971
8972     uts4*)
8973       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8974       hardcode_libdir_flag_spec='-L$libdir'
8975       hardcode_shlibpath_var=no
8976       ;;
8977
8978     *)
8979       ld_shlibs=no
8980       ;;
8981     esac
8982   fi
8983
8984 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8985 echo "${ECHO_T}$ld_shlibs" >&6
8986 test "$ld_shlibs" = no && can_build_shared=no
8987
8988 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8989 if test "$GCC" = yes; then
8990   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8991 fi
8992
8993 #
8994 # Do we need to explicitly link libc?
8995 #
8996 case "x$archive_cmds_need_lc" in
8997 x|xyes)
8998   # Assume -lc should be added
8999   archive_cmds_need_lc=yes
9000
9001   if test "$enable_shared" = yes && test "$GCC" = yes; then
9002     case $archive_cmds in
9003     *'~'*)
9004       # FIXME: we may have to deal with multi-command sequences.
9005       ;;
9006     '$CC '*)
9007       # Test whether the compiler implicitly links with -lc since on some
9008       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9009       # to ld, don't add -lc before -lgcc.
9010       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9011 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9012       $rm conftest*
9013       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9014
9015       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016   (eval $ac_compile) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); } 2>conftest.err; then
9020         soname=conftest
9021         lib=conftest
9022         libobjs=conftest.$ac_objext
9023         deplibs=
9024         wl=$lt_prog_compiler_wl
9025         compiler_flags=-v
9026         linker_flags=-v
9027         verstring=
9028         output_objdir=.
9029         libname=conftest
9030         lt_save_allow_undefined_flag=$allow_undefined_flag
9031         allow_undefined_flag=
9032         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9033   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9034   ac_status=$?
9035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   (exit $ac_status); }
9037         then
9038           archive_cmds_need_lc=no
9039         else
9040           archive_cmds_need_lc=yes
9041         fi
9042         allow_undefined_flag=$lt_save_allow_undefined_flag
9043       else
9044         cat conftest.err 1>&5
9045       fi
9046       $rm conftest*
9047       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9048 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9049       ;;
9050     esac
9051   fi
9052   ;;
9053 esac
9054
9055 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9056 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9057 library_names_spec=
9058 libname_spec='lib$name'
9059 soname_spec=
9060 shrext_cmds=".so"
9061 postinstall_cmds=
9062 postuninstall_cmds=
9063 finish_cmds=
9064 finish_eval=
9065 shlibpath_var=
9066 shlibpath_overrides_runpath=unknown
9067 version_type=none
9068 dynamic_linker="$host_os ld.so"
9069 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9070 if test "$GCC" = yes; then
9071   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9072   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9073     # if the path contains ";" then we assume it to be the separator
9074     # otherwise default to the standard path separator (i.e. ":") - it is
9075     # assumed that no part of a normal pathname contains ";" but that should
9076     # okay in the real world where ";" in dirpaths is itself problematic.
9077     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9078   else
9079     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9080   fi
9081 else
9082   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9083 fi
9084 need_lib_prefix=unknown
9085 hardcode_into_libs=no
9086
9087 # when you set need_version to no, make sure it does not cause -set_version
9088 # flags to be left without arguments
9089 need_version=unknown
9090
9091 case $host_os in
9092 aix3*)
9093   version_type=linux
9094   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9095   shlibpath_var=LIBPATH
9096
9097   # AIX 3 has no versioning support, so we append a major version to the name.
9098   soname_spec='${libname}${release}${shared_ext}$major'
9099   ;;
9100
9101 aix4* | aix5*)
9102   version_type=linux
9103   need_lib_prefix=no
9104   need_version=no
9105   hardcode_into_libs=yes
9106   if test "$host_cpu" = ia64; then
9107     # AIX 5 supports IA64
9108     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9109     shlibpath_var=LD_LIBRARY_PATH
9110   else
9111     # With GCC up to 2.95.x, collect2 would create an import file
9112     # for dependence libraries.  The import file would start with
9113     # the line `#! .'.  This would cause the generated library to
9114     # depend on `.', always an invalid library.  This was fixed in
9115     # development snapshots of GCC prior to 3.0.
9116     case $host_os in
9117       aix4 | aix4.[01] | aix4.[01].*)
9118       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9119            echo ' yes '
9120            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9121         :
9122       else
9123         can_build_shared=no
9124       fi
9125       ;;
9126     esac
9127     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9128     # soname into executable. Probably we can add versioning support to
9129     # collect2, so additional links can be useful in future.
9130     if test "$aix_use_runtimelinking" = yes; then
9131       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9132       # instead of lib<name>.a to let people know that these are not
9133       # typical AIX shared libraries.
9134       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135     else
9136       # We preserve .a as extension for shared libraries through AIX4.2
9137       # and later when we are not doing run time linking.
9138       library_names_spec='${libname}${release}.a $libname.a'
9139       soname_spec='${libname}${release}${shared_ext}$major'
9140     fi
9141     shlibpath_var=LIBPATH
9142   fi
9143   ;;
9144
9145 amigaos*)
9146   library_names_spec='$libname.ixlibrary $libname.a'
9147   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9148   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'
9149   ;;
9150
9151 beos*)
9152   library_names_spec='${libname}${shared_ext}'
9153   dynamic_linker="$host_os ld.so"
9154   shlibpath_var=LIBRARY_PATH
9155   ;;
9156
9157 bsdi[45]*)
9158   version_type=linux
9159   need_version=no
9160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161   soname_spec='${libname}${release}${shared_ext}$major'
9162   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9163   shlibpath_var=LD_LIBRARY_PATH
9164   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9165   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9166   # the default ld.so.conf also contains /usr/contrib/lib and
9167   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9168   # libtool to hard-code these into programs
9169   ;;
9170
9171 cygwin* | mingw* | pw32*)
9172   version_type=windows
9173   shrext_cmds=".dll"
9174   need_version=no
9175   need_lib_prefix=no
9176
9177   case $GCC,$host_os in
9178   yes,cygwin* | yes,mingw* | yes,pw32*)
9179     library_names_spec='$libname.dll.a'
9180     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9181     postinstall_cmds='base_file=`basename \${file}`~
9182       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9183       dldir=$destdir/`dirname \$dlpath`~
9184       test -d \$dldir || mkdir -p \$dldir~
9185       $install_prog $dir/$dlname \$dldir/$dlname~
9186       chmod a+x \$dldir/$dlname'
9187     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9188       dlpath=$dir/\$dldll~
9189        $rm \$dlpath'
9190     shlibpath_overrides_runpath=yes
9191
9192     case $host_os in
9193     cygwin*)
9194       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9195       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9196       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9197       ;;
9198     mingw*)
9199       # MinGW DLLs use traditional 'lib' prefix
9200       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9201       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9202       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9203         # It is most probably a Windows format PATH printed by
9204         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9205         # path with ; separators, and with drive letters. We can handle the
9206         # drive letters (cygwin fileutils understands them), so leave them,
9207         # especially as we might pass files found there to a mingw objdump,
9208         # which wouldn't understand a cygwinified path. Ahh.
9209         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9210       else
9211         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9212       fi
9213       ;;
9214     pw32*)
9215       # pw32 DLLs use 'pw' prefix rather than 'lib'
9216       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9217       ;;
9218     esac
9219     ;;
9220
9221   *)
9222     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9223     ;;
9224   esac
9225   dynamic_linker='Win32 ld.exe'
9226   # FIXME: first we should search . and the directory the executable is in
9227   shlibpath_var=PATH
9228   ;;
9229
9230 darwin* | rhapsody*)
9231   dynamic_linker="$host_os dyld"
9232   version_type=darwin
9233   need_lib_prefix=no
9234   need_version=no
9235   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9236   soname_spec='${libname}${release}${major}$shared_ext'
9237   shlibpath_overrides_runpath=yes
9238   shlibpath_var=DYLD_LIBRARY_PATH
9239   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9240   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9241   if test "$GCC" = yes; then
9242     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"`
9243   else
9244     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9245   fi
9246   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9247   ;;
9248
9249 dgux*)
9250   version_type=linux
9251   need_lib_prefix=no
9252   need_version=no
9253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9254   soname_spec='${libname}${release}${shared_ext}$major'
9255   shlibpath_var=LD_LIBRARY_PATH
9256   ;;
9257
9258 freebsd1*)
9259   dynamic_linker=no
9260   ;;
9261
9262 kfreebsd*-gnu)
9263   version_type=linux
9264   need_lib_prefix=no
9265   need_version=no
9266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9267   soname_spec='${libname}${release}${shared_ext}$major'
9268   shlibpath_var=LD_LIBRARY_PATH
9269   shlibpath_overrides_runpath=no
9270   hardcode_into_libs=yes
9271   dynamic_linker='GNU ld.so'
9272   ;;
9273
9274 freebsd* | dragonfly*)
9275   # DragonFly does not have aout.  When/if they implement a new
9276   # versioning mechanism, adjust this.
9277   if test -x /usr/bin/objformat; then
9278     objformat=`/usr/bin/objformat`
9279   else
9280     case $host_os in
9281     freebsd[123]*) objformat=aout ;;
9282     *) objformat=elf ;;
9283     esac
9284   fi
9285   version_type=freebsd-$objformat
9286   case $version_type in
9287     freebsd-elf*)
9288       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9289       need_version=no
9290       need_lib_prefix=no
9291       ;;
9292     freebsd-*)
9293       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9294       need_version=yes
9295       ;;
9296   esac
9297   shlibpath_var=LD_LIBRARY_PATH
9298   case $host_os in
9299   freebsd2*)
9300     shlibpath_overrides_runpath=yes
9301     ;;
9302   freebsd3.[01]* | freebsdelf3.[01]*)
9303     shlibpath_overrides_runpath=yes
9304     hardcode_into_libs=yes
9305     ;;
9306   *) # from 3.2 on
9307     shlibpath_overrides_runpath=no
9308     hardcode_into_libs=yes
9309     ;;
9310   esac
9311   ;;
9312
9313 gnu*)
9314   version_type=linux
9315   need_lib_prefix=no
9316   need_version=no
9317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9318   soname_spec='${libname}${release}${shared_ext}$major'
9319   shlibpath_var=LD_LIBRARY_PATH
9320   hardcode_into_libs=yes
9321   ;;
9322
9323 hpux9* | hpux10* | hpux11*)
9324   # Give a soname corresponding to the major version so that dld.sl refuses to
9325   # link against other versions.
9326   version_type=sunos
9327   need_lib_prefix=no
9328   need_version=no
9329   case $host_cpu in
9330   ia64*)
9331     shrext_cmds='.so'
9332     hardcode_into_libs=yes
9333     dynamic_linker="$host_os dld.so"
9334     shlibpath_var=LD_LIBRARY_PATH
9335     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
9339       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9340     else
9341       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9342     fi
9343     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9344     ;;
9345    hppa*64*)
9346      shrext_cmds='.sl'
9347      hardcode_into_libs=yes
9348      dynamic_linker="$host_os dld.sl"
9349      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9350      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9351      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352      soname_spec='${libname}${release}${shared_ext}$major'
9353      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9354      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9355      ;;
9356    *)
9357     shrext_cmds='.sl'
9358     dynamic_linker="$host_os dld.sl"
9359     shlibpath_var=SHLIB_PATH
9360     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362     soname_spec='${libname}${release}${shared_ext}$major'
9363     ;;
9364   esac
9365   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9366   postinstall_cmds='chmod 555 $lib'
9367   ;;
9368
9369 irix5* | irix6* | nonstopux*)
9370   case $host_os in
9371     nonstopux*) version_type=nonstopux ;;
9372     *)
9373         if test "$lt_cv_prog_gnu_ld" = yes; then
9374                 version_type=linux
9375         else
9376                 version_type=irix
9377         fi ;;
9378   esac
9379   need_lib_prefix=no
9380   need_version=no
9381   soname_spec='${libname}${release}${shared_ext}$major'
9382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9383   case $host_os in
9384   irix5* | nonstopux*)
9385     libsuff= shlibsuff=
9386     ;;
9387   *)
9388     case $LD in # libtool.m4 will add one of these switches to LD
9389     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9390       libsuff= shlibsuff= libmagic=32-bit;;
9391     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9392       libsuff=32 shlibsuff=N32 libmagic=N32;;
9393     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9394       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9395     *) libsuff= shlibsuff= libmagic=never-match;;
9396     esac
9397     ;;
9398   esac
9399   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9400   shlibpath_overrides_runpath=no
9401   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9402   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9403   hardcode_into_libs=yes
9404   ;;
9405
9406 # No shared lib support for Linux oldld, aout, or coff.
9407 linux*oldld* | linux*aout* | linux*coff*)
9408   dynamic_linker=no
9409   ;;
9410
9411 # This must be Linux ELF.
9412 linux*)
9413   version_type=linux
9414   need_lib_prefix=no
9415   need_version=no
9416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417   soname_spec='${libname}${release}${shared_ext}$major'
9418   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9419   shlibpath_var=LD_LIBRARY_PATH
9420   shlibpath_overrides_runpath=no
9421   # This implies no fast_install, which is unacceptable.
9422   # Some rework will be needed to allow for fast_install
9423   # before this can be enabled.
9424   hardcode_into_libs=yes
9425
9426   # Append ld.so.conf contents to the search path
9427   if test -f /etc/ld.so.conf; then
9428     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' ' '`
9429     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9430   fi
9431
9432   # We used to test for /lib/ld.so.1 and disable shared libraries on
9433   # powerpc, because MkLinux only supported shared libraries with the
9434   # GNU dynamic linker.  Since this was broken with cross compilers,
9435   # most powerpc-linux boxes support dynamic linking these days and
9436   # people can always --disable-shared, the test was removed, and we
9437   # assume the GNU/Linux dynamic linker is in use.
9438   dynamic_linker='GNU/Linux ld.so'
9439   ;;
9440
9441 knetbsd*-gnu)
9442   version_type=linux
9443   need_lib_prefix=no
9444   need_version=no
9445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9446   soname_spec='${libname}${release}${shared_ext}$major'
9447   shlibpath_var=LD_LIBRARY_PATH
9448   shlibpath_overrides_runpath=no
9449   hardcode_into_libs=yes
9450   dynamic_linker='GNU ld.so'
9451   ;;
9452
9453 netbsd*)
9454   version_type=sunos
9455   need_lib_prefix=no
9456   need_version=no
9457   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9459     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9460     dynamic_linker='NetBSD (a.out) ld.so'
9461   else
9462     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9463     soname_spec='${libname}${release}${shared_ext}$major'
9464     dynamic_linker='NetBSD ld.elf_so'
9465   fi
9466   shlibpath_var=LD_LIBRARY_PATH
9467   shlibpath_overrides_runpath=yes
9468   hardcode_into_libs=yes
9469   ;;
9470
9471 newsos6)
9472   version_type=linux
9473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474   shlibpath_var=LD_LIBRARY_PATH
9475   shlibpath_overrides_runpath=yes
9476   ;;
9477
9478 nto-qnx*)
9479   version_type=linux
9480   need_lib_prefix=no
9481   need_version=no
9482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483   soname_spec='${libname}${release}${shared_ext}$major'
9484   shlibpath_var=LD_LIBRARY_PATH
9485   shlibpath_overrides_runpath=yes
9486   ;;
9487
9488 openbsd*)
9489   version_type=sunos
9490   need_lib_prefix=no
9491   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9492   case $host_os in
9493     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9494     *)                         need_version=no  ;;
9495   esac
9496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9497   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9498   shlibpath_var=LD_LIBRARY_PATH
9499   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9500     case $host_os in
9501       openbsd2.[89] | openbsd2.[89].*)
9502         shlibpath_overrides_runpath=no
9503         ;;
9504       *)
9505         shlibpath_overrides_runpath=yes
9506         ;;
9507       esac
9508   else
9509     shlibpath_overrides_runpath=yes
9510   fi
9511   ;;
9512
9513 os2*)
9514   libname_spec='$name'
9515   shrext_cmds=".dll"
9516   need_lib_prefix=no
9517   library_names_spec='$libname${shared_ext} $libname.a'
9518   dynamic_linker='OS/2 ld.exe'
9519   shlibpath_var=LIBPATH
9520   ;;
9521
9522 osf3* | osf4* | osf5*)
9523   version_type=osf
9524   need_lib_prefix=no
9525   need_version=no
9526   soname_spec='${libname}${release}${shared_ext}$major'
9527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528   shlibpath_var=LD_LIBRARY_PATH
9529   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9530   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9531   ;;
9532
9533 sco3.2v5*)
9534   version_type=osf
9535   soname_spec='${libname}${release}${shared_ext}$major'
9536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537   shlibpath_var=LD_LIBRARY_PATH
9538   ;;
9539
9540 solaris*)
9541   version_type=linux
9542   need_lib_prefix=no
9543   need_version=no
9544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545   soname_spec='${libname}${release}${shared_ext}$major'
9546   shlibpath_var=LD_LIBRARY_PATH
9547   shlibpath_overrides_runpath=yes
9548   hardcode_into_libs=yes
9549   # ldd complains unless libraries are executable
9550   postinstall_cmds='chmod +x $lib'
9551   ;;
9552
9553 sunos4*)
9554   version_type=sunos
9555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9556   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9557   shlibpath_var=LD_LIBRARY_PATH
9558   shlibpath_overrides_runpath=yes
9559   if test "$with_gnu_ld" = yes; then
9560     need_lib_prefix=no
9561   fi
9562   need_version=yes
9563   ;;
9564
9565 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9566   version_type=linux
9567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568   soname_spec='${libname}${release}${shared_ext}$major'
9569   shlibpath_var=LD_LIBRARY_PATH
9570   case $host_vendor in
9571     sni)
9572       shlibpath_overrides_runpath=no
9573       need_lib_prefix=no
9574       export_dynamic_flag_spec='${wl}-Blargedynsym'
9575       runpath_var=LD_RUN_PATH
9576       ;;
9577     siemens)
9578       need_lib_prefix=no
9579       ;;
9580     motorola)
9581       need_lib_prefix=no
9582       need_version=no
9583       shlibpath_overrides_runpath=no
9584       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9585       ;;
9586   esac
9587   ;;
9588
9589 sysv4*MP*)
9590   if test -d /usr/nec ;then
9591     version_type=linux
9592     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9593     soname_spec='$libname${shared_ext}.$major'
9594     shlibpath_var=LD_LIBRARY_PATH
9595   fi
9596   ;;
9597
9598 uts4*)
9599   version_type=linux
9600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601   soname_spec='${libname}${release}${shared_ext}$major'
9602   shlibpath_var=LD_LIBRARY_PATH
9603   ;;
9604
9605 *)
9606   dynamic_linker=no
9607   ;;
9608 esac
9609 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9610 echo "${ECHO_T}$dynamic_linker" >&6
9611 test "$dynamic_linker" = no && can_build_shared=no
9612
9613 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9614 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9615 hardcode_action=
9616 if test -n "$hardcode_libdir_flag_spec" || \
9617    test -n "$runpath_var" || \
9618    test "X$hardcode_automatic" = "Xyes" ; then
9619
9620   # We can hardcode non-existant directories.
9621   if test "$hardcode_direct" != no &&
9622      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9623      # have to relink, otherwise we might link with an installed library
9624      # when we should be linking with a yet-to-be-installed one
9625      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9626      test "$hardcode_minus_L" != no; then
9627     # Linking always hardcodes the temporary library directory.
9628     hardcode_action=relink
9629   else
9630     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9631     hardcode_action=immediate
9632   fi
9633 else
9634   # We cannot hardcode anything, or else we can only hardcode existing
9635   # directories.
9636   hardcode_action=unsupported
9637 fi
9638 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9639 echo "${ECHO_T}$hardcode_action" >&6
9640
9641 if test "$hardcode_action" = relink; then
9642   # Fast installation is not supported
9643   enable_fast_install=no
9644 elif test "$shlibpath_overrides_runpath" = yes ||
9645      test "$enable_shared" = no; then
9646   # Fast installation is not necessary
9647   enable_fast_install=needless
9648 fi
9649
9650 striplib=
9651 old_striplib=
9652 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9653 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9654 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9655   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9656   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9657   echo "$as_me:$LINENO: result: yes" >&5
9658 echo "${ECHO_T}yes" >&6
9659 else
9660 # FIXME - insert some real tests, host_os isn't really good enough
9661   case $host_os in
9662    darwin*)
9663        if test -n "$STRIP" ; then
9664          striplib="$STRIP -x"
9665          echo "$as_me:$LINENO: result: yes" >&5
9666 echo "${ECHO_T}yes" >&6
9667        else
9668   echo "$as_me:$LINENO: result: no" >&5
9669 echo "${ECHO_T}no" >&6
9670 fi
9671        ;;
9672    *)
9673   echo "$as_me:$LINENO: result: no" >&5
9674 echo "${ECHO_T}no" >&6
9675     ;;
9676   esac
9677 fi
9678
9679 if test "x$enable_dlopen" != xyes; then
9680   enable_dlopen=unknown
9681   enable_dlopen_self=unknown
9682   enable_dlopen_self_static=unknown
9683 else
9684   lt_cv_dlopen=no
9685   lt_cv_dlopen_libs=
9686
9687   case $host_os in
9688   beos*)
9689     lt_cv_dlopen="load_add_on"
9690     lt_cv_dlopen_libs=
9691     lt_cv_dlopen_self=yes
9692     ;;
9693
9694   mingw* | pw32*)
9695     lt_cv_dlopen="LoadLibrary"
9696     lt_cv_dlopen_libs=
9697    ;;
9698
9699   cygwin*)
9700     lt_cv_dlopen="dlopen"
9701     lt_cv_dlopen_libs=
9702    ;;
9703
9704   darwin*)
9705   # if libdl is installed we need to link against it
9706     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9707 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9708 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9709   echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711   ac_check_lib_save_LIBS=$LIBS
9712 LIBS="-ldl  $LIBS"
9713 cat >conftest.$ac_ext <<_ACEOF
9714 /* confdefs.h.  */
9715 _ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h.  */
9719
9720 /* Override any gcc2 internal prototype to avoid an error.  */
9721 #ifdef __cplusplus
9722 extern "C"
9723 #endif
9724 /* We use char because int might match the return type of a gcc2
9725    builtin and then its argument prototype would still apply.  */
9726 char dlopen ();
9727 int
9728 main ()
9729 {
9730 dlopen ();
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737   (eval $ac_link) 2>conftest.er1
9738   ac_status=$?
9739   grep -v '^ *+' conftest.er1 >conftest.err
9740   rm -f conftest.er1
9741   cat conftest.err >&5
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); } &&
9744          { ac_try='test -z "$ac_c_werror_flag"
9745                          || test ! -s conftest.err'
9746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747   (eval $ac_try) 2>&5
9748   ac_status=$?
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); }; } &&
9751          { ac_try='test -s conftest$ac_exeext'
9752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753   (eval $ac_try) 2>&5
9754   ac_status=$?
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); }; }; then
9757   ac_cv_lib_dl_dlopen=yes
9758 else
9759   echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9761
9762 ac_cv_lib_dl_dlopen=no
9763 fi
9764 rm -f conftest.err conftest.$ac_objext \
9765       conftest$ac_exeext conftest.$ac_ext
9766 LIBS=$ac_check_lib_save_LIBS
9767 fi
9768 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9769 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9770 if test $ac_cv_lib_dl_dlopen = yes; then
9771   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9772 else
9773
9774     lt_cv_dlopen="dyld"
9775     lt_cv_dlopen_libs=
9776     lt_cv_dlopen_self=yes
9777
9778 fi
9779
9780    ;;
9781
9782   *)
9783     echo "$as_me:$LINENO: checking for shl_load" >&5
9784 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9785 if test "${ac_cv_func_shl_load+set}" = set; then
9786   echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788   cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h.  */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h.  */
9794 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9796 #define shl_load innocuous_shl_load
9797
9798 /* System header to define __stub macros and hopefully few prototypes,
9799     which can conflict with char shl_load (); below.
9800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801     <limits.h> exists even on freestanding compilers.  */
9802
9803 #ifdef __STDC__
9804 # include <limits.h>
9805 #else
9806 # include <assert.h>
9807 #endif
9808
9809 #undef shl_load
9810
9811 /* Override any gcc2 internal prototype to avoid an error.  */
9812 #ifdef __cplusplus
9813 extern "C"
9814 {
9815 #endif
9816 /* We use char because int might match the return type of a gcc2
9817    builtin and then its argument prototype would still apply.  */
9818 char shl_load ();
9819 /* The GNU C library defines this for functions which it implements
9820     to always fail with ENOSYS.  Some functions are actually named
9821     something starting with __ and the normal name is an alias.  */
9822 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9823 choke me
9824 #else
9825 char (*f) () = shl_load;
9826 #endif
9827 #ifdef __cplusplus
9828 }
9829 #endif
9830
9831 int
9832 main ()
9833 {
9834 return f != shl_load;
9835   ;
9836   return 0;
9837 }
9838 _ACEOF
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841   (eval $ac_link) 2>conftest.er1
9842   ac_status=$?
9843   grep -v '^ *+' conftest.er1 >conftest.err
9844   rm -f conftest.er1
9845   cat conftest.err >&5
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); } &&
9848          { ac_try='test -z "$ac_c_werror_flag"
9849                          || test ! -s conftest.err'
9850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851   (eval $ac_try) 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); }; } &&
9855          { ac_try='test -s conftest$ac_exeext'
9856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857   (eval $ac_try) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); }; }; then
9861   ac_cv_func_shl_load=yes
9862 else
9863   echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 ac_cv_func_shl_load=no
9867 fi
9868 rm -f conftest.err conftest.$ac_objext \
9869       conftest$ac_exeext conftest.$ac_ext
9870 fi
9871 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9872 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9873 if test $ac_cv_func_shl_load = yes; then
9874   lt_cv_dlopen="shl_load"
9875 else
9876   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9877 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9878 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9879   echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881   ac_check_lib_save_LIBS=$LIBS
9882 LIBS="-ldld  $LIBS"
9883 cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h.  */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h.  */
9889
9890 /* Override any gcc2 internal prototype to avoid an error.  */
9891 #ifdef __cplusplus
9892 extern "C"
9893 #endif
9894 /* We use char because int might match the return type of a gcc2
9895    builtin and then its argument prototype would still apply.  */
9896 char shl_load ();
9897 int
9898 main ()
9899 {
9900 shl_load ();
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907   (eval $ac_link) 2>conftest.er1
9908   ac_status=$?
9909   grep -v '^ *+' conftest.er1 >conftest.err
9910   rm -f conftest.er1
9911   cat conftest.err >&5
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -z "$ac_c_werror_flag"
9915                          || test ! -s conftest.err'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; } &&
9921          { ac_try='test -s conftest$ac_exeext'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   ac_cv_lib_dld_shl_load=yes
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932 ac_cv_lib_dld_shl_load=no
9933 fi
9934 rm -f conftest.err conftest.$ac_objext \
9935       conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9937 fi
9938 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9939 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9940 if test $ac_cv_lib_dld_shl_load = yes; then
9941   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9942 else
9943   echo "$as_me:$LINENO: checking for dlopen" >&5
9944 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9945 if test "${ac_cv_func_dlopen+set}" = set; then
9946   echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948   cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h.  */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h.  */
9954 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9956 #define dlopen innocuous_dlopen
9957
9958 /* System header to define __stub macros and hopefully few prototypes,
9959     which can conflict with char dlopen (); below.
9960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9961     <limits.h> exists even on freestanding compilers.  */
9962
9963 #ifdef __STDC__
9964 # include <limits.h>
9965 #else
9966 # include <assert.h>
9967 #endif
9968
9969 #undef dlopen
9970
9971 /* Override any gcc2 internal prototype to avoid an error.  */
9972 #ifdef __cplusplus
9973 extern "C"
9974 {
9975 #endif
9976 /* We use char because int might match the return type of a gcc2
9977    builtin and then its argument prototype would still apply.  */
9978 char dlopen ();
9979 /* The GNU C library defines this for functions which it implements
9980     to always fail with ENOSYS.  Some functions are actually named
9981     something starting with __ and the normal name is an alias.  */
9982 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9983 choke me
9984 #else
9985 char (*f) () = dlopen;
9986 #endif
9987 #ifdef __cplusplus
9988 }
9989 #endif
9990
9991 int
9992 main ()
9993 {
9994 return f != dlopen;
9995   ;
9996   return 0;
9997 }
9998 _ACEOF
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001   (eval $ac_link) 2>conftest.er1
10002   ac_status=$?
10003   grep -v '^ *+' conftest.er1 >conftest.err
10004   rm -f conftest.er1
10005   cat conftest.err >&5
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); } &&
10008          { ac_try='test -z "$ac_c_werror_flag"
10009                          || test ! -s conftest.err'
10010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011   (eval $ac_try) 2>&5
10012   ac_status=$?
10013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014   (exit $ac_status); }; } &&
10015          { ac_try='test -s conftest$ac_exeext'
10016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017   (eval $ac_try) 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }; }; then
10021   ac_cv_func_dlopen=yes
10022 else
10023   echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10025
10026 ac_cv_func_dlopen=no
10027 fi
10028 rm -f conftest.err conftest.$ac_objext \
10029       conftest$ac_exeext conftest.$ac_ext
10030 fi
10031 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10032 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10033 if test $ac_cv_func_dlopen = yes; then
10034   lt_cv_dlopen="dlopen"
10035 else
10036   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10037 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10038 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10039   echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041   ac_check_lib_save_LIBS=$LIBS
10042 LIBS="-ldl  $LIBS"
10043 cat >conftest.$ac_ext <<_ACEOF
10044 /* confdefs.h.  */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h.  */
10049
10050 /* Override any gcc2 internal prototype to avoid an error.  */
10051 #ifdef __cplusplus
10052 extern "C"
10053 #endif
10054 /* We use char because int might match the return type of a gcc2
10055    builtin and then its argument prototype would still apply.  */
10056 char dlopen ();
10057 int
10058 main ()
10059 {
10060 dlopen ();
10061   ;
10062   return 0;
10063 }
10064 _ACEOF
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067   (eval $ac_link) 2>conftest.er1
10068   ac_status=$?
10069   grep -v '^ *+' conftest.er1 >conftest.err
10070   rm -f conftest.er1
10071   cat conftest.err >&5
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); } &&
10074          { ac_try='test -z "$ac_c_werror_flag"
10075                          || test ! -s conftest.err'
10076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077   (eval $ac_try) 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; } &&
10081          { ac_try='test -s conftest$ac_exeext'
10082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083   (eval $ac_try) 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); }; }; then
10087   ac_cv_lib_dl_dlopen=yes
10088 else
10089   echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10091
10092 ac_cv_lib_dl_dlopen=no
10093 fi
10094 rm -f conftest.err conftest.$ac_objext \
10095       conftest$ac_exeext conftest.$ac_ext
10096 LIBS=$ac_check_lib_save_LIBS
10097 fi
10098 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10099 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10100 if test $ac_cv_lib_dl_dlopen = yes; then
10101   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10102 else
10103   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10104 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10105 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10106   echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108   ac_check_lib_save_LIBS=$LIBS
10109 LIBS="-lsvld  $LIBS"
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h.  */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h.  */
10116
10117 /* Override any gcc2 internal prototype to avoid an error.  */
10118 #ifdef __cplusplus
10119 extern "C"
10120 #endif
10121 /* We use char because int might match the return type of a gcc2
10122    builtin and then its argument prototype would still apply.  */
10123 char dlopen ();
10124 int
10125 main ()
10126 {
10127 dlopen ();
10128   ;
10129   return 0;
10130 }
10131 _ACEOF
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134   (eval $ac_link) 2>conftest.er1
10135   ac_status=$?
10136   grep -v '^ *+' conftest.er1 >conftest.err
10137   rm -f conftest.er1
10138   cat conftest.err >&5
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); } &&
10141          { ac_try='test -z "$ac_c_werror_flag"
10142                          || test ! -s conftest.err'
10143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144   (eval $ac_try) 2>&5
10145   ac_status=$?
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); }; } &&
10148          { ac_try='test -s conftest$ac_exeext'
10149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150   (eval $ac_try) 2>&5
10151   ac_status=$?
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); }; }; then
10154   ac_cv_lib_svld_dlopen=yes
10155 else
10156   echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 ac_cv_lib_svld_dlopen=no
10160 fi
10161 rm -f conftest.err conftest.$ac_objext \
10162       conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10164 fi
10165 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10166 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10167 if test $ac_cv_lib_svld_dlopen = yes; then
10168   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10169 else
10170   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10171 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10172 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10173   echo $ECHO_N "(cached) $ECHO_C" >&6
10174 else
10175   ac_check_lib_save_LIBS=$LIBS
10176 LIBS="-ldld  $LIBS"
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h.  */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h.  */
10183
10184 /* Override any gcc2 internal prototype to avoid an error.  */
10185 #ifdef __cplusplus
10186 extern "C"
10187 #endif
10188 /* We use char because int might match the return type of a gcc2
10189    builtin and then its argument prototype would still apply.  */
10190 char dld_link ();
10191 int
10192 main ()
10193 {
10194 dld_link ();
10195   ;
10196   return 0;
10197 }
10198 _ACEOF
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201   (eval $ac_link) 2>conftest.er1
10202   ac_status=$?
10203   grep -v '^ *+' conftest.er1 >conftest.err
10204   rm -f conftest.er1
10205   cat conftest.err >&5
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); } &&
10208          { ac_try='test -z "$ac_c_werror_flag"
10209                          || test ! -s conftest.err'
10210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211   (eval $ac_try) 2>&5
10212   ac_status=$?
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); }; } &&
10215          { ac_try='test -s conftest$ac_exeext'
10216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217   (eval $ac_try) 2>&5
10218   ac_status=$?
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); }; }; then
10221   ac_cv_lib_dld_dld_link=yes
10222 else
10223   echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226 ac_cv_lib_dld_dld_link=no
10227 fi
10228 rm -f conftest.err conftest.$ac_objext \
10229       conftest$ac_exeext conftest.$ac_ext
10230 LIBS=$ac_check_lib_save_LIBS
10231 fi
10232 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10233 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10234 if test $ac_cv_lib_dld_dld_link = yes; then
10235   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10236 fi
10237
10238
10239 fi
10240
10241
10242 fi
10243
10244
10245 fi
10246
10247
10248 fi
10249
10250
10251 fi
10252
10253     ;;
10254   esac
10255
10256   if test "x$lt_cv_dlopen" != xno; then
10257     enable_dlopen=yes
10258   else
10259     enable_dlopen=no
10260   fi
10261
10262   case $lt_cv_dlopen in
10263   dlopen)
10264     save_CPPFLAGS="$CPPFLAGS"
10265     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10266
10267     save_LDFLAGS="$LDFLAGS"
10268     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10269
10270     save_LIBS="$LIBS"
10271     LIBS="$lt_cv_dlopen_libs $LIBS"
10272
10273     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10274 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10275 if test "${lt_cv_dlopen_self+set}" = set; then
10276   echo $ECHO_N "(cached) $ECHO_C" >&6
10277 else
10278           if test "$cross_compiling" = yes; then :
10279   lt_cv_dlopen_self=cross
10280 else
10281   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10282   lt_status=$lt_dlunknown
10283   cat > conftest.$ac_ext <<EOF
10284 #line 10284 "configure"
10285 #include "confdefs.h"
10286
10287 #if HAVE_DLFCN_H
10288 #include <dlfcn.h>
10289 #endif
10290
10291 #include <stdio.h>
10292
10293 #ifdef RTLD_GLOBAL
10294 #  define LT_DLGLOBAL           RTLD_GLOBAL
10295 #else
10296 #  ifdef DL_GLOBAL
10297 #    define LT_DLGLOBAL         DL_GLOBAL
10298 #  else
10299 #    define LT_DLGLOBAL         0
10300 #  endif
10301 #endif
10302
10303 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10304    find out it does not work in some platform. */
10305 #ifndef LT_DLLAZY_OR_NOW
10306 #  ifdef RTLD_LAZY
10307 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10308 #  else
10309 #    ifdef DL_LAZY
10310 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10311 #    else
10312 #      ifdef RTLD_NOW
10313 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10314 #      else
10315 #        ifdef DL_NOW
10316 #          define LT_DLLAZY_OR_NOW      DL_NOW
10317 #        else
10318 #          define LT_DLLAZY_OR_NOW      0
10319 #        endif
10320 #      endif
10321 #    endif
10322 #  endif
10323 #endif
10324
10325 #ifdef __cplusplus
10326 extern "C" void exit (int);
10327 #endif
10328
10329 void fnord() { int i=42;}
10330 int main ()
10331 {
10332   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10333   int status = $lt_dlunknown;
10334
10335   if (self)
10336     {
10337       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10338       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10339       /* dlclose (self); */
10340     }
10341
10342     exit (status);
10343 }
10344 EOF
10345   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10346   (eval $ac_link) 2>&5
10347   ac_status=$?
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10350     (./conftest; exit; ) >&5 2>/dev/null
10351     lt_status=$?
10352     case x$lt_status in
10353       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10354       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10355       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10356     esac
10357   else :
10358     # compilation failed
10359     lt_cv_dlopen_self=no
10360   fi
10361 fi
10362 rm -fr conftest*
10363
10364
10365 fi
10366 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10367 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10368
10369     if test "x$lt_cv_dlopen_self" = xyes; then
10370       LDFLAGS="$LDFLAGS $link_static_flag"
10371       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10372 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10373 if test "${lt_cv_dlopen_self_static+set}" = set; then
10374   echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376           if test "$cross_compiling" = yes; then :
10377   lt_cv_dlopen_self_static=cross
10378 else
10379   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10380   lt_status=$lt_dlunknown
10381   cat > conftest.$ac_ext <<EOF
10382 #line 10382 "configure"
10383 #include "confdefs.h"
10384
10385 #if HAVE_DLFCN_H
10386 #include <dlfcn.h>
10387 #endif
10388
10389 #include <stdio.h>
10390
10391 #ifdef RTLD_GLOBAL
10392 #  define LT_DLGLOBAL           RTLD_GLOBAL
10393 #else
10394 #  ifdef DL_GLOBAL
10395 #    define LT_DLGLOBAL         DL_GLOBAL
10396 #  else
10397 #    define LT_DLGLOBAL         0
10398 #  endif
10399 #endif
10400
10401 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10402    find out it does not work in some platform. */
10403 #ifndef LT_DLLAZY_OR_NOW
10404 #  ifdef RTLD_LAZY
10405 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10406 #  else
10407 #    ifdef DL_LAZY
10408 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10409 #    else
10410 #      ifdef RTLD_NOW
10411 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10412 #      else
10413 #        ifdef DL_NOW
10414 #          define LT_DLLAZY_OR_NOW      DL_NOW
10415 #        else
10416 #          define LT_DLLAZY_OR_NOW      0
10417 #        endif
10418 #      endif
10419 #    endif
10420 #  endif
10421 #endif
10422
10423 #ifdef __cplusplus
10424 extern "C" void exit (int);
10425 #endif
10426
10427 void fnord() { int i=42;}
10428 int main ()
10429 {
10430   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10431   int status = $lt_dlunknown;
10432
10433   if (self)
10434     {
10435       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10436       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10437       /* dlclose (self); */
10438     }
10439
10440     exit (status);
10441 }
10442 EOF
10443   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444   (eval $ac_link) 2>&5
10445   ac_status=$?
10446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10448     (./conftest; exit; ) >&5 2>/dev/null
10449     lt_status=$?
10450     case x$lt_status in
10451       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10452       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10453       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10454     esac
10455   else :
10456     # compilation failed
10457     lt_cv_dlopen_self_static=no
10458   fi
10459 fi
10460 rm -fr conftest*
10461
10462
10463 fi
10464 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10465 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10466     fi
10467
10468     CPPFLAGS="$save_CPPFLAGS"
10469     LDFLAGS="$save_LDFLAGS"
10470     LIBS="$save_LIBS"
10471     ;;
10472   esac
10473
10474   case $lt_cv_dlopen_self in
10475   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10476   *) enable_dlopen_self=unknown ;;
10477   esac
10478
10479   case $lt_cv_dlopen_self_static in
10480   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10481   *) enable_dlopen_self_static=unknown ;;
10482   esac
10483 fi
10484
10485
10486 # Report which librarie types wil actually be built
10487 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10488 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10489 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10490 echo "${ECHO_T}$can_build_shared" >&6
10491
10492 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10493 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10494 test "$can_build_shared" = "no" && enable_shared=no
10495
10496 # On AIX, shared libraries and static libraries use the same namespace, and
10497 # are all built from PIC.
10498 case $host_os in
10499 aix3*)
10500   test "$enable_shared" = yes && enable_static=no
10501   if test -n "$RANLIB"; then
10502     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10503     postinstall_cmds='$RANLIB $lib'
10504   fi
10505   ;;
10506
10507 aix4* | aix5*)
10508   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10509     test "$enable_shared" = yes && enable_static=no
10510   fi
10511     ;;
10512 esac
10513 echo "$as_me:$LINENO: result: $enable_shared" >&5
10514 echo "${ECHO_T}$enable_shared" >&6
10515
10516 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10517 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10518 # Make sure either enable_shared or enable_static is yes.
10519 test "$enable_shared" = yes || enable_static=yes
10520 echo "$as_me:$LINENO: result: $enable_static" >&5
10521 echo "${ECHO_T}$enable_static" >&6
10522
10523 # The else clause should only fire when bootstrapping the
10524 # libtool distribution, otherwise you forgot to ship ltmain.sh
10525 # with your package, and you will get complaints that there are
10526 # no rules to generate ltmain.sh.
10527 if test -f "$ltmain"; then
10528   # See if we are running on zsh, and set the options which allow our commands through
10529   # without removal of \ escapes.
10530   if test -n "${ZSH_VERSION+set}" ; then
10531     setopt NO_GLOB_SUBST
10532   fi
10533   # Now quote all the things that may contain metacharacters while being
10534   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10535   # variables and quote the copies for generation of the libtool script.
10536   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10537     SED SHELL STRIP \
10538     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10539     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10540     deplibs_check_method reload_flag reload_cmds need_locks \
10541     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10542     lt_cv_sys_global_symbol_to_c_name_address \
10543     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10544     old_postinstall_cmds old_postuninstall_cmds \
10545     compiler \
10546     CC \
10547     LD \
10548     lt_prog_compiler_wl \
10549     lt_prog_compiler_pic \
10550     lt_prog_compiler_static \
10551     lt_prog_compiler_no_builtin_flag \
10552     export_dynamic_flag_spec \
10553     thread_safe_flag_spec \
10554     whole_archive_flag_spec \
10555     enable_shared_with_static_runtimes \
10556     old_archive_cmds \
10557     old_archive_from_new_cmds \
10558     predep_objects \
10559     postdep_objects \
10560     predeps \
10561     postdeps \
10562     compiler_lib_search_path \
10563     archive_cmds \
10564     archive_expsym_cmds \
10565     postinstall_cmds \
10566     postuninstall_cmds \
10567     old_archive_from_expsyms_cmds \
10568     allow_undefined_flag \
10569     no_undefined_flag \
10570     export_symbols_cmds \
10571     hardcode_libdir_flag_spec \
10572     hardcode_libdir_flag_spec_ld \
10573     hardcode_libdir_separator \
10574     hardcode_automatic \
10575     module_cmds \
10576     module_expsym_cmds \
10577     lt_cv_prog_compiler_c_o \
10578     exclude_expsyms \
10579     include_expsyms; do
10580
10581     case $var in
10582     old_archive_cmds | \
10583     old_archive_from_new_cmds | \
10584     archive_cmds | \
10585     archive_expsym_cmds | \
10586     module_cmds | \
10587     module_expsym_cmds | \
10588     old_archive_from_expsyms_cmds | \
10589     export_symbols_cmds | \
10590     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10591     postinstall_cmds | postuninstall_cmds | \
10592     old_postinstall_cmds | old_postuninstall_cmds | \
10593     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10594       # Double-quote double-evaled strings.
10595       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10596       ;;
10597     *)
10598       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10599       ;;
10600     esac
10601   done
10602
10603   case $lt_echo in
10604   *'\$0 --fallback-echo"')
10605     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10606     ;;
10607   esac
10608
10609 cfgfile="${ofile}T"
10610   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10611   $rm -f "$cfgfile"
10612   { echo "$as_me:$LINENO: creating $ofile" >&5
10613 echo "$as_me: creating $ofile" >&6;}
10614
10615   cat <<__EOF__ >> "$cfgfile"
10616 #! $SHELL
10617
10618 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10619 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10620 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10621 #
10622 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10623 # Free Software Foundation, Inc.
10624 #
10625 # This file is part of GNU Libtool:
10626 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10627 #
10628 # This program is free software; you can redistribute it and/or modify
10629 # it under the terms of the GNU General Public License as published by
10630 # the Free Software Foundation; either version 2 of the License, or
10631 # (at your option) any later version.
10632 #
10633 # This program is distributed in the hope that it will be useful, but
10634 # WITHOUT ANY WARRANTY; without even the implied warranty of
10635 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10636 # General Public License for more details.
10637 #
10638 # You should have received a copy of the GNU General Public License
10639 # along with this program; if not, write to the Free Software
10640 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10641 #
10642 # As a special exception to the GNU General Public License, if you
10643 # distribute this file as part of a program that contains a
10644 # configuration script generated by Autoconf, you may include it under
10645 # the same distribution terms that you use for the rest of that program.
10646
10647 # A sed program that does not truncate output.
10648 SED=$lt_SED
10649
10650 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10651 Xsed="$SED -e 1s/^X//"
10652
10653 # The HP-UX ksh and POSIX shell print the target directory to stdout
10654 # if CDPATH is set.
10655 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10656
10657 # The names of the tagged configurations supported by this script.
10658 available_tags=
10659
10660 # ### BEGIN LIBTOOL CONFIG
10661
10662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10663
10664 # Shell to use when invoking shell scripts.
10665 SHELL=$lt_SHELL
10666
10667 # Whether or not to build shared libraries.
10668 build_libtool_libs=$enable_shared
10669
10670 # Whether or not to build static libraries.
10671 build_old_libs=$enable_static
10672
10673 # Whether or not to add -lc for building shared libraries.
10674 build_libtool_need_lc=$archive_cmds_need_lc
10675
10676 # Whether or not to disallow shared libs when runtime libs are static
10677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10678
10679 # Whether or not to optimize for fast installation.
10680 fast_install=$enable_fast_install
10681
10682 # The host system.
10683 host_alias=$host_alias
10684 host=$host
10685 host_os=$host_os
10686
10687 # The build system.
10688 build_alias=$build_alias
10689 build=$build
10690 build_os=$build_os
10691
10692 # An echo program that does not interpret backslashes.
10693 echo=$lt_echo
10694
10695 # The archiver.
10696 AR=$lt_AR
10697 AR_FLAGS=$lt_AR_FLAGS
10698
10699 # A C compiler.
10700 LTCC=$lt_LTCC
10701
10702 # A language-specific compiler.
10703 CC=$lt_compiler
10704
10705 # Is the compiler the GNU C compiler?
10706 with_gcc=$GCC
10707
10708 # An ERE matcher.
10709 EGREP=$lt_EGREP
10710
10711 # The linker used to build libraries.
10712 LD=$lt_LD
10713
10714 # Whether we need hard or soft links.
10715 LN_S=$lt_LN_S
10716
10717 # A BSD-compatible nm program.
10718 NM=$lt_NM
10719
10720 # A symbol stripping program
10721 STRIP=$lt_STRIP
10722
10723 # Used to examine libraries when file_magic_cmd begins "file"
10724 MAGIC_CMD=$MAGIC_CMD
10725
10726 # Used on cygwin: DLL creation program.
10727 DLLTOOL="$DLLTOOL"
10728
10729 # Used on cygwin: object dumper.
10730 OBJDUMP="$OBJDUMP"
10731
10732 # Used on cygwin: assembler.
10733 AS="$AS"
10734
10735 # The name of the directory that contains temporary libtool files.
10736 objdir=$objdir
10737
10738 # How to create reloadable object files.
10739 reload_flag=$lt_reload_flag
10740 reload_cmds=$lt_reload_cmds
10741
10742 # How to pass a linker flag through the compiler.
10743 wl=$lt_lt_prog_compiler_wl
10744
10745 # Object file suffix (normally "o").
10746 objext="$ac_objext"
10747
10748 # Old archive suffix (normally "a").
10749 libext="$libext"
10750
10751 # Shared library suffix (normally ".so").
10752 shrext_cmds='$shrext_cmds'
10753
10754 # Executable file suffix (normally "").
10755 exeext="$exeext"
10756
10757 # Additional compiler flags for building library objects.
10758 pic_flag=$lt_lt_prog_compiler_pic
10759 pic_mode=$pic_mode
10760
10761 # What is the maximum length of a command?
10762 max_cmd_len=$lt_cv_sys_max_cmd_len
10763
10764 # Does compiler simultaneously support -c and -o options?
10765 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10766
10767 # Must we lock files when doing compilation?
10768 need_locks=$lt_need_locks
10769
10770 # Do we need the lib prefix for modules?
10771 need_lib_prefix=$need_lib_prefix
10772
10773 # Do we need a version for libraries?
10774 need_version=$need_version
10775
10776 # Whether dlopen is supported.
10777 dlopen_support=$enable_dlopen
10778
10779 # Whether dlopen of programs is supported.
10780 dlopen_self=$enable_dlopen_self
10781
10782 # Whether dlopen of statically linked programs is supported.
10783 dlopen_self_static=$enable_dlopen_self_static
10784
10785 # Compiler flag to prevent dynamic linking.
10786 link_static_flag=$lt_lt_prog_compiler_static
10787
10788 # Compiler flag to turn off builtin functions.
10789 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10790
10791 # Compiler flag to allow reflexive dlopens.
10792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10793
10794 # Compiler flag to generate shared objects directly from archives.
10795 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10796
10797 # Compiler flag to generate thread-safe objects.
10798 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10799
10800 # Library versioning type.
10801 version_type=$version_type
10802
10803 # Format of library name prefix.
10804 libname_spec=$lt_libname_spec
10805
10806 # List of archive names.  First name is the real one, the rest are links.
10807 # The last name is the one that the linker finds with -lNAME.
10808 library_names_spec=$lt_library_names_spec
10809
10810 # The coded name of the library, if different from the real name.
10811 soname_spec=$lt_soname_spec
10812
10813 # Commands used to build and install an old-style archive.
10814 RANLIB=$lt_RANLIB
10815 old_archive_cmds=$lt_old_archive_cmds
10816 old_postinstall_cmds=$lt_old_postinstall_cmds
10817 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10818
10819 # Create an old-style archive from a shared archive.
10820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10821
10822 # Create a temporary old-style archive to link instead of a shared archive.
10823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10824
10825 # Commands used to build and install a shared archive.
10826 archive_cmds=$lt_archive_cmds
10827 archive_expsym_cmds=$lt_archive_expsym_cmds
10828 postinstall_cmds=$lt_postinstall_cmds
10829 postuninstall_cmds=$lt_postuninstall_cmds
10830
10831 # Commands used to build a loadable module (assumed same as above if empty)
10832 module_cmds=$lt_module_cmds
10833 module_expsym_cmds=$lt_module_expsym_cmds
10834
10835 # Commands to strip libraries.
10836 old_striplib=$lt_old_striplib
10837 striplib=$lt_striplib
10838
10839 # Dependencies to place before the objects being linked to create a
10840 # shared library.
10841 predep_objects=$lt_predep_objects
10842
10843 # Dependencies to place after the objects being linked to create a
10844 # shared library.
10845 postdep_objects=$lt_postdep_objects
10846
10847 # Dependencies to place before the objects being linked to create a
10848 # shared library.
10849 predeps=$lt_predeps
10850
10851 # Dependencies to place after the objects being linked to create a
10852 # shared library.
10853 postdeps=$lt_postdeps
10854
10855 # The library search path used internally by the compiler when linking
10856 # a shared library.
10857 compiler_lib_search_path=$lt_compiler_lib_search_path
10858
10859 # Method to check whether dependent libraries are shared objects.
10860 deplibs_check_method=$lt_deplibs_check_method
10861
10862 # Command to use when deplibs_check_method == file_magic.
10863 file_magic_cmd=$lt_file_magic_cmd
10864
10865 # Flag that allows shared libraries with undefined symbols to be built.
10866 allow_undefined_flag=$lt_allow_undefined_flag
10867
10868 # Flag that forces no undefined symbols.
10869 no_undefined_flag=$lt_no_undefined_flag
10870
10871 # Commands used to finish a libtool library installation in a directory.
10872 finish_cmds=$lt_finish_cmds
10873
10874 # Same as above, but a single script fragment to be evaled but not shown.
10875 finish_eval=$lt_finish_eval
10876
10877 # Take the output of nm and produce a listing of raw symbols and C names.
10878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10879
10880 # Transform the output of nm in a proper C declaration
10881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10882
10883 # Transform the output of nm in a C name address pair
10884 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10885
10886 # This is the shared library runtime path variable.
10887 runpath_var=$runpath_var
10888
10889 # This is the shared library path variable.
10890 shlibpath_var=$shlibpath_var
10891
10892 # Is shlibpath searched before the hard-coded library search path?
10893 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10894
10895 # How to hardcode a shared library path into an executable.
10896 hardcode_action=$hardcode_action
10897
10898 # Whether we should hardcode library paths into libraries.
10899 hardcode_into_libs=$hardcode_into_libs
10900
10901 # Flag to hardcode \$libdir into a binary during linking.
10902 # This must work even if \$libdir does not exist.
10903 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10904
10905 # If ld is used when linking, flag to hardcode \$libdir into
10906 # a binary during linking. This must work even if \$libdir does
10907 # not exist.
10908 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10909
10910 # Whether we need a single -rpath flag with a separated argument.
10911 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10912
10913 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10914 # resulting binary.
10915 hardcode_direct=$hardcode_direct
10916
10917 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10918 # resulting binary.
10919 hardcode_minus_L=$hardcode_minus_L
10920
10921 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10922 # the resulting binary.
10923 hardcode_shlibpath_var=$hardcode_shlibpath_var
10924
10925 # Set to yes if building a shared library automatically hardcodes DIR into the library
10926 # and all subsequent libraries and executables linked against it.
10927 hardcode_automatic=$hardcode_automatic
10928
10929 # Variables whose values should be saved in libtool wrapper scripts and
10930 # restored at relink time.
10931 variables_saved_for_relink="$variables_saved_for_relink"
10932
10933 # Whether libtool must link a program against all its dependency libraries.
10934 link_all_deplibs=$link_all_deplibs
10935
10936 # Compile-time system search path for libraries
10937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10938
10939 # Run-time system search path for libraries
10940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10941
10942 # Fix the shell variable \$srcfile for the compiler.
10943 fix_srcfile_path="$fix_srcfile_path"
10944
10945 # Set to yes if exported symbols are required.
10946 always_export_symbols=$always_export_symbols
10947
10948 # The commands to list exported symbols.
10949 export_symbols_cmds=$lt_export_symbols_cmds
10950
10951 # The commands to extract the exported symbol list from a shared archive.
10952 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10953
10954 # Symbols that should not be listed in the preloaded symbols.
10955 exclude_expsyms=$lt_exclude_expsyms
10956
10957 # Symbols that must always be exported.
10958 include_expsyms=$lt_include_expsyms
10959
10960 # ### END LIBTOOL CONFIG
10961
10962 __EOF__
10963
10964
10965   case $host_os in
10966   aix3*)
10967     cat <<\EOF >> "$cfgfile"
10968
10969 # AIX sometimes has problems with the GCC collect2 program.  For some
10970 # reason, if we set the COLLECT_NAMES environment variable, the problems
10971 # vanish in a puff of smoke.
10972 if test "X${COLLECT_NAMES+set}" != Xset; then
10973   COLLECT_NAMES=
10974   export COLLECT_NAMES
10975 fi
10976 EOF
10977     ;;
10978   esac
10979
10980   # We use sed instead of cat because bash on DJGPP gets confused if
10981   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10982   # text mode, it properly converts lines to CR/LF.  This bash problem
10983   # is reportedly fixed, but why not run on old versions too?
10984   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10985
10986   mv -f "$cfgfile" "$ofile" || \
10987     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10988   chmod +x "$ofile"
10989
10990 else
10991   # If there is no Makefile yet, we rely on a make rule to execute
10992   # `config.status --recheck' to rerun these tests and create the
10993   # libtool script then.
10994   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10995   if test -f "$ltmain_in"; then
10996     test -f Makefile && make "$ltmain"
10997   fi
10998 fi
10999
11000
11001 ac_ext=c
11002 ac_cpp='$CPP $CPPFLAGS'
11003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11006
11007 CC="$lt_save_CC"
11008
11009
11010 # Check whether --with-tags or --without-tags was given.
11011 if test "${with_tags+set}" = set; then
11012   withval="$with_tags"
11013   tagnames="$withval"
11014 fi;
11015
11016 if test -f "$ltmain" && test -n "$tagnames"; then
11017   if test ! -f "${ofile}"; then
11018     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11019 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11020   fi
11021
11022   if test -z "$LTCC"; then
11023     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11024     if test -z "$LTCC"; then
11025       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11026 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11027     else
11028       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11029 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11030     fi
11031   fi
11032
11033   # Extract list of available tagged configurations in $ofile.
11034   # Note that this assumes the entire list is on one line.
11035   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11036
11037   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11038   for tagname in $tagnames; do
11039     IFS="$lt_save_ifs"
11040     # Check whether tagname contains only valid characters
11041     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11042     "") ;;
11043     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11044 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11045    { (exit 1); exit 1; }; }
11046         ;;
11047     esac
11048
11049     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11050     then
11051       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11052 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11053    { (exit 1); exit 1; }; }
11054     fi
11055
11056     # Update the list of available tags.
11057     if test -n "$tagname"; then
11058       echo appending configuration tag \"$tagname\" to $ofile
11059
11060       case $tagname in
11061       CXX)
11062         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11063             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11064             (test "X$CXX" != "Xg++"))) ; then
11065           :
11066         else
11067           tagname=""
11068         fi
11069         ;;
11070
11071       F77)
11072         if test -n "$F77" && test "X$F77" != "Xno"; then
11073           :
11074         else
11075           tagname=""
11076         fi
11077         ;;
11078
11079       GCJ)
11080         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11081           :
11082         else
11083           tagname=""
11084         fi
11085         ;;
11086
11087       RC)
11088
11089
11090
11091 # Source file extension for RC test sources.
11092 ac_ext=rc
11093
11094 # Object file extension for compiled RC test sources.
11095 objext=o
11096 objext_RC=$objext
11097
11098 # Code to be used in simple compile tests
11099 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11100
11101 # Code to be used in simple link tests
11102 lt_simple_link_test_code="$lt_simple_compile_test_code"
11103
11104 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11105
11106 # If no C compiler was specified, use CC.
11107 LTCC=${LTCC-"$CC"}
11108
11109 # Allow CC to be a program name with arguments.
11110 compiler=$CC
11111
11112
11113 # save warnings/boilerplate of simple test code
11114 ac_outfile=conftest.$ac_objext
11115 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11116 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11117 _lt_compiler_boilerplate=`cat conftest.err`
11118 $rm conftest*
11119
11120 ac_outfile=conftest.$ac_objext
11121 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11122 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11123 _lt_linker_boilerplate=`cat conftest.err`
11124 $rm conftest*
11125
11126
11127 # Allow CC to be a program name with arguments.
11128 lt_save_CC="$CC"
11129 CC=${RC-"windres"}
11130 compiler=$CC
11131 compiler_RC=$CC
11132 for cc_temp in $compiler""; do
11133   case $cc_temp in
11134     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11135     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11136     \-*) ;;
11137     *) break;;
11138   esac
11139 done
11140 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11141
11142 lt_cv_prog_compiler_c_o_RC=yes
11143
11144 # The else clause should only fire when bootstrapping the
11145 # libtool distribution, otherwise you forgot to ship ltmain.sh
11146 # with your package, and you will get complaints that there are
11147 # no rules to generate ltmain.sh.
11148 if test -f "$ltmain"; then
11149   # See if we are running on zsh, and set the options which allow our commands through
11150   # without removal of \ escapes.
11151   if test -n "${ZSH_VERSION+set}" ; then
11152     setopt NO_GLOB_SUBST
11153   fi
11154   # Now quote all the things that may contain metacharacters while being
11155   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11156   # variables and quote the copies for generation of the libtool script.
11157   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11158     SED SHELL STRIP \
11159     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11160     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11161     deplibs_check_method reload_flag reload_cmds need_locks \
11162     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11163     lt_cv_sys_global_symbol_to_c_name_address \
11164     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11165     old_postinstall_cmds old_postuninstall_cmds \
11166     compiler_RC \
11167     CC_RC \
11168     LD_RC \
11169     lt_prog_compiler_wl_RC \
11170     lt_prog_compiler_pic_RC \
11171     lt_prog_compiler_static_RC \
11172     lt_prog_compiler_no_builtin_flag_RC \
11173     export_dynamic_flag_spec_RC \
11174     thread_safe_flag_spec_RC \
11175     whole_archive_flag_spec_RC \
11176     enable_shared_with_static_runtimes_RC \
11177     old_archive_cmds_RC \
11178     old_archive_from_new_cmds_RC \
11179     predep_objects_RC \
11180     postdep_objects_RC \
11181     predeps_RC \
11182     postdeps_RC \
11183     compiler_lib_search_path_RC \
11184     archive_cmds_RC \
11185     archive_expsym_cmds_RC \
11186     postinstall_cmds_RC \
11187     postuninstall_cmds_RC \
11188     old_archive_from_expsyms_cmds_RC \
11189     allow_undefined_flag_RC \
11190     no_undefined_flag_RC \
11191     export_symbols_cmds_RC \
11192     hardcode_libdir_flag_spec_RC \
11193     hardcode_libdir_flag_spec_ld_RC \
11194     hardcode_libdir_separator_RC \
11195     hardcode_automatic_RC \
11196     module_cmds_RC \
11197     module_expsym_cmds_RC \
11198     lt_cv_prog_compiler_c_o_RC \
11199     exclude_expsyms_RC \
11200     include_expsyms_RC; do
11201
11202     case $var in
11203     old_archive_cmds_RC | \
11204     old_archive_from_new_cmds_RC | \
11205     archive_cmds_RC | \
11206     archive_expsym_cmds_RC | \
11207     module_cmds_RC | \
11208     module_expsym_cmds_RC | \
11209     old_archive_from_expsyms_cmds_RC | \
11210     export_symbols_cmds_RC | \
11211     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11212     postinstall_cmds | postuninstall_cmds | \
11213     old_postinstall_cmds | old_postuninstall_cmds | \
11214     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11215       # Double-quote double-evaled strings.
11216       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11217       ;;
11218     *)
11219       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11220       ;;
11221     esac
11222   done
11223
11224   case $lt_echo in
11225   *'\$0 --fallback-echo"')
11226     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11227     ;;
11228   esac
11229
11230 cfgfile="$ofile"
11231
11232   cat <<__EOF__ >> "$cfgfile"
11233 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11234
11235 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11236
11237 # Shell to use when invoking shell scripts.
11238 SHELL=$lt_SHELL
11239
11240 # Whether or not to build shared libraries.
11241 build_libtool_libs=$enable_shared
11242
11243 # Whether or not to build static libraries.
11244 build_old_libs=$enable_static
11245
11246 # Whether or not to add -lc for building shared libraries.
11247 build_libtool_need_lc=$archive_cmds_need_lc_RC
11248
11249 # Whether or not to disallow shared libs when runtime libs are static
11250 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11251
11252 # Whether or not to optimize for fast installation.
11253 fast_install=$enable_fast_install
11254
11255 # The host system.
11256 host_alias=$host_alias
11257 host=$host
11258 host_os=$host_os
11259
11260 # The build system.
11261 build_alias=$build_alias
11262 build=$build
11263 build_os=$build_os
11264
11265 # An echo program that does not interpret backslashes.
11266 echo=$lt_echo
11267
11268 # The archiver.
11269 AR=$lt_AR
11270 AR_FLAGS=$lt_AR_FLAGS
11271
11272 # A C compiler.
11273 LTCC=$lt_LTCC
11274
11275 # A language-specific compiler.
11276 CC=$lt_compiler_RC
11277
11278 # Is the compiler the GNU C compiler?
11279 with_gcc=$GCC_RC
11280
11281 # An ERE matcher.
11282 EGREP=$lt_EGREP
11283
11284 # The linker used to build libraries.
11285 LD=$lt_LD_RC
11286
11287 # Whether we need hard or soft links.
11288 LN_S=$lt_LN_S
11289
11290 # A BSD-compatible nm program.
11291 NM=$lt_NM
11292
11293 # A symbol stripping program
11294 STRIP=$lt_STRIP
11295
11296 # Used to examine libraries when file_magic_cmd begins "file"
11297 MAGIC_CMD=$MAGIC_CMD
11298
11299 # Used on cygwin: DLL creation program.
11300 DLLTOOL="$DLLTOOL"
11301
11302 # Used on cygwin: object dumper.
11303 OBJDUMP="$OBJDUMP"
11304
11305 # Used on cygwin: assembler.
11306 AS="$AS"
11307
11308 # The name of the directory that contains temporary libtool files.
11309 objdir=$objdir
11310
11311 # How to create reloadable object files.
11312 reload_flag=$lt_reload_flag
11313 reload_cmds=$lt_reload_cmds
11314
11315 # How to pass a linker flag through the compiler.
11316 wl=$lt_lt_prog_compiler_wl_RC
11317
11318 # Object file suffix (normally "o").
11319 objext="$ac_objext"
11320
11321 # Old archive suffix (normally "a").
11322 libext="$libext"
11323
11324 # Shared library suffix (normally ".so").
11325 shrext_cmds='$shrext_cmds'
11326
11327 # Executable file suffix (normally "").
11328 exeext="$exeext"
11329
11330 # Additional compiler flags for building library objects.
11331 pic_flag=$lt_lt_prog_compiler_pic_RC
11332 pic_mode=$pic_mode
11333
11334 # What is the maximum length of a command?
11335 max_cmd_len=$lt_cv_sys_max_cmd_len
11336
11337 # Does compiler simultaneously support -c and -o options?
11338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11339
11340 # Must we lock files when doing compilation?
11341 need_locks=$lt_need_locks
11342
11343 # Do we need the lib prefix for modules?
11344 need_lib_prefix=$need_lib_prefix
11345
11346 # Do we need a version for libraries?
11347 need_version=$need_version
11348
11349 # Whether dlopen is supported.
11350 dlopen_support=$enable_dlopen
11351
11352 # Whether dlopen of programs is supported.
11353 dlopen_self=$enable_dlopen_self
11354
11355 # Whether dlopen of statically linked programs is supported.
11356 dlopen_self_static=$enable_dlopen_self_static
11357
11358 # Compiler flag to prevent dynamic linking.
11359 link_static_flag=$lt_lt_prog_compiler_static_RC
11360
11361 # Compiler flag to turn off builtin functions.
11362 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11363
11364 # Compiler flag to allow reflexive dlopens.
11365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11366
11367 # Compiler flag to generate shared objects directly from archives.
11368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11369
11370 # Compiler flag to generate thread-safe objects.
11371 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11372
11373 # Library versioning type.
11374 version_type=$version_type
11375
11376 # Format of library name prefix.
11377 libname_spec=$lt_libname_spec
11378
11379 # List of archive names.  First name is the real one, the rest are links.
11380 # The last name is the one that the linker finds with -lNAME.
11381 library_names_spec=$lt_library_names_spec
11382
11383 # The coded name of the library, if different from the real name.
11384 soname_spec=$lt_soname_spec
11385
11386 # Commands used to build and install an old-style archive.
11387 RANLIB=$lt_RANLIB
11388 old_archive_cmds=$lt_old_archive_cmds_RC
11389 old_postinstall_cmds=$lt_old_postinstall_cmds
11390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11391
11392 # Create an old-style archive from a shared archive.
11393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11394
11395 # Create a temporary old-style archive to link instead of a shared archive.
11396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11397
11398 # Commands used to build and install a shared archive.
11399 archive_cmds=$lt_archive_cmds_RC
11400 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11401 postinstall_cmds=$lt_postinstall_cmds
11402 postuninstall_cmds=$lt_postuninstall_cmds
11403
11404 # Commands used to build a loadable module (assumed same as above if empty)
11405 module_cmds=$lt_module_cmds_RC
11406 module_expsym_cmds=$lt_module_expsym_cmds_RC
11407
11408 # Commands to strip libraries.
11409 old_striplib=$lt_old_striplib
11410 striplib=$lt_striplib
11411
11412 # Dependencies to place before the objects being linked to create a
11413 # shared library.
11414 predep_objects=$lt_predep_objects_RC
11415
11416 # Dependencies to place after the objects being linked to create a
11417 # shared library.
11418 postdep_objects=$lt_postdep_objects_RC
11419
11420 # Dependencies to place before the objects being linked to create a
11421 # shared library.
11422 predeps=$lt_predeps_RC
11423
11424 # Dependencies to place after the objects being linked to create a
11425 # shared library.
11426 postdeps=$lt_postdeps_RC
11427
11428 # The library search path used internally by the compiler when linking
11429 # a shared library.
11430 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11431
11432 # Method to check whether dependent libraries are shared objects.
11433 deplibs_check_method=$lt_deplibs_check_method
11434
11435 # Command to use when deplibs_check_method == file_magic.
11436 file_magic_cmd=$lt_file_magic_cmd
11437
11438 # Flag that allows shared libraries with undefined symbols to be built.
11439 allow_undefined_flag=$lt_allow_undefined_flag_RC
11440
11441 # Flag that forces no undefined symbols.
11442 no_undefined_flag=$lt_no_undefined_flag_RC
11443
11444 # Commands used to finish a libtool library installation in a directory.
11445 finish_cmds=$lt_finish_cmds
11446
11447 # Same as above, but a single script fragment to be evaled but not shown.
11448 finish_eval=$lt_finish_eval
11449
11450 # Take the output of nm and produce a listing of raw symbols and C names.
11451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11452
11453 # Transform the output of nm in a proper C declaration
11454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11455
11456 # Transform the output of nm in a C name address pair
11457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11458
11459 # This is the shared library runtime path variable.
11460 runpath_var=$runpath_var
11461
11462 # This is the shared library path variable.
11463 shlibpath_var=$shlibpath_var
11464
11465 # Is shlibpath searched before the hard-coded library search path?
11466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11467
11468 # How to hardcode a shared library path into an executable.
11469 hardcode_action=$hardcode_action_RC
11470
11471 # Whether we should hardcode library paths into libraries.
11472 hardcode_into_libs=$hardcode_into_libs
11473
11474 # Flag to hardcode \$libdir into a binary during linking.
11475 # This must work even if \$libdir does not exist.
11476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11477
11478 # If ld is used when linking, flag to hardcode \$libdir into
11479 # a binary during linking. This must work even if \$libdir does
11480 # not exist.
11481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11482
11483 # Whether we need a single -rpath flag with a separated argument.
11484 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11485
11486 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11487 # resulting binary.
11488 hardcode_direct=$hardcode_direct_RC
11489
11490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11491 # resulting binary.
11492 hardcode_minus_L=$hardcode_minus_L_RC
11493
11494 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11495 # the resulting binary.
11496 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11497
11498 # Set to yes if building a shared library automatically hardcodes DIR into the library
11499 # and all subsequent libraries and executables linked against it.
11500 hardcode_automatic=$hardcode_automatic_RC
11501
11502 # Variables whose values should be saved in libtool wrapper scripts and
11503 # restored at relink time.
11504 variables_saved_for_relink="$variables_saved_for_relink"
11505
11506 # Whether libtool must link a program against all its dependency libraries.
11507 link_all_deplibs=$link_all_deplibs_RC
11508
11509 # Compile-time system search path for libraries
11510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11511
11512 # Run-time system search path for libraries
11513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11514
11515 # Fix the shell variable \$srcfile for the compiler.
11516 fix_srcfile_path="$fix_srcfile_path_RC"
11517
11518 # Set to yes if exported symbols are required.
11519 always_export_symbols=$always_export_symbols_RC
11520
11521 # The commands to list exported symbols.
11522 export_symbols_cmds=$lt_export_symbols_cmds_RC
11523
11524 # The commands to extract the exported symbol list from a shared archive.
11525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11526
11527 # Symbols that should not be listed in the preloaded symbols.
11528 exclude_expsyms=$lt_exclude_expsyms_RC
11529
11530 # Symbols that must always be exported.
11531 include_expsyms=$lt_include_expsyms_RC
11532
11533 # ### END LIBTOOL TAG CONFIG: $tagname
11534
11535 __EOF__
11536
11537
11538 else
11539   # If there is no Makefile yet, we rely on a make rule to execute
11540   # `config.status --recheck' to rerun these tests and create the
11541   # libtool script then.
11542   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11543   if test -f "$ltmain_in"; then
11544     test -f Makefile && make "$ltmain"
11545   fi
11546 fi
11547
11548
11549 ac_ext=c
11550 ac_cpp='$CPP $CPPFLAGS'
11551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11554
11555 CC="$lt_save_CC"
11556
11557         ;;
11558
11559       *)
11560         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11561 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11562    { (exit 1); exit 1; }; }
11563         ;;
11564       esac
11565
11566       # Append the new tag name to the list of available tags.
11567       if test -n "$tagname" ; then
11568       available_tags="$available_tags $tagname"
11569     fi
11570     fi
11571   done
11572   IFS="$lt_save_ifs"
11573
11574   # Now substitute the updated list of available tags.
11575   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11576     mv "${ofile}T" "$ofile"
11577     chmod +x "$ofile"
11578   else
11579     rm -f "${ofile}T"
11580     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11581 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11582    { (exit 1); exit 1; }; }
11583   fi
11584 fi
11585
11586
11587
11588 # This can be used to rebuild libtool when needed
11589 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11590
11591 # Always use our own libtool.
11592 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11593
11594 # Prevent multiple expansion
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605 ol_link_perl=no
11606 if test $ol_enable_perl != no ; then
11607         # Extract the first word of "perl", so it can be a program name with args.
11608 set dummy perl; ac_word=$2
11609 echo "$as_me:$LINENO: checking for $ac_word" >&5
11610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11611 if test "${ac_cv_path_PERLBIN+set}" = set; then
11612   echo $ECHO_N "(cached) $ECHO_C" >&6
11613 else
11614   case $PERLBIN in
11615   [\\/]* | ?:[\\/]*)
11616   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11617   ;;
11618   *)
11619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in $PATH
11621 do
11622   IFS=$as_save_IFS
11623   test -z "$as_dir" && as_dir=.
11624   for ac_exec_ext in '' $ac_executable_extensions; do
11625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11626     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11628     break 2
11629   fi
11630 done
11631 done
11632
11633   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11634   ;;
11635 esac
11636 fi
11637 PERLBIN=$ac_cv_path_PERLBIN
11638
11639 if test -n "$PERLBIN"; then
11640   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11641 echo "${ECHO_T}$PERLBIN" >&6
11642 else
11643   echo "$as_me:$LINENO: result: no" >&5
11644 echo "${ECHO_T}no" >&6
11645 fi
11646
11647
11648         if test "no$PERLBIN" = "no" ; then
11649                 if test $ol_enable_perl = yes ; then
11650                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11651 echo "$as_me: error: could not locate perl" >&2;}
11652    { (exit 1); exit 1; }; }
11653                 fi
11654
11655         else
11656                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11657                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11658
11659                 if test x"$ol_enable_perl" = "xyes" ; then
11660                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11661                 else
11662                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11663                 fi
11664                                 ol_link_perl=yes
11665         fi
11666 fi
11667
11668 ac_ext=c
11669 ac_cpp='$CPP $CPPFLAGS'
11670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11673 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11674 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11675 # On Suns, sometimes $CPP names a directory.
11676 if test -n "$CPP" && test -d "$CPP"; then
11677   CPP=
11678 fi
11679 if test -z "$CPP"; then
11680   if test "${ac_cv_prog_CPP+set}" = set; then
11681   echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683       # Double quotes because CPP needs to be expanded
11684     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11685     do
11686       ac_preproc_ok=false
11687 for ac_c_preproc_warn_flag in '' yes
11688 do
11689   # Use a header file that comes with gcc, so configuring glibc
11690   # with a fresh cross-compiler works.
11691   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11692   # <limits.h> exists even on freestanding compilers.
11693   # On the NeXT, cc -E runs the code through the compiler's parser,
11694   # not just through cpp. "Syntax error" is here to catch this case.
11695   cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h.  */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h.  */
11701 #ifdef __STDC__
11702 # include <limits.h>
11703 #else
11704 # include <assert.h>
11705 #endif
11706                      Syntax error
11707 _ACEOF
11708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11709   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11710   ac_status=$?
11711   grep -v '^ *+' conftest.er1 >conftest.err
11712   rm -f conftest.er1
11713   cat conftest.err >&5
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); } >/dev/null; then
11716   if test -s conftest.err; then
11717     ac_cpp_err=$ac_c_preproc_warn_flag
11718     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11719   else
11720     ac_cpp_err=
11721   fi
11722 else
11723   ac_cpp_err=yes
11724 fi
11725 if test -z "$ac_cpp_err"; then
11726   :
11727 else
11728   echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11730
11731   # Broken: fails on valid input.
11732 continue
11733 fi
11734 rm -f conftest.err conftest.$ac_ext
11735
11736   # OK, works on sane cases.  Now check whether non-existent headers
11737   # can be detected and how.
11738   cat >conftest.$ac_ext <<_ACEOF
11739 /* confdefs.h.  */
11740 _ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h.  */
11744 #include <ac_nonexistent.h>
11745 _ACEOF
11746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11747   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11748   ac_status=$?
11749   grep -v '^ *+' conftest.er1 >conftest.err
11750   rm -f conftest.er1
11751   cat conftest.err >&5
11752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753   (exit $ac_status); } >/dev/null; then
11754   if test -s conftest.err; then
11755     ac_cpp_err=$ac_c_preproc_warn_flag
11756     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11757   else
11758     ac_cpp_err=
11759   fi
11760 else
11761   ac_cpp_err=yes
11762 fi
11763 if test -z "$ac_cpp_err"; then
11764   # Broken: success on invalid input.
11765 continue
11766 else
11767   echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11769
11770   # Passes both tests.
11771 ac_preproc_ok=:
11772 break
11773 fi
11774 rm -f conftest.err conftest.$ac_ext
11775
11776 done
11777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11778 rm -f conftest.err conftest.$ac_ext
11779 if $ac_preproc_ok; then
11780   break
11781 fi
11782
11783     done
11784     ac_cv_prog_CPP=$CPP
11785
11786 fi
11787   CPP=$ac_cv_prog_CPP
11788 else
11789   ac_cv_prog_CPP=$CPP
11790 fi
11791 echo "$as_me:$LINENO: result: $CPP" >&5
11792 echo "${ECHO_T}$CPP" >&6
11793 ac_preproc_ok=false
11794 for ac_c_preproc_warn_flag in '' yes
11795 do
11796   # Use a header file that comes with gcc, so configuring glibc
11797   # with a fresh cross-compiler works.
11798   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11799   # <limits.h> exists even on freestanding compilers.
11800   # On the NeXT, cc -E runs the code through the compiler's parser,
11801   # not just through cpp. "Syntax error" is here to catch this case.
11802   cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h.  */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h.  */
11808 #ifdef __STDC__
11809 # include <limits.h>
11810 #else
11811 # include <assert.h>
11812 #endif
11813                      Syntax error
11814 _ACEOF
11815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11817   ac_status=$?
11818   grep -v '^ *+' conftest.er1 >conftest.err
11819   rm -f conftest.er1
11820   cat conftest.err >&5
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); } >/dev/null; then
11823   if test -s conftest.err; then
11824     ac_cpp_err=$ac_c_preproc_warn_flag
11825     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11826   else
11827     ac_cpp_err=
11828   fi
11829 else
11830   ac_cpp_err=yes
11831 fi
11832 if test -z "$ac_cpp_err"; then
11833   :
11834 else
11835   echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838   # Broken: fails on valid input.
11839 continue
11840 fi
11841 rm -f conftest.err conftest.$ac_ext
11842
11843   # OK, works on sane cases.  Now check whether non-existent headers
11844   # can be detected and how.
11845   cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h.  */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h.  */
11851 #include <ac_nonexistent.h>
11852 _ACEOF
11853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11854   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11855   ac_status=$?
11856   grep -v '^ *+' conftest.er1 >conftest.err
11857   rm -f conftest.er1
11858   cat conftest.err >&5
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); } >/dev/null; then
11861   if test -s conftest.err; then
11862     ac_cpp_err=$ac_c_preproc_warn_flag
11863     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11864   else
11865     ac_cpp_err=
11866   fi
11867 else
11868   ac_cpp_err=yes
11869 fi
11870 if test -z "$ac_cpp_err"; then
11871   # Broken: success on invalid input.
11872 continue
11873 else
11874   echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11876
11877   # Passes both tests.
11878 ac_preproc_ok=:
11879 break
11880 fi
11881 rm -f conftest.err conftest.$ac_ext
11882
11883 done
11884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11885 rm -f conftest.err conftest.$ac_ext
11886 if $ac_preproc_ok; then
11887   :
11888 else
11889   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11890 See \`config.log' for more details." >&5
11891 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11892 See \`config.log' for more details." >&2;}
11893    { (exit 1); exit 1; }; }
11894 fi
11895
11896 ac_ext=c
11897 ac_cpp='$CPP $CPPFLAGS'
11898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11901
11902 echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
11903 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6
11904 if test "${ol_cv_msvc+set}" = set; then
11905   echo $ECHO_N "(cached) $ECHO_C" >&6
11906 else
11907   cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h.  */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h.  */
11913
11914 #ifndef _MSC_VER
11915 #include <__FOO__/generate_error.h>
11916 #endif
11917
11918 _ACEOF
11919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11921   ac_status=$?
11922   grep -v '^ *+' conftest.er1 >conftest.err
11923   rm -f conftest.er1
11924   cat conftest.err >&5
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); } >/dev/null; then
11927   if test -s conftest.err; then
11928     ac_cpp_err=$ac_c_preproc_warn_flag
11929     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11930   else
11931     ac_cpp_err=
11932   fi
11933 else
11934   ac_cpp_err=yes
11935 fi
11936 if test -z "$ac_cpp_err"; then
11937   ol_cv_msvc=yes
11938 else
11939   echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11941
11942   ol_cv_msvc=no
11943 fi
11944 rm -f conftest.err conftest.$ac_ext
11945 fi
11946 echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
11947 echo "${ECHO_T}$ol_cv_msvc" >&6
11948
11949 case $host_os in
11950   *mingw32* ) ac_cv_mingw32=yes ;;
11951   *cygwin* ) ac_cv_cygwin=yes ;;
11952   *interix* ) ac_cv_interix=yes ;;
11953 esac
11954
11955
11956
11957
11958 cat >>confdefs.h <<_ACEOF
11959 #define EXEEXT "${EXEEXT}"
11960 _ACEOF
11961
11962
11963 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11964 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11965 if test "${ac_cv_lib_be_be_app+set}" = set; then
11966   echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968   ac_check_lib_save_LIBS=$LIBS
11969 LIBS="-lbe -lroot -lnet $LIBS"
11970 cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h.  */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h.  */
11976
11977 /* Override any gcc2 internal prototype to avoid an error.  */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 /* We use char because int might match the return type of a gcc2
11982    builtin and then its argument prototype would still apply.  */
11983 char be_app ();
11984 int
11985 main ()
11986 {
11987 be_app ();
11988   ;
11989   return 0;
11990 }
11991 _ACEOF
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994   (eval $ac_link) 2>conftest.er1
11995   ac_status=$?
11996   grep -v '^ *+' conftest.er1 >conftest.err
11997   rm -f conftest.er1
11998   cat conftest.err >&5
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } &&
12001          { ac_try='test -z "$ac_c_werror_flag"
12002                          || test ! -s conftest.err'
12003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004   (eval $ac_try) 2>&5
12005   ac_status=$?
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); }; } &&
12008          { ac_try='test -s conftest$ac_exeext'
12009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010   (eval $ac_try) 2>&5
12011   ac_status=$?
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); }; }; then
12014   ac_cv_lib_be_be_app=yes
12015 else
12016   echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12018
12019 ac_cv_lib_be_be_app=no
12020 fi
12021 rm -f conftest.err conftest.$ac_objext \
12022       conftest$ac_exeext conftest.$ac_ext
12023 LIBS=$ac_check_lib_save_LIBS
12024 fi
12025 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12026 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
12027 if test $ac_cv_lib_be_be_app = yes; then
12028   LIBS="$LIBS -lbe -lroot -lnet"
12029 else
12030   :
12031 fi
12032
12033
12034 ac_ext=c
12035 ac_cpp='$CPP $CPPFLAGS'
12036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12039 if test -n "$ac_tool_prefix"; then
12040   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12041 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12042 echo "$as_me:$LINENO: checking for $ac_word" >&5
12043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12044 if test "${ac_cv_prog_CC+set}" = set; then
12045   echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047   if test -n "$CC"; then
12048   ac_cv_prog_CC="$CC" # Let the user override the test.
12049 else
12050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051 for as_dir in $PATH
12052 do
12053   IFS=$as_save_IFS
12054   test -z "$as_dir" && as_dir=.
12055   for ac_exec_ext in '' $ac_executable_extensions; do
12056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12057     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12059     break 2
12060   fi
12061 done
12062 done
12063
12064 fi
12065 fi
12066 CC=$ac_cv_prog_CC
12067 if test -n "$CC"; then
12068   echo "$as_me:$LINENO: result: $CC" >&5
12069 echo "${ECHO_T}$CC" >&6
12070 else
12071   echo "$as_me:$LINENO: result: no" >&5
12072 echo "${ECHO_T}no" >&6
12073 fi
12074
12075 fi
12076 if test -z "$ac_cv_prog_CC"; then
12077   ac_ct_CC=$CC
12078   # Extract the first word of "gcc", so it can be a program name with args.
12079 set dummy gcc; ac_word=$2
12080 echo "$as_me:$LINENO: checking for $ac_word" >&5
12081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12083   echo $ECHO_N "(cached) $ECHO_C" >&6
12084 else
12085   if test -n "$ac_ct_CC"; then
12086   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12087 else
12088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089 for as_dir in $PATH
12090 do
12091   IFS=$as_save_IFS
12092   test -z "$as_dir" && as_dir=.
12093   for ac_exec_ext in '' $ac_executable_extensions; do
12094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12095     ac_cv_prog_ac_ct_CC="gcc"
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 fi
12103 fi
12104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12105 if test -n "$ac_ct_CC"; then
12106   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12107 echo "${ECHO_T}$ac_ct_CC" >&6
12108 else
12109   echo "$as_me:$LINENO: result: no" >&5
12110 echo "${ECHO_T}no" >&6
12111 fi
12112
12113   CC=$ac_ct_CC
12114 else
12115   CC="$ac_cv_prog_CC"
12116 fi
12117
12118 if test -z "$CC"; then
12119   if test -n "$ac_tool_prefix"; then
12120   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12121 set dummy ${ac_tool_prefix}cc; ac_word=$2
12122 echo "$as_me:$LINENO: checking for $ac_word" >&5
12123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12124 if test "${ac_cv_prog_CC+set}" = set; then
12125   echo $ECHO_N "(cached) $ECHO_C" >&6
12126 else
12127   if test -n "$CC"; then
12128   ac_cv_prog_CC="$CC" # Let the user override the test.
12129 else
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131 for as_dir in $PATH
12132 do
12133   IFS=$as_save_IFS
12134   test -z "$as_dir" && as_dir=.
12135   for ac_exec_ext in '' $ac_executable_extensions; do
12136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12137     ac_cv_prog_CC="${ac_tool_prefix}cc"
12138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12139     break 2
12140   fi
12141 done
12142 done
12143
12144 fi
12145 fi
12146 CC=$ac_cv_prog_CC
12147 if test -n "$CC"; then
12148   echo "$as_me:$LINENO: result: $CC" >&5
12149 echo "${ECHO_T}$CC" >&6
12150 else
12151   echo "$as_me:$LINENO: result: no" >&5
12152 echo "${ECHO_T}no" >&6
12153 fi
12154
12155 fi
12156 if test -z "$ac_cv_prog_CC"; then
12157   ac_ct_CC=$CC
12158   # Extract the first word of "cc", so it can be a program name with args.
12159 set dummy cc; ac_word=$2
12160 echo "$as_me:$LINENO: checking for $ac_word" >&5
12161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165   if test -n "$ac_ct_CC"; then
12166   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12167 else
12168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in $PATH
12170 do
12171   IFS=$as_save_IFS
12172   test -z "$as_dir" && as_dir=.
12173   for ac_exec_ext in '' $ac_executable_extensions; do
12174   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12175     ac_cv_prog_ac_ct_CC="cc"
12176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12177     break 2
12178   fi
12179 done
12180 done
12181
12182 fi
12183 fi
12184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12185 if test -n "$ac_ct_CC"; then
12186   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12187 echo "${ECHO_T}$ac_ct_CC" >&6
12188 else
12189   echo "$as_me:$LINENO: result: no" >&5
12190 echo "${ECHO_T}no" >&6
12191 fi
12192
12193   CC=$ac_ct_CC
12194 else
12195   CC="$ac_cv_prog_CC"
12196 fi
12197
12198 fi
12199 if test -z "$CC"; then
12200   # Extract the first word of "cc", so it can be a program name with args.
12201 set dummy cc; ac_word=$2
12202 echo "$as_me:$LINENO: checking for $ac_word" >&5
12203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12204 if test "${ac_cv_prog_CC+set}" = set; then
12205   echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207   if test -n "$CC"; then
12208   ac_cv_prog_CC="$CC" # Let the user override the test.
12209 else
12210   ac_prog_rejected=no
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12213 do
12214   IFS=$as_save_IFS
12215   test -z "$as_dir" && as_dir=.
12216   for ac_exec_ext in '' $ac_executable_extensions; do
12217   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12219        ac_prog_rejected=yes
12220        continue
12221      fi
12222     ac_cv_prog_CC="cc"
12223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12224     break 2
12225   fi
12226 done
12227 done
12228
12229 if test $ac_prog_rejected = yes; then
12230   # We found a bogon in the path, so make sure we never use it.
12231   set dummy $ac_cv_prog_CC
12232   shift
12233   if test $# != 0; then
12234     # We chose a different compiler from the bogus one.
12235     # However, it has the same basename, so the bogon will be chosen
12236     # first if we set CC to just the basename; use the full file name.
12237     shift
12238     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12239   fi
12240 fi
12241 fi
12242 fi
12243 CC=$ac_cv_prog_CC
12244 if test -n "$CC"; then
12245   echo "$as_me:$LINENO: result: $CC" >&5
12246 echo "${ECHO_T}$CC" >&6
12247 else
12248   echo "$as_me:$LINENO: result: no" >&5
12249 echo "${ECHO_T}no" >&6
12250 fi
12251
12252 fi
12253 if test -z "$CC"; then
12254   if test -n "$ac_tool_prefix"; then
12255   for ac_prog in cl
12256   do
12257     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12259 echo "$as_me:$LINENO: checking for $ac_word" >&5
12260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12261 if test "${ac_cv_prog_CC+set}" = set; then
12262   echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264   if test -n "$CC"; then
12265   ac_cv_prog_CC="$CC" # Let the user override the test.
12266 else
12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268 for as_dir in $PATH
12269 do
12270   IFS=$as_save_IFS
12271   test -z "$as_dir" && as_dir=.
12272   for ac_exec_ext in '' $ac_executable_extensions; do
12273   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12274     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12276     break 2
12277   fi
12278 done
12279 done
12280
12281 fi
12282 fi
12283 CC=$ac_cv_prog_CC
12284 if test -n "$CC"; then
12285   echo "$as_me:$LINENO: result: $CC" >&5
12286 echo "${ECHO_T}$CC" >&6
12287 else
12288   echo "$as_me:$LINENO: result: no" >&5
12289 echo "${ECHO_T}no" >&6
12290 fi
12291
12292     test -n "$CC" && break
12293   done
12294 fi
12295 if test -z "$CC"; then
12296   ac_ct_CC=$CC
12297   for ac_prog in cl
12298 do
12299   # Extract the first word of "$ac_prog", so it can be a program name with args.
12300 set dummy $ac_prog; ac_word=$2
12301 echo "$as_me:$LINENO: checking for $ac_word" >&5
12302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12304   echo $ECHO_N "(cached) $ECHO_C" >&6
12305 else
12306   if test -n "$ac_ct_CC"; then
12307   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12308 else
12309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310 for as_dir in $PATH
12311 do
12312   IFS=$as_save_IFS
12313   test -z "$as_dir" && as_dir=.
12314   for ac_exec_ext in '' $ac_executable_extensions; do
12315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12316     ac_cv_prog_ac_ct_CC="$ac_prog"
12317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12318     break 2
12319   fi
12320 done
12321 done
12322
12323 fi
12324 fi
12325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12326 if test -n "$ac_ct_CC"; then
12327   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12328 echo "${ECHO_T}$ac_ct_CC" >&6
12329 else
12330   echo "$as_me:$LINENO: result: no" >&5
12331 echo "${ECHO_T}no" >&6
12332 fi
12333
12334   test -n "$ac_ct_CC" && break
12335 done
12336
12337   CC=$ac_ct_CC
12338 fi
12339
12340 fi
12341
12342
12343 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12344 See \`config.log' for more details." >&5
12345 echo "$as_me: error: no acceptable C compiler found in \$PATH
12346 See \`config.log' for more details." >&2;}
12347    { (exit 1); exit 1; }; }
12348
12349 # Provide some information about the compiler.
12350 echo "$as_me:$LINENO:" \
12351      "checking for C compiler version" >&5
12352 ac_compiler=`set X $ac_compile; echo $2`
12353 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12354   (eval $ac_compiler --version </dev/null >&5) 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); }
12358 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12359   (eval $ac_compiler -v </dev/null >&5) 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }
12363 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12364   (eval $ac_compiler -V </dev/null >&5) 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); }
12368
12369 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12370 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12371 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12372   echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374   cat >conftest.$ac_ext <<_ACEOF
12375 /* confdefs.h.  */
12376 _ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h.  */
12380
12381 int
12382 main ()
12383 {
12384 #ifndef __GNUC__
12385        choke me
12386 #endif
12387
12388   ;
12389   return 0;
12390 }
12391 _ACEOF
12392 rm -f conftest.$ac_objext
12393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12394   (eval $ac_compile) 2>conftest.er1
12395   ac_status=$?
12396   grep -v '^ *+' conftest.er1 >conftest.err
12397   rm -f conftest.er1
12398   cat conftest.err >&5
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); } &&
12401          { ac_try='test -z "$ac_c_werror_flag"
12402                          || test ! -s conftest.err'
12403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404   (eval $ac_try) 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); }; } &&
12408          { ac_try='test -s conftest.$ac_objext'
12409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410   (eval $ac_try) 2>&5
12411   ac_status=$?
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); }; }; then
12414   ac_compiler_gnu=yes
12415 else
12416   echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 ac_compiler_gnu=no
12420 fi
12421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12423
12424 fi
12425 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12426 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12427 GCC=`test $ac_compiler_gnu = yes && echo yes`
12428 ac_test_CFLAGS=${CFLAGS+set}
12429 ac_save_CFLAGS=$CFLAGS
12430 CFLAGS="-g"
12431 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12432 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12433 if test "${ac_cv_prog_cc_g+set}" = set; then
12434   echo $ECHO_N "(cached) $ECHO_C" >&6
12435 else
12436   cat >conftest.$ac_ext <<_ACEOF
12437 /* confdefs.h.  */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h.  */
12442
12443 int
12444 main ()
12445 {
12446
12447   ;
12448   return 0;
12449 }
12450 _ACEOF
12451 rm -f conftest.$ac_objext
12452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12453   (eval $ac_compile) 2>conftest.er1
12454   ac_status=$?
12455   grep -v '^ *+' conftest.er1 >conftest.err
12456   rm -f conftest.er1
12457   cat conftest.err >&5
12458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); } &&
12460          { ac_try='test -z "$ac_c_werror_flag"
12461                          || test ! -s conftest.err'
12462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463   (eval $ac_try) 2>&5
12464   ac_status=$?
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); }; } &&
12467          { ac_try='test -s conftest.$ac_objext'
12468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469   (eval $ac_try) 2>&5
12470   ac_status=$?
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); }; }; then
12473   ac_cv_prog_cc_g=yes
12474 else
12475   echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12477
12478 ac_cv_prog_cc_g=no
12479 fi
12480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12481 fi
12482 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12483 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12484 if test "$ac_test_CFLAGS" = set; then
12485   CFLAGS=$ac_save_CFLAGS
12486 elif test $ac_cv_prog_cc_g = yes; then
12487   if test "$GCC" = yes; then
12488     CFLAGS="-g -O2"
12489   else
12490     CFLAGS="-g"
12491   fi
12492 else
12493   if test "$GCC" = yes; then
12494     CFLAGS="-O2"
12495   else
12496     CFLAGS=
12497   fi
12498 fi
12499 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12500 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12501 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12502   echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504   ac_cv_prog_cc_stdc=no
12505 ac_save_CC=$CC
12506 cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h.  */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h.  */
12512 #include <stdarg.h>
12513 #include <stdio.h>
12514 #include <sys/types.h>
12515 #include <sys/stat.h>
12516 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12517 struct buf { int x; };
12518 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12519 static char *e (p, i)
12520      char **p;
12521      int i;
12522 {
12523   return p[i];
12524 }
12525 static char *f (char * (*g) (char **, int), char **p, ...)
12526 {
12527   char *s;
12528   va_list v;
12529   va_start (v,p);
12530   s = g (p, va_arg (v,int));
12531   va_end (v);
12532   return s;
12533 }
12534
12535 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12536    function prototypes and stuff, but not '\xHH' hex character constants.
12537    These don't provoke an error unfortunately, instead are silently treated
12538    as 'x'.  The following induces an error, until -std1 is added to get
12539    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12540    array size at least.  It's necessary to write '\x00'==0 to get something
12541    that's true only with -std1.  */
12542 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12543
12544 int test (int i, double x);
12545 struct s1 {int (*f) (int a);};
12546 struct s2 {int (*f) (double a);};
12547 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12548 int argc;
12549 char **argv;
12550 int
12551 main ()
12552 {
12553 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12554   ;
12555   return 0;
12556 }
12557 _ACEOF
12558 # Don't try gcc -ansi; that turns off useful extensions and
12559 # breaks some systems' header files.
12560 # AIX                   -qlanglvl=ansi
12561 # Ultrix and OSF/1      -std1
12562 # HP-UX 10.20 and later -Ae
12563 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12564 # SVR4                  -Xc -D__EXTENSIONS__
12565 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12566 do
12567   CC="$ac_save_CC $ac_arg"
12568   rm -f conftest.$ac_objext
12569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12570   (eval $ac_compile) 2>conftest.er1
12571   ac_status=$?
12572   grep -v '^ *+' conftest.er1 >conftest.err
12573   rm -f conftest.er1
12574   cat conftest.err >&5
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); } &&
12577          { ac_try='test -z "$ac_c_werror_flag"
12578                          || test ! -s conftest.err'
12579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580   (eval $ac_try) 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); }; } &&
12584          { ac_try='test -s conftest.$ac_objext'
12585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586   (eval $ac_try) 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); }; }; then
12590   ac_cv_prog_cc_stdc=$ac_arg
12591 break
12592 else
12593   echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 fi
12597 rm -f conftest.err conftest.$ac_objext
12598 done
12599 rm -f conftest.$ac_ext conftest.$ac_objext
12600 CC=$ac_save_CC
12601
12602 fi
12603
12604 case "x$ac_cv_prog_cc_stdc" in
12605   x|xno)
12606     echo "$as_me:$LINENO: result: none needed" >&5
12607 echo "${ECHO_T}none needed" >&6 ;;
12608   *)
12609     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12610 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12611     CC="$CC $ac_cv_prog_cc_stdc" ;;
12612 esac
12613
12614 # Some people use a C++ compiler to compile C.  Since we use `exit',
12615 # in C++ we need to declare it.  In case someone uses the same compiler
12616 # for both compiling C and C++ we need to have the C++ compiler decide
12617 # the declaration of exit, since it's the most demanding environment.
12618 cat >conftest.$ac_ext <<_ACEOF
12619 #ifndef __cplusplus
12620   choke me
12621 #endif
12622 _ACEOF
12623 rm -f conftest.$ac_objext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12625   (eval $ac_compile) 2>conftest.er1
12626   ac_status=$?
12627   grep -v '^ *+' conftest.er1 >conftest.err
12628   rm -f conftest.er1
12629   cat conftest.err >&5
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); } &&
12632          { ac_try='test -z "$ac_c_werror_flag"
12633                          || test ! -s conftest.err'
12634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635   (eval $ac_try) 2>&5
12636   ac_status=$?
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); }; } &&
12639          { ac_try='test -s conftest.$ac_objext'
12640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641   (eval $ac_try) 2>&5
12642   ac_status=$?
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); }; }; then
12645   for ac_declaration in \
12646    '' \
12647    'extern "C" void std::exit (int) throw (); using std::exit;' \
12648    'extern "C" void std::exit (int); using std::exit;' \
12649    'extern "C" void exit (int) throw ();' \
12650    'extern "C" void exit (int);' \
12651    'void exit (int);'
12652 do
12653   cat >conftest.$ac_ext <<_ACEOF
12654 /* confdefs.h.  */
12655 _ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h.  */
12659 $ac_declaration
12660 #include <stdlib.h>
12661 int
12662 main ()
12663 {
12664 exit (42);
12665   ;
12666   return 0;
12667 }
12668 _ACEOF
12669 rm -f conftest.$ac_objext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671   (eval $ac_compile) 2>conftest.er1
12672   ac_status=$?
12673   grep -v '^ *+' conftest.er1 >conftest.err
12674   rm -f conftest.er1
12675   cat conftest.err >&5
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); } &&
12678          { ac_try='test -z "$ac_c_werror_flag"
12679                          || test ! -s conftest.err'
12680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681   (eval $ac_try) 2>&5
12682   ac_status=$?
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); }; } &&
12685          { ac_try='test -s conftest.$ac_objext'
12686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687   (eval $ac_try) 2>&5
12688   ac_status=$?
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); }; }; then
12691   :
12692 else
12693   echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12695
12696 continue
12697 fi
12698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12699   cat >conftest.$ac_ext <<_ACEOF
12700 /* confdefs.h.  */
12701 _ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h.  */
12705 $ac_declaration
12706 int
12707 main ()
12708 {
12709 exit (42);
12710   ;
12711   return 0;
12712 }
12713 _ACEOF
12714 rm -f conftest.$ac_objext
12715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12716   (eval $ac_compile) 2>conftest.er1
12717   ac_status=$?
12718   grep -v '^ *+' conftest.er1 >conftest.err
12719   rm -f conftest.er1
12720   cat conftest.err >&5
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); } &&
12723          { ac_try='test -z "$ac_c_werror_flag"
12724                          || test ! -s conftest.err'
12725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726   (eval $ac_try) 2>&5
12727   ac_status=$?
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); }; } &&
12730          { ac_try='test -s conftest.$ac_objext'
12731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732   (eval $ac_try) 2>&5
12733   ac_status=$?
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); }; }; then
12736   break
12737 else
12738   echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12740
12741 fi
12742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12743 done
12744 rm -f conftest*
12745 if test -n "$ac_declaration"; then
12746   echo '#ifdef __cplusplus' >>confdefs.h
12747   echo $ac_declaration      >>confdefs.h
12748   echo '#endif'             >>confdefs.h
12749 fi
12750
12751 else
12752   echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755 fi
12756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12757 ac_ext=c
12758 ac_cpp='$CPP $CPPFLAGS'
12759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12762
12763 depcc="$CC"   am_compiler_list=
12764
12765 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12766 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12767 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12768   echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12771   # We make a subdir and do the tests there.  Otherwise we can end up
12772   # making bogus files that we don't know about and never remove.  For
12773   # instance it was reported that on HP-UX the gcc test will end up
12774   # making a dummy file named `D' -- because `-MD' means `put the output
12775   # in D'.
12776   mkdir conftest.dir
12777   # Copy depcomp to subdir because otherwise we won't find it if we're
12778   # using a relative directory.
12779   cp "$am_depcomp" conftest.dir
12780   cd conftest.dir
12781   # We will build objects and dependencies in a subdirectory because
12782   # it helps to detect inapplicable dependency modes.  For instance
12783   # both Tru64's cc and ICC support -MD to output dependencies as a
12784   # side effect of compilation, but ICC will put the dependencies in
12785   # the current directory while Tru64 will put them in the object
12786   # directory.
12787   mkdir sub
12788
12789   am_cv_CC_dependencies_compiler_type=none
12790   if test "$am_compiler_list" = ""; then
12791      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12792   fi
12793   for depmode in $am_compiler_list; do
12794     # Setup a source with many dependencies, because some compilers
12795     # like to wrap large dependency lists on column 80 (with \), and
12796     # we should not choose a depcomp mode which is confused by this.
12797     #
12798     # We need to recreate these files for each test, as the compiler may
12799     # overwrite some of them when testing with obscure command lines.
12800     # This happens at least with the AIX C compiler.
12801     : > sub/conftest.c
12802     for i in 1 2 3 4 5 6; do
12803       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12804       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12805       # Solaris 8's {/usr,}/bin/sh.
12806       touch sub/conftst$i.h
12807     done
12808     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12809
12810     case $depmode in
12811     nosideeffect)
12812       # after this tag, mechanisms are not by side-effect, so they'll
12813       # only be used when explicitly requested
12814       if test "x$enable_dependency_tracking" = xyes; then
12815         continue
12816       else
12817         break
12818       fi
12819       ;;
12820     none) break ;;
12821     esac
12822     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12823     # mode.  It turns out that the SunPro C++ compiler does not properly
12824     # handle `-M -o', and we need to detect this.
12825     if depmode=$depmode \
12826        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12827        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12828        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12829          >/dev/null 2>conftest.err &&
12830        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12831        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12832        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12833       # icc doesn't choke on unknown options, it will just issue warnings
12834       # or remarks (even with -Werror).  So we grep stderr for any message
12835       # that says an option was ignored or not supported.
12836       # When given -MP, icc 7.0 and 7.1 complain thusly:
12837       #   icc: Command line warning: ignoring option '-M'; no argument required
12838       # The diagnosis changed in icc 8.0:
12839       #   icc: Command line remark: option '-MP' not supported
12840       if (grep 'ignoring option' conftest.err ||
12841           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12842         am_cv_CC_dependencies_compiler_type=$depmode
12843         break
12844       fi
12845     fi
12846   done
12847
12848   cd ..
12849   rm -rf conftest.dir
12850 else
12851   am_cv_CC_dependencies_compiler_type=none
12852 fi
12853
12854 fi
12855 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12856 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12857 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12858
12859
12860
12861 if
12862   test "x$enable_dependency_tracking" != xno \
12863   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12864   am__fastdepCC_TRUE=
12865   am__fastdepCC_FALSE='#'
12866 else
12867   am__fastdepCC_TRUE='#'
12868   am__fastdepCC_FALSE=
12869 fi
12870
12871
12872 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12873         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12874 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12875    { (exit 1); exit 1; }; }
12876 fi
12877
12878 # test for make depend flag
12879 OL_MKDEP=
12880 OL_MKDEP_FLAGS=
12881 if test -z "${MKDEP}"; then
12882         OL_MKDEP="${CC-cc}"
12883         if test -z "${MKDEP_FLAGS}"; then
12884                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12885 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12886 if test "${ol_cv_mkdep+set}" = set; then
12887   echo $ECHO_N "(cached) $ECHO_C" >&6
12888 else
12889
12890                         ol_cv_mkdep=no
12891                         for flag in "-M" "-xM"; do
12892                                 cat > conftest.c <<EOF
12893  noCode;
12894 EOF
12895                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897   (eval $ac_try) 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; } \
12901                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12902                                 then
12903                                         if test ! -f conftest."${ac_object}" ; then
12904                                                 ol_cv_mkdep=$flag
12905                                                 OL_MKDEP_FLAGS="$flag"
12906                                                 break
12907                                         fi
12908                                 fi
12909                         done
12910                         rm -f conftest*
12911
12912 fi
12913 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12914 echo "${ECHO_T}$ol_cv_mkdep" >&6
12915                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
12916         else
12917                 cc_cv_mkdep=yes
12918                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12919         fi
12920 else
12921         cc_cv_mkdep=yes
12922         OL_MKDEP="${MKDEP}"
12923         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12924 fi
12925
12926
12927
12928 if test "${ol_cv_mkdep}" = no ; then
12929         # this will soon become an error
12930         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12931 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12932 fi
12933
12934 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12935 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12936 if test "${ac_cv_lib_s_afopen+set}" = set; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939   ac_check_lib_save_LIBS=$LIBS
12940 LIBS="-ls  $LIBS"
12941 cat >conftest.$ac_ext <<_ACEOF
12942 /* confdefs.h.  */
12943 _ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h.  */
12947
12948 /* Override any gcc2 internal prototype to avoid an error.  */
12949 #ifdef __cplusplus
12950 extern "C"
12951 #endif
12952 /* We use char because int might match the return type of a gcc2
12953    builtin and then its argument prototype would still apply.  */
12954 char afopen ();
12955 int
12956 main ()
12957 {
12958 afopen ();
12959   ;
12960   return 0;
12961 }
12962 _ACEOF
12963 rm -f conftest.$ac_objext conftest$ac_exeext
12964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12965   (eval $ac_link) 2>conftest.er1
12966   ac_status=$?
12967   grep -v '^ *+' conftest.er1 >conftest.err
12968   rm -f conftest.er1
12969   cat conftest.err >&5
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); } &&
12972          { ac_try='test -z "$ac_c_werror_flag"
12973                          || test ! -s conftest.err'
12974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975   (eval $ac_try) 2>&5
12976   ac_status=$?
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); }; } &&
12979          { ac_try='test -s conftest$ac_exeext'
12980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981   (eval $ac_try) 2>&5
12982   ac_status=$?
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); }; }; then
12985   ac_cv_lib_s_afopen=yes
12986 else
12987   echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12989
12990 ac_cv_lib_s_afopen=no
12991 fi
12992 rm -f conftest.err conftest.$ac_objext \
12993       conftest$ac_exeext conftest.$ac_ext
12994 LIBS=$ac_check_lib_save_LIBS
12995 fi
12996 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12997 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12998 if test $ac_cv_lib_s_afopen = yes; then
12999
13000         AUTH_LIBS=-ls
13001
13002 cat >>confdefs.h <<\_ACEOF
13003 #define HAVE_AIX_SECURITY 1
13004 _ACEOF
13005
13006
13007 fi
13008
13009
13010 case "$target" in
13011 *-ibm-openedition)
13012         ac_cv_func_getopt=no
13013
13014 cat >>confdefs.h <<\_ACEOF
13015 #define BOTH_STRINGS_H 1
13016 _ACEOF
13017
13018         ;;
13019 esac
13020
13021 ol_link_modules=no
13022 WITH_MODULES_ENABLED=no
13023 if test $ol_enable_modules != no ; then
13024
13025 for ac_header in ltdl.h
13026 do
13027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13029   echo "$as_me:$LINENO: checking for $ac_header" >&5
13030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13032   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
13037   # Is the header compilable?
13038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13040 cat >conftest.$ac_ext <<_ACEOF
13041 /* confdefs.h.  */
13042 _ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h.  */
13046 $ac_includes_default
13047 #include <$ac_header>
13048 _ACEOF
13049 rm -f conftest.$ac_objext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051   (eval $ac_compile) 2>conftest.er1
13052   ac_status=$?
13053   grep -v '^ *+' conftest.er1 >conftest.err
13054   rm -f conftest.er1
13055   cat conftest.err >&5
13056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); } &&
13058          { ac_try='test -z "$ac_c_werror_flag"
13059                          || test ! -s conftest.err'
13060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061   (eval $ac_try) 2>&5
13062   ac_status=$?
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); }; } &&
13065          { ac_try='test -s conftest.$ac_objext'
13066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067   (eval $ac_try) 2>&5
13068   ac_status=$?
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); }; }; then
13071   ac_header_compiler=yes
13072 else
13073   echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13075
13076 ac_header_compiler=no
13077 fi
13078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13080 echo "${ECHO_T}$ac_header_compiler" >&6
13081
13082 # Is the header present?
13083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13085 cat >conftest.$ac_ext <<_ACEOF
13086 /* confdefs.h.  */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h.  */
13091 #include <$ac_header>
13092 _ACEOF
13093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13095   ac_status=$?
13096   grep -v '^ *+' conftest.er1 >conftest.err
13097   rm -f conftest.er1
13098   cat conftest.err >&5
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); } >/dev/null; then
13101   if test -s conftest.err; then
13102     ac_cpp_err=$ac_c_preproc_warn_flag
13103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13104   else
13105     ac_cpp_err=
13106   fi
13107 else
13108   ac_cpp_err=yes
13109 fi
13110 if test -z "$ac_cpp_err"; then
13111   ac_header_preproc=yes
13112 else
13113   echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13115
13116   ac_header_preproc=no
13117 fi
13118 rm -f conftest.err conftest.$ac_ext
13119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13120 echo "${ECHO_T}$ac_header_preproc" >&6
13121
13122 # So?  What about this header?
13123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13124   yes:no: )
13125     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13129     ac_header_preproc=yes
13130     ;;
13131   no:yes:* )
13132     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13134     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13135 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13136     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13138     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13139 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13142     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13144     (
13145       cat <<\_ASBOX
13146 ## --------------------------------------------- ##
13147 ## Report this to <http://www.openldap.org/its/> ##
13148 ## --------------------------------------------- ##
13149 _ASBOX
13150     ) |
13151       sed "s/^/$as_me: WARNING:     /" >&2
13152     ;;
13153 esac
13154 echo "$as_me:$LINENO: checking for $ac_header" >&5
13155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13157   echo $ECHO_N "(cached) $ECHO_C" >&6
13158 else
13159   eval "$as_ac_Header=\$ac_header_preproc"
13160 fi
13161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13163
13164 fi
13165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13166   cat >>confdefs.h <<_ACEOF
13167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13168 _ACEOF
13169
13170 fi
13171
13172 done
13173
13174
13175         if test $ac_cv_header_ltdl_h = no ; then
13176                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13177 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13178    { (exit 1); exit 1; }; }
13179         fi
13180
13181         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13182 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13183 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13184   echo $ECHO_N "(cached) $ECHO_C" >&6
13185 else
13186   ac_check_lib_save_LIBS=$LIBS
13187 LIBS="-lltdl  $LIBS"
13188 cat >conftest.$ac_ext <<_ACEOF
13189 /* confdefs.h.  */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h.  */
13194
13195 /* Override any gcc2 internal prototype to avoid an error.  */
13196 #ifdef __cplusplus
13197 extern "C"
13198 #endif
13199 /* We use char because int might match the return type of a gcc2
13200    builtin and then its argument prototype would still apply.  */
13201 char lt_dlinit ();
13202 int
13203 main ()
13204 {
13205 lt_dlinit ();
13206   ;
13207   return 0;
13208 }
13209 _ACEOF
13210 rm -f conftest.$ac_objext conftest$ac_exeext
13211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13212   (eval $ac_link) 2>conftest.er1
13213   ac_status=$?
13214   grep -v '^ *+' conftest.er1 >conftest.err
13215   rm -f conftest.er1
13216   cat conftest.err >&5
13217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218   (exit $ac_status); } &&
13219          { ac_try='test -z "$ac_c_werror_flag"
13220                          || test ! -s conftest.err'
13221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222   (eval $ac_try) 2>&5
13223   ac_status=$?
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); }; } &&
13226          { ac_try='test -s conftest$ac_exeext'
13227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228   (eval $ac_try) 2>&5
13229   ac_status=$?
13230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231   (exit $ac_status); }; }; then
13232   ac_cv_lib_ltdl_lt_dlinit=yes
13233 else
13234   echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13236
13237 ac_cv_lib_ltdl_lt_dlinit=no
13238 fi
13239 rm -f conftest.err conftest.$ac_objext \
13240       conftest$ac_exeext conftest.$ac_ext
13241 LIBS=$ac_check_lib_save_LIBS
13242 fi
13243 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13244 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13245 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13246
13247                 MODULES_LIBS=-lltdl
13248
13249 cat >>confdefs.h <<\_ACEOF
13250 #define HAVE_LIBLTDL 1
13251 _ACEOF
13252
13253
13254 fi
13255
13256
13257         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13258                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13259 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13260    { (exit 1); exit 1; }; }
13261         fi
13262         ol_link_modules=yes
13263         WITH_MODULES_ENABLED=yes
13264
13265 else
13266         for i in $Backends; do
13267                 eval "ol_tmp=\$ol_enable_$i"
13268                 if test $ol_tmp = mod ; then
13269                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13270 echo "$as_me: WARNING: building static $i backend" >&2;}
13271                         eval "ol_enable_$i=yes"
13272                 fi
13273         done
13274         for i in $Overlays; do
13275                 eval "ol_tmp=\$ol_enable_$i"
13276                 if test $ol_tmp = mod ; then
13277                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13278 echo "$as_me: WARNING: building static $i overlay" >&2;}
13279                         eval "ol_enable_$i=yes"
13280                 fi
13281         done
13282 fi
13283
13284 # test for EBCDIC
13285 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13286 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13287 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13288   echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290
13291         cat >conftest.$ac_ext <<_ACEOF
13292 /* confdefs.h.  */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h.  */
13297
13298 #if !('M' == 0xd4)
13299 #include <__ASCII__/generate_error.h>
13300 #endif
13301
13302 _ACEOF
13303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13305   ac_status=$?
13306   grep -v '^ *+' conftest.er1 >conftest.err
13307   rm -f conftest.er1
13308   cat conftest.err >&5
13309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310   (exit $ac_status); } >/dev/null; then
13311   if test -s conftest.err; then
13312     ac_cpp_err=$ac_c_preproc_warn_flag
13313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13314   else
13315     ac_cpp_err=
13316   fi
13317 else
13318   ac_cpp_err=yes
13319 fi
13320 if test -z "$ac_cpp_err"; then
13321   ol_cv_cpp_ebcdic=yes
13322 else
13323   echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326   ol_cv_cpp_ebcdic=no
13327 fi
13328 rm -f conftest.err conftest.$ac_ext
13329 fi
13330 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13331 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13332 if test $ol_cv_cpp_ebcdic = yes ; then
13333
13334 cat >>confdefs.h <<\_ACEOF
13335 #define HAVE_EBCDIC 1
13336 _ACEOF
13337
13338 fi
13339
13340 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13341 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13342 if test "${ol_cv_header_stdc+set}" = set; then
13343   echo $ECHO_N "(cached) $ECHO_C" >&6
13344 else
13345   cat >conftest.$ac_ext <<_ACEOF
13346 /* confdefs.h.  */
13347 _ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h.  */
13351 #include <stdlib.h>
13352 #include <stdarg.h>
13353 #include <string.h>
13354 #include <float.h>
13355 _ACEOF
13356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13357   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13358   ac_status=$?
13359   grep -v '^ *+' conftest.er1 >conftest.err
13360   rm -f conftest.er1
13361   cat conftest.err >&5
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); } >/dev/null; then
13364   if test -s conftest.err; then
13365     ac_cpp_err=$ac_c_preproc_warn_flag
13366     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13367   else
13368     ac_cpp_err=
13369   fi
13370 else
13371   ac_cpp_err=yes
13372 fi
13373 if test -z "$ac_cpp_err"; then
13374   ol_cv_header_stdc=yes
13375 else
13376   echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13378
13379   ol_cv_header_stdc=no
13380 fi
13381 rm -f conftest.err conftest.$ac_ext
13382
13383 if test $ol_cv_header_stdc = yes; then
13384   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13385 cat >conftest.$ac_ext <<_ACEOF
13386 /* confdefs.h.  */
13387 _ACEOF
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h.  */
13391 #include <string.h>
13392
13393 _ACEOF
13394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13395   $EGREP "memchr" >/dev/null 2>&1; then
13396   :
13397 else
13398   ol_cv_header_stdc=no
13399 fi
13400 rm -f conftest*
13401
13402 fi
13403
13404 if test $ol_cv_header_stdc = yes; then
13405   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13406 cat >conftest.$ac_ext <<_ACEOF
13407 /* confdefs.h.  */
13408 _ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h.  */
13412 #include <stdlib.h>
13413
13414 _ACEOF
13415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13416   $EGREP "free" >/dev/null 2>&1; then
13417   :
13418 else
13419   ol_cv_header_stdc=no
13420 fi
13421 rm -f conftest*
13422
13423 fi
13424
13425 if test $ol_cv_header_stdc = yes; then
13426   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13427 if test "$cross_compiling" = yes; then
13428   :
13429 else
13430   cat >conftest.$ac_ext <<_ACEOF
13431 /* confdefs.h.  */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h.  */
13436 #include <ctype.h>
13437 #ifndef HAVE_EBCDIC
13438 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13439 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13440 #else
13441 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13442                 || ('j' <= (c) && (c) <= 'r') \
13443                 || ('s' <= (c) && (c) <= 'z'))
13444 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13445 #endif
13446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13447 int main () { int i; for (i = 0; i < 256; i++)
13448 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13449 exit (0); }
13450
13451 _ACEOF
13452 rm -f conftest$ac_exeext
13453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13454   (eval $ac_link) 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459   (eval $ac_try) 2>&5
13460   ac_status=$?
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); }; }; then
13463   :
13464 else
13465   echo "$as_me: program exited with status $ac_status" >&5
13466 echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13468
13469 ( exit $ac_status )
13470 ol_cv_header_stdc=no
13471 fi
13472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13473 fi
13474 fi
13475 fi
13476 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13477 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13478 if test $ol_cv_header_stdc = yes; then
13479   cat >>confdefs.h <<\_ACEOF
13480 #define STDC_HEADERS 1
13481 _ACEOF
13482
13483 fi
13484 ac_cv_header_stdc=disable
13485
13486
13487 if test $ol_cv_header_stdc != yes; then
13488         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13489 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13490 fi
13491
13492
13493
13494
13495
13496
13497 ac_header_dirent=no
13498 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13499   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13500 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13501 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13503   echo $ECHO_N "(cached) $ECHO_C" >&6
13504 else
13505   cat >conftest.$ac_ext <<_ACEOF
13506 /* confdefs.h.  */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h.  */
13511 #include <sys/types.h>
13512 #include <$ac_hdr>
13513
13514 int
13515 main ()
13516 {
13517 if ((DIR *) 0)
13518 return 0;
13519   ;
13520   return 0;
13521 }
13522 _ACEOF
13523 rm -f conftest.$ac_objext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13525   (eval $ac_compile) 2>conftest.er1
13526   ac_status=$?
13527   grep -v '^ *+' conftest.er1 >conftest.err
13528   rm -f conftest.er1
13529   cat conftest.err >&5
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); } &&
13532          { ac_try='test -z "$ac_c_werror_flag"
13533                          || test ! -s conftest.err'
13534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535   (eval $ac_try) 2>&5
13536   ac_status=$?
13537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   (exit $ac_status); }; } &&
13539          { ac_try='test -s conftest.$ac_objext'
13540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541   (eval $ac_try) 2>&5
13542   ac_status=$?
13543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544   (exit $ac_status); }; }; then
13545   eval "$as_ac_Header=yes"
13546 else
13547   echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13549
13550 eval "$as_ac_Header=no"
13551 fi
13552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13553 fi
13554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13557   cat >>confdefs.h <<_ACEOF
13558 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13559 _ACEOF
13560
13561 ac_header_dirent=$ac_hdr; break
13562 fi
13563
13564 done
13565 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13566 if test $ac_header_dirent = dirent.h; then
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 dir; 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 else
13694   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13695 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13696 if test "${ac_cv_search_opendir+set}" = set; then
13697   echo $ECHO_N "(cached) $ECHO_C" >&6
13698 else
13699   ac_func_search_save_LIBS=$LIBS
13700 ac_cv_search_opendir=no
13701 cat >conftest.$ac_ext <<_ACEOF
13702 /* confdefs.h.  */
13703 _ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h.  */
13707
13708 /* Override any gcc2 internal prototype to avoid an error.  */
13709 #ifdef __cplusplus
13710 extern "C"
13711 #endif
13712 /* We use char because int might match the return type of a gcc2
13713    builtin and then its argument prototype would still apply.  */
13714 char opendir ();
13715 int
13716 main ()
13717 {
13718 opendir ();
13719   ;
13720   return 0;
13721 }
13722 _ACEOF
13723 rm -f conftest.$ac_objext conftest$ac_exeext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13725   (eval $ac_link) 2>conftest.er1
13726   ac_status=$?
13727   grep -v '^ *+' conftest.er1 >conftest.err
13728   rm -f conftest.er1
13729   cat conftest.err >&5
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); } &&
13732          { ac_try='test -z "$ac_c_werror_flag"
13733                          || test ! -s conftest.err'
13734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735   (eval $ac_try) 2>&5
13736   ac_status=$?
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); }; } &&
13739          { ac_try='test -s conftest$ac_exeext'
13740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741   (eval $ac_try) 2>&5
13742   ac_status=$?
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); }; }; then
13745   ac_cv_search_opendir="none required"
13746 else
13747   echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13749
13750 fi
13751 rm -f conftest.err conftest.$ac_objext \
13752       conftest$ac_exeext conftest.$ac_ext
13753 if test "$ac_cv_search_opendir" = no; then
13754   for ac_lib in x; do
13755     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13756     cat >conftest.$ac_ext <<_ACEOF
13757 /* confdefs.h.  */
13758 _ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h.  */
13762
13763 /* Override any gcc2 internal prototype to avoid an error.  */
13764 #ifdef __cplusplus
13765 extern "C"
13766 #endif
13767 /* We use char because int might match the return type of a gcc2
13768    builtin and then its argument prototype would still apply.  */
13769 char opendir ();
13770 int
13771 main ()
13772 {
13773 opendir ();
13774   ;
13775   return 0;
13776 }
13777 _ACEOF
13778 rm -f conftest.$ac_objext conftest$ac_exeext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13780   (eval $ac_link) 2>conftest.er1
13781   ac_status=$?
13782   grep -v '^ *+' conftest.er1 >conftest.err
13783   rm -f conftest.er1
13784   cat conftest.err >&5
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); } &&
13787          { ac_try='test -z "$ac_c_werror_flag"
13788                          || test ! -s conftest.err'
13789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790   (eval $ac_try) 2>&5
13791   ac_status=$?
13792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); }; } &&
13794          { ac_try='test -s conftest$ac_exeext'
13795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796   (eval $ac_try) 2>&5
13797   ac_status=$?
13798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); }; }; then
13800   ac_cv_search_opendir="-l$ac_lib"
13801 break
13802 else
13803   echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13805
13806 fi
13807 rm -f conftest.err conftest.$ac_objext \
13808       conftest$ac_exeext conftest.$ac_ext
13809   done
13810 fi
13811 LIBS=$ac_func_search_save_LIBS
13812 fi
13813 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13814 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13815 if test "$ac_cv_search_opendir" != no; then
13816   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13817
13818 fi
13819
13820 fi
13821
13822 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13823 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13824 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13825   echo $ECHO_N "(cached) $ECHO_C" >&6
13826 else
13827   cat >conftest.$ac_ext <<_ACEOF
13828 /* confdefs.h.  */
13829 _ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h.  */
13833 #include <sys/types.h>
13834 #include <sys/wait.h>
13835 #ifndef WEXITSTATUS
13836 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13837 #endif
13838 #ifndef WIFEXITED
13839 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13840 #endif
13841
13842 int
13843 main ()
13844 {
13845   int s;
13846   wait (&s);
13847   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13848   ;
13849   return 0;
13850 }
13851 _ACEOF
13852 rm -f conftest.$ac_objext
13853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13854   (eval $ac_compile) 2>conftest.er1
13855   ac_status=$?
13856   grep -v '^ *+' conftest.er1 >conftest.err
13857   rm -f conftest.er1
13858   cat conftest.err >&5
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); } &&
13861          { ac_try='test -z "$ac_c_werror_flag"
13862                          || test ! -s conftest.err'
13863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864   (eval $ac_try) 2>&5
13865   ac_status=$?
13866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); }; } &&
13868          { ac_try='test -s conftest.$ac_objext'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; }; then
13874   ac_cv_header_sys_wait_h=yes
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879 ac_cv_header_sys_wait_h=no
13880 fi
13881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13882 fi
13883 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13884 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13885 if test $ac_cv_header_sys_wait_h = yes; then
13886
13887 cat >>confdefs.h <<\_ACEOF
13888 #define HAVE_SYS_WAIT_H 1
13889 _ACEOF
13890
13891 fi
13892
13893 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13894 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13895 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13896   echo $ECHO_N "(cached) $ECHO_C" >&6
13897 else
13898   cat >conftest.$ac_ext <<_ACEOF
13899 /* confdefs.h.  */
13900 _ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h.  */
13904 #include <sys/types.h>
13905 #include <termios.h>
13906 #ifdef TIOCGWINSZ
13907   yes
13908 #endif
13909
13910 _ACEOF
13911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13912   $EGREP "yes" >/dev/null 2>&1; then
13913   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13914 else
13915   ac_cv_sys_tiocgwinsz_in_termios_h=no
13916 fi
13917 rm -f conftest*
13918
13919 fi
13920 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13921 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13922
13923 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13924   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13925 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13926 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13927   echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929   cat >conftest.$ac_ext <<_ACEOF
13930 /* confdefs.h.  */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h.  */
13935 #include <sys/types.h>
13936 #include <sys/ioctl.h>
13937 #ifdef TIOCGWINSZ
13938   yes
13939 #endif
13940
13941 _ACEOF
13942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13943   $EGREP "yes" >/dev/null 2>&1; then
13944   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13945 else
13946   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13947 fi
13948 rm -f conftest*
13949
13950 fi
13951 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13952 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13953
13954   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13955
13956 cat >>confdefs.h <<\_ACEOF
13957 #define GWINSZ_IN_SYS_IOCTL 1
13958 _ACEOF
13959
13960   fi
13961 fi
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011 for ac_header in \
14012         arpa/inet.h             \
14013         arpa/nameser.h  \
14014         assert.h                \
14015         bits/types.h    \
14016         conio.h                 \
14017         crypt.h                 \
14018         direct.h                \
14019         errno.h                 \
14020         fcntl.h                 \
14021         filio.h                 \
14022         getopt.h                \
14023         grp.h                   \
14024         io.h                    \
14025         libutil.h               \
14026         limits.h                \
14027         locale.h                \
14028         malloc.h                \
14029         memory.h                \
14030         psap.h                  \
14031         pwd.h                   \
14032         process.h               \
14033         sgtty.h                 \
14034         shadow.h                \
14035         stddef.h                \
14036         string.h                \
14037         strings.h               \
14038         sysexits.h              \
14039         sys/file.h              \
14040         sys/filio.h             \
14041         sys/fstyp.h             \
14042         sys/errno.h             \
14043         sys/ioctl.h             \
14044         sys/param.h             \
14045         sys/privgrp.h   \
14046         sys/resource.h  \
14047         sys/select.h    \
14048         sys/socket.h    \
14049         sys/stat.h              \
14050         sys/syslog.h    \
14051         sys/time.h              \
14052         sys/types.h             \
14053         sys/uio.h               \
14054         sys/vmount.h    \
14055         syslog.h                \
14056         termios.h               \
14057         unistd.h                \
14058         utime.h                 \
14059
14060 do
14061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14063   echo "$as_me:$LINENO: checking for $ac_header" >&5
14064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14066   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
14071   # Is the header compilable?
14072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14074 cat >conftest.$ac_ext <<_ACEOF
14075 /* confdefs.h.  */
14076 _ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h.  */
14080 $ac_includes_default
14081 #include <$ac_header>
14082 _ACEOF
14083 rm -f conftest.$ac_objext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14085   (eval $ac_compile) 2>conftest.er1
14086   ac_status=$?
14087   grep -v '^ *+' conftest.er1 >conftest.err
14088   rm -f conftest.er1
14089   cat conftest.err >&5
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); } &&
14092          { ac_try='test -z "$ac_c_werror_flag"
14093                          || test ! -s conftest.err'
14094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095   (eval $ac_try) 2>&5
14096   ac_status=$?
14097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098   (exit $ac_status); }; } &&
14099          { ac_try='test -s conftest.$ac_objext'
14100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101   (eval $ac_try) 2>&5
14102   ac_status=$?
14103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104   (exit $ac_status); }; }; then
14105   ac_header_compiler=yes
14106 else
14107   echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14109
14110 ac_header_compiler=no
14111 fi
14112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14114 echo "${ECHO_T}$ac_header_compiler" >&6
14115
14116 # Is the header present?
14117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14119 cat >conftest.$ac_ext <<_ACEOF
14120 /* confdefs.h.  */
14121 _ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h.  */
14125 #include <$ac_header>
14126 _ACEOF
14127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14129   ac_status=$?
14130   grep -v '^ *+' conftest.er1 >conftest.err
14131   rm -f conftest.er1
14132   cat conftest.err >&5
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); } >/dev/null; then
14135   if test -s conftest.err; then
14136     ac_cpp_err=$ac_c_preproc_warn_flag
14137     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14138   else
14139     ac_cpp_err=
14140   fi
14141 else
14142   ac_cpp_err=yes
14143 fi
14144 if test -z "$ac_cpp_err"; then
14145   ac_header_preproc=yes
14146 else
14147   echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14149
14150   ac_header_preproc=no
14151 fi
14152 rm -f conftest.err conftest.$ac_ext
14153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14154 echo "${ECHO_T}$ac_header_preproc" >&6
14155
14156 # So?  What about this header?
14157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14158   yes:no: )
14159     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14163     ac_header_preproc=yes
14164     ;;
14165   no:yes:* )
14166     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14168     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14169 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14170     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14172     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14173 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14176     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14178     (
14179       cat <<\_ASBOX
14180 ## --------------------------------------------- ##
14181 ## Report this to <http://www.openldap.org/its/> ##
14182 ## --------------------------------------------- ##
14183 _ASBOX
14184     ) |
14185       sed "s/^/$as_me: WARNING:     /" >&2
14186     ;;
14187 esac
14188 echo "$as_me:$LINENO: checking for $ac_header" >&5
14189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14191   echo $ECHO_N "(cached) $ECHO_C" >&6
14192 else
14193   eval "$as_ac_Header=\$ac_header_preproc"
14194 fi
14195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14197
14198 fi
14199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14200   cat >>confdefs.h <<_ACEOF
14201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14202 _ACEOF
14203
14204 fi
14205
14206 done
14207
14208
14209 if test "$ac_cv_mingw32" = yes \
14210         -o "$ac_cv_interix" = yes \
14211         -o "$ol_cv_msvc" = yes
14212 then
14213
14214
14215 for ac_header in winsock.h winsock2.h
14216 do
14217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219   echo "$as_me:$LINENO: checking for $ac_header" >&5
14220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14222   echo $ECHO_N "(cached) $ECHO_C" >&6
14223 fi
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14226 else
14227   # Is the header compilable?
14228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14230 cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h.  */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h.  */
14236 $ac_includes_default
14237 #include <$ac_header>
14238 _ACEOF
14239 rm -f conftest.$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241   (eval $ac_compile) 2>conftest.er1
14242   ac_status=$?
14243   grep -v '^ *+' conftest.er1 >conftest.err
14244   rm -f conftest.er1
14245   cat conftest.err >&5
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); } &&
14248          { ac_try='test -z "$ac_c_werror_flag"
14249                          || test ! -s conftest.err'
14250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251   (eval $ac_try) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }; } &&
14255          { ac_try='test -s conftest.$ac_objext'
14256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257   (eval $ac_try) 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; }; then
14261   ac_header_compiler=yes
14262 else
14263   echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266 ac_header_compiler=no
14267 fi
14268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14270 echo "${ECHO_T}$ac_header_compiler" >&6
14271
14272 # Is the header present?
14273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14275 cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h.  */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h.  */
14281 #include <$ac_header>
14282 _ACEOF
14283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14284   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14285   ac_status=$?
14286   grep -v '^ *+' conftest.er1 >conftest.err
14287   rm -f conftest.er1
14288   cat conftest.err >&5
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); } >/dev/null; then
14291   if test -s conftest.err; then
14292     ac_cpp_err=$ac_c_preproc_warn_flag
14293     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14294   else
14295     ac_cpp_err=
14296   fi
14297 else
14298   ac_cpp_err=yes
14299 fi
14300 if test -z "$ac_cpp_err"; then
14301   ac_header_preproc=yes
14302 else
14303   echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14305
14306   ac_header_preproc=no
14307 fi
14308 rm -f conftest.err conftest.$ac_ext
14309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14310 echo "${ECHO_T}$ac_header_preproc" >&6
14311
14312 # So?  What about this header?
14313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14314   yes:no: )
14315     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14319     ac_header_preproc=yes
14320     ;;
14321   no:yes:* )
14322     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14324     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14325 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14326     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14328     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14329 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14332     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14334     (
14335       cat <<\_ASBOX
14336 ## --------------------------------------------- ##
14337 ## Report this to <http://www.openldap.org/its/> ##
14338 ## --------------------------------------------- ##
14339 _ASBOX
14340     ) |
14341       sed "s/^/$as_me: WARNING:     /" >&2
14342     ;;
14343 esac
14344 echo "$as_me:$LINENO: checking for $ac_header" >&5
14345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   eval "$as_ac_Header=\$ac_header_preproc"
14350 fi
14351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14353
14354 fi
14355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14356   cat >>confdefs.h <<_ACEOF
14357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14358 _ACEOF
14359
14360 fi
14361
14362 done
14363
14364 fi
14365
14366
14367 for ac_header in resolv.h
14368 do
14369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14370 echo "$as_me:$LINENO: checking for $ac_header" >&5
14371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14373   echo $ECHO_N "(cached) $ECHO_C" >&6
14374 else
14375   cat >conftest.$ac_ext <<_ACEOF
14376 /* confdefs.h.  */
14377 _ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h.  */
14381 $ac_includes_default
14382 #include <netinet/in.h>
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 for ac_header in netinet/tcp.h
14432 do
14433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14434 echo "$as_me:$LINENO: checking for $ac_header" >&5
14435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14437   echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439   cat >conftest.$ac_ext <<_ACEOF
14440 /* confdefs.h.  */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h.  */
14445 $ac_includes_default
14446 #include <netinet/in.h>
14447
14448
14449 #include <$ac_header>
14450 _ACEOF
14451 rm -f conftest.$ac_objext
14452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14453   (eval $ac_compile) 2>conftest.er1
14454   ac_status=$?
14455   grep -v '^ *+' conftest.er1 >conftest.err
14456   rm -f conftest.er1
14457   cat conftest.err >&5
14458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459   (exit $ac_status); } &&
14460          { ac_try='test -z "$ac_c_werror_flag"
14461                          || test ! -s conftest.err'
14462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463   (eval $ac_try) 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); }; } &&
14467          { ac_try='test -s conftest.$ac_objext'
14468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469   (eval $ac_try) 2>&5
14470   ac_status=$?
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); }; }; then
14473   eval "$as_ac_Header=yes"
14474 else
14475   echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14477
14478 eval "$as_ac_Header=no"
14479 fi
14480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14481 fi
14482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14485   cat >>confdefs.h <<_ACEOF
14486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14487 _ACEOF
14488
14489 fi
14490
14491 done
14492
14493
14494
14495 for ac_header in sys/ucred.h
14496 do
14497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14498 echo "$as_me:$LINENO: checking for $ac_header" >&5
14499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14501   echo $ECHO_N "(cached) $ECHO_C" >&6
14502 else
14503   cat >conftest.$ac_ext <<_ACEOF
14504 /* confdefs.h.  */
14505 _ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h.  */
14509 $ac_includes_default
14510 #ifdef HAVE_SYS_PARAM_H
14511 #include <sys/param.h>
14512 #endif
14513
14514
14515 #include <$ac_header>
14516 _ACEOF
14517 rm -f conftest.$ac_objext
14518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14519   (eval $ac_compile) 2>conftest.er1
14520   ac_status=$?
14521   grep -v '^ *+' conftest.er1 >conftest.err
14522   rm -f conftest.er1
14523   cat conftest.err >&5
14524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); } &&
14526          { ac_try='test -z "$ac_c_werror_flag"
14527                          || test ! -s conftest.err'
14528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529   (eval $ac_try) 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); }; } &&
14533          { ac_try='test -s conftest.$ac_objext'
14534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535   (eval $ac_try) 2>&5
14536   ac_status=$?
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); }; }; then
14539   eval "$as_ac_Header=yes"
14540 else
14541   echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14543
14544 eval "$as_ac_Header=no"
14545 fi
14546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14547 fi
14548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14551   cat >>confdefs.h <<_ACEOF
14552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14553 _ACEOF
14554
14555 fi
14556
14557 done
14558
14559
14560
14561
14562
14563 for ac_func in sigaction sigset
14564 do
14565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14566 echo "$as_me:$LINENO: checking for $ac_func" >&5
14567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14568 if eval "test \"\${$as_ac_var+set}\" = set"; then
14569   echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571   cat >conftest.$ac_ext <<_ACEOF
14572 /* confdefs.h.  */
14573 _ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h.  */
14577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14579 #define $ac_func innocuous_$ac_func
14580
14581 /* System header to define __stub macros and hopefully few prototypes,
14582     which can conflict with char $ac_func (); below.
14583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14584     <limits.h> exists even on freestanding compilers.  */
14585
14586 #ifdef __STDC__
14587 # include <limits.h>
14588 #else
14589 # include <assert.h>
14590 #endif
14591
14592 #undef $ac_func
14593
14594 /* Override any gcc2 internal prototype to avoid an error.  */
14595 #ifdef __cplusplus
14596 extern "C"
14597 {
14598 #endif
14599 /* We use char because int might match the return type of a gcc2
14600    builtin and then its argument prototype would still apply.  */
14601 char $ac_func ();
14602 /* The GNU C library defines this for functions which it implements
14603     to always fail with ENOSYS.  Some functions are actually named
14604     something starting with __ and the normal name is an alias.  */
14605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14606 choke me
14607 #else
14608 char (*f) () = $ac_func;
14609 #endif
14610 #ifdef __cplusplus
14611 }
14612 #endif
14613
14614 int
14615 main ()
14616 {
14617 return f != $ac_func;
14618   ;
14619   return 0;
14620 }
14621 _ACEOF
14622 rm -f conftest.$ac_objext conftest$ac_exeext
14623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14624   (eval $ac_link) 2>conftest.er1
14625   ac_status=$?
14626   grep -v '^ *+' conftest.er1 >conftest.err
14627   rm -f conftest.er1
14628   cat conftest.err >&5
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); } &&
14631          { ac_try='test -z "$ac_c_werror_flag"
14632                          || test ! -s conftest.err'
14633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634   (eval $ac_try) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); }; } &&
14638          { ac_try='test -s conftest$ac_exeext'
14639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640   (eval $ac_try) 2>&5
14641   ac_status=$?
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); }; }; then
14644   eval "$as_ac_var=yes"
14645 else
14646   echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14648
14649 eval "$as_ac_var=no"
14650 fi
14651 rm -f conftest.err conftest.$ac_objext \
14652       conftest$ac_exeext conftest.$ac_ext
14653 fi
14654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14656 if test `eval echo '${'$as_ac_var'}'` = yes; then
14657   cat >>confdefs.h <<_ACEOF
14658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14659 _ACEOF
14660
14661 fi
14662 done
14663
14664
14665 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14666
14667 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14668 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14669 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14670   echo $ECHO_N "(cached) $ECHO_C" >&6
14671 else
14672   ac_check_lib_save_LIBS=$LIBS
14673 LIBS="-lV3  $LIBS"
14674 cat >conftest.$ac_ext <<_ACEOF
14675 /* confdefs.h.  */
14676 _ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h.  */
14680
14681 /* Override any gcc2 internal prototype to avoid an error.  */
14682 #ifdef __cplusplus
14683 extern "C"
14684 #endif
14685 /* We use char because int might match the return type of a gcc2
14686    builtin and then its argument prototype would still apply.  */
14687 char sigset ();
14688 int
14689 main ()
14690 {
14691 sigset ();
14692   ;
14693   return 0;
14694 }
14695 _ACEOF
14696 rm -f conftest.$ac_objext conftest$ac_exeext
14697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14698   (eval $ac_link) 2>conftest.er1
14699   ac_status=$?
14700   grep -v '^ *+' conftest.er1 >conftest.err
14701   rm -f conftest.er1
14702   cat conftest.err >&5
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); } &&
14705          { ac_try='test -z "$ac_c_werror_flag"
14706                          || test ! -s conftest.err'
14707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708   (eval $ac_try) 2>&5
14709   ac_status=$?
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); }; } &&
14712          { ac_try='test -s conftest$ac_exeext'
14713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714   (eval $ac_try) 2>&5
14715   ac_status=$?
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); }; }; then
14718   ac_cv_lib_V3_sigset=yes
14719 else
14720   echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14722
14723 ac_cv_lib_V3_sigset=no
14724 fi
14725 rm -f conftest.err conftest.$ac_objext \
14726       conftest$ac_exeext conftest.$ac_ext
14727 LIBS=$ac_check_lib_save_LIBS
14728 fi
14729 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14730 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14731 if test $ac_cv_lib_V3_sigset = yes; then
14732   cat >>confdefs.h <<_ACEOF
14733 #define HAVE_LIBV3 1
14734 _ACEOF
14735
14736   LIBS="-lV3 $LIBS"
14737
14738 fi
14739
14740 fi
14741
14742 if test $ol_cv_msvc ; then
14743    ol_cv_winsock=yes
14744 fi
14745
14746 if test "$ac_cv_header_winsock_h" = yes; then
14747         echo "$as_me:$LINENO: checking for winsock" >&5
14748 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14749 if test "${ol_cv_winsock+set}" = set; then
14750   echo $ECHO_N "(cached) $ECHO_C" >&6
14751 else
14752
14753         save_LIBS="$LIBS"
14754         for curlib in none ws2_32 wsock32; do
14755                 if test curlib != none ; then
14756                 LIBS="$save_LIBS -l$curlib"
14757                 fi
14758                 cat >conftest.$ac_ext <<_ACEOF
14759 /* confdefs.h.  */
14760 _ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h.  */
14764 #include <winsock.h>
14765
14766 int
14767 main ()
14768 {
14769
14770                         socket(0,0,0);
14771                         select(0,NULL,NULL,NULL,NULL);
14772                         closesocket(0);
14773                         gethostname(NULL,0);
14774
14775   ;
14776   return 0;
14777 }
14778 _ACEOF
14779 rm -f conftest.$ac_objext conftest$ac_exeext
14780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14781   (eval $ac_link) 2>conftest.er1
14782   ac_status=$?
14783   grep -v '^ *+' conftest.er1 >conftest.err
14784   rm -f conftest.er1
14785   cat conftest.err >&5
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); } &&
14788          { ac_try='test -z "$ac_c_werror_flag"
14789                          || test ! -s conftest.err'
14790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791   (eval $ac_try) 2>&5
14792   ac_status=$?
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); }; } &&
14795          { ac_try='test -s conftest$ac_exeext'
14796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797   (eval $ac_try) 2>&5
14798   ac_status=$?
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); }; }; then
14801   ol_cv_winsock=$curlib
14802 else
14803   echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14805
14806 ol_cv_winsock=no
14807 fi
14808 rm -f conftest.err conftest.$ac_objext \
14809       conftest$ac_exeext conftest.$ac_ext
14810
14811                 test "$ol_cv_winsock" != no && break
14812         done
14813         LIBS="$save_LIBS"
14814
14815 fi
14816 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14817 echo "${ECHO_T}$ol_cv_winsock" >&6
14818
14819         if test $ol_cv_winsock != no ; then
14820
14821 cat >>confdefs.h <<\_ACEOF
14822 #define HAVE_WINSOCK 1
14823 _ACEOF
14824
14825         ac_cv_func_socket=yes
14826         ac_cv_func_select=yes
14827         ac_cv_func_closesocket=yes
14828         ac_cv_func_gethostname=yes
14829
14830                 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
14831                 LIBS="$LIBS -l$ol_cv_winsock"
14832                 fi
14833
14834         if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
14835
14836 cat >>confdefs.h <<\_ACEOF
14837 #define HAVE_WINSOCK2 1
14838 _ACEOF
14839
14840         fi
14841         fi
14842 fi
14843
14844
14845 echo "$as_me:$LINENO: checking for socket" >&5
14846 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14847 if test "${ac_cv_func_socket+set}" = set; then
14848   echo $ECHO_N "(cached) $ECHO_C" >&6
14849 else
14850   cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h.  */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h.  */
14856 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14858 #define socket innocuous_socket
14859
14860 /* System header to define __stub macros and hopefully few prototypes,
14861     which can conflict with char socket (); below.
14862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14863     <limits.h> exists even on freestanding compilers.  */
14864
14865 #ifdef __STDC__
14866 # include <limits.h>
14867 #else
14868 # include <assert.h>
14869 #endif
14870
14871 #undef socket
14872
14873 /* Override any gcc2 internal prototype to avoid an error.  */
14874 #ifdef __cplusplus
14875 extern "C"
14876 {
14877 #endif
14878 /* We use char because int might match the return type of a gcc2
14879    builtin and then its argument prototype would still apply.  */
14880 char socket ();
14881 /* The GNU C library defines this for functions which it implements
14882     to always fail with ENOSYS.  Some functions are actually named
14883     something starting with __ and the normal name is an alias.  */
14884 #if defined (__stub_socket) || defined (__stub___socket)
14885 choke me
14886 #else
14887 char (*f) () = socket;
14888 #endif
14889 #ifdef __cplusplus
14890 }
14891 #endif
14892
14893 int
14894 main ()
14895 {
14896 return f != socket;
14897   ;
14898   return 0;
14899 }
14900 _ACEOF
14901 rm -f conftest.$ac_objext conftest$ac_exeext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14903   (eval $ac_link) 2>conftest.er1
14904   ac_status=$?
14905   grep -v '^ *+' conftest.er1 >conftest.err
14906   rm -f conftest.er1
14907   cat conftest.err >&5
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); } &&
14910          { ac_try='test -z "$ac_c_werror_flag"
14911                          || test ! -s conftest.err'
14912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913   (eval $ac_try) 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); }; } &&
14917          { ac_try='test -s conftest$ac_exeext'
14918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919   (eval $ac_try) 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); }; }; then
14923   ac_cv_func_socket=yes
14924 else
14925   echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14927
14928 ac_cv_func_socket=no
14929 fi
14930 rm -f conftest.err conftest.$ac_objext \
14931       conftest$ac_exeext conftest.$ac_ext
14932 fi
14933 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14934 echo "${ECHO_T}$ac_cv_func_socket" >&6
14935 if test $ac_cv_func_socket = yes; then
14936   :
14937 else
14938
14939
14940 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14941 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14942 if test "${ac_cv_lib_socket_main+set}" = set; then
14943   echo $ECHO_N "(cached) $ECHO_C" >&6
14944 else
14945   ac_check_lib_save_LIBS=$LIBS
14946 LIBS="-lsocket  $LIBS"
14947 cat >conftest.$ac_ext <<_ACEOF
14948 /* confdefs.h.  */
14949 _ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h.  */
14953
14954
14955 int
14956 main ()
14957 {
14958 main ();
14959   ;
14960   return 0;
14961 }
14962 _ACEOF
14963 rm -f conftest.$ac_objext conftest$ac_exeext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14965   (eval $ac_link) 2>conftest.er1
14966   ac_status=$?
14967   grep -v '^ *+' conftest.er1 >conftest.err
14968   rm -f conftest.er1
14969   cat conftest.err >&5
14970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971   (exit $ac_status); } &&
14972          { ac_try='test -z "$ac_c_werror_flag"
14973                          || test ! -s conftest.err'
14974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975   (eval $ac_try) 2>&5
14976   ac_status=$?
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); }; } &&
14979          { ac_try='test -s conftest$ac_exeext'
14980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981   (eval $ac_try) 2>&5
14982   ac_status=$?
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); }; }; then
14985   ac_cv_lib_socket_main=yes
14986 else
14987   echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14989
14990 ac_cv_lib_socket_main=no
14991 fi
14992 rm -f conftest.err conftest.$ac_objext \
14993       conftest$ac_exeext conftest.$ac_ext
14994 LIBS=$ac_check_lib_save_LIBS
14995 fi
14996 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14997 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14998 if test $ac_cv_lib_socket_main = yes; then
14999   cat >>confdefs.h <<_ACEOF
15000 #define HAVE_LIBSOCKET 1
15001 _ACEOF
15002
15003   LIBS="-lsocket $LIBS"
15004
15005 fi
15006
15007
15008 echo "$as_me:$LINENO: checking for main in -lnet" >&5
15009 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
15010 if test "${ac_cv_lib_net_main+set}" = set; then
15011   echo $ECHO_N "(cached) $ECHO_C" >&6
15012 else
15013   ac_check_lib_save_LIBS=$LIBS
15014 LIBS="-lnet  $LIBS"
15015 cat >conftest.$ac_ext <<_ACEOF
15016 /* confdefs.h.  */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h.  */
15021
15022
15023 int
15024 main ()
15025 {
15026 main ();
15027   ;
15028   return 0;
15029 }
15030 _ACEOF
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15033   (eval $ac_link) 2>conftest.er1
15034   ac_status=$?
15035   grep -v '^ *+' conftest.er1 >conftest.err
15036   rm -f conftest.er1
15037   cat conftest.err >&5
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); } &&
15040          { ac_try='test -z "$ac_c_werror_flag"
15041                          || test ! -s conftest.err'
15042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043   (eval $ac_try) 2>&5
15044   ac_status=$?
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); }; } &&
15047          { ac_try='test -s conftest$ac_exeext'
15048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049   (eval $ac_try) 2>&5
15050   ac_status=$?
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); }; }; then
15053   ac_cv_lib_net_main=yes
15054 else
15055   echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15057
15058 ac_cv_lib_net_main=no
15059 fi
15060 rm -f conftest.err conftest.$ac_objext \
15061       conftest$ac_exeext conftest.$ac_ext
15062 LIBS=$ac_check_lib_save_LIBS
15063 fi
15064 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15065 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
15066 if test $ac_cv_lib_net_main = yes; then
15067   cat >>confdefs.h <<_ACEOF
15068 #define HAVE_LIBNET 1
15069 _ACEOF
15070
15071   LIBS="-lnet $LIBS"
15072
15073 fi
15074
15075
15076 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15077 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
15078 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15079   echo $ECHO_N "(cached) $ECHO_C" >&6
15080 else
15081   ac_check_lib_save_LIBS=$LIBS
15082 LIBS="-lnsl_s  $LIBS"
15083 cat >conftest.$ac_ext <<_ACEOF
15084 /* confdefs.h.  */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h.  */
15089
15090
15091 int
15092 main ()
15093 {
15094 main ();
15095   ;
15096   return 0;
15097 }
15098 _ACEOF
15099 rm -f conftest.$ac_objext conftest$ac_exeext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15101   (eval $ac_link) 2>conftest.er1
15102   ac_status=$?
15103   grep -v '^ *+' conftest.er1 >conftest.err
15104   rm -f conftest.er1
15105   cat conftest.err >&5
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); } &&
15108          { ac_try='test -z "$ac_c_werror_flag"
15109                          || test ! -s conftest.err'
15110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111   (eval $ac_try) 2>&5
15112   ac_status=$?
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); }; } &&
15115          { ac_try='test -s conftest$ac_exeext'
15116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117   (eval $ac_try) 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); }; }; then
15121   ac_cv_lib_nsl_s_main=yes
15122 else
15123   echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15125
15126 ac_cv_lib_nsl_s_main=no
15127 fi
15128 rm -f conftest.err conftest.$ac_objext \
15129       conftest$ac_exeext conftest.$ac_ext
15130 LIBS=$ac_check_lib_save_LIBS
15131 fi
15132 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15133 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
15134 if test $ac_cv_lib_nsl_s_main = yes; then
15135   cat >>confdefs.h <<_ACEOF
15136 #define HAVE_LIBNSL_S 1
15137 _ACEOF
15138
15139   LIBS="-lnsl_s $LIBS"
15140
15141 fi
15142
15143
15144 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15145 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15146 if test "${ac_cv_lib_nsl_main+set}" = set; then
15147   echo $ECHO_N "(cached) $ECHO_C" >&6
15148 else
15149   ac_check_lib_save_LIBS=$LIBS
15150 LIBS="-lnsl  $LIBS"
15151 cat >conftest.$ac_ext <<_ACEOF
15152 /* confdefs.h.  */
15153 _ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h.  */
15157
15158
15159 int
15160 main ()
15161 {
15162 main ();
15163   ;
15164   return 0;
15165 }
15166 _ACEOF
15167 rm -f conftest.$ac_objext conftest$ac_exeext
15168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15169   (eval $ac_link) 2>conftest.er1
15170   ac_status=$?
15171   grep -v '^ *+' conftest.er1 >conftest.err
15172   rm -f conftest.er1
15173   cat conftest.err >&5
15174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175   (exit $ac_status); } &&
15176          { ac_try='test -z "$ac_c_werror_flag"
15177                          || test ! -s conftest.err'
15178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179   (eval $ac_try) 2>&5
15180   ac_status=$?
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); }; } &&
15183          { ac_try='test -s conftest$ac_exeext'
15184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185   (eval $ac_try) 2>&5
15186   ac_status=$?
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); }; }; then
15189   ac_cv_lib_nsl_main=yes
15190 else
15191   echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15193
15194 ac_cv_lib_nsl_main=no
15195 fi
15196 rm -f conftest.err conftest.$ac_objext \
15197       conftest$ac_exeext conftest.$ac_ext
15198 LIBS=$ac_check_lib_save_LIBS
15199 fi
15200 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15201 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15202 if test $ac_cv_lib_nsl_main = yes; then
15203   cat >>confdefs.h <<_ACEOF
15204 #define HAVE_LIBNSL 1
15205 _ACEOF
15206
15207   LIBS="-lnsl $LIBS"
15208
15209 fi
15210
15211
15212 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15213 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15214 if test "${ac_cv_lib_inet_socket+set}" = set; then
15215   echo $ECHO_N "(cached) $ECHO_C" >&6
15216 else
15217   ac_check_lib_save_LIBS=$LIBS
15218 LIBS="-linet  $LIBS"
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
15226 /* Override any gcc2 internal prototype to avoid an error.  */
15227 #ifdef __cplusplus
15228 extern "C"
15229 #endif
15230 /* We use char because int might match the return type of a gcc2
15231    builtin and then its argument prototype would still apply.  */
15232 char socket ();
15233 int
15234 main ()
15235 {
15236 socket ();
15237   ;
15238   return 0;
15239 }
15240 _ACEOF
15241 rm -f conftest.$ac_objext conftest$ac_exeext
15242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15243   (eval $ac_link) 2>conftest.er1
15244   ac_status=$?
15245   grep -v '^ *+' conftest.er1 >conftest.err
15246   rm -f conftest.er1
15247   cat conftest.err >&5
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); } &&
15250          { ac_try='test -z "$ac_c_werror_flag"
15251                          || test ! -s conftest.err'
15252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253   (eval $ac_try) 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); }; } &&
15257          { ac_try='test -s conftest$ac_exeext'
15258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259   (eval $ac_try) 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); }; }; then
15263   ac_cv_lib_inet_socket=yes
15264 else
15265   echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15267
15268 ac_cv_lib_inet_socket=no
15269 fi
15270 rm -f conftest.err conftest.$ac_objext \
15271       conftest$ac_exeext conftest.$ac_ext
15272 LIBS=$ac_check_lib_save_LIBS
15273 fi
15274 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15275 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15276 if test $ac_cv_lib_inet_socket = yes; then
15277   cat >>confdefs.h <<_ACEOF
15278 #define HAVE_LIBINET 1
15279 _ACEOF
15280
15281   LIBS="-linet $LIBS"
15282
15283 fi
15284
15285
15286 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15287 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15288 if test "${ac_cv_lib_gen_main+set}" = set; then
15289   echo $ECHO_N "(cached) $ECHO_C" >&6
15290 else
15291   ac_check_lib_save_LIBS=$LIBS
15292 LIBS="-lgen  $LIBS"
15293 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h.  */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h.  */
15299
15300
15301 int
15302 main ()
15303 {
15304 main ();
15305   ;
15306   return 0;
15307 }
15308 _ACEOF
15309 rm -f conftest.$ac_objext conftest$ac_exeext
15310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15311   (eval $ac_link) 2>conftest.er1
15312   ac_status=$?
15313   grep -v '^ *+' conftest.er1 >conftest.err
15314   rm -f conftest.er1
15315   cat conftest.err >&5
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); } &&
15318          { ac_try='test -z "$ac_c_werror_flag"
15319                          || test ! -s conftest.err'
15320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321   (eval $ac_try) 2>&5
15322   ac_status=$?
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); }; } &&
15325          { ac_try='test -s conftest$ac_exeext'
15326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327   (eval $ac_try) 2>&5
15328   ac_status=$?
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); }; }; then
15331   ac_cv_lib_gen_main=yes
15332 else
15333   echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15335
15336 ac_cv_lib_gen_main=no
15337 fi
15338 rm -f conftest.err conftest.$ac_objext \
15339       conftest$ac_exeext conftest.$ac_ext
15340 LIBS=$ac_check_lib_save_LIBS
15341 fi
15342 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15343 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15344 if test $ac_cv_lib_gen_main = yes; then
15345   cat >>confdefs.h <<_ACEOF
15346 #define HAVE_LIBGEN 1
15347 _ACEOF
15348
15349   LIBS="-lgen $LIBS"
15350
15351 fi
15352
15353
15354 fi
15355
15356
15357 echo "$as_me:$LINENO: checking for select" >&5
15358 echo $ECHO_N "checking for select... $ECHO_C" >&6
15359 if test "${ac_cv_func_select+set}" = set; then
15360   echo $ECHO_N "(cached) $ECHO_C" >&6
15361 else
15362   cat >conftest.$ac_ext <<_ACEOF
15363 /* confdefs.h.  */
15364 _ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h.  */
15368 /* Define select to an innocuous variant, in case <limits.h> declares select.
15369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15370 #define select innocuous_select
15371
15372 /* System header to define __stub macros and hopefully few prototypes,
15373     which can conflict with char select (); below.
15374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15375     <limits.h> exists even on freestanding compilers.  */
15376
15377 #ifdef __STDC__
15378 # include <limits.h>
15379 #else
15380 # include <assert.h>
15381 #endif
15382
15383 #undef select
15384
15385 /* Override any gcc2 internal prototype to avoid an error.  */
15386 #ifdef __cplusplus
15387 extern "C"
15388 {
15389 #endif
15390 /* We use char because int might match the return type of a gcc2
15391    builtin and then its argument prototype would still apply.  */
15392 char select ();
15393 /* The GNU C library defines this for functions which it implements
15394     to always fail with ENOSYS.  Some functions are actually named
15395     something starting with __ and the normal name is an alias.  */
15396 #if defined (__stub_select) || defined (__stub___select)
15397 choke me
15398 #else
15399 char (*f) () = select;
15400 #endif
15401 #ifdef __cplusplus
15402 }
15403 #endif
15404
15405 int
15406 main ()
15407 {
15408 return f != select;
15409   ;
15410   return 0;
15411 }
15412 _ACEOF
15413 rm -f conftest.$ac_objext conftest$ac_exeext
15414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15415   (eval $ac_link) 2>conftest.er1
15416   ac_status=$?
15417   grep -v '^ *+' conftest.er1 >conftest.err
15418   rm -f conftest.er1
15419   cat conftest.err >&5
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); } &&
15422          { ac_try='test -z "$ac_c_werror_flag"
15423                          || test ! -s conftest.err'
15424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425   (eval $ac_try) 2>&5
15426   ac_status=$?
15427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428   (exit $ac_status); }; } &&
15429          { ac_try='test -s conftest$ac_exeext'
15430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431   (eval $ac_try) 2>&5
15432   ac_status=$?
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); }; }; then
15435   ac_cv_func_select=yes
15436 else
15437   echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15439
15440 ac_cv_func_select=no
15441 fi
15442 rm -f conftest.err conftest.$ac_objext \
15443       conftest$ac_exeext conftest.$ac_ext
15444 fi
15445 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15446 echo "${ECHO_T}$ac_cv_func_select" >&6
15447 if test $ac_cv_func_select = yes; then
15448   :
15449 else
15450   { { echo "$as_me:$LINENO: error: select() required." >&5
15451 echo "$as_me: error: select() required." >&2;}
15452    { (exit 1); exit 1; }; }
15453 fi
15454
15455
15456 if test "${ac_cv_header_winsock_h}" != yes; then
15457
15458
15459 for ac_header in sys/select.h sys/socket.h
15460 do
15461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15463   echo "$as_me:$LINENO: checking for $ac_header" >&5
15464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15466   echo $ECHO_N "(cached) $ECHO_C" >&6
15467 fi
15468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15470 else
15471   # Is the header compilable?
15472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15474 cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h.  */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h.  */
15480 $ac_includes_default
15481 #include <$ac_header>
15482 _ACEOF
15483 rm -f conftest.$ac_objext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15485   (eval $ac_compile) 2>conftest.er1
15486   ac_status=$?
15487   grep -v '^ *+' conftest.er1 >conftest.err
15488   rm -f conftest.er1
15489   cat conftest.err >&5
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); } &&
15492          { ac_try='test -z "$ac_c_werror_flag"
15493                          || test ! -s conftest.err'
15494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495   (eval $ac_try) 2>&5
15496   ac_status=$?
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); }; } &&
15499          { ac_try='test -s conftest.$ac_objext'
15500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501   (eval $ac_try) 2>&5
15502   ac_status=$?
15503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); }; }; then
15505   ac_header_compiler=yes
15506 else
15507   echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15509
15510 ac_header_compiler=no
15511 fi
15512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15514 echo "${ECHO_T}$ac_header_compiler" >&6
15515
15516 # Is the header present?
15517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15519 cat >conftest.$ac_ext <<_ACEOF
15520 /* confdefs.h.  */
15521 _ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h.  */
15525 #include <$ac_header>
15526 _ACEOF
15527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15529   ac_status=$?
15530   grep -v '^ *+' conftest.er1 >conftest.err
15531   rm -f conftest.er1
15532   cat conftest.err >&5
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); } >/dev/null; then
15535   if test -s conftest.err; then
15536     ac_cpp_err=$ac_c_preproc_warn_flag
15537     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15538   else
15539     ac_cpp_err=
15540   fi
15541 else
15542   ac_cpp_err=yes
15543 fi
15544 if test -z "$ac_cpp_err"; then
15545   ac_header_preproc=yes
15546 else
15547   echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15549
15550   ac_header_preproc=no
15551 fi
15552 rm -f conftest.err conftest.$ac_ext
15553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15554 echo "${ECHO_T}$ac_header_preproc" >&6
15555
15556 # So?  What about this header?
15557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15558   yes:no: )
15559     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15561     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15563     ac_header_preproc=yes
15564     ;;
15565   no:yes:* )
15566     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15568     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15569 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15570     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15572     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15573 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15576     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15578     (
15579       cat <<\_ASBOX
15580 ## --------------------------------------------- ##
15581 ## Report this to <http://www.openldap.org/its/> ##
15582 ## --------------------------------------------- ##
15583 _ASBOX
15584     ) |
15585       sed "s/^/$as_me: WARNING:     /" >&2
15586     ;;
15587 esac
15588 echo "$as_me:$LINENO: checking for $ac_header" >&5
15589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15591   echo $ECHO_N "(cached) $ECHO_C" >&6
15592 else
15593   eval "$as_ac_Header=\$ac_header_preproc"
15594 fi
15595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15597
15598 fi
15599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15600   cat >>confdefs.h <<_ACEOF
15601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15602 _ACEOF
15603
15604 fi
15605
15606 done
15607
15608 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15609 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15610 if test "${ac_cv_func_select_args+set}" = set; then
15611   echo $ECHO_N "(cached) $ECHO_C" >&6
15612 else
15613   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15614  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15615   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15616    cat >conftest.$ac_ext <<_ACEOF
15617 /* confdefs.h.  */
15618 _ACEOF
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h.  */
15622 $ac_includes_default
15623 #if HAVE_SYS_SELECT_H
15624 # include <sys/select.h>
15625 #endif
15626 #if HAVE_SYS_SOCKET_H
15627 # include <sys/socket.h>
15628 #endif
15629
15630 int
15631 main ()
15632 {
15633 extern int select ($ac_arg1,
15634                                             $ac_arg234, $ac_arg234, $ac_arg234,
15635                                             $ac_arg5);
15636   ;
15637   return 0;
15638 }
15639 _ACEOF
15640 rm -f conftest.$ac_objext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15642   (eval $ac_compile) 2>conftest.er1
15643   ac_status=$?
15644   grep -v '^ *+' conftest.er1 >conftest.err
15645   rm -f conftest.er1
15646   cat conftest.err >&5
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); } &&
15649          { ac_try='test -z "$ac_c_werror_flag"
15650                          || test ! -s conftest.err'
15651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652   (eval $ac_try) 2>&5
15653   ac_status=$?
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); }; } &&
15656          { ac_try='test -s conftest.$ac_objext'
15657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658   (eval $ac_try) 2>&5
15659   ac_status=$?
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); }; }; then
15662   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15663 else
15664   echo "$as_me: failed program was:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15666
15667 fi
15668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15669   done
15670  done
15671 done
15672 # Provide a safe default value.
15673 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15674
15675 fi
15676 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15677 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15678 ac_save_IFS=$IFS; IFS=','
15679 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15680 IFS=$ac_save_IFS
15681 shift
15682
15683 cat >>confdefs.h <<_ACEOF
15684 #define SELECT_TYPE_ARG1 $1
15685 _ACEOF
15686
15687
15688 cat >>confdefs.h <<_ACEOF
15689 #define SELECT_TYPE_ARG234 ($2)
15690 _ACEOF
15691
15692
15693 cat >>confdefs.h <<_ACEOF
15694 #define SELECT_TYPE_ARG5 ($3)
15695 _ACEOF
15696
15697 rm -f conftest*
15698
15699 fi
15700
15701
15702
15703 for ac_func in poll
15704 do
15705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15706 echo "$as_me:$LINENO: checking for $ac_func" >&5
15707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15708 if eval "test \"\${$as_ac_var+set}\" = set"; then
15709   echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711   cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h.  */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h.  */
15717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15719 #define $ac_func innocuous_$ac_func
15720
15721 /* System header to define __stub macros and hopefully few prototypes,
15722     which can conflict with char $ac_func (); below.
15723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15724     <limits.h> exists even on freestanding compilers.  */
15725
15726 #ifdef __STDC__
15727 # include <limits.h>
15728 #else
15729 # include <assert.h>
15730 #endif
15731
15732 #undef $ac_func
15733
15734 /* Override any gcc2 internal prototype to avoid an error.  */
15735 #ifdef __cplusplus
15736 extern "C"
15737 {
15738 #endif
15739 /* We use char because int might match the return type of a gcc2
15740    builtin and then its argument prototype would still apply.  */
15741 char $ac_func ();
15742 /* The GNU C library defines this for functions which it implements
15743     to always fail with ENOSYS.  Some functions are actually named
15744     something starting with __ and the normal name is an alias.  */
15745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15746 choke me
15747 #else
15748 char (*f) () = $ac_func;
15749 #endif
15750 #ifdef __cplusplus
15751 }
15752 #endif
15753
15754 int
15755 main ()
15756 {
15757 return f != $ac_func;
15758   ;
15759   return 0;
15760 }
15761 _ACEOF
15762 rm -f conftest.$ac_objext conftest$ac_exeext
15763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15764   (eval $ac_link) 2>conftest.er1
15765   ac_status=$?
15766   grep -v '^ *+' conftest.er1 >conftest.err
15767   rm -f conftest.er1
15768   cat conftest.err >&5
15769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770   (exit $ac_status); } &&
15771          { ac_try='test -z "$ac_c_werror_flag"
15772                          || test ! -s conftest.err'
15773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774   (eval $ac_try) 2>&5
15775   ac_status=$?
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); }; } &&
15778          { ac_try='test -s conftest$ac_exeext'
15779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780   (eval $ac_try) 2>&5
15781   ac_status=$?
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); }; }; then
15784   eval "$as_ac_var=yes"
15785 else
15786   echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15788
15789 eval "$as_ac_var=no"
15790 fi
15791 rm -f conftest.err conftest.$ac_objext \
15792       conftest$ac_exeext conftest.$ac_ext
15793 fi
15794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15796 if test `eval echo '${'$as_ac_var'}'` = yes; then
15797   cat >>confdefs.h <<_ACEOF
15798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15799 _ACEOF
15800
15801 fi
15802 done
15803
15804 if test $ac_cv_func_poll = yes; then
15805
15806
15807 for ac_header in poll.h sys/poll.h
15808 do
15809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15811   echo "$as_me:$LINENO: checking for $ac_header" >&5
15812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15814   echo $ECHO_N "(cached) $ECHO_C" >&6
15815 fi
15816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15818 else
15819   # Is the header compilable?
15820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15822 cat >conftest.$ac_ext <<_ACEOF
15823 /* confdefs.h.  */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h.  */
15828 $ac_includes_default
15829 #include <$ac_header>
15830 _ACEOF
15831 rm -f conftest.$ac_objext
15832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15833   (eval $ac_compile) 2>conftest.er1
15834   ac_status=$?
15835   grep -v '^ *+' conftest.er1 >conftest.err
15836   rm -f conftest.er1
15837   cat conftest.err >&5
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); } &&
15840          { ac_try='test -z "$ac_c_werror_flag"
15841                          || test ! -s conftest.err'
15842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843   (eval $ac_try) 2>&5
15844   ac_status=$?
15845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846   (exit $ac_status); }; } &&
15847          { ac_try='test -s conftest.$ac_objext'
15848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849   (eval $ac_try) 2>&5
15850   ac_status=$?
15851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); }; }; then
15853   ac_header_compiler=yes
15854 else
15855   echo "$as_me: failed program was:" >&5
15856 sed 's/^/| /' conftest.$ac_ext >&5
15857
15858 ac_header_compiler=no
15859 fi
15860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15862 echo "${ECHO_T}$ac_header_compiler" >&6
15863
15864 # Is the header present?
15865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15867 cat >conftest.$ac_ext <<_ACEOF
15868 /* confdefs.h.  */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h.  */
15873 #include <$ac_header>
15874 _ACEOF
15875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15876   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15877   ac_status=$?
15878   grep -v '^ *+' conftest.er1 >conftest.err
15879   rm -f conftest.er1
15880   cat conftest.err >&5
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); } >/dev/null; then
15883   if test -s conftest.err; then
15884     ac_cpp_err=$ac_c_preproc_warn_flag
15885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15886   else
15887     ac_cpp_err=
15888   fi
15889 else
15890   ac_cpp_err=yes
15891 fi
15892 if test -z "$ac_cpp_err"; then
15893   ac_header_preproc=yes
15894 else
15895   echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15897
15898   ac_header_preproc=no
15899 fi
15900 rm -f conftest.err conftest.$ac_ext
15901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15902 echo "${ECHO_T}$ac_header_preproc" >&6
15903
15904 # So?  What about this header?
15905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15906   yes:no: )
15907     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15911     ac_header_preproc=yes
15912     ;;
15913   no:yes:* )
15914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15916     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15917 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15918     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15920     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15921 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15924     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15926     (
15927       cat <<\_ASBOX
15928 ## --------------------------------------------- ##
15929 ## Report this to <http://www.openldap.org/its/> ##
15930 ## --------------------------------------------- ##
15931 _ASBOX
15932     ) |
15933       sed "s/^/$as_me: WARNING:     /" >&2
15934     ;;
15935 esac
15936 echo "$as_me:$LINENO: checking for $ac_header" >&5
15937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15939   echo $ECHO_N "(cached) $ECHO_C" >&6
15940 else
15941   eval "$as_ac_Header=\$ac_header_preproc"
15942 fi
15943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15945
15946 fi
15947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15948   cat >>confdefs.h <<_ACEOF
15949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15950 _ACEOF
15951
15952 fi
15953
15954 done
15955
15956 fi
15957
15958
15959 for ac_header in sys/epoll.h
15960 do
15961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15963   echo "$as_me:$LINENO: checking for $ac_header" >&5
15964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15966   echo $ECHO_N "(cached) $ECHO_C" >&6
15967 fi
15968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15970 else
15971   # Is the header compilable?
15972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15974 cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h.  */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h.  */
15980 $ac_includes_default
15981 #include <$ac_header>
15982 _ACEOF
15983 rm -f conftest.$ac_objext
15984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985   (eval $ac_compile) 2>conftest.er1
15986   ac_status=$?
15987   grep -v '^ *+' conftest.er1 >conftest.err
15988   rm -f conftest.er1
15989   cat conftest.err >&5
15990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991   (exit $ac_status); } &&
15992          { ac_try='test -z "$ac_c_werror_flag"
15993                          || test ! -s conftest.err'
15994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995   (eval $ac_try) 2>&5
15996   ac_status=$?
15997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998   (exit $ac_status); }; } &&
15999          { ac_try='test -s conftest.$ac_objext'
16000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001   (eval $ac_try) 2>&5
16002   ac_status=$?
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); }; }; then
16005   ac_header_compiler=yes
16006 else
16007   echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16009
16010 ac_header_compiler=no
16011 fi
16012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16014 echo "${ECHO_T}$ac_header_compiler" >&6
16015
16016 # Is the header present?
16017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16019 cat >conftest.$ac_ext <<_ACEOF
16020 /* confdefs.h.  */
16021 _ACEOF
16022 cat confdefs.h >>conftest.$ac_ext
16023 cat >>conftest.$ac_ext <<_ACEOF
16024 /* end confdefs.h.  */
16025 #include <$ac_header>
16026 _ACEOF
16027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16029   ac_status=$?
16030   grep -v '^ *+' conftest.er1 >conftest.err
16031   rm -f conftest.er1
16032   cat conftest.err >&5
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); } >/dev/null; then
16035   if test -s conftest.err; then
16036     ac_cpp_err=$ac_c_preproc_warn_flag
16037     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16038   else
16039     ac_cpp_err=
16040   fi
16041 else
16042   ac_cpp_err=yes
16043 fi
16044 if test -z "$ac_cpp_err"; then
16045   ac_header_preproc=yes
16046 else
16047   echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16049
16050   ac_header_preproc=no
16051 fi
16052 rm -f conftest.err conftest.$ac_ext
16053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16054 echo "${ECHO_T}$ac_header_preproc" >&6
16055
16056 # So?  What about this header?
16057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16058   yes:no: )
16059     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16063     ac_header_preproc=yes
16064     ;;
16065   no:yes:* )
16066     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16068     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16069 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16070     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16072     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16073 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16076     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16078     (
16079       cat <<\_ASBOX
16080 ## --------------------------------------------- ##
16081 ## Report this to <http://www.openldap.org/its/> ##
16082 ## --------------------------------------------- ##
16083 _ASBOX
16084     ) |
16085       sed "s/^/$as_me: WARNING:     /" >&2
16086     ;;
16087 esac
16088 echo "$as_me:$LINENO: checking for $ac_header" >&5
16089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16091   echo $ECHO_N "(cached) $ECHO_C" >&6
16092 else
16093   eval "$as_ac_Header=\$ac_header_preproc"
16094 fi
16095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16097
16098 fi
16099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16100   cat >>confdefs.h <<_ACEOF
16101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16102 _ACEOF
16103
16104 fi
16105
16106 done
16107
16108 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16109         echo "$as_me:$LINENO: checking for epoll system call" >&5
16110 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
16111         if test "$cross_compiling" = yes; then
16112   echo "$as_me:$LINENO: result: no" >&5
16113 echo "${ECHO_T}no" >&6
16114 else
16115   cat >conftest.$ac_ext <<_ACEOF
16116 /* confdefs.h.  */
16117 _ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h.  */
16121 int main(int argc, char **argv)
16122 {
16123         int epfd = epoll_create(256);
16124         exit (epfd == -1 ? 1 : 0);
16125 }
16126 _ACEOF
16127 rm -f conftest$ac_exeext
16128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16129   (eval $ac_link) 2>&5
16130   ac_status=$?
16131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134   (eval $ac_try) 2>&5
16135   ac_status=$?
16136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137   (exit $ac_status); }; }; then
16138   echo "$as_me:$LINENO: result: yes" >&5
16139 echo "${ECHO_T}yes" >&6
16140
16141 cat >>confdefs.h <<\_ACEOF
16142 #define HAVE_EPOLL 1
16143 _ACEOF
16144
16145 else
16146   echo "$as_me: program exited with status $ac_status" >&5
16147 echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16149
16150 ( exit $ac_status )
16151 echo "$as_me:$LINENO: result: no" >&5
16152 echo "${ECHO_T}no" >&6
16153 fi
16154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16155 fi
16156 fi
16157
16158
16159 for ac_header in sys/devpoll.h
16160 do
16161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16163   echo "$as_me:$LINENO: checking for $ac_header" >&5
16164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16166   echo $ECHO_N "(cached) $ECHO_C" >&6
16167 fi
16168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16170 else
16171   # Is the header compilable?
16172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
16181 #include <$ac_header>
16182 _ACEOF
16183 rm -f conftest.$ac_objext
16184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16185   (eval $ac_compile) 2>conftest.er1
16186   ac_status=$?
16187   grep -v '^ *+' conftest.er1 >conftest.err
16188   rm -f conftest.er1
16189   cat conftest.err >&5
16190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191   (exit $ac_status); } &&
16192          { ac_try='test -z "$ac_c_werror_flag"
16193                          || test ! -s conftest.err'
16194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195   (eval $ac_try) 2>&5
16196   ac_status=$?
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); }; } &&
16199          { ac_try='test -s conftest.$ac_objext'
16200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201   (eval $ac_try) 2>&5
16202   ac_status=$?
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); }; }; then
16205   ac_header_compiler=yes
16206 else
16207   echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16209
16210 ac_header_compiler=no
16211 fi
16212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16214 echo "${ECHO_T}$ac_header_compiler" >&6
16215
16216 # Is the header present?
16217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16219 cat >conftest.$ac_ext <<_ACEOF
16220 /* confdefs.h.  */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h.  */
16225 #include <$ac_header>
16226 _ACEOF
16227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16229   ac_status=$?
16230   grep -v '^ *+' conftest.er1 >conftest.err
16231   rm -f conftest.er1
16232   cat conftest.err >&5
16233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234   (exit $ac_status); } >/dev/null; then
16235   if test -s conftest.err; then
16236     ac_cpp_err=$ac_c_preproc_warn_flag
16237     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16238   else
16239     ac_cpp_err=
16240   fi
16241 else
16242   ac_cpp_err=yes
16243 fi
16244 if test -z "$ac_cpp_err"; then
16245   ac_header_preproc=yes
16246 else
16247   echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16249
16250   ac_header_preproc=no
16251 fi
16252 rm -f conftest.err conftest.$ac_ext
16253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16254 echo "${ECHO_T}$ac_header_preproc" >&6
16255
16256 # So?  What about this header?
16257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16258   yes:no: )
16259     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16263     ac_header_preproc=yes
16264     ;;
16265   no:yes:* )
16266     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16268     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16269 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16270     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16272     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16273 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16276     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16278     (
16279       cat <<\_ASBOX
16280 ## --------------------------------------------- ##
16281 ## Report this to <http://www.openldap.org/its/> ##
16282 ## --------------------------------------------- ##
16283 _ASBOX
16284     ) |
16285       sed "s/^/$as_me: WARNING:     /" >&2
16286     ;;
16287 esac
16288 echo "$as_me:$LINENO: checking for $ac_header" >&5
16289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16291   echo $ECHO_N "(cached) $ECHO_C" >&6
16292 else
16293   eval "$as_ac_Header=\$ac_header_preproc"
16294 fi
16295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16297
16298 fi
16299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16300   cat >>confdefs.h <<_ACEOF
16301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16302 _ACEOF
16303
16304 fi
16305
16306 done
16307
16308 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16309                 -a "${ac_cv_header_poll_h}" = yes ; \
16310 then
16311         echo "$as_me:$LINENO: checking for /dev/poll" >&5
16312 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16313         if test "$cross_compiling" = yes; then
16314   echo "$as_me:$LINENO: result: no" >&5
16315 echo "${ECHO_T}no" >&6
16316 else
16317   cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h.  */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h.  */
16323 int main(int argc, char **argv)
16324 {
16325         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16326         exit (devpollfd == -1 ? 1 : 0);
16327 }
16328 _ACEOF
16329 rm -f conftest$ac_exeext
16330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16331   (eval $ac_link) 2>&5
16332   ac_status=$?
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336   (eval $ac_try) 2>&5
16337   ac_status=$?
16338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339   (exit $ac_status); }; }; then
16340   echo "$as_me:$LINENO: result: yes" >&5
16341 echo "${ECHO_T}yes" >&6
16342
16343 cat >>confdefs.h <<\_ACEOF
16344 #define HAVE_DEVPOLL 1
16345 _ACEOF
16346
16347 else
16348   echo "$as_me: program exited with status $ac_status" >&5
16349 echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16351
16352 ( exit $ac_status )
16353 echo "$as_me:$LINENO: result: no" >&5
16354 echo "${ECHO_T}no" >&6
16355 fi
16356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16357 fi
16358 fi
16359
16360 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16361 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16362 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16363   echo $ECHO_N "(cached) $ECHO_C" >&6
16364 else
16365
16366         cat >conftest.$ac_ext <<_ACEOF
16367 /* confdefs.h.  */
16368 _ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h.  */
16372
16373 #include <stdio.h>
16374 #include <sys/types.h>
16375 #include <errno.h>
16376 #ifdef _WIN32
16377 #include <stdlib.h>
16378 #endif
16379 int
16380 main ()
16381 {
16382 char *c = (char *) *sys_errlist
16383   ;
16384   return 0;
16385 }
16386 _ACEOF
16387 rm -f conftest.$ac_objext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16389   (eval $ac_compile) 2>conftest.er1
16390   ac_status=$?
16391   grep -v '^ *+' conftest.er1 >conftest.err
16392   rm -f conftest.er1
16393   cat conftest.err >&5
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); } &&
16396          { ac_try='test -z "$ac_c_werror_flag"
16397                          || test ! -s conftest.err'
16398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399   (eval $ac_try) 2>&5
16400   ac_status=$?
16401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402   (exit $ac_status); }; } &&
16403          { ac_try='test -s conftest.$ac_objext'
16404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405   (eval $ac_try) 2>&5
16406   ac_status=$?
16407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408   (exit $ac_status); }; }; then
16409   ol_cv_dcl_sys_errlist=yes
16410         ol_cv_have_sys_errlist=yes
16411 else
16412   echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 ol_cv_dcl_sys_errlist=no
16416 fi
16417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16418 fi
16419 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16420 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16421 #
16422 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16423 if test $ol_cv_dcl_sys_errlist = no ; then
16424
16425 cat >>confdefs.h <<\_ACEOF
16426 #define DECL_SYS_ERRLIST 1
16427 _ACEOF
16428
16429
16430         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16431 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16432 if test "${ol_cv_have_sys_errlist+set}" = set; then
16433   echo $ECHO_N "(cached) $ECHO_C" >&6
16434 else
16435
16436                 cat >conftest.$ac_ext <<_ACEOF
16437 /* confdefs.h.  */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h.  */
16442 #include <errno.h>
16443 int
16444 main ()
16445 {
16446 char *c = (char *) *sys_errlist
16447   ;
16448   return 0;
16449 }
16450 _ACEOF
16451 rm -f conftest.$ac_objext conftest$ac_exeext
16452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16453   (eval $ac_link) 2>conftest.er1
16454   ac_status=$?
16455   grep -v '^ *+' conftest.er1 >conftest.err
16456   rm -f conftest.er1
16457   cat conftest.err >&5
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); } &&
16460          { ac_try='test -z "$ac_c_werror_flag"
16461                          || test ! -s conftest.err'
16462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463   (eval $ac_try) 2>&5
16464   ac_status=$?
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); }; } &&
16467          { ac_try='test -s conftest$ac_exeext'
16468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469   (eval $ac_try) 2>&5
16470   ac_status=$?
16471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472   (exit $ac_status); }; }; then
16473   ol_cv_have_sys_errlist=yes
16474 else
16475   echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16477
16478 ol_cv_have_sys_errlist=no
16479 fi
16480 rm -f conftest.err conftest.$ac_objext \
16481       conftest$ac_exeext conftest.$ac_ext
16482 fi
16483 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16484 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16485 fi
16486 if test $ol_cv_have_sys_errlist = yes ; then
16487
16488 cat >>confdefs.h <<\_ACEOF
16489 #define HAVE_SYS_ERRLIST 1
16490 _ACEOF
16491
16492 fi
16493
16494
16495 for ac_func in strerror strerror_r
16496 do
16497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16498 echo "$as_me:$LINENO: checking for $ac_func" >&5
16499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16500 if eval "test \"\${$as_ac_var+set}\" = set"; then
16501   echo $ECHO_N "(cached) $ECHO_C" >&6
16502 else
16503   cat >conftest.$ac_ext <<_ACEOF
16504 /* confdefs.h.  */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h.  */
16509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16511 #define $ac_func innocuous_$ac_func
16512
16513 /* System header to define __stub macros and hopefully few prototypes,
16514     which can conflict with char $ac_func (); below.
16515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16516     <limits.h> exists even on freestanding compilers.  */
16517
16518 #ifdef __STDC__
16519 # include <limits.h>
16520 #else
16521 # include <assert.h>
16522 #endif
16523
16524 #undef $ac_func
16525
16526 /* Override any gcc2 internal prototype to avoid an error.  */
16527 #ifdef __cplusplus
16528 extern "C"
16529 {
16530 #endif
16531 /* We use char because int might match the return type of a gcc2
16532    builtin and then its argument prototype would still apply.  */
16533 char $ac_func ();
16534 /* The GNU C library defines this for functions which it implements
16535     to always fail with ENOSYS.  Some functions are actually named
16536     something starting with __ and the normal name is an alias.  */
16537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16538 choke me
16539 #else
16540 char (*f) () = $ac_func;
16541 #endif
16542 #ifdef __cplusplus
16543 }
16544 #endif
16545
16546 int
16547 main ()
16548 {
16549 return f != $ac_func;
16550   ;
16551   return 0;
16552 }
16553 _ACEOF
16554 rm -f conftest.$ac_objext conftest$ac_exeext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16556   (eval $ac_link) 2>conftest.er1
16557   ac_status=$?
16558   grep -v '^ *+' conftest.er1 >conftest.err
16559   rm -f conftest.er1
16560   cat conftest.err >&5
16561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562   (exit $ac_status); } &&
16563          { ac_try='test -z "$ac_c_werror_flag"
16564                          || test ! -s conftest.err'
16565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566   (eval $ac_try) 2>&5
16567   ac_status=$?
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); }; } &&
16570          { ac_try='test -s conftest$ac_exeext'
16571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572   (eval $ac_try) 2>&5
16573   ac_status=$?
16574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575   (exit $ac_status); }; }; then
16576   eval "$as_ac_var=yes"
16577 else
16578   echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16580
16581 eval "$as_ac_var=no"
16582 fi
16583 rm -f conftest.err conftest.$ac_objext \
16584       conftest$ac_exeext conftest.$ac_ext
16585 fi
16586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16588 if test `eval echo '${'$as_ac_var'}'` = yes; then
16589   cat >>confdefs.h <<_ACEOF
16590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16591 _ACEOF
16592
16593 fi
16594 done
16595
16596 ol_cv_func_strerror_r=no
16597 if test "${ac_cv_func_strerror_r}" = yes ; then
16598         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16599 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16600 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16601   echo $ECHO_N "(cached) $ECHO_C" >&6
16602 else
16603
16604         cat >conftest.$ac_ext <<_ACEOF
16605 /* confdefs.h.  */
16606 _ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h.  */
16610 #include <string.h>
16611 _ACEOF
16612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16613   $EGREP "strerror_r" >/dev/null 2>&1; then
16614   ol_decl_strerror_r=yes
16615 else
16616   ol_decl_strerror_r=no
16617 fi
16618 rm -f conftest*
16619
16620         if test $ol_decl_strerror_r = yes ; then
16621                 cat >conftest.$ac_ext <<_ACEOF
16622 /* confdefs.h.  */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h.  */
16627 #include <string.h>
16628 int
16629 main ()
16630 {
16631    /* from autoconf 2.59 */
16632                                 char buf[100];
16633                                 char x = *strerror_r (0, buf, sizeof buf);
16634                                 char *p = strerror_r (0, buf, sizeof buf);
16635
16636   ;
16637   return 0;
16638 }
16639 _ACEOF
16640 rm -f conftest.$ac_objext
16641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16642   (eval $ac_compile) 2>conftest.er1
16643   ac_status=$?
16644   grep -v '^ *+' conftest.er1 >conftest.err
16645   rm -f conftest.er1
16646   cat conftest.err >&5
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); } &&
16649          { ac_try='test -z "$ac_c_werror_flag"
16650                          || test ! -s conftest.err'
16651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652   (eval $ac_try) 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); }; } &&
16656          { ac_try='test -s conftest.$ac_objext'
16657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658   (eval $ac_try) 2>&5
16659   ac_status=$?
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); }; }; then
16662   ol_cv_nonposix_strerror_r=yes
16663 else
16664   echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16666
16667 ol_cv_nonposix_strerror_r=no
16668 fi
16669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16670         else
16671                 if test "$cross_compiling" = yes; then
16672   ol_cv_nonposix_strerror=no
16673 else
16674   cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h.  */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h.  */
16680
16681                         main() {
16682                                 char buf[100];
16683                                 buf[0] = 0;
16684                                 strerror_r( 1, buf, sizeof buf );
16685                                 exit( buf[0] == 0 );
16686                         }
16687
16688 _ACEOF
16689 rm -f conftest$ac_exeext
16690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16691   (eval $ac_link) 2>&5
16692   ac_status=$?
16693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696   (eval $ac_try) 2>&5
16697   ac_status=$?
16698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699   (exit $ac_status); }; }; then
16700   ol_cv_nonposix_strerror_r=yes
16701 else
16702   echo "$as_me: program exited with status $ac_status" >&5
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16705
16706 ( exit $ac_status )
16707 ol_cv_nonposix_strerror=no
16708 fi
16709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16710 fi
16711         fi
16712
16713 fi
16714 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16715 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16716 if test $ol_cv_nonposix_strerror_r = yes ; then
16717
16718 cat >>confdefs.h <<\_ACEOF
16719 #define HAVE_NONPOSIX_STRERROR_R 1
16720 _ACEOF
16721
16722 fi
16723
16724 elif test "${ac_cv_func_strerror}" = no ; then
16725         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16726 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16727 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16728   echo $ECHO_N "(cached) $ECHO_C" >&6
16729 else
16730
16731         cat >conftest.$ac_ext <<_ACEOF
16732 /* confdefs.h.  */
16733 _ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h.  */
16737
16738 #include <stdio.h>
16739 #include <sys/types.h>
16740 #include <errno.h>
16741 #ifdef _WIN32
16742 #include <stdlib.h>
16743 #endif
16744 int
16745 main ()
16746 {
16747 char *c = (char *) *sys_errlist
16748   ;
16749   return 0;
16750 }
16751 _ACEOF
16752 rm -f conftest.$ac_objext
16753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16754   (eval $ac_compile) 2>conftest.er1
16755   ac_status=$?
16756   grep -v '^ *+' conftest.er1 >conftest.err
16757   rm -f conftest.er1
16758   cat conftest.err >&5
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); } &&
16761          { ac_try='test -z "$ac_c_werror_flag"
16762                          || test ! -s conftest.err'
16763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764   (eval $ac_try) 2>&5
16765   ac_status=$?
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); }; } &&
16768          { ac_try='test -s conftest.$ac_objext'
16769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770   (eval $ac_try) 2>&5
16771   ac_status=$?
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); }; }; then
16774   ol_cv_dcl_sys_errlist=yes
16775         ol_cv_have_sys_errlist=yes
16776 else
16777   echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16779
16780 ol_cv_dcl_sys_errlist=no
16781 fi
16782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16783 fi
16784 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16785 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16786 #
16787 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16788 if test $ol_cv_dcl_sys_errlist = no ; then
16789
16790 cat >>confdefs.h <<\_ACEOF
16791 #define DECL_SYS_ERRLIST 1
16792 _ACEOF
16793
16794
16795         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16796 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16797 if test "${ol_cv_have_sys_errlist+set}" = set; then
16798   echo $ECHO_N "(cached) $ECHO_C" >&6
16799 else
16800
16801                 cat >conftest.$ac_ext <<_ACEOF
16802 /* confdefs.h.  */
16803 _ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h.  */
16807 #include <errno.h>
16808 int
16809 main ()
16810 {
16811 char *c = (char *) *sys_errlist
16812   ;
16813   return 0;
16814 }
16815 _ACEOF
16816 rm -f conftest.$ac_objext conftest$ac_exeext
16817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16818   (eval $ac_link) 2>conftest.er1
16819   ac_status=$?
16820   grep -v '^ *+' conftest.er1 >conftest.err
16821   rm -f conftest.er1
16822   cat conftest.err >&5
16823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824   (exit $ac_status); } &&
16825          { ac_try='test -z "$ac_c_werror_flag"
16826                          || test ! -s conftest.err'
16827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828   (eval $ac_try) 2>&5
16829   ac_status=$?
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); }; } &&
16832          { ac_try='test -s conftest$ac_exeext'
16833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834   (eval $ac_try) 2>&5
16835   ac_status=$?
16836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837   (exit $ac_status); }; }; then
16838   ol_cv_have_sys_errlist=yes
16839 else
16840   echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16842
16843 ol_cv_have_sys_errlist=no
16844 fi
16845 rm -f conftest.err conftest.$ac_objext \
16846       conftest$ac_exeext conftest.$ac_ext
16847 fi
16848 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16849 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16850 fi
16851 if test $ol_cv_have_sys_errlist = yes ; then
16852
16853 cat >>confdefs.h <<\_ACEOF
16854 #define HAVE_SYS_ERRLIST 1
16855 _ACEOF
16856
16857 fi
16858
16859 fi
16860
16861
16862
16863 for ac_header in regex.h
16864 do
16865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16866 echo "$as_me:$LINENO: checking for $ac_header" >&5
16867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16869   echo $ECHO_N "(cached) $ECHO_C" >&6
16870 else
16871   cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h.  */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h.  */
16877 $ac_includes_default
16878 #ifdef HAVE_SYS_TYPES_H
16879 #include <sys/types.h>
16880 #endif
16881
16882
16883 #include <$ac_header>
16884 _ACEOF
16885 rm -f conftest.$ac_objext
16886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16887   (eval $ac_compile) 2>conftest.er1
16888   ac_status=$?
16889   grep -v '^ *+' conftest.er1 >conftest.err
16890   rm -f conftest.er1
16891   cat conftest.err >&5
16892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893   (exit $ac_status); } &&
16894          { ac_try='test -z "$ac_c_werror_flag"
16895                          || test ! -s conftest.err'
16896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897   (eval $ac_try) 2>&5
16898   ac_status=$?
16899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900   (exit $ac_status); }; } &&
16901          { ac_try='test -s conftest.$ac_objext'
16902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903   (eval $ac_try) 2>&5
16904   ac_status=$?
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); }; }; then
16907   eval "$as_ac_Header=yes"
16908 else
16909   echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16911
16912 eval "$as_ac_Header=no"
16913 fi
16914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16915 fi
16916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16919   cat >>confdefs.h <<_ACEOF
16920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16921 _ACEOF
16922
16923 fi
16924
16925 done
16926
16927
16928 if test "$ac_cv_header_regex_h" != yes ; then
16929         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16930 echo "$as_me: error: POSIX regex.h required." >&2;}
16931    { (exit 1); exit 1; }; }
16932 fi
16933 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16934 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16935 if test "${ac_cv_search_regfree+set}" = set; then
16936   echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938   ac_func_search_save_LIBS=$LIBS
16939 ac_cv_search_regfree=no
16940 cat >conftest.$ac_ext <<_ACEOF
16941 /* confdefs.h.  */
16942 _ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h.  */
16946
16947 /* Override any gcc2 internal prototype to avoid an error.  */
16948 #ifdef __cplusplus
16949 extern "C"
16950 #endif
16951 /* We use char because int might match the return type of a gcc2
16952    builtin and then its argument prototype would still apply.  */
16953 char regfree ();
16954 int
16955 main ()
16956 {
16957 regfree ();
16958   ;
16959   return 0;
16960 }
16961 _ACEOF
16962 rm -f conftest.$ac_objext conftest$ac_exeext
16963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16964   (eval $ac_link) 2>conftest.er1
16965   ac_status=$?
16966   grep -v '^ *+' conftest.er1 >conftest.err
16967   rm -f conftest.er1
16968   cat conftest.err >&5
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); } &&
16971          { ac_try='test -z "$ac_c_werror_flag"
16972                          || test ! -s conftest.err'
16973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974   (eval $ac_try) 2>&5
16975   ac_status=$?
16976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977   (exit $ac_status); }; } &&
16978          { ac_try='test -s conftest$ac_exeext'
16979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980   (eval $ac_try) 2>&5
16981   ac_status=$?
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); }; }; then
16984   ac_cv_search_regfree="none required"
16985 else
16986   echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16988
16989 fi
16990 rm -f conftest.err conftest.$ac_objext \
16991       conftest$ac_exeext conftest.$ac_ext
16992 if test "$ac_cv_search_regfree" = no; then
16993   for ac_lib in regex gnuregex; do
16994     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16995     cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h.  */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h.  */
17001
17002 /* Override any gcc2 internal prototype to avoid an error.  */
17003 #ifdef __cplusplus
17004 extern "C"
17005 #endif
17006 /* We use char because int might match the return type of a gcc2
17007    builtin and then its argument prototype would still apply.  */
17008 char regfree ();
17009 int
17010 main ()
17011 {
17012 regfree ();
17013   ;
17014   return 0;
17015 }
17016 _ACEOF
17017 rm -f conftest.$ac_objext conftest$ac_exeext
17018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17019   (eval $ac_link) 2>conftest.er1
17020   ac_status=$?
17021   grep -v '^ *+' conftest.er1 >conftest.err
17022   rm -f conftest.er1
17023   cat conftest.err >&5
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); } &&
17026          { ac_try='test -z "$ac_c_werror_flag"
17027                          || test ! -s conftest.err'
17028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029   (eval $ac_try) 2>&5
17030   ac_status=$?
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); }; } &&
17033          { ac_try='test -s conftest$ac_exeext'
17034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035   (eval $ac_try) 2>&5
17036   ac_status=$?
17037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); }; }; then
17039   ac_cv_search_regfree="-l$ac_lib"
17040 break
17041 else
17042   echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045 fi
17046 rm -f conftest.err conftest.$ac_objext \
17047       conftest$ac_exeext conftest.$ac_ext
17048   done
17049 fi
17050 LIBS=$ac_func_search_save_LIBS
17051 fi
17052 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17053 echo "${ECHO_T}$ac_cv_search_regfree" >&6
17054 if test "$ac_cv_search_regfree" != no; then
17055   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
17056   :
17057 else
17058   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17059 echo "$as_me: error: POSIX regex required." >&2;}
17060    { (exit 1); exit 1; }; }
17061 fi
17062
17063
17064
17065 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17066 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
17067 if test "${ol_cv_c_posix_regex+set}" = set; then
17068   echo $ECHO_N "(cached) $ECHO_C" >&6
17069 else
17070
17071         if test "$cross_compiling" = yes; then
17072   ol_cv_c_posix_regex=cross
17073 else
17074   cat >conftest.$ac_ext <<_ACEOF
17075 /* confdefs.h.  */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h.  */
17080
17081 #include <sys/types.h>
17082 #include <regex.h>
17083 static char *pattern, *string;
17084 main()
17085 {
17086         int rc;
17087         regex_t re;
17088
17089         pattern = "^A";
17090
17091         if(regcomp(&re, pattern, 0)) {
17092                 return -1;
17093         }
17094
17095         string = "ALL MATCH";
17096
17097         rc = regexec(&re, string, 0, (void*)0, 0);
17098
17099         regfree(&re);
17100
17101         return rc;
17102 }
17103 _ACEOF
17104 rm -f conftest$ac_exeext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106   (eval $ac_link) 2>&5
17107   ac_status=$?
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17111   (eval $ac_try) 2>&5
17112   ac_status=$?
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); }; }; then
17115   ol_cv_c_posix_regex=yes
17116 else
17117   echo "$as_me: program exited with status $ac_status" >&5
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17120
17121 ( exit $ac_status )
17122 ol_cv_c_posix_regex=no
17123 fi
17124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17125 fi
17126 fi
17127 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17128 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
17129
17130 if test "$ol_cv_c_posix_regex" = no ; then
17131         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17132 echo "$as_me: error: broken POSIX regex!" >&2;}
17133    { (exit 1); exit 1; }; }
17134 fi
17135
17136
17137 have_uuid=no
17138
17139 for ac_header in sys/uuid.h
17140 do
17141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17143   echo "$as_me:$LINENO: checking for $ac_header" >&5
17144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17146   echo $ECHO_N "(cached) $ECHO_C" >&6
17147 fi
17148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17150 else
17151   # Is the header compilable?
17152 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17154 cat >conftest.$ac_ext <<_ACEOF
17155 /* confdefs.h.  */
17156 _ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h.  */
17160 $ac_includes_default
17161 #include <$ac_header>
17162 _ACEOF
17163 rm -f conftest.$ac_objext
17164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17165   (eval $ac_compile) 2>conftest.er1
17166   ac_status=$?
17167   grep -v '^ *+' conftest.er1 >conftest.err
17168   rm -f conftest.er1
17169   cat conftest.err >&5
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); } &&
17172          { ac_try='test -z "$ac_c_werror_flag"
17173                          || test ! -s conftest.err'
17174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175   (eval $ac_try) 2>&5
17176   ac_status=$?
17177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178   (exit $ac_status); }; } &&
17179          { ac_try='test -s conftest.$ac_objext'
17180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181   (eval $ac_try) 2>&5
17182   ac_status=$?
17183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184   (exit $ac_status); }; }; then
17185   ac_header_compiler=yes
17186 else
17187   echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17189
17190 ac_header_compiler=no
17191 fi
17192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17194 echo "${ECHO_T}$ac_header_compiler" >&6
17195
17196 # Is the header present?
17197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17199 cat >conftest.$ac_ext <<_ACEOF
17200 /* confdefs.h.  */
17201 _ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h.  */
17205 #include <$ac_header>
17206 _ACEOF
17207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17209   ac_status=$?
17210   grep -v '^ *+' conftest.er1 >conftest.err
17211   rm -f conftest.er1
17212   cat conftest.err >&5
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); } >/dev/null; then
17215   if test -s conftest.err; then
17216     ac_cpp_err=$ac_c_preproc_warn_flag
17217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17218   else
17219     ac_cpp_err=
17220   fi
17221 else
17222   ac_cpp_err=yes
17223 fi
17224 if test -z "$ac_cpp_err"; then
17225   ac_header_preproc=yes
17226 else
17227   echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17229
17230   ac_header_preproc=no
17231 fi
17232 rm -f conftest.err conftest.$ac_ext
17233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17234 echo "${ECHO_T}$ac_header_preproc" >&6
17235
17236 # So?  What about this header?
17237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17238   yes:no: )
17239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17243     ac_header_preproc=yes
17244     ;;
17245   no:yes:* )
17246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17248     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17249 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17250     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17252     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17253 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17256     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17258     (
17259       cat <<\_ASBOX
17260 ## --------------------------------------------- ##
17261 ## Report this to <http://www.openldap.org/its/> ##
17262 ## --------------------------------------------- ##
17263 _ASBOX
17264     ) |
17265       sed "s/^/$as_me: WARNING:     /" >&2
17266     ;;
17267 esac
17268 echo "$as_me:$LINENO: checking for $ac_header" >&5
17269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17271   echo $ECHO_N "(cached) $ECHO_C" >&6
17272 else
17273   eval "$as_ac_Header=\$ac_header_preproc"
17274 fi
17275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17277
17278 fi
17279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17280   cat >>confdefs.h <<_ACEOF
17281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17282 _ACEOF
17283
17284 fi
17285
17286 done
17287
17288 if test $ac_cv_header_sys_uuid_h = yes ; then
17289         save_LIBS="$LIBS"
17290         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17291 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17292 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17293   echo $ECHO_N "(cached) $ECHO_C" >&6
17294 else
17295   ac_func_search_save_LIBS=$LIBS
17296 ac_cv_search_uuid_to_str=no
17297 cat >conftest.$ac_ext <<_ACEOF
17298 /* confdefs.h.  */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h.  */
17303
17304 /* Override any gcc2 internal prototype to avoid an error.  */
17305 #ifdef __cplusplus
17306 extern "C"
17307 #endif
17308 /* We use char because int might match the return type of a gcc2
17309    builtin and then its argument prototype would still apply.  */
17310 char uuid_to_str ();
17311 int
17312 main ()
17313 {
17314 uuid_to_str ();
17315   ;
17316   return 0;
17317 }
17318 _ACEOF
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17321   (eval $ac_link) 2>conftest.er1
17322   ac_status=$?
17323   grep -v '^ *+' conftest.er1 >conftest.err
17324   rm -f conftest.er1
17325   cat conftest.err >&5
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); } &&
17328          { ac_try='test -z "$ac_c_werror_flag"
17329                          || test ! -s conftest.err'
17330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331   (eval $ac_try) 2>&5
17332   ac_status=$?
17333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); }; } &&
17335          { ac_try='test -s conftest$ac_exeext'
17336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337   (eval $ac_try) 2>&5
17338   ac_status=$?
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); }; }; then
17341   ac_cv_search_uuid_to_str="none required"
17342 else
17343   echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17345
17346 fi
17347 rm -f conftest.err conftest.$ac_objext \
17348       conftest$ac_exeext conftest.$ac_ext
17349 if test "$ac_cv_search_uuid_to_str" = no; then
17350   for ac_lib in uuid; do
17351     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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
17359 /* Override any gcc2 internal prototype to avoid an error.  */
17360 #ifdef __cplusplus
17361 extern "C"
17362 #endif
17363 /* We use char because int might match the return type of a gcc2
17364    builtin and then its argument prototype would still apply.  */
17365 char uuid_to_str ();
17366 int
17367 main ()
17368 {
17369 uuid_to_str ();
17370   ;
17371   return 0;
17372 }
17373 _ACEOF
17374 rm -f conftest.$ac_objext conftest$ac_exeext
17375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17376   (eval $ac_link) 2>conftest.er1
17377   ac_status=$?
17378   grep -v '^ *+' conftest.er1 >conftest.err
17379   rm -f conftest.er1
17380   cat conftest.err >&5
17381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382   (exit $ac_status); } &&
17383          { ac_try='test -z "$ac_c_werror_flag"
17384                          || test ! -s conftest.err'
17385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386   (eval $ac_try) 2>&5
17387   ac_status=$?
17388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389   (exit $ac_status); }; } &&
17390          { ac_try='test -s conftest$ac_exeext'
17391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392   (eval $ac_try) 2>&5
17393   ac_status=$?
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); }; }; then
17396   ac_cv_search_uuid_to_str="-l$ac_lib"
17397 break
17398 else
17399   echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17401
17402 fi
17403 rm -f conftest.err conftest.$ac_objext \
17404       conftest$ac_exeext conftest.$ac_ext
17405   done
17406 fi
17407 LIBS=$ac_func_search_save_LIBS
17408 fi
17409 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17410 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17411 if test "$ac_cv_search_uuid_to_str" != no; then
17412   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17413   have_uuid=yes
17414 else
17415   :
17416 fi
17417
17418         LIBS="$save_LIBS"
17419
17420         if test $have_uuid = yes ; then
17421
17422 cat >>confdefs.h <<\_ACEOF
17423 #define HAVE_UUID_TO_STR 1
17424 _ACEOF
17425
17426
17427                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17428                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17429         fi
17430 fi
17431
17432 if test $have_uuid = no ; then
17433
17434 for ac_header in uuid/uuid.h
17435 do
17436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17438   echo "$as_me:$LINENO: checking for $ac_header" >&5
17439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17441   echo $ECHO_N "(cached) $ECHO_C" >&6
17442 fi
17443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17445 else
17446   # Is the header compilable?
17447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17449 cat >conftest.$ac_ext <<_ACEOF
17450 /* confdefs.h.  */
17451 _ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h.  */
17455 $ac_includes_default
17456 #include <$ac_header>
17457 _ACEOF
17458 rm -f conftest.$ac_objext
17459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17460   (eval $ac_compile) 2>conftest.er1
17461   ac_status=$?
17462   grep -v '^ *+' conftest.er1 >conftest.err
17463   rm -f conftest.er1
17464   cat conftest.err >&5
17465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466   (exit $ac_status); } &&
17467          { ac_try='test -z "$ac_c_werror_flag"
17468                          || test ! -s conftest.err'
17469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470   (eval $ac_try) 2>&5
17471   ac_status=$?
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); }; } &&
17474          { ac_try='test -s conftest.$ac_objext'
17475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476   (eval $ac_try) 2>&5
17477   ac_status=$?
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); }; }; then
17480   ac_header_compiler=yes
17481 else
17482   echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17484
17485 ac_header_compiler=no
17486 fi
17487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17489 echo "${ECHO_T}$ac_header_compiler" >&6
17490
17491 # Is the header present?
17492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17494 cat >conftest.$ac_ext <<_ACEOF
17495 /* confdefs.h.  */
17496 _ACEOF
17497 cat confdefs.h >>conftest.$ac_ext
17498 cat >>conftest.$ac_ext <<_ACEOF
17499 /* end confdefs.h.  */
17500 #include <$ac_header>
17501 _ACEOF
17502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17503   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17504   ac_status=$?
17505   grep -v '^ *+' conftest.er1 >conftest.err
17506   rm -f conftest.er1
17507   cat conftest.err >&5
17508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509   (exit $ac_status); } >/dev/null; then
17510   if test -s conftest.err; then
17511     ac_cpp_err=$ac_c_preproc_warn_flag
17512     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17513   else
17514     ac_cpp_err=
17515   fi
17516 else
17517   ac_cpp_err=yes
17518 fi
17519 if test -z "$ac_cpp_err"; then
17520   ac_header_preproc=yes
17521 else
17522   echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17524
17525   ac_header_preproc=no
17526 fi
17527 rm -f conftest.err conftest.$ac_ext
17528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17529 echo "${ECHO_T}$ac_header_preproc" >&6
17530
17531 # So?  What about this header?
17532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17533   yes:no: )
17534     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17538     ac_header_preproc=yes
17539     ;;
17540   no:yes:* )
17541     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17543     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17544 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17545     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17547     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17548 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17551     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17553     (
17554       cat <<\_ASBOX
17555 ## --------------------------------------------- ##
17556 ## Report this to <http://www.openldap.org/its/> ##
17557 ## --------------------------------------------- ##
17558 _ASBOX
17559     ) |
17560       sed "s/^/$as_me: WARNING:     /" >&2
17561     ;;
17562 esac
17563 echo "$as_me:$LINENO: checking for $ac_header" >&5
17564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17566   echo $ECHO_N "(cached) $ECHO_C" >&6
17567 else
17568   eval "$as_ac_Header=\$ac_header_preproc"
17569 fi
17570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17572
17573 fi
17574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17575   cat >>confdefs.h <<_ACEOF
17576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17577 _ACEOF
17578
17579 fi
17580
17581 done
17582
17583         if test $ac_cv_header_uuid_uuid_h = yes ; then
17584                 save_LIBS="$LIBS"
17585                 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17586 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17587 if test "${ac_cv_search_uuid_generate+set}" = set; then
17588   echo $ECHO_N "(cached) $ECHO_C" >&6
17589 else
17590   ac_func_search_save_LIBS=$LIBS
17591 ac_cv_search_uuid_generate=no
17592 cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h.  */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h.  */
17598
17599 /* Override any gcc2 internal prototype to avoid an error.  */
17600 #ifdef __cplusplus
17601 extern "C"
17602 #endif
17603 /* We use char because int might match the return type of a gcc2
17604    builtin and then its argument prototype would still apply.  */
17605 char uuid_generate ();
17606 int
17607 main ()
17608 {
17609 uuid_generate ();
17610   ;
17611   return 0;
17612 }
17613 _ACEOF
17614 rm -f conftest.$ac_objext conftest$ac_exeext
17615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17616   (eval $ac_link) 2>conftest.er1
17617   ac_status=$?
17618   grep -v '^ *+' conftest.er1 >conftest.err
17619   rm -f conftest.er1
17620   cat conftest.err >&5
17621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622   (exit $ac_status); } &&
17623          { ac_try='test -z "$ac_c_werror_flag"
17624                          || test ! -s conftest.err'
17625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626   (eval $ac_try) 2>&5
17627   ac_status=$?
17628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629   (exit $ac_status); }; } &&
17630          { ac_try='test -s conftest$ac_exeext'
17631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632   (eval $ac_try) 2>&5
17633   ac_status=$?
17634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); }; }; then
17636   ac_cv_search_uuid_generate="none required"
17637 else
17638   echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17640
17641 fi
17642 rm -f conftest.err conftest.$ac_objext \
17643       conftest$ac_exeext conftest.$ac_ext
17644 if test "$ac_cv_search_uuid_generate" = no; then
17645   for ac_lib in uuid; do
17646     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17647     cat >conftest.$ac_ext <<_ACEOF
17648 /* confdefs.h.  */
17649 _ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h.  */
17653
17654 /* Override any gcc2 internal prototype to avoid an error.  */
17655 #ifdef __cplusplus
17656 extern "C"
17657 #endif
17658 /* We use char because int might match the return type of a gcc2
17659    builtin and then its argument prototype would still apply.  */
17660 char uuid_generate ();
17661 int
17662 main ()
17663 {
17664 uuid_generate ();
17665   ;
17666   return 0;
17667 }
17668 _ACEOF
17669 rm -f conftest.$ac_objext conftest$ac_exeext
17670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17671   (eval $ac_link) 2>conftest.er1
17672   ac_status=$?
17673   grep -v '^ *+' conftest.er1 >conftest.err
17674   rm -f conftest.er1
17675   cat conftest.err >&5
17676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677   (exit $ac_status); } &&
17678          { ac_try='test -z "$ac_c_werror_flag"
17679                          || test ! -s conftest.err'
17680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681   (eval $ac_try) 2>&5
17682   ac_status=$?
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); }; } &&
17685          { ac_try='test -s conftest$ac_exeext'
17686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687   (eval $ac_try) 2>&5
17688   ac_status=$?
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); }; }; then
17691   ac_cv_search_uuid_generate="-l$ac_lib"
17692 break
17693 else
17694   echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17696
17697 fi
17698 rm -f conftest.err conftest.$ac_objext \
17699       conftest$ac_exeext conftest.$ac_ext
17700   done
17701 fi
17702 LIBS=$ac_func_search_save_LIBS
17703 fi
17704 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17705 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17706 if test "$ac_cv_search_uuid_generate" != no; then
17707   test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17708   have_uuid=yes
17709 else
17710   :
17711 fi
17712
17713                 LIBS="$save_LIBS"
17714
17715                 if test $have_uuid = yes ; then
17716
17717 cat >>confdefs.h <<\_ACEOF
17718 #define HAVE_UUID_GENERATE 1
17719 _ACEOF
17720
17721
17722                         test "$ac_cv_search_uuid_generate" = "none required" || \
17723                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17724                 fi
17725         fi
17726 fi
17727
17728 if test $have_uuid = no ; then
17729         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17730 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17731         save_LIBS="$LIBS"
17732         LIBS="$LIBS -lrpcrt4"
17733         cat >conftest.$ac_ext <<_ACEOF
17734 /* confdefs.h.  */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h.  */
17739
17740                 int __stdcall UuidCreate(void *);
17741                 int __stdcall UuidToStringA(void *,void **);
17742
17743 int
17744 main ()
17745 {
17746
17747                 UuidCreate(0);
17748                 UuidToStringA(0,0);
17749
17750   ;
17751   return 0;
17752 }
17753 _ACEOF
17754 rm -f conftest.$ac_objext conftest$ac_exeext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756   (eval $ac_link) 2>conftest.er1
17757   ac_status=$?
17758   grep -v '^ *+' conftest.er1 >conftest.err
17759   rm -f conftest.er1
17760   cat conftest.err >&5
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); } &&
17763          { ac_try='test -z "$ac_c_werror_flag"
17764                          || test ! -s conftest.err'
17765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766   (eval $ac_try) 2>&5
17767   ac_status=$?
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); }; } &&
17770          { ac_try='test -s conftest$ac_exeext'
17771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772   (eval $ac_try) 2>&5
17773   ac_status=$?
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); }; }; then
17776   need_rpcrt=yes
17777 else
17778   echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17780
17781 need_rpcrt=no
17782 fi
17783 rm -f conftest.err conftest.$ac_objext \
17784       conftest$ac_exeext conftest.$ac_ext
17785         if test $need_rpcrt = yes; then
17786                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17787         fi
17788         LIBS="$save_LIBS"
17789         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17790 echo "${ECHO_T}$need_rpcrt" >&6
17791 fi
17792
17793 ol_cv_lib_resolver=no
17794 if test $ol_cv_lib_resolver = no ; then
17795         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17796 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17797 if test "${ol_cv_resolver_none+set}" = set; then
17798   echo $ECHO_N "(cached) $ECHO_C" >&6
17799 else
17800
17801         ol_RESOLVER_LIB=
17802         ol_LIBS=$LIBS
17803         LIBS="$ol_RESOLVER_LIB $LIBS"
17804
17805         cat >conftest.$ac_ext <<_ACEOF
17806 /* confdefs.h.  */
17807 _ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h.  */
17811
17812 #ifdef HAVE_SYS_TYPES_H
17813 #       include <sys/types.h>
17814 #endif
17815 #include <netinet/in.h>
17816 #ifdef HAVE_ARPA_NAMESER_H
17817 #       include <arpa/nameser.h>
17818 #endif
17819 #ifdef HAVE_RESOLV_H
17820 #       include <resolv.h>
17821 #endif
17822
17823 int
17824 main ()
17825 {
17826 {
17827         int len, status;
17828         char *request = NULL;
17829         unsigned char reply[64*1024];
17830         unsigned char host[64*1024];
17831         unsigned char *p;
17832
17833 #ifdef NS_HFIXEDSZ
17834         /* Bind 8/9 interface */
17835         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17836 #else
17837         /* Bind 4 interface */
17838 # ifndef T_SRV
17839 #  define T_SRV 33
17840 # endif
17841         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17842 #endif
17843         p = reply;
17844 #ifdef NS_HFIXEDSZ
17845         /* Bind 8/9 interface */
17846         p += NS_HFIXEDSZ;
17847 #elif defined(HFIXEDSZ)
17848         /* Bind 4 interface w/ HFIXEDSZ */
17849         p += HFIXEDSZ;
17850 #else
17851         /* Bind 4 interface w/o HFIXEDSZ */
17852         p += sizeof(HEADER);
17853 #endif
17854         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17855 }
17856   ;
17857   return 0;
17858 }
17859 _ACEOF
17860 rm -f conftest.$ac_objext conftest$ac_exeext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17862   (eval $ac_link) 2>conftest.er1
17863   ac_status=$?
17864   grep -v '^ *+' conftest.er1 >conftest.err
17865   rm -f conftest.er1
17866   cat conftest.err >&5
17867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); } &&
17869          { ac_try='test -z "$ac_c_werror_flag"
17870                          || test ! -s conftest.err'
17871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872   (eval $ac_try) 2>&5
17873   ac_status=$?
17874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875   (exit $ac_status); }; } &&
17876          { ac_try='test -s conftest$ac_exeext'
17877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878   (eval $ac_try) 2>&5
17879   ac_status=$?
17880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881   (exit $ac_status); }; }; then
17882   ol_cv_resolver_none=yes
17883 else
17884   echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17886
17887 ol_cv_resolver_none=no
17888 fi
17889 rm -f conftest.err conftest.$ac_objext \
17890       conftest$ac_exeext conftest.$ac_ext
17891
17892         LIBS="$ol_LIBS"
17893
17894 fi
17895 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17896 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17897
17898         if test $ol_cv_resolver_none = yes ; then
17899                 ol_cv_lib_resolver=yes
17900         fi
17901 fi
17902
17903 if test $ol_cv_lib_resolver = no ; then
17904         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17905 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17906 if test "${ol_cv_resolver_resolv+set}" = set; then
17907   echo $ECHO_N "(cached) $ECHO_C" >&6
17908 else
17909
17910         ol_RESOLVER_LIB=-lresolv
17911         ol_LIBS=$LIBS
17912         LIBS="$ol_RESOLVER_LIB $LIBS"
17913
17914         cat >conftest.$ac_ext <<_ACEOF
17915 /* confdefs.h.  */
17916 _ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h.  */
17920
17921 #ifdef HAVE_SYS_TYPES_H
17922 #       include <sys/types.h>
17923 #endif
17924 #include <netinet/in.h>
17925 #ifdef HAVE_ARPA_NAMESER_H
17926 #       include <arpa/nameser.h>
17927 #endif
17928 #ifdef HAVE_RESOLV_H
17929 #       include <resolv.h>
17930 #endif
17931
17932 int
17933 main ()
17934 {
17935 {
17936         int len, status;
17937         char *request = NULL;
17938         unsigned char reply[64*1024];
17939         unsigned char host[64*1024];
17940         unsigned char *p;
17941
17942 #ifdef NS_HFIXEDSZ
17943         /* Bind 8/9 interface */
17944         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17945 #else
17946         /* Bind 4 interface */
17947 # ifndef T_SRV
17948 #  define T_SRV 33
17949 # endif
17950         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17951 #endif
17952         p = reply;
17953 #ifdef NS_HFIXEDSZ
17954         /* Bind 8/9 interface */
17955         p += NS_HFIXEDSZ;
17956 #elif defined(HFIXEDSZ)
17957         /* Bind 4 interface w/ HFIXEDSZ */
17958         p += HFIXEDSZ;
17959 #else
17960         /* Bind 4 interface w/o HFIXEDSZ */
17961         p += sizeof(HEADER);
17962 #endif
17963         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17964 }
17965   ;
17966   return 0;
17967 }
17968 _ACEOF
17969 rm -f conftest.$ac_objext conftest$ac_exeext
17970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17971   (eval $ac_link) 2>conftest.er1
17972   ac_status=$?
17973   grep -v '^ *+' conftest.er1 >conftest.err
17974   rm -f conftest.er1
17975   cat conftest.err >&5
17976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977   (exit $ac_status); } &&
17978          { ac_try='test -z "$ac_c_werror_flag"
17979                          || test ! -s conftest.err'
17980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981   (eval $ac_try) 2>&5
17982   ac_status=$?
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); }; } &&
17985          { ac_try='test -s conftest$ac_exeext'
17986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987   (eval $ac_try) 2>&5
17988   ac_status=$?
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); }; }; then
17991   ol_cv_resolver_resolv=yes
17992 else
17993   echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17995
17996 ol_cv_resolver_resolv=no
17997 fi
17998 rm -f conftest.err conftest.$ac_objext \
17999       conftest$ac_exeext conftest.$ac_ext
18000
18001         LIBS="$ol_LIBS"
18002
18003 fi
18004 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18005 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
18006
18007         if test $ol_cv_resolver_resolv = yes ; then
18008                 ol_cv_lib_resolver=-lresolv
18009         fi
18010 fi
18011
18012 if test $ol_cv_lib_resolver = no ; then
18013         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18014 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
18015 if test "${ol_cv_resolver_bind+set}" = set; then
18016   echo $ECHO_N "(cached) $ECHO_C" >&6
18017 else
18018
18019         ol_RESOLVER_LIB=-lbind
18020         ol_LIBS=$LIBS
18021         LIBS="$ol_RESOLVER_LIB $LIBS"
18022
18023         cat >conftest.$ac_ext <<_ACEOF
18024 /* confdefs.h.  */
18025 _ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h.  */
18029
18030 #ifdef HAVE_SYS_TYPES_H
18031 #       include <sys/types.h>
18032 #endif
18033 #include <netinet/in.h>
18034 #ifdef HAVE_ARPA_NAMESER_H
18035 #       include <arpa/nameser.h>
18036 #endif
18037 #ifdef HAVE_RESOLV_H
18038 #       include <resolv.h>
18039 #endif
18040
18041 int
18042 main ()
18043 {
18044 {
18045         int len, status;
18046         char *request = NULL;
18047         unsigned char reply[64*1024];
18048         unsigned char host[64*1024];
18049         unsigned char *p;
18050
18051 #ifdef NS_HFIXEDSZ
18052         /* Bind 8/9 interface */
18053         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18054 #else
18055         /* Bind 4 interface */
18056 # ifndef T_SRV
18057 #  define T_SRV 33
18058 # endif
18059         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18060 #endif
18061         p = reply;
18062 #ifdef NS_HFIXEDSZ
18063         /* Bind 8/9 interface */
18064         p += NS_HFIXEDSZ;
18065 #elif defined(HFIXEDSZ)
18066         /* Bind 4 interface w/ HFIXEDSZ */
18067         p += HFIXEDSZ;
18068 #else
18069         /* Bind 4 interface w/o HFIXEDSZ */
18070         p += sizeof(HEADER);
18071 #endif
18072         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18073 }
18074   ;
18075   return 0;
18076 }
18077 _ACEOF
18078 rm -f conftest.$ac_objext conftest$ac_exeext
18079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18080   (eval $ac_link) 2>conftest.er1
18081   ac_status=$?
18082   grep -v '^ *+' conftest.er1 >conftest.err
18083   rm -f conftest.er1
18084   cat conftest.err >&5
18085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086   (exit $ac_status); } &&
18087          { ac_try='test -z "$ac_c_werror_flag"
18088                          || test ! -s conftest.err'
18089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090   (eval $ac_try) 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); }; } &&
18094          { ac_try='test -s conftest$ac_exeext'
18095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096   (eval $ac_try) 2>&5
18097   ac_status=$?
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); }; }; then
18100   ol_cv_resolver_bind=yes
18101 else
18102   echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18104
18105 ol_cv_resolver_bind=no
18106 fi
18107 rm -f conftest.err conftest.$ac_objext \
18108       conftest$ac_exeext conftest.$ac_ext
18109
18110         LIBS="$ol_LIBS"
18111
18112 fi
18113 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18114 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
18115
18116         if test $ol_cv_resolver_bind = yes ; then
18117                 ol_cv_lib_resolver=-lbind
18118         fi
18119 fi
18120
18121
18122
18123 ol_link_dnssrv=no
18124 if test "$ol_cv_lib_resolver" != no ; then
18125
18126 cat >>confdefs.h <<\_ACEOF
18127 #define HAVE_RES_QUERY 1
18128 _ACEOF
18129
18130
18131         if test "$ol_enable_dnssrv" != no ; then
18132                 ol_link_dnssrv=yes
18133         fi
18134
18135         if test "$ol_cv_lib_resolver" != yes ; then
18136                 LIBS="$ol_cv_lib_resolver $LIBS"
18137         fi
18138 fi
18139
18140 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18141         if test "$ol_link_dnssrv" = no ; then
18142                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18143 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18144    { (exit 1); exit 1; }; }
18145         fi
18146 else
18147         ol_enable_dnssrv=no
18148 fi
18149
18150
18151 for ac_func in hstrerror
18152 do
18153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18154 echo "$as_me:$LINENO: checking for $ac_func" >&5
18155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18156 if eval "test \"\${$as_ac_var+set}\" = set"; then
18157   echo $ECHO_N "(cached) $ECHO_C" >&6
18158 else
18159   cat >conftest.$ac_ext <<_ACEOF
18160 /* confdefs.h.  */
18161 _ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h.  */
18165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18167 #define $ac_func innocuous_$ac_func
18168
18169 /* System header to define __stub macros and hopefully few prototypes,
18170     which can conflict with char $ac_func (); below.
18171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18172     <limits.h> exists even on freestanding compilers.  */
18173
18174 #ifdef __STDC__
18175 # include <limits.h>
18176 #else
18177 # include <assert.h>
18178 #endif
18179
18180 #undef $ac_func
18181
18182 /* Override any gcc2 internal prototype to avoid an error.  */
18183 #ifdef __cplusplus
18184 extern "C"
18185 {
18186 #endif
18187 /* We use char because int might match the return type of a gcc2
18188    builtin and then its argument prototype would still apply.  */
18189 char $ac_func ();
18190 /* The GNU C library defines this for functions which it implements
18191     to always fail with ENOSYS.  Some functions are actually named
18192     something starting with __ and the normal name is an alias.  */
18193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18194 choke me
18195 #else
18196 char (*f) () = $ac_func;
18197 #endif
18198 #ifdef __cplusplus
18199 }
18200 #endif
18201
18202 int
18203 main ()
18204 {
18205 return f != $ac_func;
18206   ;
18207   return 0;
18208 }
18209 _ACEOF
18210 rm -f conftest.$ac_objext conftest$ac_exeext
18211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18212   (eval $ac_link) 2>conftest.er1
18213   ac_status=$?
18214   grep -v '^ *+' conftest.er1 >conftest.err
18215   rm -f conftest.er1
18216   cat conftest.err >&5
18217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218   (exit $ac_status); } &&
18219          { ac_try='test -z "$ac_c_werror_flag"
18220                          || test ! -s conftest.err'
18221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18222   (eval $ac_try) 2>&5
18223   ac_status=$?
18224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225   (exit $ac_status); }; } &&
18226          { ac_try='test -s conftest$ac_exeext'
18227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228   (eval $ac_try) 2>&5
18229   ac_status=$?
18230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231   (exit $ac_status); }; }; then
18232   eval "$as_ac_var=yes"
18233 else
18234   echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.$ac_ext >&5
18236
18237 eval "$as_ac_var=no"
18238 fi
18239 rm -f conftest.err conftest.$ac_objext \
18240       conftest$ac_exeext conftest.$ac_ext
18241 fi
18242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18244 if test `eval echo '${'$as_ac_var'}'` = yes; then
18245   cat >>confdefs.h <<_ACEOF
18246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18247 _ACEOF
18248
18249 fi
18250 done
18251
18252
18253
18254
18255
18256
18257 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18258 do
18259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18260 echo "$as_me:$LINENO: checking for $ac_func" >&5
18261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18262 if eval "test \"\${$as_ac_var+set}\" = set"; then
18263   echo $ECHO_N "(cached) $ECHO_C" >&6
18264 else
18265   cat >conftest.$ac_ext <<_ACEOF
18266 /* confdefs.h.  */
18267 _ACEOF
18268 cat confdefs.h >>conftest.$ac_ext
18269 cat >>conftest.$ac_ext <<_ACEOF
18270 /* end confdefs.h.  */
18271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18273 #define $ac_func innocuous_$ac_func
18274
18275 /* System header to define __stub macros and hopefully few prototypes,
18276     which can conflict with char $ac_func (); below.
18277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18278     <limits.h> exists even on freestanding compilers.  */
18279
18280 #ifdef __STDC__
18281 # include <limits.h>
18282 #else
18283 # include <assert.h>
18284 #endif
18285
18286 #undef $ac_func
18287
18288 /* Override any gcc2 internal prototype to avoid an error.  */
18289 #ifdef __cplusplus
18290 extern "C"
18291 {
18292 #endif
18293 /* We use char because int might match the return type of a gcc2
18294    builtin and then its argument prototype would still apply.  */
18295 char $ac_func ();
18296 /* The GNU C library defines this for functions which it implements
18297     to always fail with ENOSYS.  Some functions are actually named
18298     something starting with __ and the normal name is an alias.  */
18299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18300 choke me
18301 #else
18302 char (*f) () = $ac_func;
18303 #endif
18304 #ifdef __cplusplus
18305 }
18306 #endif
18307
18308 int
18309 main ()
18310 {
18311 return f != $ac_func;
18312   ;
18313   return 0;
18314 }
18315 _ACEOF
18316 rm -f conftest.$ac_objext conftest$ac_exeext
18317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18318   (eval $ac_link) 2>conftest.er1
18319   ac_status=$?
18320   grep -v '^ *+' conftest.er1 >conftest.err
18321   rm -f conftest.er1
18322   cat conftest.err >&5
18323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324   (exit $ac_status); } &&
18325          { ac_try='test -z "$ac_c_werror_flag"
18326                          || test ! -s conftest.err'
18327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18328   (eval $ac_try) 2>&5
18329   ac_status=$?
18330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331   (exit $ac_status); }; } &&
18332          { ac_try='test -s conftest$ac_exeext'
18333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334   (eval $ac_try) 2>&5
18335   ac_status=$?
18336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337   (exit $ac_status); }; }; then
18338   eval "$as_ac_var=yes"
18339 else
18340   echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18342
18343 eval "$as_ac_var=no"
18344 fi
18345 rm -f conftest.err conftest.$ac_objext \
18346       conftest$ac_exeext conftest.$ac_ext
18347 fi
18348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18350 if test `eval echo '${'$as_ac_var'}'` = yes; then
18351   cat >>confdefs.h <<_ACEOF
18352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18353 _ACEOF
18354
18355 fi
18356 done
18357
18358
18359 ol_link_ipv6=no
18360 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18361         if test $ol_enable_ipv6 = yes ; then
18362                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18363 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18364    { (exit 1); exit 1; }; }
18365         fi
18366 elif test $ol_enable_ipv6 != no ; then
18367         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18368 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18369 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18370   echo $ECHO_N "(cached) $ECHO_C" >&6
18371 else
18372
18373                 cat >conftest.$ac_ext <<_ACEOF
18374 /* confdefs.h.  */
18375 _ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h.  */
18379
18380 #                       include <netinet/in.h>
18381 #                       ifdef INET6_ADDRSTRLEN
18382                                 __has_inet6_addrstrlen__;
18383 #                       endif
18384
18385 _ACEOF
18386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18387   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18388   ol_cv_inet6_addrstrlen=yes
18389 else
18390   ol_cv_inet6_addrstrlen=no
18391 fi
18392 rm -f conftest*
18393
18394 fi
18395 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18396 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18397
18398
18399         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18400 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18401 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18402   echo $ECHO_N "(cached) $ECHO_C" >&6
18403 else
18404
18405                 cat >conftest.$ac_ext <<_ACEOF
18406 /* confdefs.h.  */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h.  */
18411
18412 #include <sys/types.h>
18413 #include <sys/socket.h>
18414
18415 int
18416 main ()
18417 {
18418
18419                         struct sockaddr_storage ss;
18420
18421   ;
18422   return 0;
18423 }
18424 _ACEOF
18425 rm -f conftest.$ac_objext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18427   (eval $ac_compile) 2>conftest.er1
18428   ac_status=$?
18429   grep -v '^ *+' conftest.er1 >conftest.err
18430   rm -f conftest.er1
18431   cat conftest.err >&5
18432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433   (exit $ac_status); } &&
18434          { ac_try='test -z "$ac_c_werror_flag"
18435                          || test ! -s conftest.err'
18436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437   (eval $ac_try) 2>&5
18438   ac_status=$?
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); }; } &&
18441          { ac_try='test -s conftest.$ac_objext'
18442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443   (eval $ac_try) 2>&5
18444   ac_status=$?
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); }; }; then
18447   ol_cv_struct_sockaddr_storage=yes
18448 else
18449   echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18451
18452 ol_cv_struct_sockaddr_storage=no
18453 fi
18454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18455 fi
18456 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18457 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18458
18459         if test $ol_cv_inet6_addrstrlen = yes &&
18460            test $ol_cv_struct_sockaddr_storage = yes ; then
18461                 ol_link_ipv6=yes
18462         elif test $ol_enable_ipv6 = yes &&
18463              test $ol_cv_inet6_addrstrlen = no ; then
18464                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18465 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18466    { (exit 1); exit 1; }; }
18467         elif test $ol_enable_ipv6 = yes &&
18468              test $ol_cv_struct_sockaddr_storage = no ; then
18469                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18470 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18471    { (exit 1); exit 1; }; }
18472         fi
18473 fi
18474
18475 if test $ol_enable_local != no ; then
18476
18477 for ac_header in sys/un.h
18478 do
18479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18481   echo "$as_me:$LINENO: checking for $ac_header" >&5
18482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18484   echo $ECHO_N "(cached) $ECHO_C" >&6
18485 fi
18486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18488 else
18489   # Is the header compilable?
18490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18492 cat >conftest.$ac_ext <<_ACEOF
18493 /* confdefs.h.  */
18494 _ACEOF
18495 cat confdefs.h >>conftest.$ac_ext
18496 cat >>conftest.$ac_ext <<_ACEOF
18497 /* end confdefs.h.  */
18498 $ac_includes_default
18499 #include <$ac_header>
18500 _ACEOF
18501 rm -f conftest.$ac_objext
18502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18503   (eval $ac_compile) 2>conftest.er1
18504   ac_status=$?
18505   grep -v '^ *+' conftest.er1 >conftest.err
18506   rm -f conftest.er1
18507   cat conftest.err >&5
18508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509   (exit $ac_status); } &&
18510          { ac_try='test -z "$ac_c_werror_flag"
18511                          || test ! -s conftest.err'
18512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513   (eval $ac_try) 2>&5
18514   ac_status=$?
18515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516   (exit $ac_status); }; } &&
18517          { ac_try='test -s conftest.$ac_objext'
18518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18519   (eval $ac_try) 2>&5
18520   ac_status=$?
18521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522   (exit $ac_status); }; }; then
18523   ac_header_compiler=yes
18524 else
18525   echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18527
18528 ac_header_compiler=no
18529 fi
18530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18532 echo "${ECHO_T}$ac_header_compiler" >&6
18533
18534 # Is the header present?
18535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18537 cat >conftest.$ac_ext <<_ACEOF
18538 /* confdefs.h.  */
18539 _ACEOF
18540 cat confdefs.h >>conftest.$ac_ext
18541 cat >>conftest.$ac_ext <<_ACEOF
18542 /* end confdefs.h.  */
18543 #include <$ac_header>
18544 _ACEOF
18545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18546   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18547   ac_status=$?
18548   grep -v '^ *+' conftest.er1 >conftest.err
18549   rm -f conftest.er1
18550   cat conftest.err >&5
18551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552   (exit $ac_status); } >/dev/null; then
18553   if test -s conftest.err; then
18554     ac_cpp_err=$ac_c_preproc_warn_flag
18555     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18556   else
18557     ac_cpp_err=
18558   fi
18559 else
18560   ac_cpp_err=yes
18561 fi
18562 if test -z "$ac_cpp_err"; then
18563   ac_header_preproc=yes
18564 else
18565   echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18567
18568   ac_header_preproc=no
18569 fi
18570 rm -f conftest.err conftest.$ac_ext
18571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18572 echo "${ECHO_T}$ac_header_preproc" >&6
18573
18574 # So?  What about this header?
18575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18576   yes:no: )
18577     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18581     ac_header_preproc=yes
18582     ;;
18583   no:yes:* )
18584     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18586     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18587 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18588     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18590     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18591 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18594     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18596     (
18597       cat <<\_ASBOX
18598 ## --------------------------------------------- ##
18599 ## Report this to <http://www.openldap.org/its/> ##
18600 ## --------------------------------------------- ##
18601 _ASBOX
18602     ) |
18603       sed "s/^/$as_me: WARNING:     /" >&2
18604     ;;
18605 esac
18606 echo "$as_me:$LINENO: checking for $ac_header" >&5
18607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18609   echo $ECHO_N "(cached) $ECHO_C" >&6
18610 else
18611   eval "$as_ac_Header=\$ac_header_preproc"
18612 fi
18613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18615
18616 fi
18617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18618   cat >>confdefs.h <<_ACEOF
18619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18620 _ACEOF
18621
18622 fi
18623
18624 done
18625
18626
18627         if test $ol_enable_local = auto ; then
18628                 ol_enable_local=$ac_cv_header_sys_un_h
18629         elif test $ac_cv_header_sys_un_h = no ; then
18630                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18631 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18632    { (exit 1); exit 1; }; }
18633         fi
18634 fi
18635
18636 ol_link_gssapi=no
18637
18638 case $ol_with_gssapi in yes | auto)
18639
18640         ol_header_gssapi=no
18641
18642 for ac_header in gssapi/gssapi.h
18643 do
18644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18646   echo "$as_me:$LINENO: checking for $ac_header" >&5
18647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18649   echo $ECHO_N "(cached) $ECHO_C" >&6
18650 fi
18651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18653 else
18654   # Is the header compilable?
18655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18657 cat >conftest.$ac_ext <<_ACEOF
18658 /* confdefs.h.  */
18659 _ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h.  */
18663 $ac_includes_default
18664 #include <$ac_header>
18665 _ACEOF
18666 rm -f conftest.$ac_objext
18667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18668   (eval $ac_compile) 2>conftest.er1
18669   ac_status=$?
18670   grep -v '^ *+' conftest.er1 >conftest.err
18671   rm -f conftest.er1
18672   cat conftest.err >&5
18673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674   (exit $ac_status); } &&
18675          { ac_try='test -z "$ac_c_werror_flag"
18676                          || test ! -s conftest.err'
18677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678   (eval $ac_try) 2>&5
18679   ac_status=$?
18680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681   (exit $ac_status); }; } &&
18682          { ac_try='test -s conftest.$ac_objext'
18683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684   (eval $ac_try) 2>&5
18685   ac_status=$?
18686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687   (exit $ac_status); }; }; then
18688   ac_header_compiler=yes
18689 else
18690   echo "$as_me: failed program was:" >&5
18691 sed 's/^/| /' conftest.$ac_ext >&5
18692
18693 ac_header_compiler=no
18694 fi
18695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18697 echo "${ECHO_T}$ac_header_compiler" >&6
18698
18699 # Is the header present?
18700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18702 cat >conftest.$ac_ext <<_ACEOF
18703 /* confdefs.h.  */
18704 _ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h.  */
18708 #include <$ac_header>
18709 _ACEOF
18710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18711   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18712   ac_status=$?
18713   grep -v '^ *+' conftest.er1 >conftest.err
18714   rm -f conftest.er1
18715   cat conftest.err >&5
18716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717   (exit $ac_status); } >/dev/null; then
18718   if test -s conftest.err; then
18719     ac_cpp_err=$ac_c_preproc_warn_flag
18720     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18721   else
18722     ac_cpp_err=
18723   fi
18724 else
18725   ac_cpp_err=yes
18726 fi
18727 if test -z "$ac_cpp_err"; then
18728   ac_header_preproc=yes
18729 else
18730   echo "$as_me: failed program was:" >&5
18731 sed 's/^/| /' conftest.$ac_ext >&5
18732
18733   ac_header_preproc=no
18734 fi
18735 rm -f conftest.err conftest.$ac_ext
18736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18737 echo "${ECHO_T}$ac_header_preproc" >&6
18738
18739 # So?  What about this header?
18740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18741   yes:no: )
18742     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18746     ac_header_preproc=yes
18747     ;;
18748   no:yes:* )
18749     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18751     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18752 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18753     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18755     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18756 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18759     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18761     (
18762       cat <<\_ASBOX
18763 ## --------------------------------------------- ##
18764 ## Report this to <http://www.openldap.org/its/> ##
18765 ## --------------------------------------------- ##
18766 _ASBOX
18767     ) |
18768       sed "s/^/$as_me: WARNING:     /" >&2
18769     ;;
18770 esac
18771 echo "$as_me:$LINENO: checking for $ac_header" >&5
18772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18774   echo $ECHO_N "(cached) $ECHO_C" >&6
18775 else
18776   eval "$as_ac_Header=\$ac_header_preproc"
18777 fi
18778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18780
18781 fi
18782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18783   cat >>confdefs.h <<_ACEOF
18784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18785 _ACEOF
18786
18787 fi
18788
18789 done
18790
18791         if test $ac_cv_header_gssapi_gssapi_h = yes ; then
18792                 ol_header_gssapi=yes
18793         else
18794
18795 for ac_header in gssapi.h
18796 do
18797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18799   echo "$as_me:$LINENO: checking for $ac_header" >&5
18800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18802   echo $ECHO_N "(cached) $ECHO_C" >&6
18803 fi
18804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18806 else
18807   # Is the header compilable?
18808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18810 cat >conftest.$ac_ext <<_ACEOF
18811 /* confdefs.h.  */
18812 _ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h.  */
18816 $ac_includes_default
18817 #include <$ac_header>
18818 _ACEOF
18819 rm -f conftest.$ac_objext
18820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18821   (eval $ac_compile) 2>conftest.er1
18822   ac_status=$?
18823   grep -v '^ *+' conftest.er1 >conftest.err
18824   rm -f conftest.er1
18825   cat conftest.err >&5
18826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827   (exit $ac_status); } &&
18828          { ac_try='test -z "$ac_c_werror_flag"
18829                          || test ! -s conftest.err'
18830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831   (eval $ac_try) 2>&5
18832   ac_status=$?
18833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834   (exit $ac_status); }; } &&
18835          { ac_try='test -s conftest.$ac_objext'
18836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837   (eval $ac_try) 2>&5
18838   ac_status=$?
18839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840   (exit $ac_status); }; }; then
18841   ac_header_compiler=yes
18842 else
18843   echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18845
18846 ac_header_compiler=no
18847 fi
18848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18850 echo "${ECHO_T}$ac_header_compiler" >&6
18851
18852 # Is the header present?
18853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18855 cat >conftest.$ac_ext <<_ACEOF
18856 /* confdefs.h.  */
18857 _ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h.  */
18861 #include <$ac_header>
18862 _ACEOF
18863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18864   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18865   ac_status=$?
18866   grep -v '^ *+' conftest.er1 >conftest.err
18867   rm -f conftest.er1
18868   cat conftest.err >&5
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); } >/dev/null; then
18871   if test -s conftest.err; then
18872     ac_cpp_err=$ac_c_preproc_warn_flag
18873     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18874   else
18875     ac_cpp_err=
18876   fi
18877 else
18878   ac_cpp_err=yes
18879 fi
18880 if test -z "$ac_cpp_err"; then
18881   ac_header_preproc=yes
18882 else
18883   echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18885
18886   ac_header_preproc=no
18887 fi
18888 rm -f conftest.err conftest.$ac_ext
18889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18890 echo "${ECHO_T}$ac_header_preproc" >&6
18891
18892 # So?  What about this header?
18893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18894   yes:no: )
18895     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18899     ac_header_preproc=yes
18900     ;;
18901   no:yes:* )
18902     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18904     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18905 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18906     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18908     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18909 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18912     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18914     (
18915       cat <<\_ASBOX
18916 ## --------------------------------------------- ##
18917 ## Report this to <http://www.openldap.org/its/> ##
18918 ## --------------------------------------------- ##
18919 _ASBOX
18920     ) |
18921       sed "s/^/$as_me: WARNING:     /" >&2
18922     ;;
18923 esac
18924 echo "$as_me:$LINENO: checking for $ac_header" >&5
18925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18927   echo $ECHO_N "(cached) $ECHO_C" >&6
18928 else
18929   eval "$as_ac_Header=\$ac_header_preproc"
18930 fi
18931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18933
18934 fi
18935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18936   cat >>confdefs.h <<_ACEOF
18937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18938 _ACEOF
18939
18940 fi
18941
18942 done
18943
18944                 if test $ac_cv_header_gssapi_h = yes ; then
18945                         ol_header_gssapi=yes
18946                 fi
18947
18948                                                                 saveLIBS="$LIBS"
18949                 LIBS="$LIBS $GSSAPI_LIBS"
18950
18951 for ac_func in gss_oid_to_str
18952 do
18953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18954 echo "$as_me:$LINENO: checking for $ac_func" >&5
18955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18956 if eval "test \"\${$as_ac_var+set}\" = set"; then
18957   echo $ECHO_N "(cached) $ECHO_C" >&6
18958 else
18959   cat >conftest.$ac_ext <<_ACEOF
18960 /* confdefs.h.  */
18961 _ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h.  */
18965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18967 #define $ac_func innocuous_$ac_func
18968
18969 /* System header to define __stub macros and hopefully few prototypes,
18970     which can conflict with char $ac_func (); below.
18971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18972     <limits.h> exists even on freestanding compilers.  */
18973
18974 #ifdef __STDC__
18975 # include <limits.h>
18976 #else
18977 # include <assert.h>
18978 #endif
18979
18980 #undef $ac_func
18981
18982 /* Override any gcc2 internal prototype to avoid an error.  */
18983 #ifdef __cplusplus
18984 extern "C"
18985 {
18986 #endif
18987 /* We use char because int might match the return type of a gcc2
18988    builtin and then its argument prototype would still apply.  */
18989 char $ac_func ();
18990 /* The GNU C library defines this for functions which it implements
18991     to always fail with ENOSYS.  Some functions are actually named
18992     something starting with __ and the normal name is an alias.  */
18993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18994 choke me
18995 #else
18996 char (*f) () = $ac_func;
18997 #endif
18998 #ifdef __cplusplus
18999 }
19000 #endif
19001
19002 int
19003 main ()
19004 {
19005 return f != $ac_func;
19006   ;
19007   return 0;
19008 }
19009 _ACEOF
19010 rm -f conftest.$ac_objext conftest$ac_exeext
19011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19012   (eval $ac_link) 2>conftest.er1
19013   ac_status=$?
19014   grep -v '^ *+' conftest.er1 >conftest.err
19015   rm -f conftest.er1
19016   cat conftest.err >&5
19017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018   (exit $ac_status); } &&
19019          { ac_try='test -z "$ac_c_werror_flag"
19020                          || test ! -s conftest.err'
19021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022   (eval $ac_try) 2>&5
19023   ac_status=$?
19024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025   (exit $ac_status); }; } &&
19026          { ac_try='test -s conftest$ac_exeext'
19027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19028   (eval $ac_try) 2>&5
19029   ac_status=$?
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); }; }; then
19032   eval "$as_ac_var=yes"
19033 else
19034   echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19036
19037 eval "$as_ac_var=no"
19038 fi
19039 rm -f conftest.err conftest.$ac_objext \
19040       conftest$ac_exeext conftest.$ac_ext
19041 fi
19042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19044 if test `eval echo '${'$as_ac_var'}'` = yes; then
19045   cat >>confdefs.h <<_ACEOF
19046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19047 _ACEOF
19048
19049 fi
19050 done
19051
19052                 LIBS="$saveLIBS"
19053         fi
19054
19055         if test $ol_header_gssapi = yes ; then
19056                                                 echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi" >&5
19057 echo $ECHO_N "checking for gss_wrap in -lgssapi... $ECHO_C" >&6
19058 if test "${ac_cv_lib_gssapi_gss_wrap+set}" = set; then
19059   echo $ECHO_N "(cached) $ECHO_C" >&6
19060 else
19061   ac_check_lib_save_LIBS=$LIBS
19062 LIBS="-lgssapi  $LIBS"
19063 cat >conftest.$ac_ext <<_ACEOF
19064 /* confdefs.h.  */
19065 _ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h.  */
19069
19070 /* Override any gcc2 internal prototype to avoid an error.  */
19071 #ifdef __cplusplus
19072 extern "C"
19073 #endif
19074 /* We use char because int might match the return type of a gcc2
19075    builtin and then its argument prototype would still apply.  */
19076 char gss_wrap ();
19077 int
19078 main ()
19079 {
19080 gss_wrap ();
19081   ;
19082   return 0;
19083 }
19084 _ACEOF
19085 rm -f conftest.$ac_objext conftest$ac_exeext
19086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19087   (eval $ac_link) 2>conftest.er1
19088   ac_status=$?
19089   grep -v '^ *+' conftest.er1 >conftest.err
19090   rm -f conftest.er1
19091   cat conftest.err >&5
19092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093   (exit $ac_status); } &&
19094          { ac_try='test -z "$ac_c_werror_flag"
19095                          || test ! -s conftest.err'
19096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097   (eval $ac_try) 2>&5
19098   ac_status=$?
19099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100   (exit $ac_status); }; } &&
19101          { ac_try='test -s conftest$ac_exeext'
19102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103   (eval $ac_try) 2>&5
19104   ac_status=$?
19105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106   (exit $ac_status); }; }; then
19107   ac_cv_lib_gssapi_gss_wrap=yes
19108 else
19109   echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19111
19112 ac_cv_lib_gssapi_gss_wrap=no
19113 fi
19114 rm -f conftest.err conftest.$ac_objext \
19115       conftest$ac_exeext conftest.$ac_ext
19116 LIBS=$ac_check_lib_save_LIBS
19117 fi
19118 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_wrap" >&5
19119 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_wrap" >&6
19120 if test $ac_cv_lib_gssapi_gss_wrap = yes; then
19121   ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi"
19122 else
19123   ol_link_gssapi=no
19124 fi
19125
19126                 if test $ol_link_gssapi != yes ; then
19127                         echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi_krb5" >&5
19128 echo $ECHO_N "checking for gss_wrap in -lgssapi_krb5... $ECHO_C" >&6
19129 if test "${ac_cv_lib_gssapi_krb5_gss_wrap+set}" = set; then
19130   echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132   ac_check_lib_save_LIBS=$LIBS
19133 LIBS="-lgssapi_krb5  $LIBS"
19134 cat >conftest.$ac_ext <<_ACEOF
19135 /* confdefs.h.  */
19136 _ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h.  */
19140
19141 /* Override any gcc2 internal prototype to avoid an error.  */
19142 #ifdef __cplusplus
19143 extern "C"
19144 #endif
19145 /* We use char because int might match the return type of a gcc2
19146    builtin and then its argument prototype would still apply.  */
19147 char gss_wrap ();
19148 int
19149 main ()
19150 {
19151 gss_wrap ();
19152   ;
19153   return 0;
19154 }
19155 _ACEOF
19156 rm -f conftest.$ac_objext conftest$ac_exeext
19157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19158   (eval $ac_link) 2>conftest.er1
19159   ac_status=$?
19160   grep -v '^ *+' conftest.er1 >conftest.err
19161   rm -f conftest.er1
19162   cat conftest.err >&5
19163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164   (exit $ac_status); } &&
19165          { ac_try='test -z "$ac_c_werror_flag"
19166                          || test ! -s conftest.err'
19167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168   (eval $ac_try) 2>&5
19169   ac_status=$?
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); }; } &&
19172          { ac_try='test -s conftest$ac_exeext'
19173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174   (eval $ac_try) 2>&5
19175   ac_status=$?
19176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177   (exit $ac_status); }; }; then
19178   ac_cv_lib_gssapi_krb5_gss_wrap=yes
19179 else
19180   echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19182
19183 ac_cv_lib_gssapi_krb5_gss_wrap=no
19184 fi
19185 rm -f conftest.err conftest.$ac_objext \
19186       conftest$ac_exeext conftest.$ac_ext
19187 LIBS=$ac_check_lib_save_LIBS
19188 fi
19189 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_wrap" >&5
19190 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_wrap" >&6
19191 if test $ac_cv_lib_gssapi_krb5_gss_wrap = yes; then
19192   ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi_krb5"
19193 else
19194   ol_link_gssapi=no
19195 fi
19196
19197                 fi
19198                 if test $ol_link_gssapi != yes ; then
19199                         echo "$as_me:$LINENO: checking for gss_wrap in -lgss" >&5
19200 echo $ECHO_N "checking for gss_wrap in -lgss... $ECHO_C" >&6
19201 if test "${ac_cv_lib_gss_gss_wrap+set}" = set; then
19202   echo $ECHO_N "(cached) $ECHO_C" >&6
19203 else
19204   ac_check_lib_save_LIBS=$LIBS
19205 LIBS="-lgss  $LIBS"
19206 cat >conftest.$ac_ext <<_ACEOF
19207 /* confdefs.h.  */
19208 _ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h.  */
19212
19213 /* Override any gcc2 internal prototype to avoid an error.  */
19214 #ifdef __cplusplus
19215 extern "C"
19216 #endif
19217 /* We use char because int might match the return type of a gcc2
19218    builtin and then its argument prototype would still apply.  */
19219 char gss_wrap ();
19220 int
19221 main ()
19222 {
19223 gss_wrap ();
19224   ;
19225   return 0;
19226 }
19227 _ACEOF
19228 rm -f conftest.$ac_objext conftest$ac_exeext
19229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19230   (eval $ac_link) 2>conftest.er1
19231   ac_status=$?
19232   grep -v '^ *+' conftest.er1 >conftest.err
19233   rm -f conftest.er1
19234   cat conftest.err >&5
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); } &&
19237          { ac_try='test -z "$ac_c_werror_flag"
19238                          || test ! -s conftest.err'
19239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240   (eval $ac_try) 2>&5
19241   ac_status=$?
19242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243   (exit $ac_status); }; } &&
19244          { ac_try='test -s conftest$ac_exeext'
19245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246   (eval $ac_try) 2>&5
19247   ac_status=$?
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); }; }; then
19250   ac_cv_lib_gss_gss_wrap=yes
19251 else
19252   echo "$as_me: failed program was:" >&5
19253 sed 's/^/| /' conftest.$ac_ext >&5
19254
19255 ac_cv_lib_gss_gss_wrap=no
19256 fi
19257 rm -f conftest.err conftest.$ac_objext \
19258       conftest$ac_exeext conftest.$ac_ext
19259 LIBS=$ac_check_lib_save_LIBS
19260 fi
19261 echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_wrap" >&5
19262 echo "${ECHO_T}$ac_cv_lib_gss_gss_wrap" >&6
19263 if test $ac_cv_lib_gss_gss_wrap = yes; then
19264   ol_link_gssapi=yes;GSSAPI_LIBS="-lgss"
19265 else
19266   ol_link_gssapi=no
19267 fi
19268
19269                 fi
19270         fi
19271
19272         ;;
19273 esac
19274
19275 WITH_GSSAPI=no
19276 if test $ol_link_gssapi = yes; then
19277
19278 cat >>confdefs.h <<\_ACEOF
19279 #define HAVE_GSSAPI 1
19280 _ACEOF
19281
19282         WITH_GSSAPI=yes
19283 elif test $ol_with_gssapi = auto ; then
19284         { echo "$as_me:$LINENO: WARNING: Could not locate GSSAPI package" >&5
19285 echo "$as_me: WARNING: Could not locate GSSAPI package" >&2;}
19286         { echo "$as_me:$LINENO: WARNING: GSSAPI authentication not supported!" >&5
19287 echo "$as_me: WARNING: GSSAPI authentication not supported!" >&2;}
19288 elif test $ol_with_gssapi = yes ; then
19289         { { echo "$as_me:$LINENO: error: GSSAPI detection failed" >&5
19290 echo "$as_me: error: GSSAPI detection failed" >&2;}
19291    { (exit 1); exit 1; }; }
19292 fi
19293
19294
19295 if test $ol_with_tls = yes ; then
19296         ol_with_tls=auto
19297 fi
19298
19299 ol_link_tls=no
19300 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19301
19302 for ac_header in openssl/ssl.h
19303 do
19304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19306   echo "$as_me:$LINENO: checking for $ac_header" >&5
19307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19309   echo $ECHO_N "(cached) $ECHO_C" >&6
19310 fi
19311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19313 else
19314   # Is the header compilable?
19315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19317 cat >conftest.$ac_ext <<_ACEOF
19318 /* confdefs.h.  */
19319 _ACEOF
19320 cat confdefs.h >>conftest.$ac_ext
19321 cat >>conftest.$ac_ext <<_ACEOF
19322 /* end confdefs.h.  */
19323 $ac_includes_default
19324 #include <$ac_header>
19325 _ACEOF
19326 rm -f conftest.$ac_objext
19327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19328   (eval $ac_compile) 2>conftest.er1
19329   ac_status=$?
19330   grep -v '^ *+' conftest.er1 >conftest.err
19331   rm -f conftest.er1
19332   cat conftest.err >&5
19333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334   (exit $ac_status); } &&
19335          { ac_try='test -z "$ac_c_werror_flag"
19336                          || test ! -s conftest.err'
19337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338   (eval $ac_try) 2>&5
19339   ac_status=$?
19340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341   (exit $ac_status); }; } &&
19342          { ac_try='test -s conftest.$ac_objext'
19343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344   (eval $ac_try) 2>&5
19345   ac_status=$?
19346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347   (exit $ac_status); }; }; then
19348   ac_header_compiler=yes
19349 else
19350   echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19352
19353 ac_header_compiler=no
19354 fi
19355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19357 echo "${ECHO_T}$ac_header_compiler" >&6
19358
19359 # Is the header present?
19360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19362 cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h.  */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h.  */
19368 #include <$ac_header>
19369 _ACEOF
19370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19371   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19372   ac_status=$?
19373   grep -v '^ *+' conftest.er1 >conftest.err
19374   rm -f conftest.er1
19375   cat conftest.err >&5
19376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377   (exit $ac_status); } >/dev/null; then
19378   if test -s conftest.err; then
19379     ac_cpp_err=$ac_c_preproc_warn_flag
19380     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19381   else
19382     ac_cpp_err=
19383   fi
19384 else
19385   ac_cpp_err=yes
19386 fi
19387 if test -z "$ac_cpp_err"; then
19388   ac_header_preproc=yes
19389 else
19390   echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19392
19393   ac_header_preproc=no
19394 fi
19395 rm -f conftest.err conftest.$ac_ext
19396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19397 echo "${ECHO_T}$ac_header_preproc" >&6
19398
19399 # So?  What about this header?
19400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19401   yes:no: )
19402     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19406     ac_header_preproc=yes
19407     ;;
19408   no:yes:* )
19409     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19411     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19412 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19413     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19415     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19416 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19417     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19419     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19421     (
19422       cat <<\_ASBOX
19423 ## --------------------------------------------- ##
19424 ## Report this to <http://www.openldap.org/its/> ##
19425 ## --------------------------------------------- ##
19426 _ASBOX
19427     ) |
19428       sed "s/^/$as_me: WARNING:     /" >&2
19429     ;;
19430 esac
19431 echo "$as_me:$LINENO: checking for $ac_header" >&5
19432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19434   echo $ECHO_N "(cached) $ECHO_C" >&6
19435 else
19436   eval "$as_ac_Header=\$ac_header_preproc"
19437 fi
19438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19440
19441 fi
19442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19443   cat >>confdefs.h <<_ACEOF
19444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19445 _ACEOF
19446
19447 fi
19448
19449 done
19450
19451
19452         if test $ac_cv_header_openssl_ssl_h = yes ; then
19453                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19454 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19455 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19456   echo $ECHO_N "(cached) $ECHO_C" >&6
19457 else
19458   ac_check_lib_save_LIBS=$LIBS
19459 LIBS="-lssl -lcrypto $LIBS"
19460 cat >conftest.$ac_ext <<_ACEOF
19461 /* confdefs.h.  */
19462 _ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h.  */
19466
19467 /* Override any gcc2 internal prototype to avoid an error.  */
19468 #ifdef __cplusplus
19469 extern "C"
19470 #endif
19471 /* We use char because int might match the return type of a gcc2
19472    builtin and then its argument prototype would still apply.  */
19473 char SSL_library_init ();
19474 int
19475 main ()
19476 {
19477 SSL_library_init ();
19478   ;
19479   return 0;
19480 }
19481 _ACEOF
19482 rm -f conftest.$ac_objext conftest$ac_exeext
19483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19484   (eval $ac_link) 2>conftest.er1
19485   ac_status=$?
19486   grep -v '^ *+' conftest.er1 >conftest.err
19487   rm -f conftest.er1
19488   cat conftest.err >&5
19489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490   (exit $ac_status); } &&
19491          { ac_try='test -z "$ac_c_werror_flag"
19492                          || test ! -s conftest.err'
19493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494   (eval $ac_try) 2>&5
19495   ac_status=$?
19496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497   (exit $ac_status); }; } &&
19498          { ac_try='test -s conftest$ac_exeext'
19499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500   (eval $ac_try) 2>&5
19501   ac_status=$?
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); }; }; then
19504   ac_cv_lib_ssl_SSL_library_init=yes
19505 else
19506   echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19508
19509 ac_cv_lib_ssl_SSL_library_init=no
19510 fi
19511 rm -f conftest.err conftest.$ac_objext \
19512       conftest$ac_exeext conftest.$ac_ext
19513 LIBS=$ac_check_lib_save_LIBS
19514 fi
19515 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19516 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19517 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19518   have_openssl=yes
19519                         need_rsaref=no
19520 else
19521   have_openssl=no
19522 fi
19523
19524
19525                 if test $have_openssl = no ; then
19526                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19527 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19528 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19529   echo $ECHO_N "(cached) $ECHO_C" >&6
19530 else
19531   ac_check_lib_save_LIBS=$LIBS
19532 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19533 cat >conftest.$ac_ext <<_ACEOF
19534 /* confdefs.h.  */
19535 _ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h.  */
19539
19540 /* Override any gcc2 internal prototype to avoid an error.  */
19541 #ifdef __cplusplus
19542 extern "C"
19543 #endif
19544 /* We use char because int might match the return type of a gcc2
19545    builtin and then its argument prototype would still apply.  */
19546 char ssl3_accept ();
19547 int
19548 main ()
19549 {
19550 ssl3_accept ();
19551   ;
19552   return 0;
19553 }
19554 _ACEOF
19555 rm -f conftest.$ac_objext conftest$ac_exeext
19556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19557   (eval $ac_link) 2>conftest.er1
19558   ac_status=$?
19559   grep -v '^ *+' conftest.er1 >conftest.err
19560   rm -f conftest.er1
19561   cat conftest.err >&5
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); } &&
19564          { ac_try='test -z "$ac_c_werror_flag"
19565                          || test ! -s conftest.err'
19566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567   (eval $ac_try) 2>&5
19568   ac_status=$?
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); }; } &&
19571          { ac_try='test -s conftest$ac_exeext'
19572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573   (eval $ac_try) 2>&5
19574   ac_status=$?
19575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576   (exit $ac_status); }; }; then
19577   ac_cv_lib_ssl_ssl3_accept=yes
19578 else
19579   echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19581
19582 ac_cv_lib_ssl_ssl3_accept=no
19583 fi
19584 rm -f conftest.err conftest.$ac_objext \
19585       conftest$ac_exeext conftest.$ac_ext
19586 LIBS=$ac_check_lib_save_LIBS
19587 fi
19588 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19589 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19590 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19591   have_openssl=yes
19592                                 need_rsaref=yes
19593 else
19594   have_openssl=no
19595 fi
19596
19597                 fi
19598
19599                 if test $have_openssl = yes ; then
19600                         ol_with_tls=openssl
19601                         ol_link_tls=yes
19602
19603
19604 cat >>confdefs.h <<\_ACEOF
19605 #define HAVE_OPENSSL 1
19606 _ACEOF
19607
19608
19609                         if test $need_rsaref = yes; then
19610
19611 cat >>confdefs.h <<\_ACEOF
19612 #define HAVE_RSAREF 1
19613 _ACEOF
19614
19615
19616                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19617                         else
19618                                 TLS_LIBS="-lssl -lcrypto"
19619                         fi
19620
19621                         echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19622 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19623 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19624   echo $ECHO_N "(cached) $ECHO_C" >&6
19625 else
19626
19627                 cat >conftest.$ac_ext <<_ACEOF
19628 /* confdefs.h.  */
19629 _ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h.  */
19633
19634 #ifdef HAVE_OPENSSL_SSL_H
19635 #include <openssl/ssl.h>
19636 #endif
19637
19638 /* Require 0.9.7d+ */
19639 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19640         char *__ssl_compat = "0.9.7d";
19641 #endif
19642
19643 _ACEOF
19644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19645   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19646   ol_cv_ssl_crl_compat=yes
19647 else
19648   ol_cv_ssl_crl_compat=no
19649 fi
19650 rm -f conftest*
19651
19652 fi
19653 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19654 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19655
19656                         if test $ol_cv_ssl_crl_compat = yes ; then
19657
19658 cat >>confdefs.h <<\_ACEOF
19659 #define HAVE_OPENSSL_CRL 1
19660 _ACEOF
19661
19662                         fi
19663                 fi
19664         fi
19665 fi
19666
19667 if test $ol_link_tls = no ; then
19668         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19669
19670 for ac_header in gnutls/gnutls.h
19671 do
19672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19674   echo "$as_me:$LINENO: checking for $ac_header" >&5
19675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19677   echo $ECHO_N "(cached) $ECHO_C" >&6
19678 fi
19679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19681 else
19682   # Is the header compilable?
19683 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19685 cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h.  */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h.  */
19691 $ac_includes_default
19692 #include <$ac_header>
19693 _ACEOF
19694 rm -f conftest.$ac_objext
19695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19696   (eval $ac_compile) 2>conftest.er1
19697   ac_status=$?
19698   grep -v '^ *+' conftest.er1 >conftest.err
19699   rm -f conftest.er1
19700   cat conftest.err >&5
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); } &&
19703          { ac_try='test -z "$ac_c_werror_flag"
19704                          || test ! -s conftest.err'
19705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706   (eval $ac_try) 2>&5
19707   ac_status=$?
19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709   (exit $ac_status); }; } &&
19710          { ac_try='test -s conftest.$ac_objext'
19711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712   (eval $ac_try) 2>&5
19713   ac_status=$?
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); }; }; then
19716   ac_header_compiler=yes
19717 else
19718   echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19720
19721 ac_header_compiler=no
19722 fi
19723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19725 echo "${ECHO_T}$ac_header_compiler" >&6
19726
19727 # Is the header present?
19728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19730 cat >conftest.$ac_ext <<_ACEOF
19731 /* confdefs.h.  */
19732 _ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h.  */
19736 #include <$ac_header>
19737 _ACEOF
19738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19739   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19740   ac_status=$?
19741   grep -v '^ *+' conftest.er1 >conftest.err
19742   rm -f conftest.er1
19743   cat conftest.err >&5
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); } >/dev/null; then
19746   if test -s conftest.err; then
19747     ac_cpp_err=$ac_c_preproc_warn_flag
19748     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19749   else
19750     ac_cpp_err=
19751   fi
19752 else
19753   ac_cpp_err=yes
19754 fi
19755 if test -z "$ac_cpp_err"; then
19756   ac_header_preproc=yes
19757 else
19758   echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19760
19761   ac_header_preproc=no
19762 fi
19763 rm -f conftest.err conftest.$ac_ext
19764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19765 echo "${ECHO_T}$ac_header_preproc" >&6
19766
19767 # So?  What about this header?
19768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19769   yes:no: )
19770     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19774     ac_header_preproc=yes
19775     ;;
19776   no:yes:* )
19777     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19779     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19780 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19781     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19783     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19784 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19787     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19789     (
19790       cat <<\_ASBOX
19791 ## --------------------------------------------- ##
19792 ## Report this to <http://www.openldap.org/its/> ##
19793 ## --------------------------------------------- ##
19794 _ASBOX
19795     ) |
19796       sed "s/^/$as_me: WARNING:     /" >&2
19797     ;;
19798 esac
19799 echo "$as_me:$LINENO: checking for $ac_header" >&5
19800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19802   echo $ECHO_N "(cached) $ECHO_C" >&6
19803 else
19804   eval "$as_ac_Header=\$ac_header_preproc"
19805 fi
19806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19808
19809 fi
19810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19811   cat >>confdefs.h <<_ACEOF
19812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19813 _ACEOF
19814
19815 fi
19816
19817 done
19818
19819
19820                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19821                         echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19822 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
19823 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19824   echo $ECHO_N "(cached) $ECHO_C" >&6
19825 else
19826   ac_check_lib_save_LIBS=$LIBS
19827 LIBS="-lgnutls  $LIBS"
19828 cat >conftest.$ac_ext <<_ACEOF
19829 /* confdefs.h.  */
19830 _ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h.  */
19834
19835 /* Override any gcc2 internal prototype to avoid an error.  */
19836 #ifdef __cplusplus
19837 extern "C"
19838 #endif
19839 /* We use char because int might match the return type of a gcc2
19840    builtin and then its argument prototype would still apply.  */
19841 char gnutls_init ();
19842 int
19843 main ()
19844 {
19845 gnutls_init ();
19846   ;
19847   return 0;
19848 }
19849 _ACEOF
19850 rm -f conftest.$ac_objext conftest$ac_exeext
19851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19852   (eval $ac_link) 2>conftest.er1
19853   ac_status=$?
19854   grep -v '^ *+' conftest.er1 >conftest.err
19855   rm -f conftest.er1
19856   cat conftest.err >&5
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); } &&
19859          { ac_try='test -z "$ac_c_werror_flag"
19860                          || test ! -s conftest.err'
19861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862   (eval $ac_try) 2>&5
19863   ac_status=$?
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); }; } &&
19866          { ac_try='test -s conftest$ac_exeext'
19867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868   (eval $ac_try) 2>&5
19869   ac_status=$?
19870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871   (exit $ac_status); }; }; then
19872   ac_cv_lib_gnutls_gnutls_init=yes
19873 else
19874   echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19876
19877 ac_cv_lib_gnutls_gnutls_init=no
19878 fi
19879 rm -f conftest.err conftest.$ac_objext \
19880       conftest$ac_exeext conftest.$ac_ext
19881 LIBS=$ac_check_lib_save_LIBS
19882 fi
19883 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19884 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
19885 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19886   have_gnutls=yes
19887 else
19888   have_gnutls=no
19889 fi
19890
19891
19892                         if test $have_gnutls = yes ; then
19893                                 ol_with_tls=gnutls
19894                                 ol_link_tls=yes
19895
19896                                 TLS_LIBS="-lgnutls"
19897
19898
19899 cat >>confdefs.h <<\_ACEOF
19900 #define HAVE_GNUTLS 1
19901 _ACEOF
19902
19903                         fi
19904                 fi
19905         fi
19906 fi
19907
19908 WITH_TLS=no
19909 if test $ol_link_tls = yes ; then
19910
19911 cat >>confdefs.h <<\_ACEOF
19912 #define HAVE_TLS 1
19913 _ACEOF
19914
19915         WITH_TLS=yes
19916 elif test $ol_with_tls = auto ; then
19917         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19918 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19919         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19920 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19921 elif test $ol_with_tls != no ; then
19922         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19923 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19924    { (exit 1); exit 1; }; }
19925 else
19926         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19927 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19928 fi
19929
19930 if test $ol_enable_lmpasswd != no; then
19931         if test $ol_link_tls != yes ; then
19932                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19933 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19934    { (exit 1); exit 1; }; }
19935         fi
19936
19937
19938 cat >>confdefs.h <<\_ACEOF
19939 #define SLAPD_LMHASH 1
19940 _ACEOF
19941
19942 fi
19943
19944 ol_link_threads=no
19945
19946 case $ol_with_threads in auto | yes | nt)
19947
19948
19949         echo "$as_me:$LINENO: checking for _beginthread" >&5
19950 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19951 if test "${ac_cv_func__beginthread+set}" = set; then
19952   echo $ECHO_N "(cached) $ECHO_C" >&6
19953 else
19954   cat >conftest.$ac_ext <<_ACEOF
19955 /* confdefs.h.  */
19956 _ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h.  */
19960 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19962 #define _beginthread innocuous__beginthread
19963
19964 /* System header to define __stub macros and hopefully few prototypes,
19965     which can conflict with char _beginthread (); below.
19966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19967     <limits.h> exists even on freestanding compilers.  */
19968
19969 #ifdef __STDC__
19970 # include <limits.h>
19971 #else
19972 # include <assert.h>
19973 #endif
19974
19975 #undef _beginthread
19976
19977 /* Override any gcc2 internal prototype to avoid an error.  */
19978 #ifdef __cplusplus
19979 extern "C"
19980 {
19981 #endif
19982 /* We use char because int might match the return type of a gcc2
19983    builtin and then its argument prototype would still apply.  */
19984 char _beginthread ();
19985 /* The GNU C library defines this for functions which it implements
19986     to always fail with ENOSYS.  Some functions are actually named
19987     something starting with __ and the normal name is an alias.  */
19988 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19989 choke me
19990 #else
19991 char (*f) () = _beginthread;
19992 #endif
19993 #ifdef __cplusplus
19994 }
19995 #endif
19996
19997 int
19998 main ()
19999 {
20000 return f != _beginthread;
20001   ;
20002   return 0;
20003 }
20004 _ACEOF
20005 rm -f conftest.$ac_objext conftest$ac_exeext
20006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20007   (eval $ac_link) 2>conftest.er1
20008   ac_status=$?
20009   grep -v '^ *+' conftest.er1 >conftest.err
20010   rm -f conftest.er1
20011   cat conftest.err >&5
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); } &&
20014          { ac_try='test -z "$ac_c_werror_flag"
20015                          || test ! -s conftest.err'
20016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017   (eval $ac_try) 2>&5
20018   ac_status=$?
20019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020   (exit $ac_status); }; } &&
20021          { ac_try='test -s conftest$ac_exeext'
20022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023   (eval $ac_try) 2>&5
20024   ac_status=$?
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); }; }; then
20027   ac_cv_func__beginthread=yes
20028 else
20029   echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20031
20032 ac_cv_func__beginthread=no
20033 fi
20034 rm -f conftest.err conftest.$ac_objext \
20035       conftest$ac_exeext conftest.$ac_ext
20036 fi
20037 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20038 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
20039
20040
20041         if test $ac_cv_func__beginthread = yes ; then
20042
20043 cat >>confdefs.h <<\_ACEOF
20044 #define HAVE_NT_THREADS 1
20045 _ACEOF
20046
20047                 ol_cv_nt_threads=yes
20048         fi
20049
20050
20051         if test "$ol_cv_nt_threads" = yes ; then
20052                 ol_link_threads=nt
20053                 ol_with_threads=found
20054                 ol_with_yielding_select=yes
20055
20056
20057 cat >>confdefs.h <<\_ACEOF
20058 #define HAVE_NT_SERVICE_MANAGER 1
20059 _ACEOF
20060
20061
20062 cat >>confdefs.h <<\_ACEOF
20063 #define HAVE_NT_EVENT_LOG 1
20064 _ACEOF
20065
20066         fi
20067
20068         if test $ol_with_threads = nt ; then
20069                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20070 echo "$as_me: error: could not locate NT Threads" >&2;}
20071    { (exit 1); exit 1; }; }
20072         fi
20073         ;;
20074 esac
20075
20076 case $ol_with_threads in auto | yes | posix)
20077
20078
20079 for ac_header in pthread.h
20080 do
20081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20083   echo "$as_me:$LINENO: checking for $ac_header" >&5
20084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20086   echo $ECHO_N "(cached) $ECHO_C" >&6
20087 fi
20088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20090 else
20091   # Is the header compilable?
20092 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20094 cat >conftest.$ac_ext <<_ACEOF
20095 /* confdefs.h.  */
20096 _ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h.  */
20100 $ac_includes_default
20101 #include <$ac_header>
20102 _ACEOF
20103 rm -f conftest.$ac_objext
20104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20105   (eval $ac_compile) 2>conftest.er1
20106   ac_status=$?
20107   grep -v '^ *+' conftest.er1 >conftest.err
20108   rm -f conftest.er1
20109   cat conftest.err >&5
20110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111   (exit $ac_status); } &&
20112          { ac_try='test -z "$ac_c_werror_flag"
20113                          || test ! -s conftest.err'
20114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115   (eval $ac_try) 2>&5
20116   ac_status=$?
20117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); }; } &&
20119          { ac_try='test -s conftest.$ac_objext'
20120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121   (eval $ac_try) 2>&5
20122   ac_status=$?
20123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124   (exit $ac_status); }; }; then
20125   ac_header_compiler=yes
20126 else
20127   echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20129
20130 ac_header_compiler=no
20131 fi
20132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20134 echo "${ECHO_T}$ac_header_compiler" >&6
20135
20136 # Is the header present?
20137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20139 cat >conftest.$ac_ext <<_ACEOF
20140 /* confdefs.h.  */
20141 _ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h.  */
20145 #include <$ac_header>
20146 _ACEOF
20147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20148   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20149   ac_status=$?
20150   grep -v '^ *+' conftest.er1 >conftest.err
20151   rm -f conftest.er1
20152   cat conftest.err >&5
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); } >/dev/null; then
20155   if test -s conftest.err; then
20156     ac_cpp_err=$ac_c_preproc_warn_flag
20157     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20158   else
20159     ac_cpp_err=
20160   fi
20161 else
20162   ac_cpp_err=yes
20163 fi
20164 if test -z "$ac_cpp_err"; then
20165   ac_header_preproc=yes
20166 else
20167   echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20169
20170   ac_header_preproc=no
20171 fi
20172 rm -f conftest.err conftest.$ac_ext
20173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20174 echo "${ECHO_T}$ac_header_preproc" >&6
20175
20176 # So?  What about this header?
20177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20178   yes:no: )
20179     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20183     ac_header_preproc=yes
20184     ;;
20185   no:yes:* )
20186     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20188     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20189 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20190     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20192     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20193 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20196     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20198     (
20199       cat <<\_ASBOX
20200 ## --------------------------------------------- ##
20201 ## Report this to <http://www.openldap.org/its/> ##
20202 ## --------------------------------------------- ##
20203 _ASBOX
20204     ) |
20205       sed "s/^/$as_me: WARNING:     /" >&2
20206     ;;
20207 esac
20208 echo "$as_me:$LINENO: checking for $ac_header" >&5
20209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20211   echo $ECHO_N "(cached) $ECHO_C" >&6
20212 else
20213   eval "$as_ac_Header=\$ac_header_preproc"
20214 fi
20215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20217
20218 fi
20219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20220   cat >>confdefs.h <<_ACEOF
20221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20222 _ACEOF
20223
20224 fi
20225
20226 done
20227
20228
20229         if test $ac_cv_header_pthread_h = yes ; then
20230                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20231 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20232 if test "${ol_cv_pthread_version+set}" = set; then
20233   echo $ECHO_N "(cached) $ECHO_C" >&6
20234 else
20235
20236         cat >conftest.$ac_ext <<_ACEOF
20237 /* confdefs.h.  */
20238 _ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h.  */
20242
20243 #               include <pthread.h>
20244
20245 int
20246 main ()
20247 {
20248
20249                 int i = PTHREAD_CREATE_JOINABLE;
20250
20251   ;
20252   return 0;
20253 }
20254 _ACEOF
20255 rm -f conftest.$ac_objext
20256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20257   (eval $ac_compile) 2>conftest.er1
20258   ac_status=$?
20259   grep -v '^ *+' conftest.er1 >conftest.err
20260   rm -f conftest.er1
20261   cat conftest.err >&5
20262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263   (exit $ac_status); } &&
20264          { ac_try='test -z "$ac_c_werror_flag"
20265                          || test ! -s conftest.err'
20266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267   (eval $ac_try) 2>&5
20268   ac_status=$?
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); }; } &&
20271          { ac_try='test -s conftest.$ac_objext'
20272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273   (eval $ac_try) 2>&5
20274   ac_status=$?
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); }; }; then
20277
20278         cat >conftest.$ac_ext <<_ACEOF
20279 /* confdefs.h.  */
20280 _ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h.  */
20284 #include <pthread.h>
20285
20286 _ACEOF
20287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20288   $EGREP "pthread_detach" >/dev/null 2>&1; then
20289   ol_cv_pthread_version=10
20290 else
20291   ol_cv_pthread_version=8
20292 fi
20293 rm -f conftest*
20294
20295 else
20296   echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299
20300         cat >conftest.$ac_ext <<_ACEOF
20301 /* confdefs.h.  */
20302 _ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h.  */
20306
20307 #               include <pthread.h>
20308 #               ifdef PTHREAD_CREATE_UNDETACHED
20309                 draft7
20310 #               endif
20311
20312 _ACEOF
20313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20314   $EGREP "draft7" >/dev/null 2>&1; then
20315   ol_cv_pthread_version=7
20316 else
20317
20318         cat >conftest.$ac_ext <<_ACEOF
20319 /* confdefs.h.  */
20320 _ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h.  */
20324 #include <pthread.h>
20325
20326 _ACEOF
20327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20328   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20329   ol_cv_pthread_version=6
20330 else
20331
20332         cat >conftest.$ac_ext <<_ACEOF
20333 /* confdefs.h.  */
20334 _ACEOF
20335 cat confdefs.h >>conftest.$ac_ext
20336 cat >>conftest.$ac_ext <<_ACEOF
20337 /* end confdefs.h.  */
20338
20339 #               include <pthread.h>
20340 #ifdef          PTHREAD_MUTEX_INITIALIZER
20341                 draft5
20342 #endif
20343
20344 _ACEOF
20345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20346   $EGREP "draft5" >/dev/null 2>&1; then
20347   ol_cv_pthread_version=5
20348 else
20349   ol_cv_pthread_version=4
20350 fi
20351 rm -f conftest*
20352
20353 fi
20354 rm -f conftest*
20355
20356 fi
20357 rm -f conftest*
20358
20359 fi
20360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20361
20362 fi
20363 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20364 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20365
20366
20367                 if test $ol_cv_pthread_version != 0 ; then
20368
20369 cat >>confdefs.h <<_ACEOF
20370 #define HAVE_PTHREADS $ol_cv_pthread_version
20371 _ACEOF
20372
20373                 else
20374                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20375 echo "$as_me: error: unknown pthread version" >&2;}
20376    { (exit 1); exit 1; }; }
20377                 fi
20378
20379                 # consider threads found
20380                 ol_with_threads=found
20381
20382
20383         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20384 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20385 if test "${ol_cv_header_linux_threads+set}" = set; then
20386   echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388   cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h.  */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h.  */
20394 #include <pthread.h>
20395 _ACEOF
20396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20397   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20398   ol_cv_header_linux_threads=yes
20399 else
20400   ol_cv_header_linux_threads=no
20401 fi
20402 rm -f conftest*
20403
20404
20405 fi
20406 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20407 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20408         if test $ol_cv_header_linux_threads = yes; then
20409
20410 cat >>confdefs.h <<\_ACEOF
20411 #define HAVE_LINUX_THREADS 1
20412 _ACEOF
20413
20414         fi
20415
20416
20417         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20418 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20419 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20420   echo $ECHO_N "(cached) $ECHO_C" >&6
20421 else
20422   cat >conftest.$ac_ext <<_ACEOF
20423 /* confdefs.h.  */
20424 _ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h.  */
20428 #include <pthread.h>
20429 #ifdef _POSIX_THREAD_IS_GNU_PTH
20430         __gnu_pth__;
20431 #endif
20432
20433 _ACEOF
20434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20435   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20436   ol_cv_header_gnu_pth_pthread_h=yes
20437 else
20438   ol_cv_header_gnu_pth_pthread_h=no
20439 fi
20440 rm -f conftest*
20441
20442
20443 fi
20444 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20445 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20446
20447
20448                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20449
20450 for ac_header in sched.h
20451 do
20452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20454   echo "$as_me:$LINENO: checking for $ac_header" >&5
20455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20457   echo $ECHO_N "(cached) $ECHO_C" >&6
20458 fi
20459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20461 else
20462   # Is the header compilable?
20463 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20465 cat >conftest.$ac_ext <<_ACEOF
20466 /* confdefs.h.  */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h.  */
20471 $ac_includes_default
20472 #include <$ac_header>
20473 _ACEOF
20474 rm -f conftest.$ac_objext
20475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20476   (eval $ac_compile) 2>conftest.er1
20477   ac_status=$?
20478   grep -v '^ *+' conftest.er1 >conftest.err
20479   rm -f conftest.er1
20480   cat conftest.err >&5
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); } &&
20483          { ac_try='test -z "$ac_c_werror_flag"
20484                          || test ! -s conftest.err'
20485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486   (eval $ac_try) 2>&5
20487   ac_status=$?
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); }; } &&
20490          { ac_try='test -s conftest.$ac_objext'
20491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492   (eval $ac_try) 2>&5
20493   ac_status=$?
20494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); }; }; then
20496   ac_header_compiler=yes
20497 else
20498   echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.$ac_ext >&5
20500
20501 ac_header_compiler=no
20502 fi
20503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20505 echo "${ECHO_T}$ac_header_compiler" >&6
20506
20507 # Is the header present?
20508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20510 cat >conftest.$ac_ext <<_ACEOF
20511 /* confdefs.h.  */
20512 _ACEOF
20513 cat confdefs.h >>conftest.$ac_ext
20514 cat >>conftest.$ac_ext <<_ACEOF
20515 /* end confdefs.h.  */
20516 #include <$ac_header>
20517 _ACEOF
20518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20520   ac_status=$?
20521   grep -v '^ *+' conftest.er1 >conftest.err
20522   rm -f conftest.er1
20523   cat conftest.err >&5
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); } >/dev/null; then
20526   if test -s conftest.err; then
20527     ac_cpp_err=$ac_c_preproc_warn_flag
20528     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20529   else
20530     ac_cpp_err=
20531   fi
20532 else
20533   ac_cpp_err=yes
20534 fi
20535 if test -z "$ac_cpp_err"; then
20536   ac_header_preproc=yes
20537 else
20538   echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20540
20541   ac_header_preproc=no
20542 fi
20543 rm -f conftest.err conftest.$ac_ext
20544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20545 echo "${ECHO_T}$ac_header_preproc" >&6
20546
20547 # So?  What about this header?
20548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20549   yes:no: )
20550     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20552     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20554     ac_header_preproc=yes
20555     ;;
20556   no:yes:* )
20557     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20559     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20560 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20561     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20563     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20564 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20567     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20569     (
20570       cat <<\_ASBOX
20571 ## --------------------------------------------- ##
20572 ## Report this to <http://www.openldap.org/its/> ##
20573 ## --------------------------------------------- ##
20574 _ASBOX
20575     ) |
20576       sed "s/^/$as_me: WARNING:     /" >&2
20577     ;;
20578 esac
20579 echo "$as_me:$LINENO: checking for $ac_header" >&5
20580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20582   echo $ECHO_N "(cached) $ECHO_C" >&6
20583 else
20584   eval "$as_ac_Header=\$ac_header_preproc"
20585 fi
20586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20588
20589 fi
20590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20591   cat >>confdefs.h <<_ACEOF
20592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20593 _ACEOF
20594
20595 fi
20596
20597 done
20598
20599                 fi
20600
20601
20602                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20603 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20604 if test "${ol_cv_pthread_create+set}" = set; then
20605   echo $ECHO_N "(cached) $ECHO_C" >&6
20606 else
20607
20608                         if test "$cross_compiling" = yes; then
20609   cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h.  */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h.  */
20615
20616 /* pthread test headers */
20617 #include <pthread.h>
20618 #if HAVE_PTHREADS < 7
20619 #include <errno.h>
20620 #endif
20621 #ifndef NULL
20622 #define NULL (void*)0
20623 #endif
20624
20625 static void *task(p)
20626         void *p;
20627 {
20628         return (void *) (p == NULL);
20629 }
20630
20631 int
20632 main ()
20633 {
20634
20635         /* pthread test function */
20636 #ifndef PTHREAD_CREATE_DETACHED
20637 #define PTHREAD_CREATE_DETACHED 1
20638 #endif
20639         pthread_t t;
20640         int status;
20641         int detach = PTHREAD_CREATE_DETACHED;
20642
20643 #if HAVE_PTHREADS > 4
20644         /* Final pthreads */
20645         pthread_attr_t attr;
20646
20647         status = pthread_attr_init(&attr);
20648         if( status ) return status;
20649
20650 #if HAVE_PTHREADS < 7
20651         status = pthread_attr_setdetachstate(&attr, &detach);
20652         if( status < 0 ) status = errno;
20653 #else
20654         status = pthread_attr_setdetachstate(&attr, detach);
20655 #endif
20656         if( status ) return status;
20657         status = pthread_create( &t, &attr, task, NULL );
20658 #if HAVE_PTHREADS < 7
20659         if( status < 0 ) status = errno;
20660 #endif
20661         if( status ) return status;
20662 #else
20663         /* Draft 4 pthreads */
20664         status = pthread_create( &t, pthread_attr_default, task, NULL );
20665         if( status ) return errno;
20666
20667         /* give thread a chance to complete */
20668         /* it should remain joinable and hence detachable */
20669         sleep( 1 );
20670
20671         status = pthread_detach( &t );
20672         if( status ) return errno;
20673 #endif
20674
20675 #ifdef HAVE_LINUX_THREADS
20676         pthread_kill_other_threads_np();
20677 #endif
20678
20679         return 0;
20680
20681   ;
20682   return 0;
20683 }
20684 _ACEOF
20685 rm -f conftest.$ac_objext conftest$ac_exeext
20686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20687   (eval $ac_link) 2>conftest.er1
20688   ac_status=$?
20689   grep -v '^ *+' conftest.er1 >conftest.err
20690   rm -f conftest.er1
20691   cat conftest.err >&5
20692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693   (exit $ac_status); } &&
20694          { ac_try='test -z "$ac_c_werror_flag"
20695                          || test ! -s conftest.err'
20696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697   (eval $ac_try) 2>&5
20698   ac_status=$?
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); }; } &&
20701          { ac_try='test -s conftest$ac_exeext'
20702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703   (eval $ac_try) 2>&5
20704   ac_status=$?
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); }; }; then
20707   ol_cv_pthread_create=yes
20708 else
20709   echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20711
20712 ol_cv_pthread_create=no
20713 fi
20714 rm -f conftest.err conftest.$ac_objext \
20715       conftest$ac_exeext conftest.$ac_ext
20716 else
20717   cat >conftest.$ac_ext <<_ACEOF
20718 /* confdefs.h.  */
20719 _ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h.  */
20723
20724 /* pthread test headers */
20725 #include <pthread.h>
20726 #if HAVE_PTHREADS < 7
20727 #include <errno.h>
20728 #endif
20729 #ifndef NULL
20730 #define NULL (void*)0
20731 #endif
20732
20733 static void *task(p)
20734         void *p;
20735 {
20736         return (void *) (p == NULL);
20737 }
20738
20739
20740 int main(argc, argv)
20741         int argc;
20742         char **argv;
20743 {
20744
20745         /* pthread test function */
20746 #ifndef PTHREAD_CREATE_DETACHED
20747 #define PTHREAD_CREATE_DETACHED 1
20748 #endif
20749         pthread_t t;
20750         int status;
20751         int detach = PTHREAD_CREATE_DETACHED;
20752
20753 #if HAVE_PTHREADS > 4
20754         /* Final pthreads */
20755         pthread_attr_t attr;
20756
20757         status = pthread_attr_init(&attr);
20758         if( status ) return status;
20759
20760 #if HAVE_PTHREADS < 7
20761         status = pthread_attr_setdetachstate(&attr, &detach);
20762         if( status < 0 ) status = errno;
20763 #else
20764         status = pthread_attr_setdetachstate(&attr, detach);
20765 #endif
20766         if( status ) return status;
20767         status = pthread_create( &t, &attr, task, NULL );
20768 #if HAVE_PTHREADS < 7
20769         if( status < 0 ) status = errno;
20770 #endif
20771         if( status ) return status;
20772 #else
20773         /* Draft 4 pthreads */
20774         status = pthread_create( &t, pthread_attr_default, task, NULL );
20775         if( status ) return errno;
20776
20777         /* give thread a chance to complete */
20778         /* it should remain joinable and hence detachable */
20779         sleep( 1 );
20780
20781         status = pthread_detach( &t );
20782         if( status ) return errno;
20783 #endif
20784
20785 #ifdef HAVE_LINUX_THREADS
20786         pthread_kill_other_threads_np();
20787 #endif
20788
20789         return 0;
20790
20791 }
20792
20793 _ACEOF
20794 rm -f conftest$ac_exeext
20795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20796   (eval $ac_link) 2>&5
20797   ac_status=$?
20798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801   (eval $ac_try) 2>&5
20802   ac_status=$?
20803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); }; }; then
20805   ol_cv_pthread_create=yes
20806 else
20807   echo "$as_me: program exited with status $ac_status" >&5
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20810
20811 ( exit $ac_status )
20812 ol_cv_pthread_create=no
20813 fi
20814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20815 fi
20816 fi
20817 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20818 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20819
20820                 if test $ol_cv_pthread_create != no ; then
20821                         ol_link_threads=posix
20822                         ol_link_pthreads=""
20823                 fi
20824
20825                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20826 if test "$ol_link_threads" = no ; then
20827         # try -kthread
20828         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20829 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20830 if test "${ol_cv_pthread_kthread+set}" = set; then
20831   echo $ECHO_N "(cached) $ECHO_C" >&6
20832 else
20833
20834                 # save the flags
20835                 ol_LIBS="$LIBS"
20836                 LIBS="-kthread $LIBS"
20837
20838                 if test "$cross_compiling" = yes; then
20839   cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h.  */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h.  */
20845
20846 /* pthread test headers */
20847 #include <pthread.h>
20848 #if HAVE_PTHREADS < 7
20849 #include <errno.h>
20850 #endif
20851 #ifndef NULL
20852 #define NULL (void*)0
20853 #endif
20854
20855 static void *task(p)
20856         void *p;
20857 {
20858         return (void *) (p == NULL);
20859 }
20860
20861 int
20862 main ()
20863 {
20864
20865         /* pthread test function */
20866 #ifndef PTHREAD_CREATE_DETACHED
20867 #define PTHREAD_CREATE_DETACHED 1
20868 #endif
20869         pthread_t t;
20870         int status;
20871         int detach = PTHREAD_CREATE_DETACHED;
20872
20873 #if HAVE_PTHREADS > 4
20874         /* Final pthreads */
20875         pthread_attr_t attr;
20876
20877         status = pthread_attr_init(&attr);
20878         if( status ) return status;
20879
20880 #if HAVE_PTHREADS < 7
20881         status = pthread_attr_setdetachstate(&attr, &detach);
20882         if( status < 0 ) status = errno;
20883 #else
20884         status = pthread_attr_setdetachstate(&attr, detach);
20885 #endif
20886         if( status ) return status;
20887         status = pthread_create( &t, &attr, task, NULL );
20888 #if HAVE_PTHREADS < 7
20889         if( status < 0 ) status = errno;
20890 #endif
20891         if( status ) return status;
20892 #else
20893         /* Draft 4 pthreads */
20894         status = pthread_create( &t, pthread_attr_default, task, NULL );
20895         if( status ) return errno;
20896
20897         /* give thread a chance to complete */
20898         /* it should remain joinable and hence detachable */
20899         sleep( 1 );
20900
20901         status = pthread_detach( &t );
20902         if( status ) return errno;
20903 #endif
20904
20905 #ifdef HAVE_LINUX_THREADS
20906         pthread_kill_other_threads_np();
20907 #endif
20908
20909         return 0;
20910
20911   ;
20912   return 0;
20913 }
20914 _ACEOF
20915 rm -f conftest.$ac_objext conftest$ac_exeext
20916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20917   (eval $ac_link) 2>conftest.er1
20918   ac_status=$?
20919   grep -v '^ *+' conftest.er1 >conftest.err
20920   rm -f conftest.er1
20921   cat conftest.err >&5
20922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923   (exit $ac_status); } &&
20924          { ac_try='test -z "$ac_c_werror_flag"
20925                          || test ! -s conftest.err'
20926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927   (eval $ac_try) 2>&5
20928   ac_status=$?
20929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930   (exit $ac_status); }; } &&
20931          { ac_try='test -s conftest$ac_exeext'
20932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933   (eval $ac_try) 2>&5
20934   ac_status=$?
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); }; }; then
20937   ol_cv_pthread_kthread=yes
20938 else
20939   echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942 ol_cv_pthread_kthread=no
20943 fi
20944 rm -f conftest.err conftest.$ac_objext \
20945       conftest$ac_exeext conftest.$ac_ext
20946 else
20947   cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h.  */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h.  */
20953
20954 /* pthread test headers */
20955 #include <pthread.h>
20956 #if HAVE_PTHREADS < 7
20957 #include <errno.h>
20958 #endif
20959 #ifndef NULL
20960 #define NULL (void*)0
20961 #endif
20962
20963 static void *task(p)
20964         void *p;
20965 {
20966         return (void *) (p == NULL);
20967 }
20968
20969
20970 int main(argc, argv)
20971         int argc;
20972         char **argv;
20973 {
20974
20975         /* pthread test function */
20976 #ifndef PTHREAD_CREATE_DETACHED
20977 #define PTHREAD_CREATE_DETACHED 1
20978 #endif
20979         pthread_t t;
20980         int status;
20981         int detach = PTHREAD_CREATE_DETACHED;
20982
20983 #if HAVE_PTHREADS > 4
20984         /* Final pthreads */
20985         pthread_attr_t attr;
20986
20987         status = pthread_attr_init(&attr);
20988         if( status ) return status;
20989
20990 #if HAVE_PTHREADS < 7
20991         status = pthread_attr_setdetachstate(&attr, &detach);
20992         if( status < 0 ) status = errno;
20993 #else
20994         status = pthread_attr_setdetachstate(&attr, detach);
20995 #endif
20996         if( status ) return status;
20997         status = pthread_create( &t, &attr, task, NULL );
20998 #if HAVE_PTHREADS < 7
20999         if( status < 0 ) status = errno;
21000 #endif
21001         if( status ) return status;
21002 #else
21003         /* Draft 4 pthreads */
21004         status = pthread_create( &t, pthread_attr_default, task, NULL );
21005         if( status ) return errno;
21006
21007         /* give thread a chance to complete */
21008         /* it should remain joinable and hence detachable */
21009         sleep( 1 );
21010
21011         status = pthread_detach( &t );
21012         if( status ) return errno;
21013 #endif
21014
21015 #ifdef HAVE_LINUX_THREADS
21016         pthread_kill_other_threads_np();
21017 #endif
21018
21019         return 0;
21020
21021 }
21022
21023 _ACEOF
21024 rm -f conftest$ac_exeext
21025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21026   (eval $ac_link) 2>&5
21027   ac_status=$?
21028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031   (eval $ac_try) 2>&5
21032   ac_status=$?
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); }; }; then
21035   ol_cv_pthread_kthread=yes
21036 else
21037   echo "$as_me: program exited with status $ac_status" >&5
21038 echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21040
21041 ( exit $ac_status )
21042 ol_cv_pthread_kthread=no
21043 fi
21044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21045 fi
21046
21047                 # restore the LIBS
21048                 LIBS="$ol_LIBS"
21049
21050 fi
21051 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21052 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
21053
21054         if test $ol_cv_pthread_kthread = yes ; then
21055                 ol_link_pthreads="-kthread"
21056                 ol_link_threads=posix
21057         fi
21058 fi
21059
21060                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21061 if test "$ol_link_threads" = no ; then
21062         # try -pthread
21063         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21064 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
21065 if test "${ol_cv_pthread_pthread+set}" = set; then
21066   echo $ECHO_N "(cached) $ECHO_C" >&6
21067 else
21068
21069                 # save the flags
21070                 ol_LIBS="$LIBS"
21071                 LIBS="-pthread $LIBS"
21072
21073                 if test "$cross_compiling" = yes; then
21074   cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h.  */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h.  */
21080
21081 /* pthread test headers */
21082 #include <pthread.h>
21083 #if HAVE_PTHREADS < 7
21084 #include <errno.h>
21085 #endif
21086 #ifndef NULL
21087 #define NULL (void*)0
21088 #endif
21089
21090 static void *task(p)
21091         void *p;
21092 {
21093         return (void *) (p == NULL);
21094 }
21095
21096 int
21097 main ()
21098 {
21099
21100         /* pthread test function */
21101 #ifndef PTHREAD_CREATE_DETACHED
21102 #define PTHREAD_CREATE_DETACHED 1
21103 #endif
21104         pthread_t t;
21105         int status;
21106         int detach = PTHREAD_CREATE_DETACHED;
21107
21108 #if HAVE_PTHREADS > 4
21109         /* Final pthreads */
21110         pthread_attr_t attr;
21111
21112         status = pthread_attr_init(&attr);
21113         if( status ) return status;
21114
21115 #if HAVE_PTHREADS < 7
21116         status = pthread_attr_setdetachstate(&attr, &detach);
21117         if( status < 0 ) status = errno;
21118 #else
21119         status = pthread_attr_setdetachstate(&attr, detach);
21120 #endif
21121         if( status ) return status;
21122         status = pthread_create( &t, &attr, task, NULL );
21123 #if HAVE_PTHREADS < 7
21124         if( status < 0 ) status = errno;
21125 #endif
21126         if( status ) return status;
21127 #else
21128         /* Draft 4 pthreads */
21129         status = pthread_create( &t, pthread_attr_default, task, NULL );
21130         if( status ) return errno;
21131
21132         /* give thread a chance to complete */
21133         /* it should remain joinable and hence detachable */
21134         sleep( 1 );
21135
21136         status = pthread_detach( &t );
21137         if( status ) return errno;
21138 #endif
21139
21140 #ifdef HAVE_LINUX_THREADS
21141         pthread_kill_other_threads_np();
21142 #endif
21143
21144         return 0;
21145
21146   ;
21147   return 0;
21148 }
21149 _ACEOF
21150 rm -f conftest.$ac_objext conftest$ac_exeext
21151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21152   (eval $ac_link) 2>conftest.er1
21153   ac_status=$?
21154   grep -v '^ *+' conftest.er1 >conftest.err
21155   rm -f conftest.er1
21156   cat conftest.err >&5
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); } &&
21159          { ac_try='test -z "$ac_c_werror_flag"
21160                          || test ! -s conftest.err'
21161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162   (eval $ac_try) 2>&5
21163   ac_status=$?
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); }; } &&
21166          { ac_try='test -s conftest$ac_exeext'
21167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168   (eval $ac_try) 2>&5
21169   ac_status=$?
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); }; }; then
21172   ol_cv_pthread_pthread=yes
21173 else
21174   echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21176
21177 ol_cv_pthread_pthread=no
21178 fi
21179 rm -f conftest.err conftest.$ac_objext \
21180       conftest$ac_exeext conftest.$ac_ext
21181 else
21182   cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h.  */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h.  */
21188
21189 /* pthread test headers */
21190 #include <pthread.h>
21191 #if HAVE_PTHREADS < 7
21192 #include <errno.h>
21193 #endif
21194 #ifndef NULL
21195 #define NULL (void*)0
21196 #endif
21197
21198 static void *task(p)
21199         void *p;
21200 {
21201         return (void *) (p == NULL);
21202 }
21203
21204
21205 int main(argc, argv)
21206         int argc;
21207         char **argv;
21208 {
21209
21210         /* pthread test function */
21211 #ifndef PTHREAD_CREATE_DETACHED
21212 #define PTHREAD_CREATE_DETACHED 1
21213 #endif
21214         pthread_t t;
21215         int status;
21216         int detach = PTHREAD_CREATE_DETACHED;
21217
21218 #if HAVE_PTHREADS > 4
21219         /* Final pthreads */
21220         pthread_attr_t attr;
21221
21222         status = pthread_attr_init(&attr);
21223         if( status ) return status;
21224
21225 #if HAVE_PTHREADS < 7
21226         status = pthread_attr_setdetachstate(&attr, &detach);
21227         if( status < 0 ) status = errno;
21228 #else
21229         status = pthread_attr_setdetachstate(&attr, detach);
21230 #endif
21231         if( status ) return status;
21232         status = pthread_create( &t, &attr, task, NULL );
21233 #if HAVE_PTHREADS < 7
21234         if( status < 0 ) status = errno;
21235 #endif
21236         if( status ) return status;
21237 #else
21238         /* Draft 4 pthreads */
21239         status = pthread_create( &t, pthread_attr_default, task, NULL );
21240         if( status ) return errno;
21241
21242         /* give thread a chance to complete */
21243         /* it should remain joinable and hence detachable */
21244         sleep( 1 );
21245
21246         status = pthread_detach( &t );
21247         if( status ) return errno;
21248 #endif
21249
21250 #ifdef HAVE_LINUX_THREADS
21251         pthread_kill_other_threads_np();
21252 #endif
21253
21254         return 0;
21255
21256 }
21257
21258 _ACEOF
21259 rm -f conftest$ac_exeext
21260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21261   (eval $ac_link) 2>&5
21262   ac_status=$?
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266   (eval $ac_try) 2>&5
21267   ac_status=$?
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); }; }; then
21270   ol_cv_pthread_pthread=yes
21271 else
21272   echo "$as_me: program exited with status $ac_status" >&5
21273 echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21275
21276 ( exit $ac_status )
21277 ol_cv_pthread_pthread=no
21278 fi
21279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21280 fi
21281
21282                 # restore the LIBS
21283                 LIBS="$ol_LIBS"
21284
21285 fi
21286 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21287 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21288
21289         if test $ol_cv_pthread_pthread = yes ; then
21290                 ol_link_pthreads="-pthread"
21291                 ol_link_threads=posix
21292         fi
21293 fi
21294
21295                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21296 if test "$ol_link_threads" = no ; then
21297         # try -pthreads
21298         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21299 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21300 if test "${ol_cv_pthread_pthreads+set}" = set; then
21301   echo $ECHO_N "(cached) $ECHO_C" >&6
21302 else
21303
21304                 # save the flags
21305                 ol_LIBS="$LIBS"
21306                 LIBS="-pthreads $LIBS"
21307
21308                 if test "$cross_compiling" = yes; then
21309   cat >conftest.$ac_ext <<_ACEOF
21310 /* confdefs.h.  */
21311 _ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h.  */
21315
21316 /* pthread test headers */
21317 #include <pthread.h>
21318 #if HAVE_PTHREADS < 7
21319 #include <errno.h>
21320 #endif
21321 #ifndef NULL
21322 #define NULL (void*)0
21323 #endif
21324
21325 static void *task(p)
21326         void *p;
21327 {
21328         return (void *) (p == NULL);
21329 }
21330
21331 int
21332 main ()
21333 {
21334
21335         /* pthread test function */
21336 #ifndef PTHREAD_CREATE_DETACHED
21337 #define PTHREAD_CREATE_DETACHED 1
21338 #endif
21339         pthread_t t;
21340         int status;
21341         int detach = PTHREAD_CREATE_DETACHED;
21342
21343 #if HAVE_PTHREADS > 4
21344         /* Final pthreads */
21345         pthread_attr_t attr;
21346
21347         status = pthread_attr_init(&attr);
21348         if( status ) return status;
21349
21350 #if HAVE_PTHREADS < 7
21351         status = pthread_attr_setdetachstate(&attr, &detach);
21352         if( status < 0 ) status = errno;
21353 #else
21354         status = pthread_attr_setdetachstate(&attr, detach);
21355 #endif
21356         if( status ) return status;
21357         status = pthread_create( &t, &attr, task, NULL );
21358 #if HAVE_PTHREADS < 7
21359         if( status < 0 ) status = errno;
21360 #endif
21361         if( status ) return status;
21362 #else
21363         /* Draft 4 pthreads */
21364         status = pthread_create( &t, pthread_attr_default, task, NULL );
21365         if( status ) return errno;
21366
21367         /* give thread a chance to complete */
21368         /* it should remain joinable and hence detachable */
21369         sleep( 1 );
21370
21371         status = pthread_detach( &t );
21372         if( status ) return errno;
21373 #endif
21374
21375 #ifdef HAVE_LINUX_THREADS
21376         pthread_kill_other_threads_np();
21377 #endif
21378
21379         return 0;
21380
21381   ;
21382   return 0;
21383 }
21384 _ACEOF
21385 rm -f conftest.$ac_objext conftest$ac_exeext
21386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21387   (eval $ac_link) 2>conftest.er1
21388   ac_status=$?
21389   grep -v '^ *+' conftest.er1 >conftest.err
21390   rm -f conftest.er1
21391   cat conftest.err >&5
21392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393   (exit $ac_status); } &&
21394          { ac_try='test -z "$ac_c_werror_flag"
21395                          || test ! -s conftest.err'
21396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397   (eval $ac_try) 2>&5
21398   ac_status=$?
21399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400   (exit $ac_status); }; } &&
21401          { ac_try='test -s conftest$ac_exeext'
21402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21403   (eval $ac_try) 2>&5
21404   ac_status=$?
21405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406   (exit $ac_status); }; }; then
21407   ol_cv_pthread_pthreads=yes
21408 else
21409   echo "$as_me: failed program was:" >&5
21410 sed 's/^/| /' conftest.$ac_ext >&5
21411
21412 ol_cv_pthread_pthreads=no
21413 fi
21414 rm -f conftest.err conftest.$ac_objext \
21415       conftest$ac_exeext conftest.$ac_ext
21416 else
21417   cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h.  */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h.  */
21423
21424 /* pthread test headers */
21425 #include <pthread.h>
21426 #if HAVE_PTHREADS < 7
21427 #include <errno.h>
21428 #endif
21429 #ifndef NULL
21430 #define NULL (void*)0
21431 #endif
21432
21433 static void *task(p)
21434         void *p;
21435 {
21436         return (void *) (p == NULL);
21437 }
21438
21439
21440 int main(argc, argv)
21441         int argc;
21442         char **argv;
21443 {
21444
21445         /* pthread test function */
21446 #ifndef PTHREAD_CREATE_DETACHED
21447 #define PTHREAD_CREATE_DETACHED 1
21448 #endif
21449         pthread_t t;
21450         int status;
21451         int detach = PTHREAD_CREATE_DETACHED;
21452
21453 #if HAVE_PTHREADS > 4
21454         /* Final pthreads */
21455         pthread_attr_t attr;
21456
21457         status = pthread_attr_init(&attr);
21458         if( status ) return status;
21459
21460 #if HAVE_PTHREADS < 7
21461         status = pthread_attr_setdetachstate(&attr, &detach);
21462         if( status < 0 ) status = errno;
21463 #else
21464         status = pthread_attr_setdetachstate(&attr, detach);
21465 #endif
21466         if( status ) return status;
21467         status = pthread_create( &t, &attr, task, NULL );
21468 #if HAVE_PTHREADS < 7
21469         if( status < 0 ) status = errno;
21470 #endif
21471         if( status ) return status;
21472 #else
21473         /* Draft 4 pthreads */
21474         status = pthread_create( &t, pthread_attr_default, task, NULL );
21475         if( status ) return errno;
21476
21477         /* give thread a chance to complete */
21478         /* it should remain joinable and hence detachable */
21479         sleep( 1 );
21480
21481         status = pthread_detach( &t );
21482         if( status ) return errno;
21483 #endif
21484
21485 #ifdef HAVE_LINUX_THREADS
21486         pthread_kill_other_threads_np();
21487 #endif
21488
21489         return 0;
21490
21491 }
21492
21493 _ACEOF
21494 rm -f conftest$ac_exeext
21495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21496   (eval $ac_link) 2>&5
21497   ac_status=$?
21498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21501   (eval $ac_try) 2>&5
21502   ac_status=$?
21503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504   (exit $ac_status); }; }; then
21505   ol_cv_pthread_pthreads=yes
21506 else
21507   echo "$as_me: program exited with status $ac_status" >&5
21508 echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21510
21511 ( exit $ac_status )
21512 ol_cv_pthread_pthreads=no
21513 fi
21514 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21515 fi
21516
21517                 # restore the LIBS
21518                 LIBS="$ol_LIBS"
21519
21520 fi
21521 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21522 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21523
21524         if test $ol_cv_pthread_pthreads = yes ; then
21525                 ol_link_pthreads="-pthreads"
21526                 ol_link_threads=posix
21527         fi
21528 fi
21529
21530                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21531 if test "$ol_link_threads" = no ; then
21532         # try -mthreads
21533         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21534 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21535 if test "${ol_cv_pthread_mthreads+set}" = set; then
21536   echo $ECHO_N "(cached) $ECHO_C" >&6
21537 else
21538
21539                 # save the flags
21540                 ol_LIBS="$LIBS"
21541                 LIBS="-mthreads $LIBS"
21542
21543                 if test "$cross_compiling" = yes; then
21544   cat >conftest.$ac_ext <<_ACEOF
21545 /* confdefs.h.  */
21546 _ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h.  */
21550
21551 /* pthread test headers */
21552 #include <pthread.h>
21553 #if HAVE_PTHREADS < 7
21554 #include <errno.h>
21555 #endif
21556 #ifndef NULL
21557 #define NULL (void*)0
21558 #endif
21559
21560 static void *task(p)
21561         void *p;
21562 {
21563         return (void *) (p == NULL);
21564 }
21565
21566 int
21567 main ()
21568 {
21569
21570         /* pthread test function */
21571 #ifndef PTHREAD_CREATE_DETACHED
21572 #define PTHREAD_CREATE_DETACHED 1
21573 #endif
21574         pthread_t t;
21575         int status;
21576         int detach = PTHREAD_CREATE_DETACHED;
21577
21578 #if HAVE_PTHREADS > 4
21579         /* Final pthreads */
21580         pthread_attr_t attr;
21581
21582         status = pthread_attr_init(&attr);
21583         if( status ) return status;
21584
21585 #if HAVE_PTHREADS < 7
21586         status = pthread_attr_setdetachstate(&attr, &detach);
21587         if( status < 0 ) status = errno;
21588 #else
21589         status = pthread_attr_setdetachstate(&attr, detach);
21590 #endif
21591         if( status ) return status;
21592         status = pthread_create( &t, &attr, task, NULL );
21593 #if HAVE_PTHREADS < 7
21594         if( status < 0 ) status = errno;
21595 #endif
21596         if( status ) return status;
21597 #else
21598         /* Draft 4 pthreads */
21599         status = pthread_create( &t, pthread_attr_default, task, NULL );
21600         if( status ) return errno;
21601
21602         /* give thread a chance to complete */
21603         /* it should remain joinable and hence detachable */
21604         sleep( 1 );
21605
21606         status = pthread_detach( &t );
21607         if( status ) return errno;
21608 #endif
21609
21610 #ifdef HAVE_LINUX_THREADS
21611         pthread_kill_other_threads_np();
21612 #endif
21613
21614         return 0;
21615
21616   ;
21617   return 0;
21618 }
21619 _ACEOF
21620 rm -f conftest.$ac_objext conftest$ac_exeext
21621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21622   (eval $ac_link) 2>conftest.er1
21623   ac_status=$?
21624   grep -v '^ *+' conftest.er1 >conftest.err
21625   rm -f conftest.er1
21626   cat conftest.err >&5
21627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628   (exit $ac_status); } &&
21629          { ac_try='test -z "$ac_c_werror_flag"
21630                          || test ! -s conftest.err'
21631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632   (eval $ac_try) 2>&5
21633   ac_status=$?
21634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635   (exit $ac_status); }; } &&
21636          { ac_try='test -s conftest$ac_exeext'
21637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638   (eval $ac_try) 2>&5
21639   ac_status=$?
21640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641   (exit $ac_status); }; }; then
21642   ol_cv_pthread_mthreads=yes
21643 else
21644   echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21646
21647 ol_cv_pthread_mthreads=no
21648 fi
21649 rm -f conftest.err conftest.$ac_objext \
21650       conftest$ac_exeext conftest.$ac_ext
21651 else
21652   cat >conftest.$ac_ext <<_ACEOF
21653 /* confdefs.h.  */
21654 _ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h.  */
21658
21659 /* pthread test headers */
21660 #include <pthread.h>
21661 #if HAVE_PTHREADS < 7
21662 #include <errno.h>
21663 #endif
21664 #ifndef NULL
21665 #define NULL (void*)0
21666 #endif
21667
21668 static void *task(p)
21669         void *p;
21670 {
21671         return (void *) (p == NULL);
21672 }
21673
21674
21675 int main(argc, argv)
21676         int argc;
21677         char **argv;
21678 {
21679
21680         /* pthread test function */
21681 #ifndef PTHREAD_CREATE_DETACHED
21682 #define PTHREAD_CREATE_DETACHED 1
21683 #endif
21684         pthread_t t;
21685         int status;
21686         int detach = PTHREAD_CREATE_DETACHED;
21687
21688 #if HAVE_PTHREADS > 4
21689         /* Final pthreads */
21690         pthread_attr_t attr;
21691
21692         status = pthread_attr_init(&attr);
21693         if( status ) return status;
21694
21695 #if HAVE_PTHREADS < 7
21696         status = pthread_attr_setdetachstate(&attr, &detach);
21697         if( status < 0 ) status = errno;
21698 #else
21699         status = pthread_attr_setdetachstate(&attr, detach);
21700 #endif
21701         if( status ) return status;
21702         status = pthread_create( &t, &attr, task, NULL );
21703 #if HAVE_PTHREADS < 7
21704         if( status < 0 ) status = errno;
21705 #endif
21706         if( status ) return status;
21707 #else
21708         /* Draft 4 pthreads */
21709         status = pthread_create( &t, pthread_attr_default, task, NULL );
21710         if( status ) return errno;
21711
21712         /* give thread a chance to complete */
21713         /* it should remain joinable and hence detachable */
21714         sleep( 1 );
21715
21716         status = pthread_detach( &t );
21717         if( status ) return errno;
21718 #endif
21719
21720 #ifdef HAVE_LINUX_THREADS
21721         pthread_kill_other_threads_np();
21722 #endif
21723
21724         return 0;
21725
21726 }
21727
21728 _ACEOF
21729 rm -f conftest$ac_exeext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21731   (eval $ac_link) 2>&5
21732   ac_status=$?
21733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736   (eval $ac_try) 2>&5
21737   ac_status=$?
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); }; }; then
21740   ol_cv_pthread_mthreads=yes
21741 else
21742   echo "$as_me: program exited with status $ac_status" >&5
21743 echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21745
21746 ( exit $ac_status )
21747 ol_cv_pthread_mthreads=no
21748 fi
21749 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21750 fi
21751
21752                 # restore the LIBS
21753                 LIBS="$ol_LIBS"
21754
21755 fi
21756 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21757 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21758
21759         if test $ol_cv_pthread_mthreads = yes ; then
21760                 ol_link_pthreads="-mthreads"
21761                 ol_link_threads=posix
21762         fi
21763 fi
21764
21765                 # Pthread try link: -thread (ol_cv_pthread_thread)
21766 if test "$ol_link_threads" = no ; then
21767         # try -thread
21768         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21769 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21770 if test "${ol_cv_pthread_thread+set}" = set; then
21771   echo $ECHO_N "(cached) $ECHO_C" >&6
21772 else
21773
21774                 # save the flags
21775                 ol_LIBS="$LIBS"
21776                 LIBS="-thread $LIBS"
21777
21778                 if test "$cross_compiling" = yes; then
21779   cat >conftest.$ac_ext <<_ACEOF
21780 /* confdefs.h.  */
21781 _ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h.  */
21785
21786 /* pthread test headers */
21787 #include <pthread.h>
21788 #if HAVE_PTHREADS < 7
21789 #include <errno.h>
21790 #endif
21791 #ifndef NULL
21792 #define NULL (void*)0
21793 #endif
21794
21795 static void *task(p)
21796         void *p;
21797 {
21798         return (void *) (p == NULL);
21799 }
21800
21801 int
21802 main ()
21803 {
21804
21805         /* pthread test function */
21806 #ifndef PTHREAD_CREATE_DETACHED
21807 #define PTHREAD_CREATE_DETACHED 1
21808 #endif
21809         pthread_t t;
21810         int status;
21811         int detach = PTHREAD_CREATE_DETACHED;
21812
21813 #if HAVE_PTHREADS > 4
21814         /* Final pthreads */
21815         pthread_attr_t attr;
21816
21817         status = pthread_attr_init(&attr);
21818         if( status ) return status;
21819
21820 #if HAVE_PTHREADS < 7
21821         status = pthread_attr_setdetachstate(&attr, &detach);
21822         if( status < 0 ) status = errno;
21823 #else
21824         status = pthread_attr_setdetachstate(&attr, detach);
21825 #endif
21826         if( status ) return status;
21827         status = pthread_create( &t, &attr, task, NULL );
21828 #if HAVE_PTHREADS < 7
21829         if( status < 0 ) status = errno;
21830 #endif
21831         if( status ) return status;
21832 #else
21833         /* Draft 4 pthreads */
21834         status = pthread_create( &t, pthread_attr_default, task, NULL );
21835         if( status ) return errno;
21836
21837         /* give thread a chance to complete */
21838         /* it should remain joinable and hence detachable */
21839         sleep( 1 );
21840
21841         status = pthread_detach( &t );
21842         if( status ) return errno;
21843 #endif
21844
21845 #ifdef HAVE_LINUX_THREADS
21846         pthread_kill_other_threads_np();
21847 #endif
21848
21849         return 0;
21850
21851   ;
21852   return 0;
21853 }
21854 _ACEOF
21855 rm -f conftest.$ac_objext conftest$ac_exeext
21856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21857   (eval $ac_link) 2>conftest.er1
21858   ac_status=$?
21859   grep -v '^ *+' conftest.er1 >conftest.err
21860   rm -f conftest.er1
21861   cat conftest.err >&5
21862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863   (exit $ac_status); } &&
21864          { ac_try='test -z "$ac_c_werror_flag"
21865                          || test ! -s conftest.err'
21866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867   (eval $ac_try) 2>&5
21868   ac_status=$?
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); }; } &&
21871          { ac_try='test -s conftest$ac_exeext'
21872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873   (eval $ac_try) 2>&5
21874   ac_status=$?
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); }; }; then
21877   ol_cv_pthread_thread=yes
21878 else
21879   echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21881
21882 ol_cv_pthread_thread=no
21883 fi
21884 rm -f conftest.err conftest.$ac_objext \
21885       conftest$ac_exeext conftest.$ac_ext
21886 else
21887   cat >conftest.$ac_ext <<_ACEOF
21888 /* confdefs.h.  */
21889 _ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h.  */
21893
21894 /* pthread test headers */
21895 #include <pthread.h>
21896 #if HAVE_PTHREADS < 7
21897 #include <errno.h>
21898 #endif
21899 #ifndef NULL
21900 #define NULL (void*)0
21901 #endif
21902
21903 static void *task(p)
21904         void *p;
21905 {
21906         return (void *) (p == NULL);
21907 }
21908
21909
21910 int main(argc, argv)
21911         int argc;
21912         char **argv;
21913 {
21914
21915         /* pthread test function */
21916 #ifndef PTHREAD_CREATE_DETACHED
21917 #define PTHREAD_CREATE_DETACHED 1
21918 #endif
21919         pthread_t t;
21920         int status;
21921         int detach = PTHREAD_CREATE_DETACHED;
21922
21923 #if HAVE_PTHREADS > 4
21924         /* Final pthreads */
21925         pthread_attr_t attr;
21926
21927         status = pthread_attr_init(&attr);
21928         if( status ) return status;
21929
21930 #if HAVE_PTHREADS < 7
21931         status = pthread_attr_setdetachstate(&attr, &detach);
21932         if( status < 0 ) status = errno;
21933 #else
21934         status = pthread_attr_setdetachstate(&attr, detach);
21935 #endif
21936         if( status ) return status;
21937         status = pthread_create( &t, &attr, task, NULL );
21938 #if HAVE_PTHREADS < 7
21939         if( status < 0 ) status = errno;
21940 #endif
21941         if( status ) return status;
21942 #else
21943         /* Draft 4 pthreads */
21944         status = pthread_create( &t, pthread_attr_default, task, NULL );
21945         if( status ) return errno;
21946
21947         /* give thread a chance to complete */
21948         /* it should remain joinable and hence detachable */
21949         sleep( 1 );
21950
21951         status = pthread_detach( &t );
21952         if( status ) return errno;
21953 #endif
21954
21955 #ifdef HAVE_LINUX_THREADS
21956         pthread_kill_other_threads_np();
21957 #endif
21958
21959         return 0;
21960
21961 }
21962
21963 _ACEOF
21964 rm -f conftest$ac_exeext
21965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21966   (eval $ac_link) 2>&5
21967   ac_status=$?
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21971   (eval $ac_try) 2>&5
21972   ac_status=$?
21973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974   (exit $ac_status); }; }; then
21975   ol_cv_pthread_thread=yes
21976 else
21977   echo "$as_me: program exited with status $ac_status" >&5
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21980
21981 ( exit $ac_status )
21982 ol_cv_pthread_thread=no
21983 fi
21984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21985 fi
21986
21987                 # restore the LIBS
21988                 LIBS="$ol_LIBS"
21989
21990 fi
21991 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21992 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21993
21994         if test $ol_cv_pthread_thread = yes ; then
21995                 ol_link_pthreads="-thread"
21996                 ol_link_threads=posix
21997         fi
21998 fi
21999
22000
22001                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22002 if test "$ol_link_threads" = no ; then
22003         # try -lpthread -lmach -lexc -lc_r
22004         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22005 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
22006 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22007   echo $ECHO_N "(cached) $ECHO_C" >&6
22008 else
22009
22010                 # save the flags
22011                 ol_LIBS="$LIBS"
22012                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22013
22014                 if test "$cross_compiling" = yes; then
22015   cat >conftest.$ac_ext <<_ACEOF
22016 /* confdefs.h.  */
22017 _ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h.  */
22021
22022 /* pthread test headers */
22023 #include <pthread.h>
22024 #if HAVE_PTHREADS < 7
22025 #include <errno.h>
22026 #endif
22027 #ifndef NULL
22028 #define NULL (void*)0
22029 #endif
22030
22031 static void *task(p)
22032         void *p;
22033 {
22034         return (void *) (p == NULL);
22035 }
22036
22037 int
22038 main ()
22039 {
22040
22041         /* pthread test function */
22042 #ifndef PTHREAD_CREATE_DETACHED
22043 #define PTHREAD_CREATE_DETACHED 1
22044 #endif
22045         pthread_t t;
22046         int status;
22047         int detach = PTHREAD_CREATE_DETACHED;
22048
22049 #if HAVE_PTHREADS > 4
22050         /* Final pthreads */
22051         pthread_attr_t attr;
22052
22053         status = pthread_attr_init(&attr);
22054         if( status ) return status;
22055
22056 #if HAVE_PTHREADS < 7
22057         status = pthread_attr_setdetachstate(&attr, &detach);
22058         if( status < 0 ) status = errno;
22059 #else
22060         status = pthread_attr_setdetachstate(&attr, detach);
22061 #endif
22062         if( status ) return status;
22063         status = pthread_create( &t, &attr, task, NULL );
22064 #if HAVE_PTHREADS < 7
22065         if( status < 0 ) status = errno;
22066 #endif
22067         if( status ) return status;
22068 #else
22069         /* Draft 4 pthreads */
22070         status = pthread_create( &t, pthread_attr_default, task, NULL );
22071         if( status ) return errno;
22072
22073         /* give thread a chance to complete */
22074         /* it should remain joinable and hence detachable */
22075         sleep( 1 );
22076
22077         status = pthread_detach( &t );
22078         if( status ) return errno;
22079 #endif
22080
22081 #ifdef HAVE_LINUX_THREADS
22082         pthread_kill_other_threads_np();
22083 #endif
22084
22085         return 0;
22086
22087   ;
22088   return 0;
22089 }
22090 _ACEOF
22091 rm -f conftest.$ac_objext conftest$ac_exeext
22092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22093   (eval $ac_link) 2>conftest.er1
22094   ac_status=$?
22095   grep -v '^ *+' conftest.er1 >conftest.err
22096   rm -f conftest.er1
22097   cat conftest.err >&5
22098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099   (exit $ac_status); } &&
22100          { ac_try='test -z "$ac_c_werror_flag"
22101                          || test ! -s conftest.err'
22102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103   (eval $ac_try) 2>&5
22104   ac_status=$?
22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106   (exit $ac_status); }; } &&
22107          { ac_try='test -s conftest$ac_exeext'
22108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109   (eval $ac_try) 2>&5
22110   ac_status=$?
22111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112   (exit $ac_status); }; }; then
22113   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22114 else
22115   echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22117
22118 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22119 fi
22120 rm -f conftest.err conftest.$ac_objext \
22121       conftest$ac_exeext conftest.$ac_ext
22122 else
22123   cat >conftest.$ac_ext <<_ACEOF
22124 /* confdefs.h.  */
22125 _ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h.  */
22129
22130 /* pthread test headers */
22131 #include <pthread.h>
22132 #if HAVE_PTHREADS < 7
22133 #include <errno.h>
22134 #endif
22135 #ifndef NULL
22136 #define NULL (void*)0
22137 #endif
22138
22139 static void *task(p)
22140         void *p;
22141 {
22142         return (void *) (p == NULL);
22143 }
22144
22145
22146 int main(argc, argv)
22147         int argc;
22148         char **argv;
22149 {
22150
22151         /* pthread test function */
22152 #ifndef PTHREAD_CREATE_DETACHED
22153 #define PTHREAD_CREATE_DETACHED 1
22154 #endif
22155         pthread_t t;
22156         int status;
22157         int detach = PTHREAD_CREATE_DETACHED;
22158
22159 #if HAVE_PTHREADS > 4
22160         /* Final pthreads */
22161         pthread_attr_t attr;
22162
22163         status = pthread_attr_init(&attr);
22164         if( status ) return status;
22165
22166 #if HAVE_PTHREADS < 7
22167         status = pthread_attr_setdetachstate(&attr, &detach);
22168         if( status < 0 ) status = errno;
22169 #else
22170         status = pthread_attr_setdetachstate(&attr, detach);
22171 #endif
22172         if( status ) return status;
22173         status = pthread_create( &t, &attr, task, NULL );
22174 #if HAVE_PTHREADS < 7
22175         if( status < 0 ) status = errno;
22176 #endif
22177         if( status ) return status;
22178 #else
22179         /* Draft 4 pthreads */
22180         status = pthread_create( &t, pthread_attr_default, task, NULL );
22181         if( status ) return errno;
22182
22183         /* give thread a chance to complete */
22184         /* it should remain joinable and hence detachable */
22185         sleep( 1 );
22186
22187         status = pthread_detach( &t );
22188         if( status ) return errno;
22189 #endif
22190
22191 #ifdef HAVE_LINUX_THREADS
22192         pthread_kill_other_threads_np();
22193 #endif
22194
22195         return 0;
22196
22197 }
22198
22199 _ACEOF
22200 rm -f conftest$ac_exeext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22202   (eval $ac_link) 2>&5
22203   ac_status=$?
22204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207   (eval $ac_try) 2>&5
22208   ac_status=$?
22209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210   (exit $ac_status); }; }; then
22211   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22212 else
22213   echo "$as_me: program exited with status $ac_status" >&5
22214 echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22216
22217 ( exit $ac_status )
22218 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22219 fi
22220 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22221 fi
22222
22223                 # restore the LIBS
22224                 LIBS="$ol_LIBS"
22225
22226 fi
22227 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22228 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22229
22230         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22231                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22232                 ol_link_threads=posix
22233         fi
22234 fi
22235
22236                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22237 if test "$ol_link_threads" = no ; then
22238         # try -lpthread -lmach -lexc
22239         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22240 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22241 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22242   echo $ECHO_N "(cached) $ECHO_C" >&6
22243 else
22244
22245                 # save the flags
22246                 ol_LIBS="$LIBS"
22247                 LIBS="-lpthread -lmach -lexc $LIBS"
22248
22249                 if test "$cross_compiling" = yes; then
22250   cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h.  */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h.  */
22256
22257 /* pthread test headers */
22258 #include <pthread.h>
22259 #if HAVE_PTHREADS < 7
22260 #include <errno.h>
22261 #endif
22262 #ifndef NULL
22263 #define NULL (void*)0
22264 #endif
22265
22266 static void *task(p)
22267         void *p;
22268 {
22269         return (void *) (p == NULL);
22270 }
22271
22272 int
22273 main ()
22274 {
22275
22276         /* pthread test function */
22277 #ifndef PTHREAD_CREATE_DETACHED
22278 #define PTHREAD_CREATE_DETACHED 1
22279 #endif
22280         pthread_t t;
22281         int status;
22282         int detach = PTHREAD_CREATE_DETACHED;
22283
22284 #if HAVE_PTHREADS > 4
22285         /* Final pthreads */
22286         pthread_attr_t attr;
22287
22288         status = pthread_attr_init(&attr);
22289         if( status ) return status;
22290
22291 #if HAVE_PTHREADS < 7
22292         status = pthread_attr_setdetachstate(&attr, &detach);
22293         if( status < 0 ) status = errno;
22294 #else
22295         status = pthread_attr_setdetachstate(&attr, detach);
22296 #endif
22297         if( status ) return status;
22298         status = pthread_create( &t, &attr, task, NULL );
22299 #if HAVE_PTHREADS < 7
22300         if( status < 0 ) status = errno;
22301 #endif
22302         if( status ) return status;
22303 #else
22304         /* Draft 4 pthreads */
22305         status = pthread_create( &t, pthread_attr_default, task, NULL );
22306         if( status ) return errno;
22307
22308         /* give thread a chance to complete */
22309         /* it should remain joinable and hence detachable */
22310         sleep( 1 );
22311
22312         status = pthread_detach( &t );
22313         if( status ) return errno;
22314 #endif
22315
22316 #ifdef HAVE_LINUX_THREADS
22317         pthread_kill_other_threads_np();
22318 #endif
22319
22320         return 0;
22321
22322   ;
22323   return 0;
22324 }
22325 _ACEOF
22326 rm -f conftest.$ac_objext conftest$ac_exeext
22327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22328   (eval $ac_link) 2>conftest.er1
22329   ac_status=$?
22330   grep -v '^ *+' conftest.er1 >conftest.err
22331   rm -f conftest.er1
22332   cat conftest.err >&5
22333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334   (exit $ac_status); } &&
22335          { ac_try='test -z "$ac_c_werror_flag"
22336                          || test ! -s conftest.err'
22337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22338   (eval $ac_try) 2>&5
22339   ac_status=$?
22340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341   (exit $ac_status); }; } &&
22342          { ac_try='test -s conftest$ac_exeext'
22343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22344   (eval $ac_try) 2>&5
22345   ac_status=$?
22346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347   (exit $ac_status); }; }; then
22348   ol_cv_pthread_lpthread_lmach_lexc=yes
22349 else
22350   echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22352
22353 ol_cv_pthread_lpthread_lmach_lexc=no
22354 fi
22355 rm -f conftest.err conftest.$ac_objext \
22356       conftest$ac_exeext conftest.$ac_ext
22357 else
22358   cat >conftest.$ac_ext <<_ACEOF
22359 /* confdefs.h.  */
22360 _ACEOF
22361 cat confdefs.h >>conftest.$ac_ext
22362 cat >>conftest.$ac_ext <<_ACEOF
22363 /* end confdefs.h.  */
22364
22365 /* pthread test headers */
22366 #include <pthread.h>
22367 #if HAVE_PTHREADS < 7
22368 #include <errno.h>
22369 #endif
22370 #ifndef NULL
22371 #define NULL (void*)0
22372 #endif
22373
22374 static void *task(p)
22375         void *p;
22376 {
22377         return (void *) (p == NULL);
22378 }
22379
22380
22381 int main(argc, argv)
22382         int argc;
22383         char **argv;
22384 {
22385
22386         /* pthread test function */
22387 #ifndef PTHREAD_CREATE_DETACHED
22388 #define PTHREAD_CREATE_DETACHED 1
22389 #endif
22390         pthread_t t;
22391         int status;
22392         int detach = PTHREAD_CREATE_DETACHED;
22393
22394 #if HAVE_PTHREADS > 4
22395         /* Final pthreads */
22396         pthread_attr_t attr;
22397
22398         status = pthread_attr_init(&attr);
22399         if( status ) return status;
22400
22401 #if HAVE_PTHREADS < 7
22402         status = pthread_attr_setdetachstate(&attr, &detach);
22403         if( status < 0 ) status = errno;
22404 #else
22405         status = pthread_attr_setdetachstate(&attr, detach);
22406 #endif
22407         if( status ) return status;
22408         status = pthread_create( &t, &attr, task, NULL );
22409 #if HAVE_PTHREADS < 7
22410         if( status < 0 ) status = errno;
22411 #endif
22412         if( status ) return status;
22413 #else
22414         /* Draft 4 pthreads */
22415         status = pthread_create( &t, pthread_attr_default, task, NULL );
22416         if( status ) return errno;
22417
22418         /* give thread a chance to complete */
22419         /* it should remain joinable and hence detachable */
22420         sleep( 1 );
22421
22422         status = pthread_detach( &t );
22423         if( status ) return errno;
22424 #endif
22425
22426 #ifdef HAVE_LINUX_THREADS
22427         pthread_kill_other_threads_np();
22428 #endif
22429
22430         return 0;
22431
22432 }
22433
22434 _ACEOF
22435 rm -f conftest$ac_exeext
22436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22437   (eval $ac_link) 2>&5
22438   ac_status=$?
22439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22442   (eval $ac_try) 2>&5
22443   ac_status=$?
22444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445   (exit $ac_status); }; }; then
22446   ol_cv_pthread_lpthread_lmach_lexc=yes
22447 else
22448   echo "$as_me: program exited with status $ac_status" >&5
22449 echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22451
22452 ( exit $ac_status )
22453 ol_cv_pthread_lpthread_lmach_lexc=no
22454 fi
22455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22456 fi
22457
22458                 # restore the LIBS
22459                 LIBS="$ol_LIBS"
22460
22461 fi
22462 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22463 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22464
22465         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22466                 ol_link_pthreads="-lpthread -lmach -lexc"
22467                 ol_link_threads=posix
22468         fi
22469 fi
22470
22471
22472                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22473 if test "$ol_link_threads" = no ; then
22474         # try -lpthread -Wl,-woff,85
22475         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22476 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22477 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22478   echo $ECHO_N "(cached) $ECHO_C" >&6
22479 else
22480
22481                 # save the flags
22482                 ol_LIBS="$LIBS"
22483                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22484
22485                 if test "$cross_compiling" = yes; then
22486   cat >conftest.$ac_ext <<_ACEOF
22487 /* confdefs.h.  */
22488 _ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h.  */
22492
22493 /* pthread test headers */
22494 #include <pthread.h>
22495 #if HAVE_PTHREADS < 7
22496 #include <errno.h>
22497 #endif
22498 #ifndef NULL
22499 #define NULL (void*)0
22500 #endif
22501
22502 static void *task(p)
22503         void *p;
22504 {
22505         return (void *) (p == NULL);
22506 }
22507
22508 int
22509 main ()
22510 {
22511
22512         /* pthread test function */
22513 #ifndef PTHREAD_CREATE_DETACHED
22514 #define PTHREAD_CREATE_DETACHED 1
22515 #endif
22516         pthread_t t;
22517         int status;
22518         int detach = PTHREAD_CREATE_DETACHED;
22519
22520 #if HAVE_PTHREADS > 4
22521         /* Final pthreads */
22522         pthread_attr_t attr;
22523
22524         status = pthread_attr_init(&attr);
22525         if( status ) return status;
22526
22527 #if HAVE_PTHREADS < 7
22528         status = pthread_attr_setdetachstate(&attr, &detach);
22529         if( status < 0 ) status = errno;
22530 #else
22531         status = pthread_attr_setdetachstate(&attr, detach);
22532 #endif
22533         if( status ) return status;
22534         status = pthread_create( &t, &attr, task, NULL );
22535 #if HAVE_PTHREADS < 7
22536         if( status < 0 ) status = errno;
22537 #endif
22538         if( status ) return status;
22539 #else
22540         /* Draft 4 pthreads */
22541         status = pthread_create( &t, pthread_attr_default, task, NULL );
22542         if( status ) return errno;
22543
22544         /* give thread a chance to complete */
22545         /* it should remain joinable and hence detachable */
22546         sleep( 1 );
22547
22548         status = pthread_detach( &t );
22549         if( status ) return errno;
22550 #endif
22551
22552 #ifdef HAVE_LINUX_THREADS
22553         pthread_kill_other_threads_np();
22554 #endif
22555
22556         return 0;
22557
22558   ;
22559   return 0;
22560 }
22561 _ACEOF
22562 rm -f conftest.$ac_objext conftest$ac_exeext
22563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22564   (eval $ac_link) 2>conftest.er1
22565   ac_status=$?
22566   grep -v '^ *+' conftest.er1 >conftest.err
22567   rm -f conftest.er1
22568   cat conftest.err >&5
22569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570   (exit $ac_status); } &&
22571          { ac_try='test -z "$ac_c_werror_flag"
22572                          || test ! -s conftest.err'
22573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574   (eval $ac_try) 2>&5
22575   ac_status=$?
22576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); }; } &&
22578          { ac_try='test -s conftest$ac_exeext'
22579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580   (eval $ac_try) 2>&5
22581   ac_status=$?
22582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583   (exit $ac_status); }; }; then
22584   ol_cv_pthread_lib_lpthread_woff=yes
22585 else
22586   echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22588
22589 ol_cv_pthread_lib_lpthread_woff=no
22590 fi
22591 rm -f conftest.err conftest.$ac_objext \
22592       conftest$ac_exeext conftest.$ac_ext
22593 else
22594   cat >conftest.$ac_ext <<_ACEOF
22595 /* confdefs.h.  */
22596 _ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h.  */
22600
22601 /* pthread test headers */
22602 #include <pthread.h>
22603 #if HAVE_PTHREADS < 7
22604 #include <errno.h>
22605 #endif
22606 #ifndef NULL
22607 #define NULL (void*)0
22608 #endif
22609
22610 static void *task(p)
22611         void *p;
22612 {
22613         return (void *) (p == NULL);
22614 }
22615
22616
22617 int main(argc, argv)
22618         int argc;
22619         char **argv;
22620 {
22621
22622         /* pthread test function */
22623 #ifndef PTHREAD_CREATE_DETACHED
22624 #define PTHREAD_CREATE_DETACHED 1
22625 #endif
22626         pthread_t t;
22627         int status;
22628         int detach = PTHREAD_CREATE_DETACHED;
22629
22630 #if HAVE_PTHREADS > 4
22631         /* Final pthreads */
22632         pthread_attr_t attr;
22633
22634         status = pthread_attr_init(&attr);
22635         if( status ) return status;
22636
22637 #if HAVE_PTHREADS < 7
22638         status = pthread_attr_setdetachstate(&attr, &detach);
22639         if( status < 0 ) status = errno;
22640 #else
22641         status = pthread_attr_setdetachstate(&attr, detach);
22642 #endif
22643         if( status ) return status;
22644         status = pthread_create( &t, &attr, task, NULL );
22645 #if HAVE_PTHREADS < 7
22646         if( status < 0 ) status = errno;
22647 #endif
22648         if( status ) return status;
22649 #else
22650         /* Draft 4 pthreads */
22651         status = pthread_create( &t, pthread_attr_default, task, NULL );
22652         if( status ) return errno;
22653
22654         /* give thread a chance to complete */
22655         /* it should remain joinable and hence detachable */
22656         sleep( 1 );
22657
22658         status = pthread_detach( &t );
22659         if( status ) return errno;
22660 #endif
22661
22662 #ifdef HAVE_LINUX_THREADS
22663         pthread_kill_other_threads_np();
22664 #endif
22665
22666         return 0;
22667
22668 }
22669
22670 _ACEOF
22671 rm -f conftest$ac_exeext
22672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22673   (eval $ac_link) 2>&5
22674   ac_status=$?
22675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678   (eval $ac_try) 2>&5
22679   ac_status=$?
22680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681   (exit $ac_status); }; }; then
22682   ol_cv_pthread_lib_lpthread_woff=yes
22683 else
22684   echo "$as_me: program exited with status $ac_status" >&5
22685 echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22687
22688 ( exit $ac_status )
22689 ol_cv_pthread_lib_lpthread_woff=no
22690 fi
22691 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22692 fi
22693
22694                 # restore the LIBS
22695                 LIBS="$ol_LIBS"
22696
22697 fi
22698 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22699 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22700
22701         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22702                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22703                 ol_link_threads=posix
22704         fi
22705 fi
22706
22707
22708                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22709 if test "$ol_link_threads" = no ; then
22710         # try -lpthread
22711         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22712 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22713 if test "${ol_cv_pthread_lpthread+set}" = set; then
22714   echo $ECHO_N "(cached) $ECHO_C" >&6
22715 else
22716
22717                 # save the flags
22718                 ol_LIBS="$LIBS"
22719                 LIBS="-lpthread $LIBS"
22720
22721                 if test "$cross_compiling" = yes; then
22722   cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h.  */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h.  */
22728
22729 /* pthread test headers */
22730 #include <pthread.h>
22731 #if HAVE_PTHREADS < 7
22732 #include <errno.h>
22733 #endif
22734 #ifndef NULL
22735 #define NULL (void*)0
22736 #endif
22737
22738 static void *task(p)
22739         void *p;
22740 {
22741         return (void *) (p == NULL);
22742 }
22743
22744 int
22745 main ()
22746 {
22747
22748         /* pthread test function */
22749 #ifndef PTHREAD_CREATE_DETACHED
22750 #define PTHREAD_CREATE_DETACHED 1
22751 #endif
22752         pthread_t t;
22753         int status;
22754         int detach = PTHREAD_CREATE_DETACHED;
22755
22756 #if HAVE_PTHREADS > 4
22757         /* Final pthreads */
22758         pthread_attr_t attr;
22759
22760         status = pthread_attr_init(&attr);
22761         if( status ) return status;
22762
22763 #if HAVE_PTHREADS < 7
22764         status = pthread_attr_setdetachstate(&attr, &detach);
22765         if( status < 0 ) status = errno;
22766 #else
22767         status = pthread_attr_setdetachstate(&attr, detach);
22768 #endif
22769         if( status ) return status;
22770         status = pthread_create( &t, &attr, task, NULL );
22771 #if HAVE_PTHREADS < 7
22772         if( status < 0 ) status = errno;
22773 #endif
22774         if( status ) return status;
22775 #else
22776         /* Draft 4 pthreads */
22777         status = pthread_create( &t, pthread_attr_default, task, NULL );
22778         if( status ) return errno;
22779
22780         /* give thread a chance to complete */
22781         /* it should remain joinable and hence detachable */
22782         sleep( 1 );
22783
22784         status = pthread_detach( &t );
22785         if( status ) return errno;
22786 #endif
22787
22788 #ifdef HAVE_LINUX_THREADS
22789         pthread_kill_other_threads_np();
22790 #endif
22791
22792         return 0;
22793
22794   ;
22795   return 0;
22796 }
22797 _ACEOF
22798 rm -f conftest.$ac_objext conftest$ac_exeext
22799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22800   (eval $ac_link) 2>conftest.er1
22801   ac_status=$?
22802   grep -v '^ *+' conftest.er1 >conftest.err
22803   rm -f conftest.er1
22804   cat conftest.err >&5
22805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806   (exit $ac_status); } &&
22807          { ac_try='test -z "$ac_c_werror_flag"
22808                          || test ! -s conftest.err'
22809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810   (eval $ac_try) 2>&5
22811   ac_status=$?
22812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813   (exit $ac_status); }; } &&
22814          { ac_try='test -s conftest$ac_exeext'
22815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816   (eval $ac_try) 2>&5
22817   ac_status=$?
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); }; }; then
22820   ol_cv_pthread_lpthread=yes
22821 else
22822   echo "$as_me: failed program was:" >&5
22823 sed 's/^/| /' conftest.$ac_ext >&5
22824
22825 ol_cv_pthread_lpthread=no
22826 fi
22827 rm -f conftest.err conftest.$ac_objext \
22828       conftest$ac_exeext conftest.$ac_ext
22829 else
22830   cat >conftest.$ac_ext <<_ACEOF
22831 /* confdefs.h.  */
22832 _ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h.  */
22836
22837 /* pthread test headers */
22838 #include <pthread.h>
22839 #if HAVE_PTHREADS < 7
22840 #include <errno.h>
22841 #endif
22842 #ifndef NULL
22843 #define NULL (void*)0
22844 #endif
22845
22846 static void *task(p)
22847         void *p;
22848 {
22849         return (void *) (p == NULL);
22850 }
22851
22852
22853 int main(argc, argv)
22854         int argc;
22855         char **argv;
22856 {
22857
22858         /* pthread test function */
22859 #ifndef PTHREAD_CREATE_DETACHED
22860 #define PTHREAD_CREATE_DETACHED 1
22861 #endif
22862         pthread_t t;
22863         int status;
22864         int detach = PTHREAD_CREATE_DETACHED;
22865
22866 #if HAVE_PTHREADS > 4
22867         /* Final pthreads */
22868         pthread_attr_t attr;
22869
22870         status = pthread_attr_init(&attr);
22871         if( status ) return status;
22872
22873 #if HAVE_PTHREADS < 7
22874         status = pthread_attr_setdetachstate(&attr, &detach);
22875         if( status < 0 ) status = errno;
22876 #else
22877         status = pthread_attr_setdetachstate(&attr, detach);
22878 #endif
22879         if( status ) return status;
22880         status = pthread_create( &t, &attr, task, NULL );
22881 #if HAVE_PTHREADS < 7
22882         if( status < 0 ) status = errno;
22883 #endif
22884         if( status ) return status;
22885 #else
22886         /* Draft 4 pthreads */
22887         status = pthread_create( &t, pthread_attr_default, task, NULL );
22888         if( status ) return errno;
22889
22890         /* give thread a chance to complete */
22891         /* it should remain joinable and hence detachable */
22892         sleep( 1 );
22893
22894         status = pthread_detach( &t );
22895         if( status ) return errno;
22896 #endif
22897
22898 #ifdef HAVE_LINUX_THREADS
22899         pthread_kill_other_threads_np();
22900 #endif
22901
22902         return 0;
22903
22904 }
22905
22906 _ACEOF
22907 rm -f conftest$ac_exeext
22908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22909   (eval $ac_link) 2>&5
22910   ac_status=$?
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914   (eval $ac_try) 2>&5
22915   ac_status=$?
22916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917   (exit $ac_status); }; }; then
22918   ol_cv_pthread_lpthread=yes
22919 else
22920   echo "$as_me: program exited with status $ac_status" >&5
22921 echo "$as_me: failed program was:" >&5
22922 sed 's/^/| /' conftest.$ac_ext >&5
22923
22924 ( exit $ac_status )
22925 ol_cv_pthread_lpthread=no
22926 fi
22927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22928 fi
22929
22930                 # restore the LIBS
22931                 LIBS="$ol_LIBS"
22932
22933 fi
22934 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22935 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22936
22937         if test $ol_cv_pthread_lpthread = yes ; then
22938                 ol_link_pthreads="-lpthread"
22939                 ol_link_threads=posix
22940         fi
22941 fi
22942
22943                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22944 if test "$ol_link_threads" = no ; then
22945         # try -lc_r
22946         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22947 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22948 if test "${ol_cv_pthread_lc_r+set}" = set; then
22949   echo $ECHO_N "(cached) $ECHO_C" >&6
22950 else
22951
22952                 # save the flags
22953                 ol_LIBS="$LIBS"
22954                 LIBS="-lc_r $LIBS"
22955
22956                 if test "$cross_compiling" = yes; then
22957   cat >conftest.$ac_ext <<_ACEOF
22958 /* confdefs.h.  */
22959 _ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h.  */
22963
22964 /* pthread test headers */
22965 #include <pthread.h>
22966 #if HAVE_PTHREADS < 7
22967 #include <errno.h>
22968 #endif
22969 #ifndef NULL
22970 #define NULL (void*)0
22971 #endif
22972
22973 static void *task(p)
22974         void *p;
22975 {
22976         return (void *) (p == NULL);
22977 }
22978
22979 int
22980 main ()
22981 {
22982
22983         /* pthread test function */
22984 #ifndef PTHREAD_CREATE_DETACHED
22985 #define PTHREAD_CREATE_DETACHED 1
22986 #endif
22987         pthread_t t;
22988         int status;
22989         int detach = PTHREAD_CREATE_DETACHED;
22990
22991 #if HAVE_PTHREADS > 4
22992         /* Final pthreads */
22993         pthread_attr_t attr;
22994
22995         status = pthread_attr_init(&attr);
22996         if( status ) return status;
22997
22998 #if HAVE_PTHREADS < 7
22999         status = pthread_attr_setdetachstate(&attr, &detach);
23000         if( status < 0 ) status = errno;
23001 #else
23002         status = pthread_attr_setdetachstate(&attr, detach);
23003 #endif
23004         if( status ) return status;
23005         status = pthread_create( &t, &attr, task, NULL );
23006 #if HAVE_PTHREADS < 7
23007         if( status < 0 ) status = errno;
23008 #endif
23009         if( status ) return status;
23010 #else
23011         /* Draft 4 pthreads */
23012         status = pthread_create( &t, pthread_attr_default, task, NULL );
23013         if( status ) return errno;
23014
23015         /* give thread a chance to complete */
23016         /* it should remain joinable and hence detachable */
23017         sleep( 1 );
23018
23019         status = pthread_detach( &t );
23020         if( status ) return errno;
23021 #endif
23022
23023 #ifdef HAVE_LINUX_THREADS
23024         pthread_kill_other_threads_np();
23025 #endif
23026
23027         return 0;
23028
23029   ;
23030   return 0;
23031 }
23032 _ACEOF
23033 rm -f conftest.$ac_objext conftest$ac_exeext
23034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23035   (eval $ac_link) 2>conftest.er1
23036   ac_status=$?
23037   grep -v '^ *+' conftest.er1 >conftest.err
23038   rm -f conftest.er1
23039   cat conftest.err >&5
23040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); } &&
23042          { ac_try='test -z "$ac_c_werror_flag"
23043                          || test ! -s conftest.err'
23044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23045   (eval $ac_try) 2>&5
23046   ac_status=$?
23047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048   (exit $ac_status); }; } &&
23049          { ac_try='test -s conftest$ac_exeext'
23050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051   (eval $ac_try) 2>&5
23052   ac_status=$?
23053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054   (exit $ac_status); }; }; then
23055   ol_cv_pthread_lc_r=yes
23056 else
23057   echo "$as_me: failed program was:" >&5
23058 sed 's/^/| /' conftest.$ac_ext >&5
23059
23060 ol_cv_pthread_lc_r=no
23061 fi
23062 rm -f conftest.err conftest.$ac_objext \
23063       conftest$ac_exeext conftest.$ac_ext
23064 else
23065   cat >conftest.$ac_ext <<_ACEOF
23066 /* confdefs.h.  */
23067 _ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h.  */
23071
23072 /* pthread test headers */
23073 #include <pthread.h>
23074 #if HAVE_PTHREADS < 7
23075 #include <errno.h>
23076 #endif
23077 #ifndef NULL
23078 #define NULL (void*)0
23079 #endif
23080
23081 static void *task(p)
23082         void *p;
23083 {
23084         return (void *) (p == NULL);
23085 }
23086
23087
23088 int main(argc, argv)
23089         int argc;
23090         char **argv;
23091 {
23092
23093         /* pthread test function */
23094 #ifndef PTHREAD_CREATE_DETACHED
23095 #define PTHREAD_CREATE_DETACHED 1
23096 #endif
23097         pthread_t t;
23098         int status;
23099         int detach = PTHREAD_CREATE_DETACHED;
23100
23101 #if HAVE_PTHREADS > 4
23102         /* Final pthreads */
23103         pthread_attr_t attr;
23104
23105         status = pthread_attr_init(&attr);
23106         if( status ) return status;
23107
23108 #if HAVE_PTHREADS < 7
23109         status = pthread_attr_setdetachstate(&attr, &detach);
23110         if( status < 0 ) status = errno;
23111 #else
23112         status = pthread_attr_setdetachstate(&attr, detach);
23113 #endif
23114         if( status ) return status;
23115         status = pthread_create( &t, &attr, task, NULL );
23116 #if HAVE_PTHREADS < 7
23117         if( status < 0 ) status = errno;
23118 #endif
23119         if( status ) return status;
23120 #else
23121         /* Draft 4 pthreads */
23122         status = pthread_create( &t, pthread_attr_default, task, NULL );
23123         if( status ) return errno;
23124
23125         /* give thread a chance to complete */
23126         /* it should remain joinable and hence detachable */
23127         sleep( 1 );
23128
23129         status = pthread_detach( &t );
23130         if( status ) return errno;
23131 #endif
23132
23133 #ifdef HAVE_LINUX_THREADS
23134         pthread_kill_other_threads_np();
23135 #endif
23136
23137         return 0;
23138
23139 }
23140
23141 _ACEOF
23142 rm -f conftest$ac_exeext
23143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23144   (eval $ac_link) 2>&5
23145   ac_status=$?
23146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23149   (eval $ac_try) 2>&5
23150   ac_status=$?
23151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152   (exit $ac_status); }; }; then
23153   ol_cv_pthread_lc_r=yes
23154 else
23155   echo "$as_me: program exited with status $ac_status" >&5
23156 echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23158
23159 ( exit $ac_status )
23160 ol_cv_pthread_lc_r=no
23161 fi
23162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23163 fi
23164
23165                 # restore the LIBS
23166                 LIBS="$ol_LIBS"
23167
23168 fi
23169 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23170 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
23171
23172         if test $ol_cv_pthread_lc_r = yes ; then
23173                 ol_link_pthreads="-lc_r"
23174                 ol_link_threads=posix
23175         fi
23176 fi
23177
23178
23179                 # Pthread try link: -threads (ol_cv_pthread_threads)
23180 if test "$ol_link_threads" = no ; then
23181         # try -threads
23182         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23183 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23184 if test "${ol_cv_pthread_threads+set}" = set; then
23185   echo $ECHO_N "(cached) $ECHO_C" >&6
23186 else
23187
23188                 # save the flags
23189                 ol_LIBS="$LIBS"
23190                 LIBS="-threads $LIBS"
23191
23192                 if test "$cross_compiling" = yes; then
23193   cat >conftest.$ac_ext <<_ACEOF
23194 /* confdefs.h.  */
23195 _ACEOF
23196 cat confdefs.h >>conftest.$ac_ext
23197 cat >>conftest.$ac_ext <<_ACEOF
23198 /* end confdefs.h.  */
23199
23200 /* pthread test headers */
23201 #include <pthread.h>
23202 #if HAVE_PTHREADS < 7
23203 #include <errno.h>
23204 #endif
23205 #ifndef NULL
23206 #define NULL (void*)0
23207 #endif
23208
23209 static void *task(p)
23210         void *p;
23211 {
23212         return (void *) (p == NULL);
23213 }
23214
23215 int
23216 main ()
23217 {
23218
23219         /* pthread test function */
23220 #ifndef PTHREAD_CREATE_DETACHED
23221 #define PTHREAD_CREATE_DETACHED 1
23222 #endif
23223         pthread_t t;
23224         int status;
23225         int detach = PTHREAD_CREATE_DETACHED;
23226
23227 #if HAVE_PTHREADS > 4
23228         /* Final pthreads */
23229         pthread_attr_t attr;
23230
23231         status = pthread_attr_init(&attr);
23232         if( status ) return status;
23233
23234 #if HAVE_PTHREADS < 7
23235         status = pthread_attr_setdetachstate(&attr, &detach);
23236         if( status < 0 ) status = errno;
23237 #else
23238         status = pthread_attr_setdetachstate(&attr, detach);
23239 #endif
23240         if( status ) return status;
23241         status = pthread_create( &t, &attr, task, NULL );
23242 #if HAVE_PTHREADS < 7
23243         if( status < 0 ) status = errno;
23244 #endif
23245         if( status ) return status;
23246 #else
23247         /* Draft 4 pthreads */
23248         status = pthread_create( &t, pthread_attr_default, task, NULL );
23249         if( status ) return errno;
23250
23251         /* give thread a chance to complete */
23252         /* it should remain joinable and hence detachable */
23253         sleep( 1 );
23254
23255         status = pthread_detach( &t );
23256         if( status ) return errno;
23257 #endif
23258
23259 #ifdef HAVE_LINUX_THREADS
23260         pthread_kill_other_threads_np();
23261 #endif
23262
23263         return 0;
23264
23265   ;
23266   return 0;
23267 }
23268 _ACEOF
23269 rm -f conftest.$ac_objext conftest$ac_exeext
23270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23271   (eval $ac_link) 2>conftest.er1
23272   ac_status=$?
23273   grep -v '^ *+' conftest.er1 >conftest.err
23274   rm -f conftest.er1
23275   cat conftest.err >&5
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); } &&
23278          { ac_try='test -z "$ac_c_werror_flag"
23279                          || test ! -s conftest.err'
23280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281   (eval $ac_try) 2>&5
23282   ac_status=$?
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); }; } &&
23285          { ac_try='test -s conftest$ac_exeext'
23286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287   (eval $ac_try) 2>&5
23288   ac_status=$?
23289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290   (exit $ac_status); }; }; then
23291   ol_cv_pthread_threads=yes
23292 else
23293   echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23295
23296 ol_cv_pthread_threads=no
23297 fi
23298 rm -f conftest.err conftest.$ac_objext \
23299       conftest$ac_exeext conftest.$ac_ext
23300 else
23301   cat >conftest.$ac_ext <<_ACEOF
23302 /* confdefs.h.  */
23303 _ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h.  */
23307
23308 /* pthread test headers */
23309 #include <pthread.h>
23310 #if HAVE_PTHREADS < 7
23311 #include <errno.h>
23312 #endif
23313 #ifndef NULL
23314 #define NULL (void*)0
23315 #endif
23316
23317 static void *task(p)
23318         void *p;
23319 {
23320         return (void *) (p == NULL);
23321 }
23322
23323
23324 int main(argc, argv)
23325         int argc;
23326         char **argv;
23327 {
23328
23329         /* pthread test function */
23330 #ifndef PTHREAD_CREATE_DETACHED
23331 #define PTHREAD_CREATE_DETACHED 1
23332 #endif
23333         pthread_t t;
23334         int status;
23335         int detach = PTHREAD_CREATE_DETACHED;
23336
23337 #if HAVE_PTHREADS > 4
23338         /* Final pthreads */
23339         pthread_attr_t attr;
23340
23341         status = pthread_attr_init(&attr);
23342         if( status ) return status;
23343
23344 #if HAVE_PTHREADS < 7
23345         status = pthread_attr_setdetachstate(&attr, &detach);
23346         if( status < 0 ) status = errno;
23347 #else
23348         status = pthread_attr_setdetachstate(&attr, detach);
23349 #endif
23350         if( status ) return status;
23351         status = pthread_create( &t, &attr, task, NULL );
23352 #if HAVE_PTHREADS < 7
23353         if( status < 0 ) status = errno;
23354 #endif
23355         if( status ) return status;
23356 #else
23357         /* Draft 4 pthreads */
23358         status = pthread_create( &t, pthread_attr_default, task, NULL );
23359         if( status ) return errno;
23360
23361         /* give thread a chance to complete */
23362         /* it should remain joinable and hence detachable */
23363         sleep( 1 );
23364
23365         status = pthread_detach( &t );
23366         if( status ) return errno;
23367 #endif
23368
23369 #ifdef HAVE_LINUX_THREADS
23370         pthread_kill_other_threads_np();
23371 #endif
23372
23373         return 0;
23374
23375 }
23376
23377 _ACEOF
23378 rm -f conftest$ac_exeext
23379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23380   (eval $ac_link) 2>&5
23381   ac_status=$?
23382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23385   (eval $ac_try) 2>&5
23386   ac_status=$?
23387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388   (exit $ac_status); }; }; then
23389   ol_cv_pthread_threads=yes
23390 else
23391   echo "$as_me: program exited with status $ac_status" >&5
23392 echo "$as_me: failed program was:" >&5
23393 sed 's/^/| /' conftest.$ac_ext >&5
23394
23395 ( exit $ac_status )
23396 ol_cv_pthread_threads=no
23397 fi
23398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23399 fi
23400
23401                 # restore the LIBS
23402                 LIBS="$ol_LIBS"
23403
23404 fi
23405 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23406 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23407
23408         if test $ol_cv_pthread_threads = yes ; then
23409                 ol_link_pthreads="-threads"
23410                 ol_link_threads=posix
23411         fi
23412 fi
23413
23414
23415                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23416 if test "$ol_link_threads" = no ; then
23417         # try -lpthreads -lmach -lexc -lc_r
23418         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23419 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23420 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23421   echo $ECHO_N "(cached) $ECHO_C" >&6
23422 else
23423
23424                 # save the flags
23425                 ol_LIBS="$LIBS"
23426                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23427
23428                 if test "$cross_compiling" = yes; then
23429   cat >conftest.$ac_ext <<_ACEOF
23430 /* confdefs.h.  */
23431 _ACEOF
23432 cat confdefs.h >>conftest.$ac_ext
23433 cat >>conftest.$ac_ext <<_ACEOF
23434 /* end confdefs.h.  */
23435
23436 /* pthread test headers */
23437 #include <pthread.h>
23438 #if HAVE_PTHREADS < 7
23439 #include <errno.h>
23440 #endif
23441 #ifndef NULL
23442 #define NULL (void*)0
23443 #endif
23444
23445 static void *task(p)
23446         void *p;
23447 {
23448         return (void *) (p == NULL);
23449 }
23450
23451 int
23452 main ()
23453 {
23454
23455         /* pthread test function */
23456 #ifndef PTHREAD_CREATE_DETACHED
23457 #define PTHREAD_CREATE_DETACHED 1
23458 #endif
23459         pthread_t t;
23460         int status;
23461         int detach = PTHREAD_CREATE_DETACHED;
23462
23463 #if HAVE_PTHREADS > 4
23464         /* Final pthreads */
23465         pthread_attr_t attr;
23466
23467         status = pthread_attr_init(&attr);
23468         if( status ) return status;
23469
23470 #if HAVE_PTHREADS < 7
23471         status = pthread_attr_setdetachstate(&attr, &detach);
23472         if( status < 0 ) status = errno;
23473 #else
23474         status = pthread_attr_setdetachstate(&attr, detach);
23475 #endif
23476         if( status ) return status;
23477         status = pthread_create( &t, &attr, task, NULL );
23478 #if HAVE_PTHREADS < 7
23479         if( status < 0 ) status = errno;
23480 #endif
23481         if( status ) return status;
23482 #else
23483         /* Draft 4 pthreads */
23484         status = pthread_create( &t, pthread_attr_default, task, NULL );
23485         if( status ) return errno;
23486
23487         /* give thread a chance to complete */
23488         /* it should remain joinable and hence detachable */
23489         sleep( 1 );
23490
23491         status = pthread_detach( &t );
23492         if( status ) return errno;
23493 #endif
23494
23495 #ifdef HAVE_LINUX_THREADS
23496         pthread_kill_other_threads_np();
23497 #endif
23498
23499         return 0;
23500
23501   ;
23502   return 0;
23503 }
23504 _ACEOF
23505 rm -f conftest.$ac_objext conftest$ac_exeext
23506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23507   (eval $ac_link) 2>conftest.er1
23508   ac_status=$?
23509   grep -v '^ *+' conftest.er1 >conftest.err
23510   rm -f conftest.er1
23511   cat conftest.err >&5
23512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513   (exit $ac_status); } &&
23514          { ac_try='test -z "$ac_c_werror_flag"
23515                          || test ! -s conftest.err'
23516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517   (eval $ac_try) 2>&5
23518   ac_status=$?
23519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520   (exit $ac_status); }; } &&
23521          { ac_try='test -s conftest$ac_exeext'
23522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23523   (eval $ac_try) 2>&5
23524   ac_status=$?
23525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526   (exit $ac_status); }; }; then
23527   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23528 else
23529   echo "$as_me: failed program was:" >&5
23530 sed 's/^/| /' conftest.$ac_ext >&5
23531
23532 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23533 fi
23534 rm -f conftest.err conftest.$ac_objext \
23535       conftest$ac_exeext conftest.$ac_ext
23536 else
23537   cat >conftest.$ac_ext <<_ACEOF
23538 /* confdefs.h.  */
23539 _ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h.  */
23543
23544 /* pthread test headers */
23545 #include <pthread.h>
23546 #if HAVE_PTHREADS < 7
23547 #include <errno.h>
23548 #endif
23549 #ifndef NULL
23550 #define NULL (void*)0
23551 #endif
23552
23553 static void *task(p)
23554         void *p;
23555 {
23556         return (void *) (p == NULL);
23557 }
23558
23559
23560 int main(argc, argv)
23561         int argc;
23562         char **argv;
23563 {
23564
23565         /* pthread test function */
23566 #ifndef PTHREAD_CREATE_DETACHED
23567 #define PTHREAD_CREATE_DETACHED 1
23568 #endif
23569         pthread_t t;
23570         int status;
23571         int detach = PTHREAD_CREATE_DETACHED;
23572
23573 #if HAVE_PTHREADS > 4
23574         /* Final pthreads */
23575         pthread_attr_t attr;
23576
23577         status = pthread_attr_init(&attr);
23578         if( status ) return status;
23579
23580 #if HAVE_PTHREADS < 7
23581         status = pthread_attr_setdetachstate(&attr, &detach);
23582         if( status < 0 ) status = errno;
23583 #else
23584         status = pthread_attr_setdetachstate(&attr, detach);
23585 #endif
23586         if( status ) return status;
23587         status = pthread_create( &t, &attr, task, NULL );
23588 #if HAVE_PTHREADS < 7
23589         if( status < 0 ) status = errno;
23590 #endif
23591         if( status ) return status;
23592 #else
23593         /* Draft 4 pthreads */
23594         status = pthread_create( &t, pthread_attr_default, task, NULL );
23595         if( status ) return errno;
23596
23597         /* give thread a chance to complete */
23598         /* it should remain joinable and hence detachable */
23599         sleep( 1 );
23600
23601         status = pthread_detach( &t );
23602         if( status ) return errno;
23603 #endif
23604
23605 #ifdef HAVE_LINUX_THREADS
23606         pthread_kill_other_threads_np();
23607 #endif
23608
23609         return 0;
23610
23611 }
23612
23613 _ACEOF
23614 rm -f conftest$ac_exeext
23615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23616   (eval $ac_link) 2>&5
23617   ac_status=$?
23618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23621   (eval $ac_try) 2>&5
23622   ac_status=$?
23623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624   (exit $ac_status); }; }; then
23625   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23626 else
23627   echo "$as_me: program exited with status $ac_status" >&5
23628 echo "$as_me: failed program was:" >&5
23629 sed 's/^/| /' conftest.$ac_ext >&5
23630
23631 ( exit $ac_status )
23632 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23633 fi
23634 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23635 fi
23636
23637                 # restore the LIBS
23638                 LIBS="$ol_LIBS"
23639
23640 fi
23641 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23642 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23643
23644         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23645                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23646                 ol_link_threads=posix
23647         fi
23648 fi
23649
23650                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23651 if test "$ol_link_threads" = no ; then
23652         # try -lpthreads -lmach -lexc
23653         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23654 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23655 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23656   echo $ECHO_N "(cached) $ECHO_C" >&6
23657 else
23658
23659                 # save the flags
23660                 ol_LIBS="$LIBS"
23661                 LIBS="-lpthreads -lmach -lexc $LIBS"
23662
23663                 if test "$cross_compiling" = yes; then
23664   cat >conftest.$ac_ext <<_ACEOF
23665 /* confdefs.h.  */
23666 _ACEOF
23667 cat confdefs.h >>conftest.$ac_ext
23668 cat >>conftest.$ac_ext <<_ACEOF
23669 /* end confdefs.h.  */
23670
23671 /* pthread test headers */
23672 #include <pthread.h>
23673 #if HAVE_PTHREADS < 7
23674 #include <errno.h>
23675 #endif
23676 #ifndef NULL
23677 #define NULL (void*)0
23678 #endif
23679
23680 static void *task(p)
23681         void *p;
23682 {
23683         return (void *) (p == NULL);
23684 }
23685
23686 int
23687 main ()
23688 {
23689
23690         /* pthread test function */
23691 #ifndef PTHREAD_CREATE_DETACHED
23692 #define PTHREAD_CREATE_DETACHED 1
23693 #endif
23694         pthread_t t;
23695         int status;
23696         int detach = PTHREAD_CREATE_DETACHED;
23697
23698 #if HAVE_PTHREADS > 4
23699         /* Final pthreads */
23700         pthread_attr_t attr;
23701
23702         status = pthread_attr_init(&attr);
23703         if( status ) return status;
23704
23705 #if HAVE_PTHREADS < 7
23706         status = pthread_attr_setdetachstate(&attr, &detach);
23707         if( status < 0 ) status = errno;
23708 #else
23709         status = pthread_attr_setdetachstate(&attr, detach);
23710 #endif
23711         if( status ) return status;
23712         status = pthread_create( &t, &attr, task, NULL );
23713 #if HAVE_PTHREADS < 7
23714         if( status < 0 ) status = errno;
23715 #endif
23716         if( status ) return status;
23717 #else
23718         /* Draft 4 pthreads */
23719         status = pthread_create( &t, pthread_attr_default, task, NULL );
23720         if( status ) return errno;
23721
23722         /* give thread a chance to complete */
23723         /* it should remain joinable and hence detachable */
23724         sleep( 1 );
23725
23726         status = pthread_detach( &t );
23727         if( status ) return errno;
23728 #endif
23729
23730 #ifdef HAVE_LINUX_THREADS
23731         pthread_kill_other_threads_np();
23732 #endif
23733
23734         return 0;
23735
23736   ;
23737   return 0;
23738 }
23739 _ACEOF
23740 rm -f conftest.$ac_objext conftest$ac_exeext
23741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23742   (eval $ac_link) 2>conftest.er1
23743   ac_status=$?
23744   grep -v '^ *+' conftest.er1 >conftest.err
23745   rm -f conftest.er1
23746   cat conftest.err >&5
23747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748   (exit $ac_status); } &&
23749          { ac_try='test -z "$ac_c_werror_flag"
23750                          || test ! -s conftest.err'
23751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23752   (eval $ac_try) 2>&5
23753   ac_status=$?
23754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755   (exit $ac_status); }; } &&
23756          { ac_try='test -s conftest$ac_exeext'
23757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23758   (eval $ac_try) 2>&5
23759   ac_status=$?
23760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761   (exit $ac_status); }; }; then
23762   ol_cv_pthread_lpthreads_lmach_lexc=yes
23763 else
23764   echo "$as_me: failed program was:" >&5
23765 sed 's/^/| /' conftest.$ac_ext >&5
23766
23767 ol_cv_pthread_lpthreads_lmach_lexc=no
23768 fi
23769 rm -f conftest.err conftest.$ac_objext \
23770       conftest$ac_exeext conftest.$ac_ext
23771 else
23772   cat >conftest.$ac_ext <<_ACEOF
23773 /* confdefs.h.  */
23774 _ACEOF
23775 cat confdefs.h >>conftest.$ac_ext
23776 cat >>conftest.$ac_ext <<_ACEOF
23777 /* end confdefs.h.  */
23778
23779 /* pthread test headers */
23780 #include <pthread.h>
23781 #if HAVE_PTHREADS < 7
23782 #include <errno.h>
23783 #endif
23784 #ifndef NULL
23785 #define NULL (void*)0
23786 #endif
23787
23788 static void *task(p)
23789         void *p;
23790 {
23791         return (void *) (p == NULL);
23792 }
23793
23794
23795 int main(argc, argv)
23796         int argc;
23797         char **argv;
23798 {
23799
23800         /* pthread test function */
23801 #ifndef PTHREAD_CREATE_DETACHED
23802 #define PTHREAD_CREATE_DETACHED 1
23803 #endif
23804         pthread_t t;
23805         int status;
23806         int detach = PTHREAD_CREATE_DETACHED;
23807
23808 #if HAVE_PTHREADS > 4
23809         /* Final pthreads */
23810         pthread_attr_t attr;
23811
23812         status = pthread_attr_init(&attr);
23813         if( status ) return status;
23814
23815 #if HAVE_PTHREADS < 7
23816         status = pthread_attr_setdetachstate(&attr, &detach);
23817         if( status < 0 ) status = errno;
23818 #else
23819         status = pthread_attr_setdetachstate(&attr, detach);
23820 #endif
23821         if( status ) return status;
23822         status = pthread_create( &t, &attr, task, NULL );
23823 #if HAVE_PTHREADS < 7
23824         if( status < 0 ) status = errno;
23825 #endif
23826         if( status ) return status;
23827 #else
23828         /* Draft 4 pthreads */
23829         status = pthread_create( &t, pthread_attr_default, task, NULL );
23830         if( status ) return errno;
23831
23832         /* give thread a chance to complete */
23833         /* it should remain joinable and hence detachable */
23834         sleep( 1 );
23835
23836         status = pthread_detach( &t );
23837         if( status ) return errno;
23838 #endif
23839
23840 #ifdef HAVE_LINUX_THREADS
23841         pthread_kill_other_threads_np();
23842 #endif
23843
23844         return 0;
23845
23846 }
23847
23848 _ACEOF
23849 rm -f conftest$ac_exeext
23850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23851   (eval $ac_link) 2>&5
23852   ac_status=$?
23853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23856   (eval $ac_try) 2>&5
23857   ac_status=$?
23858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859   (exit $ac_status); }; }; then
23860   ol_cv_pthread_lpthreads_lmach_lexc=yes
23861 else
23862   echo "$as_me: program exited with status $ac_status" >&5
23863 echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23865
23866 ( exit $ac_status )
23867 ol_cv_pthread_lpthreads_lmach_lexc=no
23868 fi
23869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23870 fi
23871
23872                 # restore the LIBS
23873                 LIBS="$ol_LIBS"
23874
23875 fi
23876 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23877 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23878
23879         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23880                 ol_link_pthreads="-lpthreads -lmach -lexc"
23881                 ol_link_threads=posix
23882         fi
23883 fi
23884
23885                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23886 if test "$ol_link_threads" = no ; then
23887         # try -lpthreads -lexc
23888         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23889 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23890 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23891   echo $ECHO_N "(cached) $ECHO_C" >&6
23892 else
23893
23894                 # save the flags
23895                 ol_LIBS="$LIBS"
23896                 LIBS="-lpthreads -lexc $LIBS"
23897
23898                 if test "$cross_compiling" = yes; then
23899   cat >conftest.$ac_ext <<_ACEOF
23900 /* confdefs.h.  */
23901 _ACEOF
23902 cat confdefs.h >>conftest.$ac_ext
23903 cat >>conftest.$ac_ext <<_ACEOF
23904 /* end confdefs.h.  */
23905
23906 /* pthread test headers */
23907 #include <pthread.h>
23908 #if HAVE_PTHREADS < 7
23909 #include <errno.h>
23910 #endif
23911 #ifndef NULL
23912 #define NULL (void*)0
23913 #endif
23914
23915 static void *task(p)
23916         void *p;
23917 {
23918         return (void *) (p == NULL);
23919 }
23920
23921 int
23922 main ()
23923 {
23924
23925         /* pthread test function */
23926 #ifndef PTHREAD_CREATE_DETACHED
23927 #define PTHREAD_CREATE_DETACHED 1
23928 #endif
23929         pthread_t t;
23930         int status;
23931         int detach = PTHREAD_CREATE_DETACHED;
23932
23933 #if HAVE_PTHREADS > 4
23934         /* Final pthreads */
23935         pthread_attr_t attr;
23936
23937         status = pthread_attr_init(&attr);
23938         if( status ) return status;
23939
23940 #if HAVE_PTHREADS < 7
23941         status = pthread_attr_setdetachstate(&attr, &detach);
23942         if( status < 0 ) status = errno;
23943 #else
23944         status = pthread_attr_setdetachstate(&attr, detach);
23945 #endif
23946         if( status ) return status;
23947         status = pthread_create( &t, &attr, task, NULL );
23948 #if HAVE_PTHREADS < 7
23949         if( status < 0 ) status = errno;
23950 #endif
23951         if( status ) return status;
23952 #else
23953         /* Draft 4 pthreads */
23954         status = pthread_create( &t, pthread_attr_default, task, NULL );
23955         if( status ) return errno;
23956
23957         /* give thread a chance to complete */
23958         /* it should remain joinable and hence detachable */
23959         sleep( 1 );
23960
23961         status = pthread_detach( &t );
23962         if( status ) return errno;
23963 #endif
23964
23965 #ifdef HAVE_LINUX_THREADS
23966         pthread_kill_other_threads_np();
23967 #endif
23968
23969         return 0;
23970
23971   ;
23972   return 0;
23973 }
23974 _ACEOF
23975 rm -f conftest.$ac_objext conftest$ac_exeext
23976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23977   (eval $ac_link) 2>conftest.er1
23978   ac_status=$?
23979   grep -v '^ *+' conftest.er1 >conftest.err
23980   rm -f conftest.er1
23981   cat conftest.err >&5
23982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983   (exit $ac_status); } &&
23984          { ac_try='test -z "$ac_c_werror_flag"
23985                          || test ! -s conftest.err'
23986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23987   (eval $ac_try) 2>&5
23988   ac_status=$?
23989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990   (exit $ac_status); }; } &&
23991          { ac_try='test -s conftest$ac_exeext'
23992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23993   (eval $ac_try) 2>&5
23994   ac_status=$?
23995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996   (exit $ac_status); }; }; then
23997   ol_cv_pthread_lpthreads_lexc=yes
23998 else
23999   echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24001
24002 ol_cv_pthread_lpthreads_lexc=no
24003 fi
24004 rm -f conftest.err conftest.$ac_objext \
24005       conftest$ac_exeext conftest.$ac_ext
24006 else
24007   cat >conftest.$ac_ext <<_ACEOF
24008 /* confdefs.h.  */
24009 _ACEOF
24010 cat confdefs.h >>conftest.$ac_ext
24011 cat >>conftest.$ac_ext <<_ACEOF
24012 /* end confdefs.h.  */
24013
24014 /* pthread test headers */
24015 #include <pthread.h>
24016 #if HAVE_PTHREADS < 7
24017 #include <errno.h>
24018 #endif
24019 #ifndef NULL
24020 #define NULL (void*)0
24021 #endif
24022
24023 static void *task(p)
24024         void *p;
24025 {
24026         return (void *) (p == NULL);
24027 }
24028
24029
24030 int main(argc, argv)
24031         int argc;
24032         char **argv;
24033 {
24034
24035         /* pthread test function */
24036 #ifndef PTHREAD_CREATE_DETACHED
24037 #define PTHREAD_CREATE_DETACHED 1
24038 #endif
24039         pthread_t t;
24040         int status;
24041         int detach = PTHREAD_CREATE_DETACHED;
24042
24043 #if HAVE_PTHREADS > 4
24044         /* Final pthreads */
24045         pthread_attr_t attr;
24046
24047         status = pthread_attr_init(&attr);
24048         if( status ) return status;
24049
24050 #if HAVE_PTHREADS < 7
24051         status = pthread_attr_setdetachstate(&attr, &detach);
24052         if( status < 0 ) status = errno;
24053 #else
24054         status = pthread_attr_setdetachstate(&attr, detach);
24055 #endif
24056         if( status ) return status;
24057         status = pthread_create( &t, &attr, task, NULL );
24058 #if HAVE_PTHREADS < 7
24059         if( status < 0 ) status = errno;
24060 #endif
24061         if( status ) return status;
24062 #else
24063         /* Draft 4 pthreads */
24064         status = pthread_create( &t, pthread_attr_default, task, NULL );
24065         if( status ) return errno;
24066
24067         /* give thread a chance to complete */
24068         /* it should remain joinable and hence detachable */
24069         sleep( 1 );
24070
24071         status = pthread_detach( &t );
24072         if( status ) return errno;
24073 #endif
24074
24075 #ifdef HAVE_LINUX_THREADS
24076         pthread_kill_other_threads_np();
24077 #endif
24078
24079         return 0;
24080
24081 }
24082
24083 _ACEOF
24084 rm -f conftest$ac_exeext
24085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24086   (eval $ac_link) 2>&5
24087   ac_status=$?
24088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24091   (eval $ac_try) 2>&5
24092   ac_status=$?
24093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094   (exit $ac_status); }; }; then
24095   ol_cv_pthread_lpthreads_lexc=yes
24096 else
24097   echo "$as_me: program exited with status $ac_status" >&5
24098 echo "$as_me: failed program was:" >&5
24099 sed 's/^/| /' conftest.$ac_ext >&5
24100
24101 ( exit $ac_status )
24102 ol_cv_pthread_lpthreads_lexc=no
24103 fi
24104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24105 fi
24106
24107                 # restore the LIBS
24108                 LIBS="$ol_LIBS"
24109
24110 fi
24111 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24112 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
24113
24114         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24115                 ol_link_pthreads="-lpthreads -lexc"
24116                 ol_link_threads=posix
24117         fi
24118 fi
24119
24120
24121                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24122 if test "$ol_link_threads" = no ; then
24123         # try -lpthreads
24124         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24125 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
24126 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24127   echo $ECHO_N "(cached) $ECHO_C" >&6
24128 else
24129
24130                 # save the flags
24131                 ol_LIBS="$LIBS"
24132                 LIBS="-lpthreads $LIBS"
24133
24134                 if test "$cross_compiling" = yes; then
24135   cat >conftest.$ac_ext <<_ACEOF
24136 /* confdefs.h.  */
24137 _ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h.  */
24141
24142 /* pthread test headers */
24143 #include <pthread.h>
24144 #if HAVE_PTHREADS < 7
24145 #include <errno.h>
24146 #endif
24147 #ifndef NULL
24148 #define NULL (void*)0
24149 #endif
24150
24151 static void *task(p)
24152         void *p;
24153 {
24154         return (void *) (p == NULL);
24155 }
24156
24157 int
24158 main ()
24159 {
24160
24161         /* pthread test function */
24162 #ifndef PTHREAD_CREATE_DETACHED
24163 #define PTHREAD_CREATE_DETACHED 1
24164 #endif
24165         pthread_t t;
24166         int status;
24167         int detach = PTHREAD_CREATE_DETACHED;
24168
24169 #if HAVE_PTHREADS > 4
24170         /* Final pthreads */
24171         pthread_attr_t attr;
24172
24173         status = pthread_attr_init(&attr);
24174         if( status ) return status;
24175
24176 #if HAVE_PTHREADS < 7
24177         status = pthread_attr_setdetachstate(&attr, &detach);
24178         if( status < 0 ) status = errno;
24179 #else
24180         status = pthread_attr_setdetachstate(&attr, detach);
24181 #endif
24182         if( status ) return status;
24183         status = pthread_create( &t, &attr, task, NULL );
24184 #if HAVE_PTHREADS < 7
24185         if( status < 0 ) status = errno;
24186 #endif
24187         if( status ) return status;
24188 #else
24189         /* Draft 4 pthreads */
24190         status = pthread_create( &t, pthread_attr_default, task, NULL );
24191         if( status ) return errno;
24192
24193         /* give thread a chance to complete */
24194         /* it should remain joinable and hence detachable */
24195         sleep( 1 );
24196
24197         status = pthread_detach( &t );
24198         if( status ) return errno;
24199 #endif
24200
24201 #ifdef HAVE_LINUX_THREADS
24202         pthread_kill_other_threads_np();
24203 #endif
24204
24205         return 0;
24206
24207   ;
24208   return 0;
24209 }
24210 _ACEOF
24211 rm -f conftest.$ac_objext conftest$ac_exeext
24212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24213   (eval $ac_link) 2>conftest.er1
24214   ac_status=$?
24215   grep -v '^ *+' conftest.er1 >conftest.err
24216   rm -f conftest.er1
24217   cat conftest.err >&5
24218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219   (exit $ac_status); } &&
24220          { ac_try='test -z "$ac_c_werror_flag"
24221                          || test ! -s conftest.err'
24222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24223   (eval $ac_try) 2>&5
24224   ac_status=$?
24225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226   (exit $ac_status); }; } &&
24227          { ac_try='test -s conftest$ac_exeext'
24228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24229   (eval $ac_try) 2>&5
24230   ac_status=$?
24231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232   (exit $ac_status); }; }; then
24233   ol_cv_pthread_lib_lpthreads=yes
24234 else
24235   echo "$as_me: failed program was:" >&5
24236 sed 's/^/| /' conftest.$ac_ext >&5
24237
24238 ol_cv_pthread_lib_lpthreads=no
24239 fi
24240 rm -f conftest.err conftest.$ac_objext \
24241       conftest$ac_exeext conftest.$ac_ext
24242 else
24243   cat >conftest.$ac_ext <<_ACEOF
24244 /* confdefs.h.  */
24245 _ACEOF
24246 cat confdefs.h >>conftest.$ac_ext
24247 cat >>conftest.$ac_ext <<_ACEOF
24248 /* end confdefs.h.  */
24249
24250 /* pthread test headers */
24251 #include <pthread.h>
24252 #if HAVE_PTHREADS < 7
24253 #include <errno.h>
24254 #endif
24255 #ifndef NULL
24256 #define NULL (void*)0
24257 #endif
24258
24259 static void *task(p)
24260         void *p;
24261 {
24262         return (void *) (p == NULL);
24263 }
24264
24265
24266 int main(argc, argv)
24267         int argc;
24268         char **argv;
24269 {
24270
24271         /* pthread test function */
24272 #ifndef PTHREAD_CREATE_DETACHED
24273 #define PTHREAD_CREATE_DETACHED 1
24274 #endif
24275         pthread_t t;
24276         int status;
24277         int detach = PTHREAD_CREATE_DETACHED;
24278
24279 #if HAVE_PTHREADS > 4
24280         /* Final pthreads */
24281         pthread_attr_t attr;
24282
24283         status = pthread_attr_init(&attr);
24284         if( status ) return status;
24285
24286 #if HAVE_PTHREADS < 7
24287         status = pthread_attr_setdetachstate(&attr, &detach);
24288         if( status < 0 ) status = errno;
24289 #else
24290         status = pthread_attr_setdetachstate(&attr, detach);
24291 #endif
24292         if( status ) return status;
24293         status = pthread_create( &t, &attr, task, NULL );
24294 #if HAVE_PTHREADS < 7
24295         if( status < 0 ) status = errno;
24296 #endif
24297         if( status ) return status;
24298 #else
24299         /* Draft 4 pthreads */
24300         status = pthread_create( &t, pthread_attr_default, task, NULL );
24301         if( status ) return errno;
24302
24303         /* give thread a chance to complete */
24304         /* it should remain joinable and hence detachable */
24305         sleep( 1 );
24306
24307         status = pthread_detach( &t );
24308         if( status ) return errno;
24309 #endif
24310
24311 #ifdef HAVE_LINUX_THREADS
24312         pthread_kill_other_threads_np();
24313 #endif
24314
24315         return 0;
24316
24317 }
24318
24319 _ACEOF
24320 rm -f conftest$ac_exeext
24321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24322   (eval $ac_link) 2>&5
24323   ac_status=$?
24324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327   (eval $ac_try) 2>&5
24328   ac_status=$?
24329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330   (exit $ac_status); }; }; then
24331   ol_cv_pthread_lib_lpthreads=yes
24332 else
24333   echo "$as_me: program exited with status $ac_status" >&5
24334 echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24336
24337 ( exit $ac_status )
24338 ol_cv_pthread_lib_lpthreads=no
24339 fi
24340 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24341 fi
24342
24343                 # restore the LIBS
24344                 LIBS="$ol_LIBS"
24345
24346 fi
24347 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24348 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24349
24350         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24351                 ol_link_pthreads="-lpthreads"
24352                 ol_link_threads=posix
24353         fi
24354 fi
24355
24356
24357                 if test $ol_link_threads != no ; then
24358                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24359
24360                                                 save_CPPFLAGS="$CPPFLAGS"
24361                         save_LIBS="$LIBS"
24362                         LIBS="$LTHREAD_LIBS $LIBS"
24363
24364
24365
24366
24367 for ac_func in sched_yield pthread_yield thr_yield
24368 do
24369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24370 echo "$as_me:$LINENO: checking for $ac_func" >&5
24371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24372 if eval "test \"\${$as_ac_var+set}\" = set"; then
24373   echo $ECHO_N "(cached) $ECHO_C" >&6
24374 else
24375   cat >conftest.$ac_ext <<_ACEOF
24376 /* confdefs.h.  */
24377 _ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h.  */
24381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24383 #define $ac_func innocuous_$ac_func
24384
24385 /* System header to define __stub macros and hopefully few prototypes,
24386     which can conflict with char $ac_func (); below.
24387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24388     <limits.h> exists even on freestanding compilers.  */
24389
24390 #ifdef __STDC__
24391 # include <limits.h>
24392 #else
24393 # include <assert.h>
24394 #endif
24395
24396 #undef $ac_func
24397
24398 /* Override any gcc2 internal prototype to avoid an error.  */
24399 #ifdef __cplusplus
24400 extern "C"
24401 {
24402 #endif
24403 /* We use char because int might match the return type of a gcc2
24404    builtin and then its argument prototype would still apply.  */
24405 char $ac_func ();
24406 /* The GNU C library defines this for functions which it implements
24407     to always fail with ENOSYS.  Some functions are actually named
24408     something starting with __ and the normal name is an alias.  */
24409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24410 choke me
24411 #else
24412 char (*f) () = $ac_func;
24413 #endif
24414 #ifdef __cplusplus
24415 }
24416 #endif
24417
24418 int
24419 main ()
24420 {
24421 return f != $ac_func;
24422   ;
24423   return 0;
24424 }
24425 _ACEOF
24426 rm -f conftest.$ac_objext conftest$ac_exeext
24427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24428   (eval $ac_link) 2>conftest.er1
24429   ac_status=$?
24430   grep -v '^ *+' conftest.er1 >conftest.err
24431   rm -f conftest.er1
24432   cat conftest.err >&5
24433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434   (exit $ac_status); } &&
24435          { ac_try='test -z "$ac_c_werror_flag"
24436                          || test ! -s conftest.err'
24437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24438   (eval $ac_try) 2>&5
24439   ac_status=$?
24440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441   (exit $ac_status); }; } &&
24442          { ac_try='test -s conftest$ac_exeext'
24443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24444   (eval $ac_try) 2>&5
24445   ac_status=$?
24446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447   (exit $ac_status); }; }; then
24448   eval "$as_ac_var=yes"
24449 else
24450   echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24452
24453 eval "$as_ac_var=no"
24454 fi
24455 rm -f conftest.err conftest.$ac_objext \
24456       conftest$ac_exeext conftest.$ac_ext
24457 fi
24458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24460 if test `eval echo '${'$as_ac_var'}'` = yes; then
24461   cat >>confdefs.h <<_ACEOF
24462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24463 _ACEOF
24464
24465 fi
24466 done
24467
24468
24469                         if test $ac_cv_func_sched_yield = no &&
24470                            test $ac_cv_func_pthread_yield = no &&
24471                            test $ac_cv_func_thr_yield = no ; then
24472                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24473 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24474 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24475   echo $ECHO_N "(cached) $ECHO_C" >&6
24476 else
24477   ac_check_lib_save_LIBS=$LIBS
24478 LIBS="-lrt  $LIBS"
24479 cat >conftest.$ac_ext <<_ACEOF
24480 /* confdefs.h.  */
24481 _ACEOF
24482 cat confdefs.h >>conftest.$ac_ext
24483 cat >>conftest.$ac_ext <<_ACEOF
24484 /* end confdefs.h.  */
24485
24486 /* Override any gcc2 internal prototype to avoid an error.  */
24487 #ifdef __cplusplus
24488 extern "C"
24489 #endif
24490 /* We use char because int might match the return type of a gcc2
24491    builtin and then its argument prototype would still apply.  */
24492 char sched_yield ();
24493 int
24494 main ()
24495 {
24496 sched_yield ();
24497   ;
24498   return 0;
24499 }
24500 _ACEOF
24501 rm -f conftest.$ac_objext conftest$ac_exeext
24502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24503   (eval $ac_link) 2>conftest.er1
24504   ac_status=$?
24505   grep -v '^ *+' conftest.er1 >conftest.err
24506   rm -f conftest.er1
24507   cat conftest.err >&5
24508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509   (exit $ac_status); } &&
24510          { ac_try='test -z "$ac_c_werror_flag"
24511                          || test ! -s conftest.err'
24512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24513   (eval $ac_try) 2>&5
24514   ac_status=$?
24515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516   (exit $ac_status); }; } &&
24517          { ac_try='test -s conftest$ac_exeext'
24518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24519   (eval $ac_try) 2>&5
24520   ac_status=$?
24521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522   (exit $ac_status); }; }; then
24523   ac_cv_lib_rt_sched_yield=yes
24524 else
24525   echo "$as_me: failed program was:" >&5
24526 sed 's/^/| /' conftest.$ac_ext >&5
24527
24528 ac_cv_lib_rt_sched_yield=no
24529 fi
24530 rm -f conftest.err conftest.$ac_objext \
24531       conftest$ac_exeext conftest.$ac_ext
24532 LIBS=$ac_check_lib_save_LIBS
24533 fi
24534 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24535 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24536 if test $ac_cv_lib_rt_sched_yield = yes; then
24537   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24538
24539 cat >>confdefs.h <<\_ACEOF
24540 #define HAVE_SCHED_YIELD 1
24541 _ACEOF
24542
24543                                         ac_cv_func_sched_yield=yes
24544 else
24545   ac_cv_func_sched_yield=no
24546 fi
24547
24548                         fi
24549                         if test $ac_cv_func_sched_yield = no &&
24550                            test $ac_cv_func_pthread_yield = no &&
24551                            test "$ac_cv_func_thr_yield" = no ; then
24552                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24553 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24554                         fi
24555
24556
24557 for ac_func in pthread_kill
24558 do
24559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24560 echo "$as_me:$LINENO: checking for $ac_func" >&5
24561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24562 if eval "test \"\${$as_ac_var+set}\" = set"; then
24563   echo $ECHO_N "(cached) $ECHO_C" >&6
24564 else
24565   cat >conftest.$ac_ext <<_ACEOF
24566 /* confdefs.h.  */
24567 _ACEOF
24568 cat confdefs.h >>conftest.$ac_ext
24569 cat >>conftest.$ac_ext <<_ACEOF
24570 /* end confdefs.h.  */
24571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24573 #define $ac_func innocuous_$ac_func
24574
24575 /* System header to define __stub macros and hopefully few prototypes,
24576     which can conflict with char $ac_func (); below.
24577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24578     <limits.h> exists even on freestanding compilers.  */
24579
24580 #ifdef __STDC__
24581 # include <limits.h>
24582 #else
24583 # include <assert.h>
24584 #endif
24585
24586 #undef $ac_func
24587
24588 /* Override any gcc2 internal prototype to avoid an error.  */
24589 #ifdef __cplusplus
24590 extern "C"
24591 {
24592 #endif
24593 /* We use char because int might match the return type of a gcc2
24594    builtin and then its argument prototype would still apply.  */
24595 char $ac_func ();
24596 /* The GNU C library defines this for functions which it implements
24597     to always fail with ENOSYS.  Some functions are actually named
24598     something starting with __ and the normal name is an alias.  */
24599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24600 choke me
24601 #else
24602 char (*f) () = $ac_func;
24603 #endif
24604 #ifdef __cplusplus
24605 }
24606 #endif
24607
24608 int
24609 main ()
24610 {
24611 return f != $ac_func;
24612   ;
24613   return 0;
24614 }
24615 _ACEOF
24616 rm -f conftest.$ac_objext conftest$ac_exeext
24617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24618   (eval $ac_link) 2>conftest.er1
24619   ac_status=$?
24620   grep -v '^ *+' conftest.er1 >conftest.err
24621   rm -f conftest.er1
24622   cat conftest.err >&5
24623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624   (exit $ac_status); } &&
24625          { ac_try='test -z "$ac_c_werror_flag"
24626                          || test ! -s conftest.err'
24627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24628   (eval $ac_try) 2>&5
24629   ac_status=$?
24630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631   (exit $ac_status); }; } &&
24632          { ac_try='test -s conftest$ac_exeext'
24633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24634   (eval $ac_try) 2>&5
24635   ac_status=$?
24636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637   (exit $ac_status); }; }; then
24638   eval "$as_ac_var=yes"
24639 else
24640   echo "$as_me: failed program was:" >&5
24641 sed 's/^/| /' conftest.$ac_ext >&5
24642
24643 eval "$as_ac_var=no"
24644 fi
24645 rm -f conftest.err conftest.$ac_objext \
24646       conftest$ac_exeext conftest.$ac_ext
24647 fi
24648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24650 if test `eval echo '${'$as_ac_var'}'` = yes; then
24651   cat >>confdefs.h <<_ACEOF
24652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24653 _ACEOF
24654
24655 fi
24656 done
24657
24658
24659                                                                         echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24660 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
24661 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24662   echo $ECHO_N "(cached) $ECHO_C" >&6
24663 else
24664
24665                                                                 cat >conftest.$ac_ext <<_ACEOF
24666 /* confdefs.h.  */
24667 _ACEOF
24668 cat confdefs.h >>conftest.$ac_ext
24669 cat >>conftest.$ac_ext <<_ACEOF
24670 /* end confdefs.h.  */
24671
24672 #include <pthread.h>
24673 pthread_rwlock_t rwlock;
24674
24675 int
24676 main ()
24677 {
24678 pthread_rwlock_destroy(&rwlock);
24679   ;
24680   return 0;
24681 }
24682 _ACEOF
24683 rm -f conftest.$ac_objext conftest$ac_exeext
24684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24685   (eval $ac_link) 2>conftest.er1
24686   ac_status=$?
24687   grep -v '^ *+' conftest.er1 >conftest.err
24688   rm -f conftest.er1
24689   cat conftest.err >&5
24690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691   (exit $ac_status); } &&
24692          { ac_try='test -z "$ac_c_werror_flag"
24693                          || test ! -s conftest.err'
24694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24695   (eval $ac_try) 2>&5
24696   ac_status=$?
24697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698   (exit $ac_status); }; } &&
24699          { ac_try='test -s conftest$ac_exeext'
24700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24701   (eval $ac_try) 2>&5
24702   ac_status=$?
24703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704   (exit $ac_status); }; }; then
24705   ol_cv_func_pthread_rwlock_destroy=yes
24706 else
24707   echo "$as_me: failed program was:" >&5
24708 sed 's/^/| /' conftest.$ac_ext >&5
24709
24710 ol_cv_func_pthread_rwlock_destroy=no
24711 fi
24712 rm -f conftest.err conftest.$ac_objext \
24713       conftest$ac_exeext conftest.$ac_ext
24714
24715 fi
24716 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24717 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
24718                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24719
24720 cat >>confdefs.h <<\_ACEOF
24721 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24722 _ACEOF
24723
24724                         fi
24725
24726                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24727 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24728 if test "${ol_cv_func_pthread_detach+set}" = set; then
24729   echo $ECHO_N "(cached) $ECHO_C" >&6
24730 else
24731
24732                                                                 cat >conftest.$ac_ext <<_ACEOF
24733 /* confdefs.h.  */
24734 _ACEOF
24735 cat confdefs.h >>conftest.$ac_ext
24736 cat >>conftest.$ac_ext <<_ACEOF
24737 /* end confdefs.h.  */
24738
24739 #include <pthread.h>
24740 #ifndef NULL
24741 #define NULL (void*)0
24742 #endif
24743
24744 int
24745 main ()
24746 {
24747 pthread_detach(NULL);
24748   ;
24749   return 0;
24750 }
24751 _ACEOF
24752 rm -f conftest.$ac_objext conftest$ac_exeext
24753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24754   (eval $ac_link) 2>conftest.er1
24755   ac_status=$?
24756   grep -v '^ *+' conftest.er1 >conftest.err
24757   rm -f conftest.er1
24758   cat conftest.err >&5
24759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760   (exit $ac_status); } &&
24761          { ac_try='test -z "$ac_c_werror_flag"
24762                          || test ! -s conftest.err'
24763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24764   (eval $ac_try) 2>&5
24765   ac_status=$?
24766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767   (exit $ac_status); }; } &&
24768          { ac_try='test -s conftest$ac_exeext'
24769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24770   (eval $ac_try) 2>&5
24771   ac_status=$?
24772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773   (exit $ac_status); }; }; then
24774   ol_cv_func_pthread_detach=yes
24775 else
24776   echo "$as_me: failed program was:" >&5
24777 sed 's/^/| /' conftest.$ac_ext >&5
24778
24779 ol_cv_func_pthread_detach=no
24780 fi
24781 rm -f conftest.err conftest.$ac_objext \
24782       conftest$ac_exeext conftest.$ac_ext
24783
24784 fi
24785 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24786 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24787
24788                         if test $ol_cv_func_pthread_detach = no ; then
24789                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24790 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24791    { (exit 1); exit 1; }; }
24792                         fi
24793
24794
24795 cat >>confdefs.h <<\_ACEOF
24796 #define HAVE_PTHREAD_DETACH 1
24797 _ACEOF
24798
24799
24800
24801
24802
24803
24804 for ac_func in \
24805                                 pthread_setconcurrency \
24806                                 pthread_getconcurrency \
24807                                 thr_setconcurrency \
24808                                 thr_getconcurrency \
24809
24810 do
24811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24812 echo "$as_me:$LINENO: checking for $ac_func" >&5
24813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24814 if eval "test \"\${$as_ac_var+set}\" = set"; then
24815   echo $ECHO_N "(cached) $ECHO_C" >&6
24816 else
24817   cat >conftest.$ac_ext <<_ACEOF
24818 /* confdefs.h.  */
24819 _ACEOF
24820 cat confdefs.h >>conftest.$ac_ext
24821 cat >>conftest.$ac_ext <<_ACEOF
24822 /* end confdefs.h.  */
24823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24825 #define $ac_func innocuous_$ac_func
24826
24827 /* System header to define __stub macros and hopefully few prototypes,
24828     which can conflict with char $ac_func (); below.
24829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24830     <limits.h> exists even on freestanding compilers.  */
24831
24832 #ifdef __STDC__
24833 # include <limits.h>
24834 #else
24835 # include <assert.h>
24836 #endif
24837
24838 #undef $ac_func
24839
24840 /* Override any gcc2 internal prototype to avoid an error.  */
24841 #ifdef __cplusplus
24842 extern "C"
24843 {
24844 #endif
24845 /* We use char because int might match the return type of a gcc2
24846    builtin and then its argument prototype would still apply.  */
24847 char $ac_func ();
24848 /* The GNU C library defines this for functions which it implements
24849     to always fail with ENOSYS.  Some functions are actually named
24850     something starting with __ and the normal name is an alias.  */
24851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24852 choke me
24853 #else
24854 char (*f) () = $ac_func;
24855 #endif
24856 #ifdef __cplusplus
24857 }
24858 #endif
24859
24860 int
24861 main ()
24862 {
24863 return f != $ac_func;
24864   ;
24865   return 0;
24866 }
24867 _ACEOF
24868 rm -f conftest.$ac_objext conftest$ac_exeext
24869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24870   (eval $ac_link) 2>conftest.er1
24871   ac_status=$?
24872   grep -v '^ *+' conftest.er1 >conftest.err
24873   rm -f conftest.er1
24874   cat conftest.err >&5
24875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876   (exit $ac_status); } &&
24877          { ac_try='test -z "$ac_c_werror_flag"
24878                          || test ! -s conftest.err'
24879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24880   (eval $ac_try) 2>&5
24881   ac_status=$?
24882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883   (exit $ac_status); }; } &&
24884          { ac_try='test -s conftest$ac_exeext'
24885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886   (eval $ac_try) 2>&5
24887   ac_status=$?
24888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889   (exit $ac_status); }; }; then
24890   eval "$as_ac_var=yes"
24891 else
24892   echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24894
24895 eval "$as_ac_var=no"
24896 fi
24897 rm -f conftest.err conftest.$ac_objext \
24898       conftest$ac_exeext conftest.$ac_ext
24899 fi
24900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24902 if test `eval echo '${'$as_ac_var'}'` = yes; then
24903   cat >>confdefs.h <<_ACEOF
24904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24905 _ACEOF
24906
24907 fi
24908 done
24909
24910
24911
24912
24913 for ac_func in pthread_kill_other_threads_np
24914 do
24915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24916 echo "$as_me:$LINENO: checking for $ac_func" >&5
24917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24918 if eval "test \"\${$as_ac_var+set}\" = set"; then
24919   echo $ECHO_N "(cached) $ECHO_C" >&6
24920 else
24921   cat >conftest.$ac_ext <<_ACEOF
24922 /* confdefs.h.  */
24923 _ACEOF
24924 cat confdefs.h >>conftest.$ac_ext
24925 cat >>conftest.$ac_ext <<_ACEOF
24926 /* end confdefs.h.  */
24927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24929 #define $ac_func innocuous_$ac_func
24930
24931 /* System header to define __stub macros and hopefully few prototypes,
24932     which can conflict with char $ac_func (); below.
24933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24934     <limits.h> exists even on freestanding compilers.  */
24935
24936 #ifdef __STDC__
24937 # include <limits.h>
24938 #else
24939 # include <assert.h>
24940 #endif
24941
24942 #undef $ac_func
24943
24944 /* Override any gcc2 internal prototype to avoid an error.  */
24945 #ifdef __cplusplus
24946 extern "C"
24947 {
24948 #endif
24949 /* We use char because int might match the return type of a gcc2
24950    builtin and then its argument prototype would still apply.  */
24951 char $ac_func ();
24952 /* The GNU C library defines this for functions which it implements
24953     to always fail with ENOSYS.  Some functions are actually named
24954     something starting with __ and the normal name is an alias.  */
24955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24956 choke me
24957 #else
24958 char (*f) () = $ac_func;
24959 #endif
24960 #ifdef __cplusplus
24961 }
24962 #endif
24963
24964 int
24965 main ()
24966 {
24967 return f != $ac_func;
24968   ;
24969   return 0;
24970 }
24971 _ACEOF
24972 rm -f conftest.$ac_objext conftest$ac_exeext
24973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24974   (eval $ac_link) 2>conftest.er1
24975   ac_status=$?
24976   grep -v '^ *+' conftest.er1 >conftest.err
24977   rm -f conftest.er1
24978   cat conftest.err >&5
24979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980   (exit $ac_status); } &&
24981          { ac_try='test -z "$ac_c_werror_flag"
24982                          || test ! -s conftest.err'
24983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24984   (eval $ac_try) 2>&5
24985   ac_status=$?
24986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987   (exit $ac_status); }; } &&
24988          { ac_try='test -s conftest$ac_exeext'
24989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990   (eval $ac_try) 2>&5
24991   ac_status=$?
24992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993   (exit $ac_status); }; }; then
24994   eval "$as_ac_var=yes"
24995 else
24996   echo "$as_me: failed program was:" >&5
24997 sed 's/^/| /' conftest.$ac_ext >&5
24998
24999 eval "$as_ac_var=no"
25000 fi
25001 rm -f conftest.err conftest.$ac_objext \
25002       conftest$ac_exeext conftest.$ac_ext
25003 fi
25004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25006 if test `eval echo '${'$as_ac_var'}'` = yes; then
25007   cat >>confdefs.h <<_ACEOF
25008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25009 _ACEOF
25010
25011 fi
25012 done
25013
25014         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25015 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
25016 if test "${ol_cv_sys_linux_threads+set}" = set; then
25017   echo $ECHO_N "(cached) $ECHO_C" >&6
25018 else
25019   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25020 fi
25021 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25022 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
25023
25024
25025
25026
25027         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25028 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
25029 if test "${ol_cv_linux_threads+set}" = set; then
25030   echo $ECHO_N "(cached) $ECHO_C" >&6
25031 else
25032
25033                 if test $ol_cv_header_linux_threads = yes &&
25034                    test $ol_cv_sys_linux_threads = yes; then
25035                         ol_cv_linux_threads=yes
25036                 elif test $ol_cv_header_linux_threads = no &&
25037                      test $ol_cv_sys_linux_threads = no; then
25038                         ol_cv_linux_threads=no
25039                 else
25040                         ol_cv_linux_threads=error
25041                 fi
25042
25043 fi
25044 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25045 echo "${ECHO_T}$ol_cv_linux_threads" >&6
25046
25047
25048                         if test $ol_cv_linux_threads = error; then
25049                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25050 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25051    { (exit 1); exit 1; }; };
25052                         fi
25053
25054                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25055 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
25056 if test "${ol_cv_pthread_create_works+set}" = set; then
25057   echo $ECHO_N "(cached) $ECHO_C" >&6
25058 else
25059
25060                         if test "$cross_compiling" = yes; then
25061                                 ol_cv_pthread_create_works=yes
25062 else
25063   cat >conftest.$ac_ext <<_ACEOF
25064 /* confdefs.h.  */
25065 _ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h.  */
25069
25070 /* pthread test headers */
25071 #include <pthread.h>
25072 #if HAVE_PTHREADS < 7
25073 #include <errno.h>
25074 #endif
25075 #ifndef NULL
25076 #define NULL (void*)0
25077 #endif
25078
25079 static void *task(p)
25080         void *p;
25081 {
25082         return (void *) (p == NULL);
25083 }
25084
25085
25086 int main(argc, argv)
25087         int argc;
25088         char **argv;
25089 {
25090
25091         /* pthread test function */
25092 #ifndef PTHREAD_CREATE_DETACHED
25093 #define PTHREAD_CREATE_DETACHED 1
25094 #endif
25095         pthread_t t;
25096         int status;
25097         int detach = PTHREAD_CREATE_DETACHED;
25098
25099 #if HAVE_PTHREADS > 4
25100         /* Final pthreads */
25101         pthread_attr_t attr;
25102
25103         status = pthread_attr_init(&attr);
25104         if( status ) return status;
25105
25106 #if HAVE_PTHREADS < 7
25107         status = pthread_attr_setdetachstate(&attr, &detach);
25108         if( status < 0 ) status = errno;
25109 #else
25110         status = pthread_attr_setdetachstate(&attr, detach);
25111 #endif
25112         if( status ) return status;
25113         status = pthread_create( &t, &attr, task, NULL );
25114 #if HAVE_PTHREADS < 7
25115         if( status < 0 ) status = errno;
25116 #endif
25117         if( status ) return status;
25118 #else
25119         /* Draft 4 pthreads */
25120         status = pthread_create( &t, pthread_attr_default, task, NULL );
25121         if( status ) return errno;
25122
25123         /* give thread a chance to complete */
25124         /* it should remain joinable and hence detachable */
25125         sleep( 1 );
25126
25127         status = pthread_detach( &t );
25128         if( status ) return errno;
25129 #endif
25130
25131 #ifdef HAVE_LINUX_THREADS
25132         pthread_kill_other_threads_np();
25133 #endif
25134
25135         return 0;
25136
25137 }
25138
25139 _ACEOF
25140 rm -f conftest$ac_exeext
25141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25142   (eval $ac_link) 2>&5
25143   ac_status=$?
25144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25147   (eval $ac_try) 2>&5
25148   ac_status=$?
25149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150   (exit $ac_status); }; }; then
25151   ol_cv_pthread_create_works=yes
25152 else
25153   echo "$as_me: program exited with status $ac_status" >&5
25154 echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25156
25157 ( exit $ac_status )
25158 ol_cv_pthread_create_works=no
25159 fi
25160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25161 fi
25162 fi
25163 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25164 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
25165
25166                         if test $ol_cv_pthread_create_works = no ; then
25167                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25168 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25169    { (exit 1); exit 1; }; }
25170                         fi
25171
25172                         ol_replace_broken_yield=no
25173
25174                         if test $ol_replace_broken_yield = yes ; then
25175
25176 cat >>confdefs.h <<\_ACEOF
25177 #define REPLACE_BROKEN_YIELD 1
25178 _ACEOF
25179
25180                         fi
25181
25182                                                 if test $ol_with_yielding_select = auto ; then
25183                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25184 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
25185 if test "${ol_cv_pthread_select_yields+set}" = set; then
25186   echo $ECHO_N "(cached) $ECHO_C" >&6
25187 else
25188
25189                                 if test "$cross_compiling" = yes; then
25190   ol_cv_pthread_select_yields=cross
25191 else
25192   cat >conftest.$ac_ext <<_ACEOF
25193 /* confdefs.h.  */
25194 _ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h.  */
25198
25199 #include <sys/types.h>
25200 #include <sys/time.h>
25201 #include <unistd.h>
25202 #include <pthread.h>
25203 #ifndef NULL
25204 #define NULL (void*) 0
25205 #endif
25206
25207 static int fildes[2];
25208
25209 static void *task(p)
25210         void *p;
25211 {
25212         int i;
25213         struct timeval tv;
25214
25215         fd_set rfds;
25216
25217         tv.tv_sec=10;
25218         tv.tv_usec=0;
25219
25220         FD_ZERO(&rfds);
25221         FD_SET(fildes[0], &rfds);
25222
25223         /* we're not interested in any fds */
25224         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25225
25226         if(i < 0) {
25227                 perror("select");
25228                 exit(10);
25229         }
25230
25231         exit(0); /* if we exit here, the select blocked the whole process */
25232 }
25233
25234 int main(argc, argv)
25235         int argc;
25236         char **argv;
25237 {
25238         pthread_t t;
25239
25240         /* create a pipe to select */
25241         if(pipe(&fildes[0])) {
25242                 perror("select");
25243                 exit(1);
25244         }
25245
25246 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25247         (void) pthread_setconcurrency(2);
25248 #else
25249 #ifdef HAVE_THR_SETCONCURRENCY
25250         /* Set Solaris LWP concurrency to 2 */
25251         thr_setconcurrency(2);
25252 #endif
25253 #endif
25254
25255 #if HAVE_PTHREADS < 6
25256         pthread_create(&t, pthread_attr_default, task, NULL);
25257 #else
25258         pthread_create(&t, NULL, task, NULL);
25259 #endif
25260
25261         /* make sure task runs first */
25262 #ifdef HAVE_THR_YIELD
25263         thr_yield();
25264 #elif defined( HAVE_SCHED_YIELD )
25265         sched_yield();
25266 #elif defined( HAVE_PTHREAD_YIELD )
25267         pthread_yield();
25268 #endif
25269
25270         exit(2);
25271 }
25272 _ACEOF
25273 rm -f conftest$ac_exeext
25274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25275   (eval $ac_link) 2>&5
25276   ac_status=$?
25277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280   (eval $ac_try) 2>&5
25281   ac_status=$?
25282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283   (exit $ac_status); }; }; then
25284   ol_cv_pthread_select_yields=no
25285 else
25286   echo "$as_me: program exited with status $ac_status" >&5
25287 echo "$as_me: failed program was:" >&5
25288 sed 's/^/| /' conftest.$ac_ext >&5
25289
25290 ( exit $ac_status )
25291 ol_cv_pthread_select_yields=yes
25292 fi
25293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25294 fi
25295 fi
25296 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25297 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25298
25299                                 if test $ol_cv_pthread_select_yields = cross ; then
25300                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25301 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25302    { (exit 1); exit 1; }; }
25303                                 fi
25304
25305                                 if test $ol_cv_pthread_select_yields = yes ; then
25306                                         ol_with_yielding_select=yes
25307                                 fi
25308                         fi
25309
25310                                                 CPPFLAGS="$save_CPPFLAGS"
25311                         LIBS="$save_LIBS"
25312                 else
25313                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25314 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25315    { (exit 1); exit 1; }; }
25316                 fi
25317         fi
25318
25319         if test $ol_with_threads = posix ; then
25320                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25321 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25322    { (exit 1); exit 1; }; }
25323         fi
25324         ;;
25325 esac
25326
25327 case $ol_with_threads in auto | yes | mach)
25328
25329
25330
25331 for ac_header in mach/cthreads.h cthreads.h
25332 do
25333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25335   echo "$as_me:$LINENO: checking for $ac_header" >&5
25336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25338   echo $ECHO_N "(cached) $ECHO_C" >&6
25339 fi
25340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25342 else
25343   # Is the header compilable?
25344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25346 cat >conftest.$ac_ext <<_ACEOF
25347 /* confdefs.h.  */
25348 _ACEOF
25349 cat confdefs.h >>conftest.$ac_ext
25350 cat >>conftest.$ac_ext <<_ACEOF
25351 /* end confdefs.h.  */
25352 $ac_includes_default
25353 #include <$ac_header>
25354 _ACEOF
25355 rm -f conftest.$ac_objext
25356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25357   (eval $ac_compile) 2>conftest.er1
25358   ac_status=$?
25359   grep -v '^ *+' conftest.er1 >conftest.err
25360   rm -f conftest.er1
25361   cat conftest.err >&5
25362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363   (exit $ac_status); } &&
25364          { ac_try='test -z "$ac_c_werror_flag"
25365                          || test ! -s conftest.err'
25366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25367   (eval $ac_try) 2>&5
25368   ac_status=$?
25369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370   (exit $ac_status); }; } &&
25371          { ac_try='test -s conftest.$ac_objext'
25372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25373   (eval $ac_try) 2>&5
25374   ac_status=$?
25375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376   (exit $ac_status); }; }; then
25377   ac_header_compiler=yes
25378 else
25379   echo "$as_me: failed program was:" >&5
25380 sed 's/^/| /' conftest.$ac_ext >&5
25381
25382 ac_header_compiler=no
25383 fi
25384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25386 echo "${ECHO_T}$ac_header_compiler" >&6
25387
25388 # Is the header present?
25389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25391 cat >conftest.$ac_ext <<_ACEOF
25392 /* confdefs.h.  */
25393 _ACEOF
25394 cat confdefs.h >>conftest.$ac_ext
25395 cat >>conftest.$ac_ext <<_ACEOF
25396 /* end confdefs.h.  */
25397 #include <$ac_header>
25398 _ACEOF
25399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25401   ac_status=$?
25402   grep -v '^ *+' conftest.er1 >conftest.err
25403   rm -f conftest.er1
25404   cat conftest.err >&5
25405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406   (exit $ac_status); } >/dev/null; then
25407   if test -s conftest.err; then
25408     ac_cpp_err=$ac_c_preproc_warn_flag
25409     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25410   else
25411     ac_cpp_err=
25412   fi
25413 else
25414   ac_cpp_err=yes
25415 fi
25416 if test -z "$ac_cpp_err"; then
25417   ac_header_preproc=yes
25418 else
25419   echo "$as_me: failed program was:" >&5
25420 sed 's/^/| /' conftest.$ac_ext >&5
25421
25422   ac_header_preproc=no
25423 fi
25424 rm -f conftest.err conftest.$ac_ext
25425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25426 echo "${ECHO_T}$ac_header_preproc" >&6
25427
25428 # So?  What about this header?
25429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25430   yes:no: )
25431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25435     ac_header_preproc=yes
25436     ;;
25437   no:yes:* )
25438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25450     (
25451       cat <<\_ASBOX
25452 ## --------------------------------------------- ##
25453 ## Report this to <http://www.openldap.org/its/> ##
25454 ## --------------------------------------------- ##
25455 _ASBOX
25456     ) |
25457       sed "s/^/$as_me: WARNING:     /" >&2
25458     ;;
25459 esac
25460 echo "$as_me:$LINENO: checking for $ac_header" >&5
25461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25463   echo $ECHO_N "(cached) $ECHO_C" >&6
25464 else
25465   eval "$as_ac_Header=\$ac_header_preproc"
25466 fi
25467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25469
25470 fi
25471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25472   cat >>confdefs.h <<_ACEOF
25473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25474 _ACEOF
25475
25476 fi
25477
25478 done
25479
25480         if test $ac_cv_header_mach_cthreads_h = yes ; then
25481                 ol_with_threads=found
25482
25483                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25484 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25485 if test "${ac_cv_func_cthread_fork+set}" = set; then
25486   echo $ECHO_N "(cached) $ECHO_C" >&6
25487 else
25488   cat >conftest.$ac_ext <<_ACEOF
25489 /* confdefs.h.  */
25490 _ACEOF
25491 cat confdefs.h >>conftest.$ac_ext
25492 cat >>conftest.$ac_ext <<_ACEOF
25493 /* end confdefs.h.  */
25494 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25496 #define cthread_fork innocuous_cthread_fork
25497
25498 /* System header to define __stub macros and hopefully few prototypes,
25499     which can conflict with char cthread_fork (); below.
25500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25501     <limits.h> exists even on freestanding compilers.  */
25502
25503 #ifdef __STDC__
25504 # include <limits.h>
25505 #else
25506 # include <assert.h>
25507 #endif
25508
25509 #undef cthread_fork
25510
25511 /* Override any gcc2 internal prototype to avoid an error.  */
25512 #ifdef __cplusplus
25513 extern "C"
25514 {
25515 #endif
25516 /* We use char because int might match the return type of a gcc2
25517    builtin and then its argument prototype would still apply.  */
25518 char cthread_fork ();
25519 /* The GNU C library defines this for functions which it implements
25520     to always fail with ENOSYS.  Some functions are actually named
25521     something starting with __ and the normal name is an alias.  */
25522 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25523 choke me
25524 #else
25525 char (*f) () = cthread_fork;
25526 #endif
25527 #ifdef __cplusplus
25528 }
25529 #endif
25530
25531 int
25532 main ()
25533 {
25534 return f != cthread_fork;
25535   ;
25536   return 0;
25537 }
25538 _ACEOF
25539 rm -f conftest.$ac_objext conftest$ac_exeext
25540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25541   (eval $ac_link) 2>conftest.er1
25542   ac_status=$?
25543   grep -v '^ *+' conftest.er1 >conftest.err
25544   rm -f conftest.er1
25545   cat conftest.err >&5
25546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547   (exit $ac_status); } &&
25548          { ac_try='test -z "$ac_c_werror_flag"
25549                          || test ! -s conftest.err'
25550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551   (eval $ac_try) 2>&5
25552   ac_status=$?
25553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554   (exit $ac_status); }; } &&
25555          { ac_try='test -s conftest$ac_exeext'
25556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25557   (eval $ac_try) 2>&5
25558   ac_status=$?
25559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560   (exit $ac_status); }; }; then
25561   ac_cv_func_cthread_fork=yes
25562 else
25563   echo "$as_me: failed program was:" >&5
25564 sed 's/^/| /' conftest.$ac_ext >&5
25565
25566 ac_cv_func_cthread_fork=no
25567 fi
25568 rm -f conftest.err conftest.$ac_objext \
25569       conftest$ac_exeext conftest.$ac_ext
25570 fi
25571 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25572 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25573 if test $ac_cv_func_cthread_fork = yes; then
25574   ol_link_threads=yes
25575 fi
25576
25577
25578                 if test $ol_link_threads = no ; then
25579                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25580 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25581 if test "${ol_cv_cthread_all_load+set}" = set; then
25582   echo $ECHO_N "(cached) $ECHO_C" >&6
25583 else
25584
25585                                                                 save_LIBS="$LIBS"
25586                                 LIBS="-all_load $LIBS"
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 #include <mach/cthreads.h>
25594 int
25595 main ()
25596 {
25597
25598                                         cthread_fork((void *)0, (void *)0);
25599
25600   ;
25601   return 0;
25602 }
25603 _ACEOF
25604 rm -f conftest.$ac_objext conftest$ac_exeext
25605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25606   (eval $ac_link) 2>conftest.er1
25607   ac_status=$?
25608   grep -v '^ *+' conftest.er1 >conftest.err
25609   rm -f conftest.er1
25610   cat conftest.err >&5
25611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612   (exit $ac_status); } &&
25613          { ac_try='test -z "$ac_c_werror_flag"
25614                          || test ! -s conftest.err'
25615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25616   (eval $ac_try) 2>&5
25617   ac_status=$?
25618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619   (exit $ac_status); }; } &&
25620          { ac_try='test -s conftest$ac_exeext'
25621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622   (eval $ac_try) 2>&5
25623   ac_status=$?
25624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625   (exit $ac_status); }; }; then
25626   ol_cv_cthread_all_load=yes
25627 else
25628   echo "$as_me: failed program was:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25630
25631 ol_cv_cthread_all_load=no
25632 fi
25633 rm -f conftest.err conftest.$ac_objext \
25634       conftest$ac_exeext conftest.$ac_ext
25635                                                                 LIBS="$save_LIBS"
25636
25637 fi
25638 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25639 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25640
25641                         if test $ol_cv_cthread_all_load = yes ; then
25642                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25643                                 ol_link_threads=mach
25644                                 ol_with_threads=found
25645                         fi
25646                 fi
25647
25648         elif test $ac_cv_header_cthreads_h = yes ; then
25649
25650                 ol_with_threads=found
25651
25652                                 save_LIBS="$LIBS"
25653                 LIBS="$LIBS -lthreads"
25654                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25655 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25656 if test "${ac_cv_func_cthread_fork+set}" = set; then
25657   echo $ECHO_N "(cached) $ECHO_C" >&6
25658 else
25659   cat >conftest.$ac_ext <<_ACEOF
25660 /* confdefs.h.  */
25661 _ACEOF
25662 cat confdefs.h >>conftest.$ac_ext
25663 cat >>conftest.$ac_ext <<_ACEOF
25664 /* end confdefs.h.  */
25665 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25667 #define cthread_fork innocuous_cthread_fork
25668
25669 /* System header to define __stub macros and hopefully few prototypes,
25670     which can conflict with char cthread_fork (); below.
25671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25672     <limits.h> exists even on freestanding compilers.  */
25673
25674 #ifdef __STDC__
25675 # include <limits.h>
25676 #else
25677 # include <assert.h>
25678 #endif
25679
25680 #undef cthread_fork
25681
25682 /* Override any gcc2 internal prototype to avoid an error.  */
25683 #ifdef __cplusplus
25684 extern "C"
25685 {
25686 #endif
25687 /* We use char because int might match the return type of a gcc2
25688    builtin and then its argument prototype would still apply.  */
25689 char cthread_fork ();
25690 /* The GNU C library defines this for functions which it implements
25691     to always fail with ENOSYS.  Some functions are actually named
25692     something starting with __ and the normal name is an alias.  */
25693 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25694 choke me
25695 #else
25696 char (*f) () = cthread_fork;
25697 #endif
25698 #ifdef __cplusplus
25699 }
25700 #endif
25701
25702 int
25703 main ()
25704 {
25705 return f != cthread_fork;
25706   ;
25707   return 0;
25708 }
25709 _ACEOF
25710 rm -f conftest.$ac_objext conftest$ac_exeext
25711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25712   (eval $ac_link) 2>conftest.er1
25713   ac_status=$?
25714   grep -v '^ *+' conftest.er1 >conftest.err
25715   rm -f conftest.er1
25716   cat conftest.err >&5
25717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718   (exit $ac_status); } &&
25719          { ac_try='test -z "$ac_c_werror_flag"
25720                          || test ! -s conftest.err'
25721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25722   (eval $ac_try) 2>&5
25723   ac_status=$?
25724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725   (exit $ac_status); }; } &&
25726          { ac_try='test -s conftest$ac_exeext'
25727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728   (eval $ac_try) 2>&5
25729   ac_status=$?
25730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731   (exit $ac_status); }; }; then
25732   ac_cv_func_cthread_fork=yes
25733 else
25734   echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25736
25737 ac_cv_func_cthread_fork=no
25738 fi
25739 rm -f conftest.err conftest.$ac_objext \
25740       conftest$ac_exeext conftest.$ac_ext
25741 fi
25742 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25743 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25744 if test $ac_cv_func_cthread_fork = yes; then
25745   ol_link_threads=yes
25746 fi
25747
25748                 LIBS="$save_LIBS"
25749
25750                 if test $ol_link_threads = yes ; then
25751                         LTHREAD_LIBS="-lthreads"
25752                         ol_link_threads=mach
25753                         ol_with_threads=found
25754                 else
25755                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25756 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25757    { (exit 1); exit 1; }; }
25758                 fi
25759
25760         elif test $ol_with_threads = mach ; then
25761                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25762 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25763    { (exit 1); exit 1; }; }
25764         fi
25765
25766         if test $ol_link_threads = mach ; then
25767
25768 cat >>confdefs.h <<\_ACEOF
25769 #define HAVE_MACH_CTHREADS 1
25770 _ACEOF
25771
25772         elif test $ol_with_threads = found ; then
25773                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25774 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25775    { (exit 1); exit 1; }; }
25776         fi
25777         ;;
25778 esac
25779
25780 case $ol_with_threads in auto | yes | pth)
25781
25782
25783 for ac_header in pth.h
25784 do
25785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25787   echo "$as_me:$LINENO: checking for $ac_header" >&5
25788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25790   echo $ECHO_N "(cached) $ECHO_C" >&6
25791 fi
25792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25794 else
25795   # Is the header compilable?
25796 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25798 cat >conftest.$ac_ext <<_ACEOF
25799 /* confdefs.h.  */
25800 _ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h.  */
25804 $ac_includes_default
25805 #include <$ac_header>
25806 _ACEOF
25807 rm -f conftest.$ac_objext
25808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25809   (eval $ac_compile) 2>conftest.er1
25810   ac_status=$?
25811   grep -v '^ *+' conftest.er1 >conftest.err
25812   rm -f conftest.er1
25813   cat conftest.err >&5
25814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25815   (exit $ac_status); } &&
25816          { ac_try='test -z "$ac_c_werror_flag"
25817                          || test ! -s conftest.err'
25818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25819   (eval $ac_try) 2>&5
25820   ac_status=$?
25821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822   (exit $ac_status); }; } &&
25823          { ac_try='test -s conftest.$ac_objext'
25824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25825   (eval $ac_try) 2>&5
25826   ac_status=$?
25827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828   (exit $ac_status); }; }; then
25829   ac_header_compiler=yes
25830 else
25831   echo "$as_me: failed program was:" >&5
25832 sed 's/^/| /' conftest.$ac_ext >&5
25833
25834 ac_header_compiler=no
25835 fi
25836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25838 echo "${ECHO_T}$ac_header_compiler" >&6
25839
25840 # Is the header present?
25841 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25843 cat >conftest.$ac_ext <<_ACEOF
25844 /* confdefs.h.  */
25845 _ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h.  */
25849 #include <$ac_header>
25850 _ACEOF
25851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25852   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
25859   if test -s conftest.err; then
25860     ac_cpp_err=$ac_c_preproc_warn_flag
25861     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25862   else
25863     ac_cpp_err=
25864   fi
25865 else
25866   ac_cpp_err=yes
25867 fi
25868 if test -z "$ac_cpp_err"; then
25869   ac_header_preproc=yes
25870 else
25871   echo "$as_me: failed program was:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25873
25874   ac_header_preproc=no
25875 fi
25876 rm -f conftest.err conftest.$ac_ext
25877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25878 echo "${ECHO_T}$ac_header_preproc" >&6
25879
25880 # So?  What about this header?
25881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25882   yes:no: )
25883     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25885     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25887     ac_header_preproc=yes
25888     ;;
25889   no:yes:* )
25890     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25892     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25893 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25894     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25896     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25897 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25900     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25902     (
25903       cat <<\_ASBOX
25904 ## --------------------------------------------- ##
25905 ## Report this to <http://www.openldap.org/its/> ##
25906 ## --------------------------------------------- ##
25907 _ASBOX
25908     ) |
25909       sed "s/^/$as_me: WARNING:     /" >&2
25910     ;;
25911 esac
25912 echo "$as_me:$LINENO: checking for $ac_header" >&5
25913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25915   echo $ECHO_N "(cached) $ECHO_C" >&6
25916 else
25917   eval "$as_ac_Header=\$ac_header_preproc"
25918 fi
25919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25921
25922 fi
25923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25924   cat >>confdefs.h <<_ACEOF
25925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25926 _ACEOF
25927
25928 fi
25929
25930 done
25931
25932
25933         if test $ac_cv_header_pth_h = yes ; then
25934                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25935 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25936 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25937   echo $ECHO_N "(cached) $ECHO_C" >&6
25938 else
25939   ac_check_lib_save_LIBS=$LIBS
25940 LIBS="-lpth  $LIBS"
25941 cat >conftest.$ac_ext <<_ACEOF
25942 /* confdefs.h.  */
25943 _ACEOF
25944 cat confdefs.h >>conftest.$ac_ext
25945 cat >>conftest.$ac_ext <<_ACEOF
25946 /* end confdefs.h.  */
25947
25948 /* Override any gcc2 internal prototype to avoid an error.  */
25949 #ifdef __cplusplus
25950 extern "C"
25951 #endif
25952 /* We use char because int might match the return type of a gcc2
25953    builtin and then its argument prototype would still apply.  */
25954 char pth_version ();
25955 int
25956 main ()
25957 {
25958 pth_version ();
25959   ;
25960   return 0;
25961 }
25962 _ACEOF
25963 rm -f conftest.$ac_objext conftest$ac_exeext
25964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25965   (eval $ac_link) 2>conftest.er1
25966   ac_status=$?
25967   grep -v '^ *+' conftest.er1 >conftest.err
25968   rm -f conftest.er1
25969   cat conftest.err >&5
25970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971   (exit $ac_status); } &&
25972          { ac_try='test -z "$ac_c_werror_flag"
25973                          || test ! -s conftest.err'
25974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25975   (eval $ac_try) 2>&5
25976   ac_status=$?
25977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978   (exit $ac_status); }; } &&
25979          { ac_try='test -s conftest$ac_exeext'
25980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25981   (eval $ac_try) 2>&5
25982   ac_status=$?
25983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984   (exit $ac_status); }; }; then
25985   ac_cv_lib_pth_pth_version=yes
25986 else
25987   echo "$as_me: failed program was:" >&5
25988 sed 's/^/| /' conftest.$ac_ext >&5
25989
25990 ac_cv_lib_pth_pth_version=no
25991 fi
25992 rm -f conftest.err conftest.$ac_objext \
25993       conftest$ac_exeext conftest.$ac_ext
25994 LIBS=$ac_check_lib_save_LIBS
25995 fi
25996 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25997 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25998 if test $ac_cv_lib_pth_pth_version = yes; then
25999   have_pth=yes
26000 else
26001   have_pth=no
26002 fi
26003
26004
26005                 if test $have_pth = yes ; then
26006
26007 cat >>confdefs.h <<\_ACEOF
26008 #define HAVE_GNU_PTH 1
26009 _ACEOF
26010
26011                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26012                         ol_link_threads=pth
26013                         ol_with_threads=found
26014
26015                         if test $ol_with_yielding_select = auto ; then
26016                                 ol_with_yielding_select=yes
26017                         fi
26018                 fi
26019         fi
26020         ;;
26021 esac
26022
26023 case $ol_with_threads in auto | yes | lwp)
26024
26025
26026
26027 for ac_header in thread.h synch.h
26028 do
26029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26031   echo "$as_me:$LINENO: checking for $ac_header" >&5
26032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26034   echo $ECHO_N "(cached) $ECHO_C" >&6
26035 fi
26036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26038 else
26039   # Is the header compilable?
26040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26042 cat >conftest.$ac_ext <<_ACEOF
26043 /* confdefs.h.  */
26044 _ACEOF
26045 cat confdefs.h >>conftest.$ac_ext
26046 cat >>conftest.$ac_ext <<_ACEOF
26047 /* end confdefs.h.  */
26048 $ac_includes_default
26049 #include <$ac_header>
26050 _ACEOF
26051 rm -f conftest.$ac_objext
26052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26053   (eval $ac_compile) 2>conftest.er1
26054   ac_status=$?
26055   grep -v '^ *+' conftest.er1 >conftest.err
26056   rm -f conftest.er1
26057   cat conftest.err >&5
26058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059   (exit $ac_status); } &&
26060          { ac_try='test -z "$ac_c_werror_flag"
26061                          || test ! -s conftest.err'
26062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063   (eval $ac_try) 2>&5
26064   ac_status=$?
26065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066   (exit $ac_status); }; } &&
26067          { ac_try='test -s conftest.$ac_objext'
26068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069   (eval $ac_try) 2>&5
26070   ac_status=$?
26071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072   (exit $ac_status); }; }; then
26073   ac_header_compiler=yes
26074 else
26075   echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26077
26078 ac_header_compiler=no
26079 fi
26080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26082 echo "${ECHO_T}$ac_header_compiler" >&6
26083
26084 # Is the header present?
26085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26087 cat >conftest.$ac_ext <<_ACEOF
26088 /* confdefs.h.  */
26089 _ACEOF
26090 cat confdefs.h >>conftest.$ac_ext
26091 cat >>conftest.$ac_ext <<_ACEOF
26092 /* end confdefs.h.  */
26093 #include <$ac_header>
26094 _ACEOF
26095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26096   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26097   ac_status=$?
26098   grep -v '^ *+' conftest.er1 >conftest.err
26099   rm -f conftest.er1
26100   cat conftest.err >&5
26101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102   (exit $ac_status); } >/dev/null; then
26103   if test -s conftest.err; then
26104     ac_cpp_err=$ac_c_preproc_warn_flag
26105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26106   else
26107     ac_cpp_err=
26108   fi
26109 else
26110   ac_cpp_err=yes
26111 fi
26112 if test -z "$ac_cpp_err"; then
26113   ac_header_preproc=yes
26114 else
26115   echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26117
26118   ac_header_preproc=no
26119 fi
26120 rm -f conftest.err conftest.$ac_ext
26121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26122 echo "${ECHO_T}$ac_header_preproc" >&6
26123
26124 # So?  What about this header?
26125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26126   yes:no: )
26127     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26131     ac_header_preproc=yes
26132     ;;
26133   no:yes:* )
26134     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26136     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26137 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26138     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26140     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26141 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26144     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26146     (
26147       cat <<\_ASBOX
26148 ## --------------------------------------------- ##
26149 ## Report this to <http://www.openldap.org/its/> ##
26150 ## --------------------------------------------- ##
26151 _ASBOX
26152     ) |
26153       sed "s/^/$as_me: WARNING:     /" >&2
26154     ;;
26155 esac
26156 echo "$as_me:$LINENO: checking for $ac_header" >&5
26157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26159   echo $ECHO_N "(cached) $ECHO_C" >&6
26160 else
26161   eval "$as_ac_Header=\$ac_header_preproc"
26162 fi
26163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26165
26166 fi
26167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26168   cat >>confdefs.h <<_ACEOF
26169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26170 _ACEOF
26171
26172 fi
26173
26174 done
26175
26176         if test $ac_cv_header_thread_h = yes &&
26177            test $ac_cv_header_synch_h = yes ; then
26178                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26179 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
26180 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26181   echo $ECHO_N "(cached) $ECHO_C" >&6
26182 else
26183   ac_check_lib_save_LIBS=$LIBS
26184 LIBS="-lthread  $LIBS"
26185 cat >conftest.$ac_ext <<_ACEOF
26186 /* confdefs.h.  */
26187 _ACEOF
26188 cat confdefs.h >>conftest.$ac_ext
26189 cat >>conftest.$ac_ext <<_ACEOF
26190 /* end confdefs.h.  */
26191
26192 /* Override any gcc2 internal prototype to avoid an error.  */
26193 #ifdef __cplusplus
26194 extern "C"
26195 #endif
26196 /* We use char because int might match the return type of a gcc2
26197    builtin and then its argument prototype would still apply.  */
26198 char thr_create ();
26199 int
26200 main ()
26201 {
26202 thr_create ();
26203   ;
26204   return 0;
26205 }
26206 _ACEOF
26207 rm -f conftest.$ac_objext conftest$ac_exeext
26208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26209   (eval $ac_link) 2>conftest.er1
26210   ac_status=$?
26211   grep -v '^ *+' conftest.er1 >conftest.err
26212   rm -f conftest.er1
26213   cat conftest.err >&5
26214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215   (exit $ac_status); } &&
26216          { ac_try='test -z "$ac_c_werror_flag"
26217                          || test ! -s conftest.err'
26218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26219   (eval $ac_try) 2>&5
26220   ac_status=$?
26221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222   (exit $ac_status); }; } &&
26223          { ac_try='test -s conftest$ac_exeext'
26224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26225   (eval $ac_try) 2>&5
26226   ac_status=$?
26227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228   (exit $ac_status); }; }; then
26229   ac_cv_lib_thread_thr_create=yes
26230 else
26231   echo "$as_me: failed program was:" >&5
26232 sed 's/^/| /' conftest.$ac_ext >&5
26233
26234 ac_cv_lib_thread_thr_create=no
26235 fi
26236 rm -f conftest.err conftest.$ac_objext \
26237       conftest$ac_exeext conftest.$ac_ext
26238 LIBS=$ac_check_lib_save_LIBS
26239 fi
26240 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26241 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26242 if test $ac_cv_lib_thread_thr_create = yes; then
26243   have_thr=yes
26244 else
26245   have_thr=no
26246 fi
26247
26248
26249                 if test $have_thr = yes ; then
26250
26251 cat >>confdefs.h <<\_ACEOF
26252 #define HAVE_THR 1
26253 _ACEOF
26254
26255                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26256                         ol_link_threads=thr
26257
26258                         if test $ol_with_yielding_select = auto ; then
26259                                 ol_with_yielding_select=yes
26260                         fi
26261
26262
26263
26264 for ac_func in \
26265                                 thr_setconcurrency \
26266                                 thr_getconcurrency \
26267
26268 do
26269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26270 echo "$as_me:$LINENO: checking for $ac_func" >&5
26271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26272 if eval "test \"\${$as_ac_var+set}\" = set"; then
26273   echo $ECHO_N "(cached) $ECHO_C" >&6
26274 else
26275   cat >conftest.$ac_ext <<_ACEOF
26276 /* confdefs.h.  */
26277 _ACEOF
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h.  */
26281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26283 #define $ac_func innocuous_$ac_func
26284
26285 /* System header to define __stub macros and hopefully few prototypes,
26286     which can conflict with char $ac_func (); below.
26287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26288     <limits.h> exists even on freestanding compilers.  */
26289
26290 #ifdef __STDC__
26291 # include <limits.h>
26292 #else
26293 # include <assert.h>
26294 #endif
26295
26296 #undef $ac_func
26297
26298 /* Override any gcc2 internal prototype to avoid an error.  */
26299 #ifdef __cplusplus
26300 extern "C"
26301 {
26302 #endif
26303 /* We use char because int might match the return type of a gcc2
26304    builtin and then its argument prototype would still apply.  */
26305 char $ac_func ();
26306 /* The GNU C library defines this for functions which it implements
26307     to always fail with ENOSYS.  Some functions are actually named
26308     something starting with __ and the normal name is an alias.  */
26309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26310 choke me
26311 #else
26312 char (*f) () = $ac_func;
26313 #endif
26314 #ifdef __cplusplus
26315 }
26316 #endif
26317
26318 int
26319 main ()
26320 {
26321 return f != $ac_func;
26322   ;
26323   return 0;
26324 }
26325 _ACEOF
26326 rm -f conftest.$ac_objext conftest$ac_exeext
26327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26328   (eval $ac_link) 2>conftest.er1
26329   ac_status=$?
26330   grep -v '^ *+' conftest.er1 >conftest.err
26331   rm -f conftest.er1
26332   cat conftest.err >&5
26333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334   (exit $ac_status); } &&
26335          { ac_try='test -z "$ac_c_werror_flag"
26336                          || test ! -s conftest.err'
26337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26338   (eval $ac_try) 2>&5
26339   ac_status=$?
26340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341   (exit $ac_status); }; } &&
26342          { ac_try='test -s conftest$ac_exeext'
26343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26344   (eval $ac_try) 2>&5
26345   ac_status=$?
26346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347   (exit $ac_status); }; }; then
26348   eval "$as_ac_var=yes"
26349 else
26350   echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26352
26353 eval "$as_ac_var=no"
26354 fi
26355 rm -f conftest.err conftest.$ac_objext \
26356       conftest$ac_exeext conftest.$ac_ext
26357 fi
26358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26360 if test `eval echo '${'$as_ac_var'}'` = yes; then
26361   cat >>confdefs.h <<_ACEOF
26362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26363 _ACEOF
26364
26365 fi
26366 done
26367
26368                 fi
26369         fi
26370
26371
26372 for ac_header in lwp/lwp.h
26373 do
26374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26376   echo "$as_me:$LINENO: checking for $ac_header" >&5
26377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26379   echo $ECHO_N "(cached) $ECHO_C" >&6
26380 fi
26381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26383 else
26384   # Is the header compilable?
26385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26387 cat >conftest.$ac_ext <<_ACEOF
26388 /* confdefs.h.  */
26389 _ACEOF
26390 cat confdefs.h >>conftest.$ac_ext
26391 cat >>conftest.$ac_ext <<_ACEOF
26392 /* end confdefs.h.  */
26393 $ac_includes_default
26394 #include <$ac_header>
26395 _ACEOF
26396 rm -f conftest.$ac_objext
26397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26398   (eval $ac_compile) 2>conftest.er1
26399   ac_status=$?
26400   grep -v '^ *+' conftest.er1 >conftest.err
26401   rm -f conftest.er1
26402   cat conftest.err >&5
26403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404   (exit $ac_status); } &&
26405          { ac_try='test -z "$ac_c_werror_flag"
26406                          || test ! -s conftest.err'
26407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26408   (eval $ac_try) 2>&5
26409   ac_status=$?
26410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411   (exit $ac_status); }; } &&
26412          { ac_try='test -s conftest.$ac_objext'
26413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414   (eval $ac_try) 2>&5
26415   ac_status=$?
26416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417   (exit $ac_status); }; }; then
26418   ac_header_compiler=yes
26419 else
26420   echo "$as_me: failed program was:" >&5
26421 sed 's/^/| /' conftest.$ac_ext >&5
26422
26423 ac_header_compiler=no
26424 fi
26425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26427 echo "${ECHO_T}$ac_header_compiler" >&6
26428
26429 # Is the header present?
26430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26432 cat >conftest.$ac_ext <<_ACEOF
26433 /* confdefs.h.  */
26434 _ACEOF
26435 cat confdefs.h >>conftest.$ac_ext
26436 cat >>conftest.$ac_ext <<_ACEOF
26437 /* end confdefs.h.  */
26438 #include <$ac_header>
26439 _ACEOF
26440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26441   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
26448   if test -s conftest.err; then
26449     ac_cpp_err=$ac_c_preproc_warn_flag
26450     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26451   else
26452     ac_cpp_err=
26453   fi
26454 else
26455   ac_cpp_err=yes
26456 fi
26457 if test -z "$ac_cpp_err"; then
26458   ac_header_preproc=yes
26459 else
26460   echo "$as_me: failed program was:" >&5
26461 sed 's/^/| /' conftest.$ac_ext >&5
26462
26463   ac_header_preproc=no
26464 fi
26465 rm -f conftest.err conftest.$ac_ext
26466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26467 echo "${ECHO_T}$ac_header_preproc" >&6
26468
26469 # So?  What about this header?
26470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26471   yes:no: )
26472     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26476     ac_header_preproc=yes
26477     ;;
26478   no:yes:* )
26479     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26481     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26482 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26483     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26485     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26486 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26489     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26491     (
26492       cat <<\_ASBOX
26493 ## --------------------------------------------- ##
26494 ## Report this to <http://www.openldap.org/its/> ##
26495 ## --------------------------------------------- ##
26496 _ASBOX
26497     ) |
26498       sed "s/^/$as_me: WARNING:     /" >&2
26499     ;;
26500 esac
26501 echo "$as_me:$LINENO: checking for $ac_header" >&5
26502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26504   echo $ECHO_N "(cached) $ECHO_C" >&6
26505 else
26506   eval "$as_ac_Header=\$ac_header_preproc"
26507 fi
26508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26510
26511 fi
26512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26513   cat >>confdefs.h <<_ACEOF
26514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26515 _ACEOF
26516
26517 fi
26518
26519 done
26520
26521         if test $ac_cv_header_lwp_lwp_h = yes ; then
26522                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26523 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26524 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26525   echo $ECHO_N "(cached) $ECHO_C" >&6
26526 else
26527   ac_check_lib_save_LIBS=$LIBS
26528 LIBS="-llwp  $LIBS"
26529 cat >conftest.$ac_ext <<_ACEOF
26530 /* confdefs.h.  */
26531 _ACEOF
26532 cat confdefs.h >>conftest.$ac_ext
26533 cat >>conftest.$ac_ext <<_ACEOF
26534 /* end confdefs.h.  */
26535
26536 /* Override any gcc2 internal prototype to avoid an error.  */
26537 #ifdef __cplusplus
26538 extern "C"
26539 #endif
26540 /* We use char because int might match the return type of a gcc2
26541    builtin and then its argument prototype would still apply.  */
26542 char lwp_create ();
26543 int
26544 main ()
26545 {
26546 lwp_create ();
26547   ;
26548   return 0;
26549 }
26550 _ACEOF
26551 rm -f conftest.$ac_objext conftest$ac_exeext
26552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26553   (eval $ac_link) 2>conftest.er1
26554   ac_status=$?
26555   grep -v '^ *+' conftest.er1 >conftest.err
26556   rm -f conftest.er1
26557   cat conftest.err >&5
26558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559   (exit $ac_status); } &&
26560          { ac_try='test -z "$ac_c_werror_flag"
26561                          || test ! -s conftest.err'
26562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26563   (eval $ac_try) 2>&5
26564   ac_status=$?
26565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566   (exit $ac_status); }; } &&
26567          { ac_try='test -s conftest$ac_exeext'
26568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26569   (eval $ac_try) 2>&5
26570   ac_status=$?
26571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572   (exit $ac_status); }; }; then
26573   ac_cv_lib_lwp_lwp_create=yes
26574 else
26575   echo "$as_me: failed program was:" >&5
26576 sed 's/^/| /' conftest.$ac_ext >&5
26577
26578 ac_cv_lib_lwp_lwp_create=no
26579 fi
26580 rm -f conftest.err conftest.$ac_objext \
26581       conftest$ac_exeext conftest.$ac_ext
26582 LIBS=$ac_check_lib_save_LIBS
26583 fi
26584 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26585 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26586 if test $ac_cv_lib_lwp_lwp_create = yes; then
26587   have_lwp=yes
26588 else
26589   have_lwp=no
26590 fi
26591
26592
26593                 if test $have_lwp = yes ; then
26594
26595 cat >>confdefs.h <<\_ACEOF
26596 #define HAVE_LWP 1
26597 _ACEOF
26598
26599                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26600                         ol_link_threads=lwp
26601
26602                         if test $ol_with_yielding_select = auto ; then
26603                                 ol_with_yielding_select=no
26604                         fi
26605                 fi
26606         fi
26607         ;;
26608 esac
26609
26610 if test $ol_with_yielding_select = yes ; then
26611
26612 cat >>confdefs.h <<\_ACEOF
26613 #define HAVE_YIELDING_SELECT 1
26614 _ACEOF
26615
26616 fi
26617
26618 if test $ol_with_threads = manual ; then
26619                 ol_link_threads=yes
26620
26621         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26622 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26623
26624
26625
26626 for ac_header in pthread.h sched.h
26627 do
26628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26630   echo "$as_me:$LINENO: checking for $ac_header" >&5
26631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26633   echo $ECHO_N "(cached) $ECHO_C" >&6
26634 fi
26635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26637 else
26638   # Is the header compilable?
26639 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26641 cat >conftest.$ac_ext <<_ACEOF
26642 /* confdefs.h.  */
26643 _ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h.  */
26647 $ac_includes_default
26648 #include <$ac_header>
26649 _ACEOF
26650 rm -f conftest.$ac_objext
26651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26652   (eval $ac_compile) 2>conftest.er1
26653   ac_status=$?
26654   grep -v '^ *+' conftest.er1 >conftest.err
26655   rm -f conftest.er1
26656   cat conftest.err >&5
26657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658   (exit $ac_status); } &&
26659          { ac_try='test -z "$ac_c_werror_flag"
26660                          || test ! -s conftest.err'
26661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662   (eval $ac_try) 2>&5
26663   ac_status=$?
26664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665   (exit $ac_status); }; } &&
26666          { ac_try='test -s conftest.$ac_objext'
26667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26668   (eval $ac_try) 2>&5
26669   ac_status=$?
26670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671   (exit $ac_status); }; }; then
26672   ac_header_compiler=yes
26673 else
26674   echo "$as_me: failed program was:" >&5
26675 sed 's/^/| /' conftest.$ac_ext >&5
26676
26677 ac_header_compiler=no
26678 fi
26679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26681 echo "${ECHO_T}$ac_header_compiler" >&6
26682
26683 # Is the header present?
26684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26686 cat >conftest.$ac_ext <<_ACEOF
26687 /* confdefs.h.  */
26688 _ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h.  */
26692 #include <$ac_header>
26693 _ACEOF
26694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26696   ac_status=$?
26697   grep -v '^ *+' conftest.er1 >conftest.err
26698   rm -f conftest.er1
26699   cat conftest.err >&5
26700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701   (exit $ac_status); } >/dev/null; then
26702   if test -s conftest.err; then
26703     ac_cpp_err=$ac_c_preproc_warn_flag
26704     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26705   else
26706     ac_cpp_err=
26707   fi
26708 else
26709   ac_cpp_err=yes
26710 fi
26711 if test -z "$ac_cpp_err"; then
26712   ac_header_preproc=yes
26713 else
26714   echo "$as_me: failed program was:" >&5
26715 sed 's/^/| /' conftest.$ac_ext >&5
26716
26717   ac_header_preproc=no
26718 fi
26719 rm -f conftest.err conftest.$ac_ext
26720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26721 echo "${ECHO_T}$ac_header_preproc" >&6
26722
26723 # So?  What about this header?
26724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26725   yes:no: )
26726     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26730     ac_header_preproc=yes
26731     ;;
26732   no:yes:* )
26733     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26735     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26736 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26737     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26739     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26740 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26743     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26745     (
26746       cat <<\_ASBOX
26747 ## --------------------------------------------- ##
26748 ## Report this to <http://www.openldap.org/its/> ##
26749 ## --------------------------------------------- ##
26750 _ASBOX
26751     ) |
26752       sed "s/^/$as_me: WARNING:     /" >&2
26753     ;;
26754 esac
26755 echo "$as_me:$LINENO: checking for $ac_header" >&5
26756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26758   echo $ECHO_N "(cached) $ECHO_C" >&6
26759 else
26760   eval "$as_ac_Header=\$ac_header_preproc"
26761 fi
26762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26764
26765 fi
26766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26767   cat >>confdefs.h <<_ACEOF
26768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26769 _ACEOF
26770
26771 fi
26772
26773 done
26774
26775
26776
26777 for ac_func in sched_yield pthread_yield
26778 do
26779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26780 echo "$as_me:$LINENO: checking for $ac_func" >&5
26781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26782 if eval "test \"\${$as_ac_var+set}\" = set"; then
26783   echo $ECHO_N "(cached) $ECHO_C" >&6
26784 else
26785   cat >conftest.$ac_ext <<_ACEOF
26786 /* confdefs.h.  */
26787 _ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h.  */
26791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26793 #define $ac_func innocuous_$ac_func
26794
26795 /* System header to define __stub macros and hopefully few prototypes,
26796     which can conflict with char $ac_func (); below.
26797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26798     <limits.h> exists even on freestanding compilers.  */
26799
26800 #ifdef __STDC__
26801 # include <limits.h>
26802 #else
26803 # include <assert.h>
26804 #endif
26805
26806 #undef $ac_func
26807
26808 /* Override any gcc2 internal prototype to avoid an error.  */
26809 #ifdef __cplusplus
26810 extern "C"
26811 {
26812 #endif
26813 /* We use char because int might match the return type of a gcc2
26814    builtin and then its argument prototype would still apply.  */
26815 char $ac_func ();
26816 /* The GNU C library defines this for functions which it implements
26817     to always fail with ENOSYS.  Some functions are actually named
26818     something starting with __ and the normal name is an alias.  */
26819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26820 choke me
26821 #else
26822 char (*f) () = $ac_func;
26823 #endif
26824 #ifdef __cplusplus
26825 }
26826 #endif
26827
26828 int
26829 main ()
26830 {
26831 return f != $ac_func;
26832   ;
26833   return 0;
26834 }
26835 _ACEOF
26836 rm -f conftest.$ac_objext conftest$ac_exeext
26837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26838   (eval $ac_link) 2>conftest.er1
26839   ac_status=$?
26840   grep -v '^ *+' conftest.er1 >conftest.err
26841   rm -f conftest.er1
26842   cat conftest.err >&5
26843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844   (exit $ac_status); } &&
26845          { ac_try='test -z "$ac_c_werror_flag"
26846                          || test ! -s conftest.err'
26847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848   (eval $ac_try) 2>&5
26849   ac_status=$?
26850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851   (exit $ac_status); }; } &&
26852          { ac_try='test -s conftest$ac_exeext'
26853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26854   (eval $ac_try) 2>&5
26855   ac_status=$?
26856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857   (exit $ac_status); }; }; then
26858   eval "$as_ac_var=yes"
26859 else
26860   echo "$as_me: failed program was:" >&5
26861 sed 's/^/| /' conftest.$ac_ext >&5
26862
26863 eval "$as_ac_var=no"
26864 fi
26865 rm -f conftest.err conftest.$ac_objext \
26866       conftest$ac_exeext conftest.$ac_ext
26867 fi
26868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26870 if test `eval echo '${'$as_ac_var'}'` = yes; then
26871   cat >>confdefs.h <<_ACEOF
26872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26873 _ACEOF
26874
26875 fi
26876 done
26877
26878
26879         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26880 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26881 if test "${ol_cv_header_linux_threads+set}" = set; then
26882   echo $ECHO_N "(cached) $ECHO_C" >&6
26883 else
26884   cat >conftest.$ac_ext <<_ACEOF
26885 /* confdefs.h.  */
26886 _ACEOF
26887 cat confdefs.h >>conftest.$ac_ext
26888 cat >>conftest.$ac_ext <<_ACEOF
26889 /* end confdefs.h.  */
26890 #include <pthread.h>
26891 _ACEOF
26892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26893   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26894   ol_cv_header_linux_threads=yes
26895 else
26896   ol_cv_header_linux_threads=no
26897 fi
26898 rm -f conftest*
26899
26900
26901 fi
26902 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26903 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26904         if test $ol_cv_header_linux_threads = yes; then
26905
26906 cat >>confdefs.h <<\_ACEOF
26907 #define HAVE_LINUX_THREADS 1
26908 _ACEOF
26909
26910         fi
26911
26912
26913
26914 for ac_header in mach/cthreads.h
26915 do
26916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26918   echo "$as_me:$LINENO: checking for $ac_header" >&5
26919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26921   echo $ECHO_N "(cached) $ECHO_C" >&6
26922 fi
26923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26925 else
26926   # Is the header compilable?
26927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26929 cat >conftest.$ac_ext <<_ACEOF
26930 /* confdefs.h.  */
26931 _ACEOF
26932 cat confdefs.h >>conftest.$ac_ext
26933 cat >>conftest.$ac_ext <<_ACEOF
26934 /* end confdefs.h.  */
26935 $ac_includes_default
26936 #include <$ac_header>
26937 _ACEOF
26938 rm -f conftest.$ac_objext
26939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26940   (eval $ac_compile) 2>conftest.er1
26941   ac_status=$?
26942   grep -v '^ *+' conftest.er1 >conftest.err
26943   rm -f conftest.er1
26944   cat conftest.err >&5
26945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946   (exit $ac_status); } &&
26947          { ac_try='test -z "$ac_c_werror_flag"
26948                          || test ! -s conftest.err'
26949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26950   (eval $ac_try) 2>&5
26951   ac_status=$?
26952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953   (exit $ac_status); }; } &&
26954          { ac_try='test -s conftest.$ac_objext'
26955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26956   (eval $ac_try) 2>&5
26957   ac_status=$?
26958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959   (exit $ac_status); }; }; then
26960   ac_header_compiler=yes
26961 else
26962   echo "$as_me: failed program was:" >&5
26963 sed 's/^/| /' conftest.$ac_ext >&5
26964
26965 ac_header_compiler=no
26966 fi
26967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26969 echo "${ECHO_T}$ac_header_compiler" >&6
26970
26971 # Is the header present?
26972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26974 cat >conftest.$ac_ext <<_ACEOF
26975 /* confdefs.h.  */
26976 _ACEOF
26977 cat confdefs.h >>conftest.$ac_ext
26978 cat >>conftest.$ac_ext <<_ACEOF
26979 /* end confdefs.h.  */
26980 #include <$ac_header>
26981 _ACEOF
26982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26984   ac_status=$?
26985   grep -v '^ *+' conftest.er1 >conftest.err
26986   rm -f conftest.er1
26987   cat conftest.err >&5
26988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989   (exit $ac_status); } >/dev/null; then
26990   if test -s conftest.err; then
26991     ac_cpp_err=$ac_c_preproc_warn_flag
26992     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26993   else
26994     ac_cpp_err=
26995   fi
26996 else
26997   ac_cpp_err=yes
26998 fi
26999 if test -z "$ac_cpp_err"; then
27000   ac_header_preproc=yes
27001 else
27002   echo "$as_me: failed program was:" >&5
27003 sed 's/^/| /' conftest.$ac_ext >&5
27004
27005   ac_header_preproc=no
27006 fi
27007 rm -f conftest.err conftest.$ac_ext
27008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27009 echo "${ECHO_T}$ac_header_preproc" >&6
27010
27011 # So?  What about this header?
27012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27013   yes:no: )
27014     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27018     ac_header_preproc=yes
27019     ;;
27020   no:yes:* )
27021     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27023     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27024 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27025     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27027     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27028 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27031     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27033     (
27034       cat <<\_ASBOX
27035 ## --------------------------------------------- ##
27036 ## Report this to <http://www.openldap.org/its/> ##
27037 ## --------------------------------------------- ##
27038 _ASBOX
27039     ) |
27040       sed "s/^/$as_me: WARNING:     /" >&2
27041     ;;
27042 esac
27043 echo "$as_me:$LINENO: checking for $ac_header" >&5
27044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27046   echo $ECHO_N "(cached) $ECHO_C" >&6
27047 else
27048   eval "$as_ac_Header=\$ac_header_preproc"
27049 fi
27050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27052
27053 fi
27054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27055   cat >>confdefs.h <<_ACEOF
27056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27057 _ACEOF
27058
27059 fi
27060
27061 done
27062
27063
27064 for ac_header in lwp/lwp.h
27065 do
27066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27068   echo "$as_me:$LINENO: checking for $ac_header" >&5
27069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27071   echo $ECHO_N "(cached) $ECHO_C" >&6
27072 fi
27073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27075 else
27076   # Is the header compilable?
27077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27079 cat >conftest.$ac_ext <<_ACEOF
27080 /* confdefs.h.  */
27081 _ACEOF
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h.  */
27085 $ac_includes_default
27086 #include <$ac_header>
27087 _ACEOF
27088 rm -f conftest.$ac_objext
27089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27090   (eval $ac_compile) 2>conftest.er1
27091   ac_status=$?
27092   grep -v '^ *+' conftest.er1 >conftest.err
27093   rm -f conftest.er1
27094   cat conftest.err >&5
27095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096   (exit $ac_status); } &&
27097          { ac_try='test -z "$ac_c_werror_flag"
27098                          || test ! -s conftest.err'
27099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27100   (eval $ac_try) 2>&5
27101   ac_status=$?
27102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103   (exit $ac_status); }; } &&
27104          { ac_try='test -s conftest.$ac_objext'
27105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27106   (eval $ac_try) 2>&5
27107   ac_status=$?
27108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109   (exit $ac_status); }; }; then
27110   ac_header_compiler=yes
27111 else
27112   echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27114
27115 ac_header_compiler=no
27116 fi
27117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27119 echo "${ECHO_T}$ac_header_compiler" >&6
27120
27121 # Is the header present?
27122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27124 cat >conftest.$ac_ext <<_ACEOF
27125 /* confdefs.h.  */
27126 _ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h.  */
27130 #include <$ac_header>
27131 _ACEOF
27132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27134   ac_status=$?
27135   grep -v '^ *+' conftest.er1 >conftest.err
27136   rm -f conftest.er1
27137   cat conftest.err >&5
27138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139   (exit $ac_status); } >/dev/null; then
27140   if test -s conftest.err; then
27141     ac_cpp_err=$ac_c_preproc_warn_flag
27142     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27143   else
27144     ac_cpp_err=
27145   fi
27146 else
27147   ac_cpp_err=yes
27148 fi
27149 if test -z "$ac_cpp_err"; then
27150   ac_header_preproc=yes
27151 else
27152   echo "$as_me: failed program was:" >&5
27153 sed 's/^/| /' conftest.$ac_ext >&5
27154
27155   ac_header_preproc=no
27156 fi
27157 rm -f conftest.err conftest.$ac_ext
27158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27159 echo "${ECHO_T}$ac_header_preproc" >&6
27160
27161 # So?  What about this header?
27162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27163   yes:no: )
27164     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27168     ac_header_preproc=yes
27169     ;;
27170   no:yes:* )
27171     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27173     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27174 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27175     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27177     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27178 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27181     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27183     (
27184       cat <<\_ASBOX
27185 ## --------------------------------------------- ##
27186 ## Report this to <http://www.openldap.org/its/> ##
27187 ## --------------------------------------------- ##
27188 _ASBOX
27189     ) |
27190       sed "s/^/$as_me: WARNING:     /" >&2
27191     ;;
27192 esac
27193 echo "$as_me:$LINENO: checking for $ac_header" >&5
27194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27196   echo $ECHO_N "(cached) $ECHO_C" >&6
27197 else
27198   eval "$as_ac_Header=\$ac_header_preproc"
27199 fi
27200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27202
27203 fi
27204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27205   cat >>confdefs.h <<_ACEOF
27206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27207 _ACEOF
27208
27209 fi
27210
27211 done
27212
27213
27214
27215 for ac_header in thread.h synch.h
27216 do
27217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27219   echo "$as_me:$LINENO: checking for $ac_header" >&5
27220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27222   echo $ECHO_N "(cached) $ECHO_C" >&6
27223 fi
27224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27226 else
27227   # Is the header compilable?
27228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27230 cat >conftest.$ac_ext <<_ACEOF
27231 /* confdefs.h.  */
27232 _ACEOF
27233 cat confdefs.h >>conftest.$ac_ext
27234 cat >>conftest.$ac_ext <<_ACEOF
27235 /* end confdefs.h.  */
27236 $ac_includes_default
27237 #include <$ac_header>
27238 _ACEOF
27239 rm -f conftest.$ac_objext
27240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27241   (eval $ac_compile) 2>conftest.er1
27242   ac_status=$?
27243   grep -v '^ *+' conftest.er1 >conftest.err
27244   rm -f conftest.er1
27245   cat conftest.err >&5
27246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247   (exit $ac_status); } &&
27248          { ac_try='test -z "$ac_c_werror_flag"
27249                          || test ! -s conftest.err'
27250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27251   (eval $ac_try) 2>&5
27252   ac_status=$?
27253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254   (exit $ac_status); }; } &&
27255          { ac_try='test -s conftest.$ac_objext'
27256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27257   (eval $ac_try) 2>&5
27258   ac_status=$?
27259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260   (exit $ac_status); }; }; then
27261   ac_header_compiler=yes
27262 else
27263   echo "$as_me: failed program was:" >&5
27264 sed 's/^/| /' conftest.$ac_ext >&5
27265
27266 ac_header_compiler=no
27267 fi
27268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27270 echo "${ECHO_T}$ac_header_compiler" >&6
27271
27272 # Is the header present?
27273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27275 cat >conftest.$ac_ext <<_ACEOF
27276 /* confdefs.h.  */
27277 _ACEOF
27278 cat confdefs.h >>conftest.$ac_ext
27279 cat >>conftest.$ac_ext <<_ACEOF
27280 /* end confdefs.h.  */
27281 #include <$ac_header>
27282 _ACEOF
27283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27284   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27285   ac_status=$?
27286   grep -v '^ *+' conftest.er1 >conftest.err
27287   rm -f conftest.er1
27288   cat conftest.err >&5
27289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290   (exit $ac_status); } >/dev/null; then
27291   if test -s conftest.err; then
27292     ac_cpp_err=$ac_c_preproc_warn_flag
27293     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27294   else
27295     ac_cpp_err=
27296   fi
27297 else
27298   ac_cpp_err=yes
27299 fi
27300 if test -z "$ac_cpp_err"; then
27301   ac_header_preproc=yes
27302 else
27303   echo "$as_me: failed program was:" >&5
27304 sed 's/^/| /' conftest.$ac_ext >&5
27305
27306   ac_header_preproc=no
27307 fi
27308 rm -f conftest.err conftest.$ac_ext
27309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27310 echo "${ECHO_T}$ac_header_preproc" >&6
27311
27312 # So?  What about this header?
27313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27314   yes:no: )
27315     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27319     ac_header_preproc=yes
27320     ;;
27321   no:yes:* )
27322     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27324     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27325 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27326     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27328     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27329 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27332     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27334     (
27335       cat <<\_ASBOX
27336 ## --------------------------------------------- ##
27337 ## Report this to <http://www.openldap.org/its/> ##
27338 ## --------------------------------------------- ##
27339 _ASBOX
27340     ) |
27341       sed "s/^/$as_me: WARNING:     /" >&2
27342     ;;
27343 esac
27344 echo "$as_me:$LINENO: checking for $ac_header" >&5
27345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27347   echo $ECHO_N "(cached) $ECHO_C" >&6
27348 else
27349   eval "$as_ac_Header=\$ac_header_preproc"
27350 fi
27351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27353
27354 fi
27355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27356   cat >>confdefs.h <<_ACEOF
27357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27358 _ACEOF
27359
27360 fi
27361
27362 done
27363
27364 fi
27365
27366 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27367                         cat >>confdefs.h <<\_ACEOF
27368 #define REENTRANT 1
27369 _ACEOF
27370
27371         cat >>confdefs.h <<\_ACEOF
27372 #define _REENTRANT 1
27373 _ACEOF
27374
27375         cat >>confdefs.h <<\_ACEOF
27376 #define THREAD_SAFE 1
27377 _ACEOF
27378
27379         cat >>confdefs.h <<\_ACEOF
27380 #define _THREAD_SAFE 1
27381 _ACEOF
27382
27383         cat >>confdefs.h <<\_ACEOF
27384 #define THREADSAFE 1
27385 _ACEOF
27386
27387         cat >>confdefs.h <<\_ACEOF
27388 #define _THREADSAFE 1
27389 _ACEOF
27390
27391         cat >>confdefs.h <<\_ACEOF
27392 #define _SGI_MP_SOURCE 1
27393 _ACEOF
27394
27395
27396                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27397 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27398 if test "${ol_cv_errno_thread_specific+set}" = set; then
27399   echo $ECHO_N "(cached) $ECHO_C" >&6
27400 else
27401
27402                 cat >conftest.$ac_ext <<_ACEOF
27403 /* confdefs.h.  */
27404 _ACEOF
27405 cat confdefs.h >>conftest.$ac_ext
27406 cat >>conftest.$ac_ext <<_ACEOF
27407 /* end confdefs.h.  */
27408 #include <errno.h>
27409 int
27410 main ()
27411 {
27412 errno = 0;
27413   ;
27414   return 0;
27415 }
27416 _ACEOF
27417 rm -f conftest.$ac_objext conftest$ac_exeext
27418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27419   (eval $ac_link) 2>conftest.er1
27420   ac_status=$?
27421   grep -v '^ *+' conftest.er1 >conftest.err
27422   rm -f conftest.er1
27423   cat conftest.err >&5
27424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425   (exit $ac_status); } &&
27426          { ac_try='test -z "$ac_c_werror_flag"
27427                          || test ! -s conftest.err'
27428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27429   (eval $ac_try) 2>&5
27430   ac_status=$?
27431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432   (exit $ac_status); }; } &&
27433          { ac_try='test -s conftest$ac_exeext'
27434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27435   (eval $ac_try) 2>&5
27436   ac_status=$?
27437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438   (exit $ac_status); }; }; then
27439   ol_cv_errno_thread_specific=yes
27440 else
27441   echo "$as_me: failed program was:" >&5
27442 sed 's/^/| /' conftest.$ac_ext >&5
27443
27444 ol_cv_errno_thread_specific=no
27445 fi
27446 rm -f conftest.err conftest.$ac_objext \
27447       conftest$ac_exeext conftest.$ac_ext
27448
27449 fi
27450 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27451 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27452
27453                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27454 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27455 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27456   echo $ECHO_N "(cached) $ECHO_C" >&6
27457 else
27458
27459                 cat >conftest.$ac_ext <<_ACEOF
27460 /* confdefs.h.  */
27461 _ACEOF
27462 cat confdefs.h >>conftest.$ac_ext
27463 cat >>conftest.$ac_ext <<_ACEOF
27464 /* end confdefs.h.  */
27465 #include <netdb.h>
27466 int
27467 main ()
27468 {
27469 h_errno = 0;
27470   ;
27471   return 0;
27472 }
27473 _ACEOF
27474 rm -f conftest.$ac_objext conftest$ac_exeext
27475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27476   (eval $ac_link) 2>conftest.er1
27477   ac_status=$?
27478   grep -v '^ *+' conftest.er1 >conftest.err
27479   rm -f conftest.er1
27480   cat conftest.err >&5
27481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482   (exit $ac_status); } &&
27483          { ac_try='test -z "$ac_c_werror_flag"
27484                          || test ! -s conftest.err'
27485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27486   (eval $ac_try) 2>&5
27487   ac_status=$?
27488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489   (exit $ac_status); }; } &&
27490          { ac_try='test -s conftest$ac_exeext'
27491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27492   (eval $ac_try) 2>&5
27493   ac_status=$?
27494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495   (exit $ac_status); }; }; then
27496   ol_cv_h_errno_thread_specific=yes
27497 else
27498   echo "$as_me: failed program was:" >&5
27499 sed 's/^/| /' conftest.$ac_ext >&5
27500
27501 ol_cv_h_errno_thread_specific=no
27502 fi
27503 rm -f conftest.err conftest.$ac_objext \
27504       conftest$ac_exeext conftest.$ac_ext
27505
27506 fi
27507 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27508 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27509
27510         if test $ol_cv_errno_thread_specific != yes ||
27511            test $ol_cv_h_errno_thread_specific != yes ; then
27512                 LIBS="$LTHREAD_LIBS $LIBS"
27513                 LTHREAD_LIBS=""
27514         fi
27515
27516 fi
27517
27518 if test $ol_link_threads = no ; then
27519         if test $ol_with_threads = yes ; then
27520                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27521 echo "$as_me: error: no suitable thread support" >&2;}
27522    { (exit 1); exit 1; }; }
27523         fi
27524
27525         if test $ol_with_threads = auto ; then
27526                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27527 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27528                 ol_with_threads=no
27529         fi
27530
27531
27532 cat >>confdefs.h <<\_ACEOF
27533 #define NO_THREADS 1
27534 _ACEOF
27535
27536         LTHREAD_LIBS=""
27537         BUILD_THREAD=no
27538 else
27539         BUILD_THREAD=yes
27540 fi
27541
27542 if test $ol_link_threads != no ; then
27543
27544 cat >>confdefs.h <<\_ACEOF
27545 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27546 _ACEOF
27547
27548 fi
27549
27550
27551
27552
27553 for ac_func in \
27554         ctime_r                 \
27555         gethostbyname_r gethostbyaddr_r \
27556
27557 do
27558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27559 echo "$as_me:$LINENO: checking for $ac_func" >&5
27560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27561 if eval "test \"\${$as_ac_var+set}\" = set"; then
27562   echo $ECHO_N "(cached) $ECHO_C" >&6
27563 else
27564   cat >conftest.$ac_ext <<_ACEOF
27565 /* confdefs.h.  */
27566 _ACEOF
27567 cat confdefs.h >>conftest.$ac_ext
27568 cat >>conftest.$ac_ext <<_ACEOF
27569 /* end confdefs.h.  */
27570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27572 #define $ac_func innocuous_$ac_func
27573
27574 /* System header to define __stub macros and hopefully few prototypes,
27575     which can conflict with char $ac_func (); below.
27576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27577     <limits.h> exists even on freestanding compilers.  */
27578
27579 #ifdef __STDC__
27580 # include <limits.h>
27581 #else
27582 # include <assert.h>
27583 #endif
27584
27585 #undef $ac_func
27586
27587 /* Override any gcc2 internal prototype to avoid an error.  */
27588 #ifdef __cplusplus
27589 extern "C"
27590 {
27591 #endif
27592 /* We use char because int might match the return type of a gcc2
27593    builtin and then its argument prototype would still apply.  */
27594 char $ac_func ();
27595 /* The GNU C library defines this for functions which it implements
27596     to always fail with ENOSYS.  Some functions are actually named
27597     something starting with __ and the normal name is an alias.  */
27598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27599 choke me
27600 #else
27601 char (*f) () = $ac_func;
27602 #endif
27603 #ifdef __cplusplus
27604 }
27605 #endif
27606
27607 int
27608 main ()
27609 {
27610 return f != $ac_func;
27611   ;
27612   return 0;
27613 }
27614 _ACEOF
27615 rm -f conftest.$ac_objext conftest$ac_exeext
27616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27617   (eval $ac_link) 2>conftest.er1
27618   ac_status=$?
27619   grep -v '^ *+' conftest.er1 >conftest.err
27620   rm -f conftest.er1
27621   cat conftest.err >&5
27622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623   (exit $ac_status); } &&
27624          { ac_try='test -z "$ac_c_werror_flag"
27625                          || test ! -s conftest.err'
27626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27627   (eval $ac_try) 2>&5
27628   ac_status=$?
27629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630   (exit $ac_status); }; } &&
27631          { ac_try='test -s conftest$ac_exeext'
27632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27633   (eval $ac_try) 2>&5
27634   ac_status=$?
27635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636   (exit $ac_status); }; }; then
27637   eval "$as_ac_var=yes"
27638 else
27639   echo "$as_me: failed program was:" >&5
27640 sed 's/^/| /' conftest.$ac_ext >&5
27641
27642 eval "$as_ac_var=no"
27643 fi
27644 rm -f conftest.err conftest.$ac_objext \
27645       conftest$ac_exeext conftest.$ac_ext
27646 fi
27647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27649 if test `eval echo '${'$as_ac_var'}'` = yes; then
27650   cat >>confdefs.h <<_ACEOF
27651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27652 _ACEOF
27653
27654 fi
27655 done
27656
27657
27658 if test "$ac_cv_func_ctime_r" = no ; then
27659         ol_cv_func_ctime_r_nargs=0
27660 else
27661         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27662 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27663 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27664   echo $ECHO_N "(cached) $ECHO_C" >&6
27665 else
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 #include <time.h>
27673 int
27674 main ()
27675 {
27676 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27677   ;
27678   return 0;
27679 }
27680 _ACEOF
27681 rm -f conftest.$ac_objext
27682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27683   (eval $ac_compile) 2>conftest.er1
27684   ac_status=$?
27685   grep -v '^ *+' conftest.er1 >conftest.err
27686   rm -f conftest.er1
27687   cat conftest.err >&5
27688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689   (exit $ac_status); } &&
27690          { ac_try='test -z "$ac_c_werror_flag"
27691                          || test ! -s conftest.err'
27692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27693   (eval $ac_try) 2>&5
27694   ac_status=$?
27695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696   (exit $ac_status); }; } &&
27697          { ac_try='test -s conftest.$ac_objext'
27698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27699   (eval $ac_try) 2>&5
27700   ac_status=$?
27701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702   (exit $ac_status); }; }; then
27703   ol_cv_func_ctime_r_nargs3=yes
27704 else
27705   echo "$as_me: failed program was:" >&5
27706 sed 's/^/| /' conftest.$ac_ext >&5
27707
27708 ol_cv_func_ctime_r_nargs3=no
27709 fi
27710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27711
27712         cat >conftest.$ac_ext <<_ACEOF
27713 /* confdefs.h.  */
27714 _ACEOF
27715 cat confdefs.h >>conftest.$ac_ext
27716 cat >>conftest.$ac_ext <<_ACEOF
27717 /* end confdefs.h.  */
27718 #include <time.h>
27719 int
27720 main ()
27721 {
27722 time_t ti; char *buffer; ctime_r(&ti,buffer);
27723   ;
27724   return 0;
27725 }
27726 _ACEOF
27727 rm -f conftest.$ac_objext
27728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27729   (eval $ac_compile) 2>conftest.er1
27730   ac_status=$?
27731   grep -v '^ *+' conftest.er1 >conftest.err
27732   rm -f conftest.er1
27733   cat conftest.err >&5
27734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735   (exit $ac_status); } &&
27736          { ac_try='test -z "$ac_c_werror_flag"
27737                          || test ! -s conftest.err'
27738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27739   (eval $ac_try) 2>&5
27740   ac_status=$?
27741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742   (exit $ac_status); }; } &&
27743          { ac_try='test -s conftest.$ac_objext'
27744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27745   (eval $ac_try) 2>&5
27746   ac_status=$?
27747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748   (exit $ac_status); }; }; then
27749   ol_cv_func_ctime_r_nargs2=yes
27750 else
27751   echo "$as_me: failed program was:" >&5
27752 sed 's/^/| /' conftest.$ac_ext >&5
27753
27754 ol_cv_func_ctime_r_nargs2=no
27755 fi
27756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27757
27758         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27759            test $ol_cv_func_ctime_r_nargs2 = no ; then
27760
27761                 ol_cv_func_ctime_r_nargs=3
27762
27763         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27764              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27765
27766                 ol_cv_func_ctime_r_nargs=2
27767
27768         else
27769                 ol_cv_func_ctime_r_nargs=0
27770         fi
27771
27772 fi
27773 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27774 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27775
27776   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27777
27778 cat >>confdefs.h <<_ACEOF
27779 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27780 _ACEOF
27781
27782   fi
27783
27784 fi
27785
27786 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27787         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27788 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27789 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27790   echo $ECHO_N "(cached) $ECHO_C" >&6
27791 else
27792   cat >conftest.$ac_ext <<_ACEOF
27793 /* confdefs.h.  */
27794 _ACEOF
27795 cat confdefs.h >>conftest.$ac_ext
27796 cat >>conftest.$ac_ext <<_ACEOF
27797 /* end confdefs.h.  */
27798 #include <sys/types.h>
27799 #include <sys/socket.h>
27800 #include <netinet/in.h>
27801 #include <netdb.h>
27802 #define BUFSIZE (sizeof(struct hostent)+10)
27803 int
27804 main ()
27805 {
27806 struct hostent hent; char buffer[BUFSIZE];
27807                 int bufsize=BUFSIZE;int h_errno;
27808                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27809                         buffer, bufsize, &h_errno);
27810   ;
27811   return 0;
27812 }
27813 _ACEOF
27814 rm -f conftest.$ac_objext
27815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27816   (eval $ac_compile) 2>conftest.er1
27817   ac_status=$?
27818   grep -v '^ *+' conftest.er1 >conftest.err
27819   rm -f conftest.er1
27820   cat conftest.err >&5
27821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27822   (exit $ac_status); } &&
27823          { ac_try='test -z "$ac_c_werror_flag"
27824                          || test ! -s conftest.err'
27825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27826   (eval $ac_try) 2>&5
27827   ac_status=$?
27828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27829   (exit $ac_status); }; } &&
27830          { ac_try='test -s conftest.$ac_objext'
27831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27832   (eval $ac_try) 2>&5
27833   ac_status=$?
27834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835   (exit $ac_status); }; }; then
27836   ol_cv_func_gethostbyname_r_nargs5=yes
27837 else
27838   echo "$as_me: failed program was:" >&5
27839 sed 's/^/| /' conftest.$ac_ext >&5
27840
27841 ol_cv_func_gethostbyname_r_nargs5=no
27842 fi
27843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27844
27845         cat >conftest.$ac_ext <<_ACEOF
27846 /* confdefs.h.  */
27847 _ACEOF
27848 cat confdefs.h >>conftest.$ac_ext
27849 cat >>conftest.$ac_ext <<_ACEOF
27850 /* end confdefs.h.  */
27851 #include <sys/types.h>
27852 #include <sys/socket.h>
27853 #include <netinet/in.h>
27854 #include <netdb.h>
27855 #define BUFSIZE (sizeof(struct hostent)+10)
27856 int
27857 main ()
27858 {
27859 struct hostent hent;struct hostent *rhent;
27860                 char buffer[BUFSIZE];
27861                 int bufsize=BUFSIZE;int h_errno;
27862                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27863                         &rhent, &h_errno);
27864   ;
27865   return 0;
27866 }
27867 _ACEOF
27868 rm -f conftest.$ac_objext
27869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27870   (eval $ac_compile) 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_objext'
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_func_gethostbyname_r_nargs6=yes
27891 else
27892   echo "$as_me: failed program was:" >&5
27893 sed 's/^/| /' conftest.$ac_ext >&5
27894
27895 ol_cv_func_gethostbyname_r_nargs6=no
27896 fi
27897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27898
27899         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27900            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27901
27902                 ol_cv_func_gethostbyname_r_nargs=5
27903
27904         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27905              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27906
27907                 ol_cv_func_gethostbyname_r_nargs=6
27908
27909         else
27910                 ol_cv_func_gethostbyname_r_nargs=0
27911         fi
27912
27913 fi
27914 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27915 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27916   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27917
27918 cat >>confdefs.h <<_ACEOF
27919 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27920 _ACEOF
27921
27922   fi
27923
27924 else
27925         ol_cv_func_gethostbyname_r_nargs=0
27926 fi
27927
27928 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27929         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27930 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27931 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27932   echo $ECHO_N "(cached) $ECHO_C" >&6
27933 else
27934   cat >conftest.$ac_ext <<_ACEOF
27935 /* confdefs.h.  */
27936 _ACEOF
27937 cat confdefs.h >>conftest.$ac_ext
27938 cat >>conftest.$ac_ext <<_ACEOF
27939 /* end confdefs.h.  */
27940 #include <sys/types.h>
27941 #include <sys/socket.h>
27942 #include <netinet/in.h>
27943 #include <netdb.h>
27944 #define BUFSIZE (sizeof(struct hostent)+10)
27945 int
27946 main ()
27947 {
27948 struct hostent hent; char buffer[BUFSIZE];
27949             struct in_addr add;
27950             size_t alen=sizeof(struct in_addr);
27951             int bufsize=BUFSIZE;int h_errno;
27952                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27953                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27954   ;
27955   return 0;
27956 }
27957 _ACEOF
27958 rm -f conftest.$ac_objext
27959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27960   (eval $ac_compile) 2>conftest.er1
27961   ac_status=$?
27962   grep -v '^ *+' conftest.er1 >conftest.err
27963   rm -f conftest.er1
27964   cat conftest.err >&5
27965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966   (exit $ac_status); } &&
27967          { ac_try='test -z "$ac_c_werror_flag"
27968                          || test ! -s conftest.err'
27969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27970   (eval $ac_try) 2>&5
27971   ac_status=$?
27972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973   (exit $ac_status); }; } &&
27974          { ac_try='test -s conftest.$ac_objext'
27975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27976   (eval $ac_try) 2>&5
27977   ac_status=$?
27978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979   (exit $ac_status); }; }; then
27980   ol_cv_func_gethostbyaddr_r_nargs7=yes
27981 else
27982   echo "$as_me: failed program was:" >&5
27983 sed 's/^/| /' conftest.$ac_ext >&5
27984
27985 ol_cv_func_gethostbyaddr_r_nargs7=no
27986 fi
27987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27988
27989         cat >conftest.$ac_ext <<_ACEOF
27990 /* confdefs.h.  */
27991 _ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h.  */
27995 #include <sys/types.h>
27996 #include <sys/socket.h>
27997 #include <netinet/in.h>
27998 #include <netdb.h>
27999 #define BUFSIZE (sizeof(struct hostent)+10)
28000 int
28001 main ()
28002 {
28003 struct hostent hent;
28004                 struct hostent *rhent; char buffer[BUFSIZE];
28005                 struct in_addr add;
28006                 size_t alen=sizeof(struct in_addr);
28007                 int bufsize=BUFSIZE;int h_errno;
28008                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28009                         alen, AF_INET, &hent, buffer, bufsize,
28010                         &rhent, &h_errno);
28011   ;
28012   return 0;
28013 }
28014 _ACEOF
28015 rm -f conftest.$ac_objext
28016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28017   (eval $ac_compile) 2>conftest.er1
28018   ac_status=$?
28019   grep -v '^ *+' conftest.er1 >conftest.err
28020   rm -f conftest.er1
28021   cat conftest.err >&5
28022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023   (exit $ac_status); } &&
28024          { ac_try='test -z "$ac_c_werror_flag"
28025                          || test ! -s conftest.err'
28026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28027   (eval $ac_try) 2>&5
28028   ac_status=$?
28029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030   (exit $ac_status); }; } &&
28031          { ac_try='test -s conftest.$ac_objext'
28032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28033   (eval $ac_try) 2>&5
28034   ac_status=$?
28035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036   (exit $ac_status); }; }; then
28037   ol_cv_func_gethostbyaddr_r_nargs8=yes
28038 else
28039   echo "$as_me: failed program was:" >&5
28040 sed 's/^/| /' conftest.$ac_ext >&5
28041
28042 ol_cv_func_gethostbyaddr_r_nargs8=no
28043 fi
28044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28045
28046         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
28047            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
28048
28049                 ol_cv_func_gethostbyaddr_r_nargs=7
28050
28051         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
28052              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
28053
28054                 ol_cv_func_gethostbyaddr_r_nargs=8
28055
28056         else
28057                 ol_cv_func_gethostbyaddr_r_nargs=0
28058         fi
28059
28060 fi
28061 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
28062 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
28063   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
28064
28065 cat >>confdefs.h <<_ACEOF
28066 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
28067 _ACEOF
28068
28069   fi
28070
28071 else
28072         ol_cv_func_gethostbyaddr_r_nargs=0
28073 fi
28074
28075 ol_link_bdb=no
28076
28077 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
28078         ol_cv_berkeley_db=no
28079
28080 for ac_header in db.h
28081 do
28082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28084   echo "$as_me:$LINENO: checking for $ac_header" >&5
28085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28087   echo $ECHO_N "(cached) $ECHO_C" >&6
28088 fi
28089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28091 else
28092   # Is the header compilable?
28093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28095 cat >conftest.$ac_ext <<_ACEOF
28096 /* confdefs.h.  */
28097 _ACEOF
28098 cat confdefs.h >>conftest.$ac_ext
28099 cat >>conftest.$ac_ext <<_ACEOF
28100 /* end confdefs.h.  */
28101 $ac_includes_default
28102 #include <$ac_header>
28103 _ACEOF
28104 rm -f conftest.$ac_objext
28105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28106   (eval $ac_compile) 2>conftest.er1
28107   ac_status=$?
28108   grep -v '^ *+' conftest.er1 >conftest.err
28109   rm -f conftest.er1
28110   cat conftest.err >&5
28111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112   (exit $ac_status); } &&
28113          { ac_try='test -z "$ac_c_werror_flag"
28114                          || test ! -s conftest.err'
28115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28116   (eval $ac_try) 2>&5
28117   ac_status=$?
28118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119   (exit $ac_status); }; } &&
28120          { ac_try='test -s conftest.$ac_objext'
28121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28122   (eval $ac_try) 2>&5
28123   ac_status=$?
28124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125   (exit $ac_status); }; }; then
28126   ac_header_compiler=yes
28127 else
28128   echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28130
28131 ac_header_compiler=no
28132 fi
28133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28135 echo "${ECHO_T}$ac_header_compiler" >&6
28136
28137 # Is the header present?
28138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
28147 _ACEOF
28148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28150   ac_status=$?
28151   grep -v '^ *+' conftest.er1 >conftest.err
28152   rm -f conftest.er1
28153   cat conftest.err >&5
28154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155   (exit $ac_status); } >/dev/null; then
28156   if test -s conftest.err; then
28157     ac_cpp_err=$ac_c_preproc_warn_flag
28158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28159   else
28160     ac_cpp_err=
28161   fi
28162 else
28163   ac_cpp_err=yes
28164 fi
28165 if test -z "$ac_cpp_err"; then
28166   ac_header_preproc=yes
28167 else
28168   echo "$as_me: failed program was:" >&5
28169 sed 's/^/| /' conftest.$ac_ext >&5
28170
28171   ac_header_preproc=no
28172 fi
28173 rm -f conftest.err conftest.$ac_ext
28174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28175 echo "${ECHO_T}$ac_header_preproc" >&6
28176
28177 # So?  What about this header?
28178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28179   yes:no: )
28180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28184     ac_header_preproc=yes
28185     ;;
28186   no:yes:* )
28187     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28189     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28190 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28191     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28193     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28194 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28197     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28199     (
28200       cat <<\_ASBOX
28201 ## --------------------------------------------- ##
28202 ## Report this to <http://www.openldap.org/its/> ##
28203 ## --------------------------------------------- ##
28204 _ASBOX
28205     ) |
28206       sed "s/^/$as_me: WARNING:     /" >&2
28207     ;;
28208 esac
28209 echo "$as_me:$LINENO: checking for $ac_header" >&5
28210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28212   echo $ECHO_N "(cached) $ECHO_C" >&6
28213 else
28214   eval "$as_ac_Header=\$ac_header_preproc"
28215 fi
28216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28218
28219 fi
28220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28221   cat >>confdefs.h <<_ACEOF
28222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28223 _ACEOF
28224
28225 fi
28226
28227 done
28228
28229 if test $ac_cv_header_db_h = yes; then
28230         echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28231 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6
28232 if test "${ol_cv_bdb_major+set}" = set; then
28233   echo $ECHO_N "(cached) $ECHO_C" >&6
28234 else
28235
28236         cat >conftest.$ac_ext <<_ACEOF
28237
28238 #include <db.h>
28239 #ifndef DB_VERSION_MAJOR
28240 #       define DB_VERSION_MAJOR 1
28241 #endif
28242 __db_version DB_VERSION_MAJOR
28243
28244 _ACEOF
28245         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28246         ol_cv_bdb_major=${3}
28247
28248 fi
28249 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28250 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28251 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28252         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28253 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28254    { (exit 1); exit 1; }; } ;;
28255 esac
28256
28257 echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28258 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6
28259 if test "${ol_cv_bdb_minor+set}" = set; then
28260   echo $ECHO_N "(cached) $ECHO_C" >&6
28261 else
28262
28263         cat >conftest.$ac_ext <<_ACEOF
28264
28265 #include <db.h>
28266 #ifndef DB_VERSION_MINOR
28267 #       define DB_VERSION_MINOR 0
28268 #endif
28269 __db_version DB_VERSION_MINOR
28270
28271 _ACEOF
28272         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28273         ol_cv_bdb_minor=${3}
28274
28275 fi
28276 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28277 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28278 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28279         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28280 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28281    { (exit 1); exit 1; }; } ;;
28282 esac
28283
28284         echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28285 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6
28286 if test "${ol_cv_bdb_compat+set}" = set; then
28287   echo $ECHO_N "(cached) $ECHO_C" >&6
28288 else
28289
28290         cat >conftest.$ac_ext <<_ACEOF
28291 /* confdefs.h.  */
28292 _ACEOF
28293 cat confdefs.h >>conftest.$ac_ext
28294 cat >>conftest.$ac_ext <<_ACEOF
28295 /* end confdefs.h.  */
28296
28297 #include <db.h>
28298
28299  /* this check could be improved */
28300 #ifndef DB_VERSION_MAJOR
28301 #       define DB_VERSION_MAJOR 1
28302 #endif
28303 #ifndef DB_VERSION_MINOR
28304 #       define DB_VERSION_MINOR 0
28305 #endif
28306
28307 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28308
28309 /* require 4.4 or later */
28310 #if DB_VERSION_MM >= 0x0404
28311         __db_version_compat
28312 #endif
28313
28314 _ACEOF
28315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28316   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28317   ol_cv_bdb_compat=yes
28318 else
28319   ol_cv_bdb_compat=no
28320 fi
28321 rm -f conftest*
28322
28323 fi
28324 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28325 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
28326
28327
28328         if test $ol_cv_bdb_compat != yes ; then
28329                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28330 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28331    { (exit 1); exit 1; }; }
28332         fi
28333
28334         ol_cv_lib_db=no
28335
28336 if test $ol_cv_bdb_major = 4 ; then
28337         if test $ol_cv_lib_db = no ; then
28338         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28339 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6
28340 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28341   echo $ECHO_N "(cached) $ECHO_C" >&6
28342 else
28343
28344         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28345         ol_LIBS=$LIBS
28346         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28347
28348         cat >conftest.$ac_ext <<_ACEOF
28349 /* confdefs.h.  */
28350 _ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h.  */
28354
28355 #ifdef HAVE_DB_185_H
28356 # include <db_185.h>
28357 #else
28358 # include <db.h>
28359 #endif
28360
28361 #ifndef DB_VERSION_MAJOR
28362 # define DB_VERSION_MAJOR 1
28363 #endif
28364
28365 #ifndef NULL
28366 #define NULL ((void*)0)
28367 #endif
28368
28369 int
28370 main ()
28371 {
28372
28373 #if DB_VERSION_MAJOR > 2
28374         db_env_create( NULL, 0 );
28375 #elif DB_VERSION_MAJOR > 1
28376         db_appexit( NULL );
28377 #else
28378         (void) dbopen( NULL, 0, 0, 0, NULL);
28379 #endif
28380
28381   ;
28382   return 0;
28383 }
28384 _ACEOF
28385 rm -f conftest.$ac_objext conftest$ac_exeext
28386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28387   (eval $ac_link) 2>conftest.er1
28388   ac_status=$?
28389   grep -v '^ *+' conftest.er1 >conftest.err
28390   rm -f conftest.er1
28391   cat conftest.err >&5
28392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393   (exit $ac_status); } &&
28394          { ac_try='test -z "$ac_c_werror_flag"
28395                          || test ! -s conftest.err'
28396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28397   (eval $ac_try) 2>&5
28398   ac_status=$?
28399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400   (exit $ac_status); }; } &&
28401          { ac_try='test -s conftest$ac_exeext'
28402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28403   (eval $ac_try) 2>&5
28404   ac_status=$?
28405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406   (exit $ac_status); }; }; then
28407   ol_cv_db_db_4_dot_m=yes
28408 else
28409   echo "$as_me: failed program was:" >&5
28410 sed 's/^/| /' conftest.$ac_ext >&5
28411
28412 ol_cv_db_db_4_dot_m=no
28413 fi
28414 rm -f conftest.err conftest.$ac_objext \
28415       conftest$ac_exeext conftest.$ac_ext
28416
28417         LIBS="$ol_LIBS"
28418
28419 fi
28420 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28421 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6
28422
28423         if test $ol_cv_db_db_4_dot_m = yes ; then
28424                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28425         fi
28426 fi
28427
28428         if test $ol_cv_lib_db = no ; then
28429         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28430 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6
28431 if test "${ol_cv_db_db4m+set}" = set; then
28432   echo $ECHO_N "(cached) $ECHO_C" >&6
28433 else
28434
28435         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28436         ol_LIBS=$LIBS
28437         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28438
28439         cat >conftest.$ac_ext <<_ACEOF
28440 /* confdefs.h.  */
28441 _ACEOF
28442 cat confdefs.h >>conftest.$ac_ext
28443 cat >>conftest.$ac_ext <<_ACEOF
28444 /* end confdefs.h.  */
28445
28446 #ifdef HAVE_DB_185_H
28447 # include <db_185.h>
28448 #else
28449 # include <db.h>
28450 #endif
28451
28452 #ifndef DB_VERSION_MAJOR
28453 # define DB_VERSION_MAJOR 1
28454 #endif
28455
28456 #ifndef NULL
28457 #define NULL ((void*)0)
28458 #endif
28459
28460 int
28461 main ()
28462 {
28463
28464 #if DB_VERSION_MAJOR > 2
28465         db_env_create( NULL, 0 );
28466 #elif DB_VERSION_MAJOR > 1
28467         db_appexit( NULL );
28468 #else
28469         (void) dbopen( NULL, 0, 0, 0, NULL);
28470 #endif
28471
28472   ;
28473   return 0;
28474 }
28475 _ACEOF
28476 rm -f conftest.$ac_objext conftest$ac_exeext
28477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28478   (eval $ac_link) 2>conftest.er1
28479   ac_status=$?
28480   grep -v '^ *+' conftest.er1 >conftest.err
28481   rm -f conftest.er1
28482   cat conftest.err >&5
28483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484   (exit $ac_status); } &&
28485          { ac_try='test -z "$ac_c_werror_flag"
28486                          || test ! -s conftest.err'
28487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28488   (eval $ac_try) 2>&5
28489   ac_status=$?
28490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491   (exit $ac_status); }; } &&
28492          { ac_try='test -s conftest$ac_exeext'
28493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494   (eval $ac_try) 2>&5
28495   ac_status=$?
28496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497   (exit $ac_status); }; }; then
28498   ol_cv_db_db4m=yes
28499 else
28500   echo "$as_me: failed program was:" >&5
28501 sed 's/^/| /' conftest.$ac_ext >&5
28502
28503 ol_cv_db_db4m=no
28504 fi
28505 rm -f conftest.err conftest.$ac_objext \
28506       conftest$ac_exeext conftest.$ac_ext
28507
28508         LIBS="$ol_LIBS"
28509
28510 fi
28511 echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28512 echo "${ECHO_T}$ol_cv_db_db4m" >&6
28513
28514         if test $ol_cv_db_db4m = yes ; then
28515                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28516         fi
28517 fi
28518
28519         if test $ol_cv_lib_db = no ; then
28520         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28521 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6
28522 if test "${ol_cv_db_db_4m+set}" = set; then
28523   echo $ECHO_N "(cached) $ECHO_C" >&6
28524 else
28525
28526         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28527         ol_LIBS=$LIBS
28528         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28529
28530         cat >conftest.$ac_ext <<_ACEOF
28531 /* confdefs.h.  */
28532 _ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h.  */
28536
28537 #ifdef HAVE_DB_185_H
28538 # include <db_185.h>
28539 #else
28540 # include <db.h>
28541 #endif
28542
28543 #ifndef DB_VERSION_MAJOR
28544 # define DB_VERSION_MAJOR 1
28545 #endif
28546
28547 #ifndef NULL
28548 #define NULL ((void*)0)
28549 #endif
28550
28551 int
28552 main ()
28553 {
28554
28555 #if DB_VERSION_MAJOR > 2
28556         db_env_create( NULL, 0 );
28557 #elif DB_VERSION_MAJOR > 1
28558         db_appexit( NULL );
28559 #else
28560         (void) dbopen( NULL, 0, 0, 0, NULL);
28561 #endif
28562
28563   ;
28564   return 0;
28565 }
28566 _ACEOF
28567 rm -f conftest.$ac_objext conftest$ac_exeext
28568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28569   (eval $ac_link) 2>conftest.er1
28570   ac_status=$?
28571   grep -v '^ *+' conftest.er1 >conftest.err
28572   rm -f conftest.er1
28573   cat conftest.err >&5
28574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575   (exit $ac_status); } &&
28576          { ac_try='test -z "$ac_c_werror_flag"
28577                          || test ! -s conftest.err'
28578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28579   (eval $ac_try) 2>&5
28580   ac_status=$?
28581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582   (exit $ac_status); }; } &&
28583          { ac_try='test -s conftest$ac_exeext'
28584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28585   (eval $ac_try) 2>&5
28586   ac_status=$?
28587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588   (exit $ac_status); }; }; then
28589   ol_cv_db_db_4m=yes
28590 else
28591   echo "$as_me: failed program was:" >&5
28592 sed 's/^/| /' conftest.$ac_ext >&5
28593
28594 ol_cv_db_db_4m=no
28595 fi
28596 rm -f conftest.err conftest.$ac_objext \
28597       conftest$ac_exeext conftest.$ac_ext
28598
28599         LIBS="$ol_LIBS"
28600
28601 fi
28602 echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28603 echo "${ECHO_T}$ol_cv_db_db_4m" >&6
28604
28605         if test $ol_cv_db_db_4m = yes ; then
28606                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28607         fi
28608 fi
28609
28610         if test $ol_cv_lib_db = no ; then
28611         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28612 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6
28613 if test "${ol_cv_db_db_4_m+set}" = set; then
28614   echo $ECHO_N "(cached) $ECHO_C" >&6
28615 else
28616
28617         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28618         ol_LIBS=$LIBS
28619         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28620
28621         cat >conftest.$ac_ext <<_ACEOF
28622 /* confdefs.h.  */
28623 _ACEOF
28624 cat confdefs.h >>conftest.$ac_ext
28625 cat >>conftest.$ac_ext <<_ACEOF
28626 /* end confdefs.h.  */
28627
28628 #ifdef HAVE_DB_185_H
28629 # include <db_185.h>
28630 #else
28631 # include <db.h>
28632 #endif
28633
28634 #ifndef DB_VERSION_MAJOR
28635 # define DB_VERSION_MAJOR 1
28636 #endif
28637
28638 #ifndef NULL
28639 #define NULL ((void*)0)
28640 #endif
28641
28642 int
28643 main ()
28644 {
28645
28646 #if DB_VERSION_MAJOR > 2
28647         db_env_create( NULL, 0 );
28648 #elif DB_VERSION_MAJOR > 1
28649         db_appexit( NULL );
28650 #else
28651         (void) dbopen( NULL, 0, 0, 0, NULL);
28652 #endif
28653
28654   ;
28655   return 0;
28656 }
28657 _ACEOF
28658 rm -f conftest.$ac_objext conftest$ac_exeext
28659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28660   (eval $ac_link) 2>conftest.er1
28661   ac_status=$?
28662   grep -v '^ *+' conftest.er1 >conftest.err
28663   rm -f conftest.er1
28664   cat conftest.err >&5
28665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666   (exit $ac_status); } &&
28667          { ac_try='test -z "$ac_c_werror_flag"
28668                          || test ! -s conftest.err'
28669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28670   (eval $ac_try) 2>&5
28671   ac_status=$?
28672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673   (exit $ac_status); }; } &&
28674          { ac_try='test -s conftest$ac_exeext'
28675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28676   (eval $ac_try) 2>&5
28677   ac_status=$?
28678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679   (exit $ac_status); }; }; then
28680   ol_cv_db_db_4_m=yes
28681 else
28682   echo "$as_me: failed program was:" >&5
28683 sed 's/^/| /' conftest.$ac_ext >&5
28684
28685 ol_cv_db_db_4_m=no
28686 fi
28687 rm -f conftest.err conftest.$ac_objext \
28688       conftest$ac_exeext conftest.$ac_ext
28689
28690         LIBS="$ol_LIBS"
28691
28692 fi
28693 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28694 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6
28695
28696         if test $ol_cv_db_db_4_m = yes ; then
28697                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28698         fi
28699 fi
28700
28701         if test $ol_cv_lib_db = no ; then
28702         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28703 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28704 if test "${ol_cv_db_db_4+set}" = set; then
28705   echo $ECHO_N "(cached) $ECHO_C" >&6
28706 else
28707
28708         ol_DB_LIB=-ldb-4
28709         ol_LIBS=$LIBS
28710         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28711
28712         cat >conftest.$ac_ext <<_ACEOF
28713 /* confdefs.h.  */
28714 _ACEOF
28715 cat confdefs.h >>conftest.$ac_ext
28716 cat >>conftest.$ac_ext <<_ACEOF
28717 /* end confdefs.h.  */
28718
28719 #ifdef HAVE_DB_185_H
28720 # include <db_185.h>
28721 #else
28722 # include <db.h>
28723 #endif
28724
28725 #ifndef DB_VERSION_MAJOR
28726 # define DB_VERSION_MAJOR 1
28727 #endif
28728
28729 #ifndef NULL
28730 #define NULL ((void*)0)
28731 #endif
28732
28733 int
28734 main ()
28735 {
28736
28737 #if DB_VERSION_MAJOR > 2
28738         db_env_create( NULL, 0 );
28739 #elif DB_VERSION_MAJOR > 1
28740         db_appexit( NULL );
28741 #else
28742         (void) dbopen( NULL, 0, 0, 0, NULL);
28743 #endif
28744
28745   ;
28746   return 0;
28747 }
28748 _ACEOF
28749 rm -f conftest.$ac_objext conftest$ac_exeext
28750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28751   (eval $ac_link) 2>conftest.er1
28752   ac_status=$?
28753   grep -v '^ *+' conftest.er1 >conftest.err
28754   rm -f conftest.er1
28755   cat conftest.err >&5
28756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757   (exit $ac_status); } &&
28758          { ac_try='test -z "$ac_c_werror_flag"
28759                          || test ! -s conftest.err'
28760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28761   (eval $ac_try) 2>&5
28762   ac_status=$?
28763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764   (exit $ac_status); }; } &&
28765          { ac_try='test -s conftest$ac_exeext'
28766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28767   (eval $ac_try) 2>&5
28768   ac_status=$?
28769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770   (exit $ac_status); }; }; then
28771   ol_cv_db_db_4=yes
28772 else
28773   echo "$as_me: failed program was:" >&5
28774 sed 's/^/| /' conftest.$ac_ext >&5
28775
28776 ol_cv_db_db_4=no
28777 fi
28778 rm -f conftest.err conftest.$ac_objext \
28779       conftest$ac_exeext conftest.$ac_ext
28780
28781         LIBS="$ol_LIBS"
28782
28783 fi
28784 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28785 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28786
28787         if test $ol_cv_db_db_4 = yes ; then
28788                 ol_cv_lib_db=-ldb-4
28789         fi
28790 fi
28791
28792         if test $ol_cv_lib_db = no ; then
28793         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28794 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28795 if test "${ol_cv_db_db4+set}" = set; then
28796   echo $ECHO_N "(cached) $ECHO_C" >&6
28797 else
28798
28799         ol_DB_LIB=-ldb4
28800         ol_LIBS=$LIBS
28801         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28802
28803         cat >conftest.$ac_ext <<_ACEOF
28804 /* confdefs.h.  */
28805 _ACEOF
28806 cat confdefs.h >>conftest.$ac_ext
28807 cat >>conftest.$ac_ext <<_ACEOF
28808 /* end confdefs.h.  */
28809
28810 #ifdef HAVE_DB_185_H
28811 # include <db_185.h>
28812 #else
28813 # include <db.h>
28814 #endif
28815
28816 #ifndef DB_VERSION_MAJOR
28817 # define DB_VERSION_MAJOR 1
28818 #endif
28819
28820 #ifndef NULL
28821 #define NULL ((void*)0)
28822 #endif
28823
28824 int
28825 main ()
28826 {
28827
28828 #if DB_VERSION_MAJOR > 2
28829         db_env_create( NULL, 0 );
28830 #elif DB_VERSION_MAJOR > 1
28831         db_appexit( NULL );
28832 #else
28833         (void) dbopen( NULL, 0, 0, 0, NULL);
28834 #endif
28835
28836   ;
28837   return 0;
28838 }
28839 _ACEOF
28840 rm -f conftest.$ac_objext conftest$ac_exeext
28841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28842   (eval $ac_link) 2>conftest.er1
28843   ac_status=$?
28844   grep -v '^ *+' conftest.er1 >conftest.err
28845   rm -f conftest.er1
28846   cat conftest.err >&5
28847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848   (exit $ac_status); } &&
28849          { ac_try='test -z "$ac_c_werror_flag"
28850                          || test ! -s conftest.err'
28851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28852   (eval $ac_try) 2>&5
28853   ac_status=$?
28854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855   (exit $ac_status); }; } &&
28856          { ac_try='test -s conftest$ac_exeext'
28857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858   (eval $ac_try) 2>&5
28859   ac_status=$?
28860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861   (exit $ac_status); }; }; then
28862   ol_cv_db_db4=yes
28863 else
28864   echo "$as_me: failed program was:" >&5
28865 sed 's/^/| /' conftest.$ac_ext >&5
28866
28867 ol_cv_db_db4=no
28868 fi
28869 rm -f conftest.err conftest.$ac_objext \
28870       conftest$ac_exeext conftest.$ac_ext
28871
28872         LIBS="$ol_LIBS"
28873
28874 fi
28875 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28876 echo "${ECHO_T}$ol_cv_db_db4" >&6
28877
28878         if test $ol_cv_db_db4 = yes ; then
28879                 ol_cv_lib_db=-ldb4
28880         fi
28881 fi
28882
28883         if test $ol_cv_lib_db = no ; then
28884         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28885 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
28886 if test "${ol_cv_db_db+set}" = set; then
28887   echo $ECHO_N "(cached) $ECHO_C" >&6
28888 else
28889
28890         ol_DB_LIB=-ldb
28891         ol_LIBS=$LIBS
28892         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28893
28894         cat >conftest.$ac_ext <<_ACEOF
28895 /* confdefs.h.  */
28896 _ACEOF
28897 cat confdefs.h >>conftest.$ac_ext
28898 cat >>conftest.$ac_ext <<_ACEOF
28899 /* end confdefs.h.  */
28900
28901 #ifdef HAVE_DB_185_H
28902 # include <db_185.h>
28903 #else
28904 # include <db.h>
28905 #endif
28906
28907 #ifndef DB_VERSION_MAJOR
28908 # define DB_VERSION_MAJOR 1
28909 #endif
28910
28911 #ifndef NULL
28912 #define NULL ((void*)0)
28913 #endif
28914
28915 int
28916 main ()
28917 {
28918
28919 #if DB_VERSION_MAJOR > 2
28920         db_env_create( NULL, 0 );
28921 #elif DB_VERSION_MAJOR > 1
28922         db_appexit( NULL );
28923 #else
28924         (void) dbopen( NULL, 0, 0, 0, NULL);
28925 #endif
28926
28927   ;
28928   return 0;
28929 }
28930 _ACEOF
28931 rm -f conftest.$ac_objext conftest$ac_exeext
28932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28933   (eval $ac_link) 2>conftest.er1
28934   ac_status=$?
28935   grep -v '^ *+' conftest.er1 >conftest.err
28936   rm -f conftest.er1
28937   cat conftest.err >&5
28938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939   (exit $ac_status); } &&
28940          { ac_try='test -z "$ac_c_werror_flag"
28941                          || test ! -s conftest.err'
28942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28943   (eval $ac_try) 2>&5
28944   ac_status=$?
28945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946   (exit $ac_status); }; } &&
28947          { ac_try='test -s conftest$ac_exeext'
28948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949   (eval $ac_try) 2>&5
28950   ac_status=$?
28951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952   (exit $ac_status); }; }; then
28953   ol_cv_db_db=yes
28954 else
28955   echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28957
28958 ol_cv_db_db=no
28959 fi
28960 rm -f conftest.err conftest.$ac_objext \
28961       conftest$ac_exeext conftest.$ac_ext
28962
28963         LIBS="$ol_LIBS"
28964
28965 fi
28966 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28967 echo "${ECHO_T}$ol_cv_db_db" >&6
28968
28969         if test $ol_cv_db_db = yes ; then
28970                 ol_cv_lib_db=-ldb
28971         fi
28972 fi
28973
28974 fi
28975 if test $ol_cv_lib_db = no ; then
28976         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28977 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
28978 if test "${ol_cv_db_none+set}" = set; then
28979   echo $ECHO_N "(cached) $ECHO_C" >&6
28980 else
28981
28982         ol_DB_LIB=
28983         ol_LIBS=$LIBS
28984         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28985
28986         cat >conftest.$ac_ext <<_ACEOF
28987 /* confdefs.h.  */
28988 _ACEOF
28989 cat confdefs.h >>conftest.$ac_ext
28990 cat >>conftest.$ac_ext <<_ACEOF
28991 /* end confdefs.h.  */
28992
28993 #ifdef HAVE_DB_185_H
28994 # include <db_185.h>
28995 #else
28996 # include <db.h>
28997 #endif
28998
28999 #ifndef DB_VERSION_MAJOR
29000 # define DB_VERSION_MAJOR 1
29001 #endif
29002
29003 #ifndef NULL
29004 #define NULL ((void*)0)
29005 #endif
29006
29007 int
29008 main ()
29009 {
29010
29011 #if DB_VERSION_MAJOR > 2
29012         db_env_create( NULL, 0 );
29013 #elif DB_VERSION_MAJOR > 1
29014         db_appexit( NULL );
29015 #else
29016         (void) dbopen( NULL, 0, 0, 0, NULL);
29017 #endif
29018
29019   ;
29020   return 0;
29021 }
29022 _ACEOF
29023 rm -f conftest.$ac_objext conftest$ac_exeext
29024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29025   (eval $ac_link) 2>conftest.er1
29026   ac_status=$?
29027   grep -v '^ *+' conftest.er1 >conftest.err
29028   rm -f conftest.er1
29029   cat conftest.err >&5
29030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031   (exit $ac_status); } &&
29032          { ac_try='test -z "$ac_c_werror_flag"
29033                          || test ! -s conftest.err'
29034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29035   (eval $ac_try) 2>&5
29036   ac_status=$?
29037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29038   (exit $ac_status); }; } &&
29039          { ac_try='test -s conftest$ac_exeext'
29040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29041   (eval $ac_try) 2>&5
29042   ac_status=$?
29043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044   (exit $ac_status); }; }; then
29045   ol_cv_db_none=yes
29046 else
29047   echo "$as_me: failed program was:" >&5
29048 sed 's/^/| /' conftest.$ac_ext >&5
29049
29050 ol_cv_db_none=no
29051 fi
29052 rm -f conftest.err conftest.$ac_objext \
29053       conftest$ac_exeext conftest.$ac_ext
29054
29055         LIBS="$ol_LIBS"
29056
29057 fi
29058 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29059 echo "${ECHO_T}$ol_cv_db_none" >&6
29060
29061         if test $ol_cv_db_none = yes ; then
29062                 ol_cv_lib_db=yes
29063         fi
29064 fi
29065
29066
29067         if test "$ol_cv_lib_db" != no ; then
29068                 ol_cv_berkeley_db=yes
29069                 echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29070 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6
29071 if test "${ol_cv_berkeley_db_version+set}" = set; then
29072   echo $ECHO_N "(cached) $ECHO_C" >&6
29073 else
29074
29075         ol_LIBS="$LIBS"
29076         LIBS="$LTHREAD_LIBS $LIBS"
29077         if test $ol_cv_lib_db != yes ; then
29078                 LIBS="$ol_cv_lib_db $LIBS"
29079         fi
29080
29081         if test "$cross_compiling" = yes; then
29082   ol_cv_berkeley_db_version=cross
29083 else
29084   cat >conftest.$ac_ext <<_ACEOF
29085 /* confdefs.h.  */
29086 _ACEOF
29087 cat confdefs.h >>conftest.$ac_ext
29088 cat >>conftest.$ac_ext <<_ACEOF
29089 /* end confdefs.h.  */
29090
29091 #ifdef HAVE_DB_185_H
29092         choke me;
29093 #else
29094 #include <db.h>
29095 #endif
29096 #ifndef DB_VERSION_MAJOR
29097 # define DB_VERSION_MAJOR 1
29098 #endif
29099 #ifndef NULL
29100 #define NULL ((void *)0)
29101 #endif
29102 main()
29103 {
29104 #if DB_VERSION_MAJOR > 1
29105         char *version;
29106         int major, minor, patch;
29107
29108         version = db_version( &major, &minor, &patch );
29109
29110         if( major != DB_VERSION_MAJOR ||
29111                 minor != DB_VERSION_MINOR ||
29112                 patch != DB_VERSION_PATCH )
29113         {
29114                 printf("Berkeley DB version mismatch\n"
29115                         "\theader: %s\n\tlibrary: %s\n",
29116                         DB_VERSION_STRING, version);
29117                 return 1;
29118         }
29119 #endif
29120
29121         return 0;
29122 }
29123 _ACEOF
29124 rm -f conftest$ac_exeext
29125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29126   (eval $ac_link) 2>&5
29127   ac_status=$?
29128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29131   (eval $ac_try) 2>&5
29132   ac_status=$?
29133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134   (exit $ac_status); }; }; then
29135   ol_cv_berkeley_db_version=yes
29136 else
29137   echo "$as_me: program exited with status $ac_status" >&5
29138 echo "$as_me: failed program was:" >&5
29139 sed 's/^/| /' conftest.$ac_ext >&5
29140
29141 ( exit $ac_status )
29142 ol_cv_berkeley_db_version=no
29143 fi
29144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29145 fi
29146
29147         LIBS="$ol_LIBS"
29148
29149 fi
29150 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29151 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
29152
29153         if test $ol_cv_berkeley_db_version = no ; then
29154                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29155 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29156    { (exit 1); exit 1; }; }
29157         fi
29158
29159                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29160 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
29161 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29162   echo $ECHO_N "(cached) $ECHO_C" >&6
29163 else
29164
29165         ol_LIBS="$LIBS"
29166         LIBS="$LTHREAD_LIBS $LIBS"
29167         if test $ol_cv_lib_db != yes ; then
29168                 LIBS="$ol_cv_lib_db $LIBS"
29169         fi
29170
29171         if test "$cross_compiling" = yes; then
29172   ol_cv_berkeley_db_thread=cross
29173 else
29174   cat >conftest.$ac_ext <<_ACEOF
29175 /* confdefs.h.  */
29176 _ACEOF
29177 cat confdefs.h >>conftest.$ac_ext
29178 cat >>conftest.$ac_ext <<_ACEOF
29179 /* end confdefs.h.  */
29180
29181 #ifdef HAVE_DB_185_H
29182         choke me;
29183 #else
29184 #include <db.h>
29185 #endif
29186 #ifndef NULL
29187 #define NULL ((void *)0)
29188 #endif
29189 main()
29190 {
29191         int rc;
29192         u_int32_t flags = DB_CREATE |
29193 #ifdef DB_PRIVATE
29194                 DB_PRIVATE |
29195 #endif
29196                 DB_THREAD;
29197
29198 #if DB_VERSION_MAJOR > 2
29199         DB_ENV *env = NULL;
29200
29201         rc = db_env_create( &env, 0 );
29202
29203         flags |= DB_INIT_MPOOL;
29204 #ifdef DB_MPOOL_PRIVATE
29205         flags |= DB_MPOOL_PRIVATE;
29206 #endif
29207
29208         if( rc ) {
29209                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29210                 return rc;
29211         }
29212
29213 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29214         rc = (env->open)( env, NULL, flags, 0 );
29215 #else
29216         rc = (env->open)( env, NULL, NULL, flags, 0 );
29217 #endif
29218
29219         if ( rc == 0 ) {
29220                 rc = env->close( env, 0 );
29221         }
29222
29223         if( rc ) {
29224                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29225                 return rc;
29226         }
29227
29228 #else
29229         DB_ENV env;
29230         memset( &env, '\0', sizeof(env) );
29231
29232         rc = db_appinit( NULL, NULL, &env, flags );
29233
29234         if( rc == 0 ) {
29235                 db_appexit( &env );
29236         }
29237
29238         unlink("__db_mpool.share");
29239         unlink("__db_lock.share");
29240 #endif
29241
29242         return rc;
29243 }
29244 _ACEOF
29245 rm -f conftest$ac_exeext
29246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29247   (eval $ac_link) 2>&5
29248   ac_status=$?
29249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29252   (eval $ac_try) 2>&5
29253   ac_status=$?
29254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255   (exit $ac_status); }; }; then
29256   ol_cv_berkeley_db_thread=yes
29257 else
29258   echo "$as_me: program exited with status $ac_status" >&5
29259 echo "$as_me: failed program was:" >&5
29260 sed 's/^/| /' conftest.$ac_ext >&5
29261
29262 ( exit $ac_status )
29263 ol_cv_berkeley_db_thread=no
29264 fi
29265 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29266 fi
29267
29268         LIBS="$ol_LIBS"
29269
29270 fi
29271 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29272 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
29273
29274         if test $ol_cv_berkeley_db_thread != no ; then
29275
29276 cat >>confdefs.h <<\_ACEOF
29277 #define HAVE_BERKELEY_DB_THREAD 1
29278 _ACEOF
29279
29280         fi
29281
29282         fi
29283 fi
29284
29285
29286         if test $ol_cv_berkeley_db = no ; then
29287                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29288 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29289    { (exit 1); exit 1; }; }
29290         fi
29291
29292
29293 cat >>confdefs.h <<\_ACEOF
29294 #define HAVE_BERKELEY_DB 1
29295 _ACEOF
29296
29297
29298                         if test $ol_cv_lib_db != yes ; then
29299                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29300         fi
29301
29302         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29303
29304         ol_link_bdb=yes
29305 fi
29306
29307
29308 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29309         BUILD_LIBS_DYNAMIC=shared
29310
29311 cat >>confdefs.h <<\_ACEOF
29312 #define LDAP_LIBS_DYNAMIC 1
29313 _ACEOF
29314
29315         LTSTATIC=""
29316 else
29317         BUILD_LIBS_DYNAMIC=static
29318         LTSTATIC="-static"
29319 fi
29320
29321 if test $ol_enable_wrappers != no ; then
29322
29323 for ac_header in tcpd.h
29324 do
29325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29327   echo "$as_me:$LINENO: checking for $ac_header" >&5
29328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29330   echo $ECHO_N "(cached) $ECHO_C" >&6
29331 fi
29332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29334 else
29335   # Is the header compilable?
29336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29338 cat >conftest.$ac_ext <<_ACEOF
29339 /* confdefs.h.  */
29340 _ACEOF
29341 cat confdefs.h >>conftest.$ac_ext
29342 cat >>conftest.$ac_ext <<_ACEOF
29343 /* end confdefs.h.  */
29344 $ac_includes_default
29345 #include <$ac_header>
29346 _ACEOF
29347 rm -f conftest.$ac_objext
29348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29349   (eval $ac_compile) 2>conftest.er1
29350   ac_status=$?
29351   grep -v '^ *+' conftest.er1 >conftest.err
29352   rm -f conftest.er1
29353   cat conftest.err >&5
29354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355   (exit $ac_status); } &&
29356          { ac_try='test -z "$ac_c_werror_flag"
29357                          || test ! -s conftest.err'
29358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29359   (eval $ac_try) 2>&5
29360   ac_status=$?
29361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362   (exit $ac_status); }; } &&
29363          { ac_try='test -s conftest.$ac_objext'
29364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29365   (eval $ac_try) 2>&5
29366   ac_status=$?
29367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29368   (exit $ac_status); }; }; then
29369   ac_header_compiler=yes
29370 else
29371   echo "$as_me: failed program was:" >&5
29372 sed 's/^/| /' conftest.$ac_ext >&5
29373
29374 ac_header_compiler=no
29375 fi
29376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29378 echo "${ECHO_T}$ac_header_compiler" >&6
29379
29380 # Is the header present?
29381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29383 cat >conftest.$ac_ext <<_ACEOF
29384 /* confdefs.h.  */
29385 _ACEOF
29386 cat confdefs.h >>conftest.$ac_ext
29387 cat >>conftest.$ac_ext <<_ACEOF
29388 /* end confdefs.h.  */
29389 #include <$ac_header>
29390 _ACEOF
29391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29392   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29393   ac_status=$?
29394   grep -v '^ *+' conftest.er1 >conftest.err
29395   rm -f conftest.er1
29396   cat conftest.err >&5
29397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398   (exit $ac_status); } >/dev/null; then
29399   if test -s conftest.err; then
29400     ac_cpp_err=$ac_c_preproc_warn_flag
29401     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29402   else
29403     ac_cpp_err=
29404   fi
29405 else
29406   ac_cpp_err=yes
29407 fi
29408 if test -z "$ac_cpp_err"; then
29409   ac_header_preproc=yes
29410 else
29411   echo "$as_me: failed program was:" >&5
29412 sed 's/^/| /' conftest.$ac_ext >&5
29413
29414   ac_header_preproc=no
29415 fi
29416 rm -f conftest.err conftest.$ac_ext
29417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29418 echo "${ECHO_T}$ac_header_preproc" >&6
29419
29420 # So?  What about this header?
29421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29422   yes:no: )
29423     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29427     ac_header_preproc=yes
29428     ;;
29429   no:yes:* )
29430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29432     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29433 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29434     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29436     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29437 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29440     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29442     (
29443       cat <<\_ASBOX
29444 ## --------------------------------------------- ##
29445 ## Report this to <http://www.openldap.org/its/> ##
29446 ## --------------------------------------------- ##
29447 _ASBOX
29448     ) |
29449       sed "s/^/$as_me: WARNING:     /" >&2
29450     ;;
29451 esac
29452 echo "$as_me:$LINENO: checking for $ac_header" >&5
29453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29455   echo $ECHO_N "(cached) $ECHO_C" >&6
29456 else
29457   eval "$as_ac_Header=\$ac_header_preproc"
29458 fi
29459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29461
29462 fi
29463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29464   cat >>confdefs.h <<_ACEOF
29465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29466 _ACEOF
29467
29468                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29469 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
29470                 save_LIBS="$LIBS"
29471                 LIBS="$LIBS -lwrap"
29472                 cat >conftest.$ac_ext <<_ACEOF
29473 /* confdefs.h.  */
29474 _ACEOF
29475 cat confdefs.h >>conftest.$ac_ext
29476 cat >>conftest.$ac_ext <<_ACEOF
29477 /* end confdefs.h.  */
29478
29479 #include <tcpd.h>
29480 int allow_severity = 0;
29481 int deny_severity  = 0;
29482
29483 struct request_info *req;
29484
29485 int
29486 main ()
29487 {
29488
29489 hosts_access(req)
29490
29491   ;
29492   return 0;
29493 }
29494 _ACEOF
29495 rm -f conftest.$ac_objext conftest$ac_exeext
29496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29497   (eval $ac_link) 2>conftest.er1
29498   ac_status=$?
29499   grep -v '^ *+' conftest.er1 >conftest.err
29500   rm -f conftest.er1
29501   cat conftest.err >&5
29502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503   (exit $ac_status); } &&
29504          { ac_try='test -z "$ac_c_werror_flag"
29505                          || test ! -s conftest.err'
29506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29507   (eval $ac_try) 2>&5
29508   ac_status=$?
29509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510   (exit $ac_status); }; } &&
29511          { ac_try='test -s conftest$ac_exeext'
29512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29513   (eval $ac_try) 2>&5
29514   ac_status=$?
29515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516   (exit $ac_status); }; }; then
29517   echo "$as_me:$LINENO: result: -lwrap" >&5
29518 echo "${ECHO_T}-lwrap" >&6
29519                 have_wrappers=yes
29520                 LIBS="$save_LIBS"
29521 else
29522   echo "$as_me: failed program was:" >&5
29523 sed 's/^/| /' conftest.$ac_ext >&5
29524
29525
29526                                 LIBS="$LIBS -lnsl"
29527                 cat >conftest.$ac_ext <<_ACEOF
29528 /* confdefs.h.  */
29529 _ACEOF
29530 cat confdefs.h >>conftest.$ac_ext
29531 cat >>conftest.$ac_ext <<_ACEOF
29532 /* end confdefs.h.  */
29533
29534 #include <tcpd.h>
29535 int allow_severity = 0;
29536 int deny_severity  = 0;
29537
29538 struct request_info *req;
29539
29540 int
29541 main ()
29542 {
29543
29544 hosts_access(req)
29545
29546   ;
29547   return 0;
29548 }
29549 _ACEOF
29550 rm -f conftest.$ac_objext conftest$ac_exeext
29551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29552   (eval $ac_link) 2>conftest.er1
29553   ac_status=$?
29554   grep -v '^ *+' conftest.er1 >conftest.err
29555   rm -f conftest.er1
29556   cat conftest.err >&5
29557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558   (exit $ac_status); } &&
29559          { ac_try='test -z "$ac_c_werror_flag"
29560                          || test ! -s conftest.err'
29561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29562   (eval $ac_try) 2>&5
29563   ac_status=$?
29564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565   (exit $ac_status); }; } &&
29566          { ac_try='test -s conftest$ac_exeext'
29567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29568   (eval $ac_try) 2>&5
29569   ac_status=$?
29570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29571   (exit $ac_status); }; }; then
29572   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29573 echo "${ECHO_T}-lwrap -lnsl" >&6
29574                 have_wrappers=yes
29575                 LIBS="$save_LIBS -lnsl"
29576 else
29577   echo "$as_me: failed program was:" >&5
29578 sed 's/^/| /' conftest.$ac_ext >&5
29579
29580
29581                 echo "$as_me:$LINENO: result: no" >&5
29582 echo "${ECHO_T}no" >&6
29583                 have_wrappers=no
29584                 LIBS=$save_LIBS
29585 fi
29586 rm -f conftest.err conftest.$ac_objext \
29587       conftest$ac_exeext conftest.$ac_ext
29588 fi
29589 rm -f conftest.err conftest.$ac_objext \
29590       conftest$ac_exeext conftest.$ac_ext
29591 else
29592   have_wrappers=no
29593 fi
29594
29595 done
29596
29597
29598         if test $have_wrappers = yes ; then
29599
29600 cat >>confdefs.h <<\_ACEOF
29601 #define HAVE_TCPD 1
29602 _ACEOF
29603
29604                 WRAP_LIBS="-lwrap"
29605         elif test $ol_enable_wrappers = yes ; then
29606                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29607 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29608    { (exit 1); exit 1; }; }
29609         else
29610                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29611 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29612                 WRAP_LIBS=""
29613         fi
29614 fi
29615
29616 if test $ol_enable_syslog != no ; then
29617         echo "$as_me:$LINENO: checking for openlog" >&5
29618 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
29619 if test "${ac_cv_func_openlog+set}" = set; then
29620   echo $ECHO_N "(cached) $ECHO_C" >&6
29621 else
29622   cat >conftest.$ac_ext <<_ACEOF
29623 /* confdefs.h.  */
29624 _ACEOF
29625 cat confdefs.h >>conftest.$ac_ext
29626 cat >>conftest.$ac_ext <<_ACEOF
29627 /* end confdefs.h.  */
29628 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29630 #define openlog innocuous_openlog
29631
29632 /* System header to define __stub macros and hopefully few prototypes,
29633     which can conflict with char openlog (); below.
29634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29635     <limits.h> exists even on freestanding compilers.  */
29636
29637 #ifdef __STDC__
29638 # include <limits.h>
29639 #else
29640 # include <assert.h>
29641 #endif
29642
29643 #undef openlog
29644
29645 /* Override any gcc2 internal prototype to avoid an error.  */
29646 #ifdef __cplusplus
29647 extern "C"
29648 {
29649 #endif
29650 /* We use char because int might match the return type of a gcc2
29651    builtin and then its argument prototype would still apply.  */
29652 char openlog ();
29653 /* The GNU C library defines this for functions which it implements
29654     to always fail with ENOSYS.  Some functions are actually named
29655     something starting with __ and the normal name is an alias.  */
29656 #if defined (__stub_openlog) || defined (__stub___openlog)
29657 choke me
29658 #else
29659 char (*f) () = openlog;
29660 #endif
29661 #ifdef __cplusplus
29662 }
29663 #endif
29664
29665 int
29666 main ()
29667 {
29668 return f != openlog;
29669   ;
29670   return 0;
29671 }
29672 _ACEOF
29673 rm -f conftest.$ac_objext conftest$ac_exeext
29674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29675   (eval $ac_link) 2>conftest.er1
29676   ac_status=$?
29677   grep -v '^ *+' conftest.er1 >conftest.err
29678   rm -f conftest.er1
29679   cat conftest.err >&5
29680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681   (exit $ac_status); } &&
29682          { ac_try='test -z "$ac_c_werror_flag"
29683                          || test ! -s conftest.err'
29684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29685   (eval $ac_try) 2>&5
29686   ac_status=$?
29687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688   (exit $ac_status); }; } &&
29689          { ac_try='test -s conftest$ac_exeext'
29690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29691   (eval $ac_try) 2>&5
29692   ac_status=$?
29693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694   (exit $ac_status); }; }; then
29695   ac_cv_func_openlog=yes
29696 else
29697   echo "$as_me: failed program was:" >&5
29698 sed 's/^/| /' conftest.$ac_ext >&5
29699
29700 ac_cv_func_openlog=no
29701 fi
29702 rm -f conftest.err conftest.$ac_objext \
29703       conftest$ac_exeext conftest.$ac_ext
29704 fi
29705 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29706 echo "${ECHO_T}$ac_cv_func_openlog" >&6
29707
29708         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29709                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29710 echo "$as_me: error: could not find syslog" >&2;}
29711    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29712         fi
29713         ol_enable_syslog=$ac_cv_func_openlog
29714 fi
29715
29716 ol_link_sql=no
29717 if test $ol_enable_sql != no ; then
29718
29719
29720 for ac_header in sql.h sqlext.h
29721 do
29722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29724   echo "$as_me:$LINENO: checking for $ac_header" >&5
29725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29727   echo $ECHO_N "(cached) $ECHO_C" >&6
29728 fi
29729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29731 else
29732   # Is the header compilable?
29733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29735 cat >conftest.$ac_ext <<_ACEOF
29736 /* confdefs.h.  */
29737 _ACEOF
29738 cat confdefs.h >>conftest.$ac_ext
29739 cat >>conftest.$ac_ext <<_ACEOF
29740 /* end confdefs.h.  */
29741 $ac_includes_default
29742 #include <$ac_header>
29743 _ACEOF
29744 rm -f conftest.$ac_objext
29745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29746   (eval $ac_compile) 2>conftest.er1
29747   ac_status=$?
29748   grep -v '^ *+' conftest.er1 >conftest.err
29749   rm -f conftest.er1
29750   cat conftest.err >&5
29751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752   (exit $ac_status); } &&
29753          { ac_try='test -z "$ac_c_werror_flag"
29754                          || test ! -s conftest.err'
29755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29756   (eval $ac_try) 2>&5
29757   ac_status=$?
29758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759   (exit $ac_status); }; } &&
29760          { ac_try='test -s conftest.$ac_objext'
29761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29762   (eval $ac_try) 2>&5
29763   ac_status=$?
29764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765   (exit $ac_status); }; }; then
29766   ac_header_compiler=yes
29767 else
29768   echo "$as_me: failed program was:" >&5
29769 sed 's/^/| /' conftest.$ac_ext >&5
29770
29771 ac_header_compiler=no
29772 fi
29773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29775 echo "${ECHO_T}$ac_header_compiler" >&6
29776
29777 # Is the header present?
29778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29780 cat >conftest.$ac_ext <<_ACEOF
29781 /* confdefs.h.  */
29782 _ACEOF
29783 cat confdefs.h >>conftest.$ac_ext
29784 cat >>conftest.$ac_ext <<_ACEOF
29785 /* end confdefs.h.  */
29786 #include <$ac_header>
29787 _ACEOF
29788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29790   ac_status=$?
29791   grep -v '^ *+' conftest.er1 >conftest.err
29792   rm -f conftest.er1
29793   cat conftest.err >&5
29794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795   (exit $ac_status); } >/dev/null; then
29796   if test -s conftest.err; then
29797     ac_cpp_err=$ac_c_preproc_warn_flag
29798     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29799   else
29800     ac_cpp_err=
29801   fi
29802 else
29803   ac_cpp_err=yes
29804 fi
29805 if test -z "$ac_cpp_err"; then
29806   ac_header_preproc=yes
29807 else
29808   echo "$as_me: failed program was:" >&5
29809 sed 's/^/| /' conftest.$ac_ext >&5
29810
29811   ac_header_preproc=no
29812 fi
29813 rm -f conftest.err conftest.$ac_ext
29814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29815 echo "${ECHO_T}$ac_header_preproc" >&6
29816
29817 # So?  What about this header?
29818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29819   yes:no: )
29820     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29824     ac_header_preproc=yes
29825     ;;
29826   no:yes:* )
29827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29829     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29830 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29831     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29833     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29834 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29837     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29839     (
29840       cat <<\_ASBOX
29841 ## --------------------------------------------- ##
29842 ## Report this to <http://www.openldap.org/its/> ##
29843 ## --------------------------------------------- ##
29844 _ASBOX
29845     ) |
29846       sed "s/^/$as_me: WARNING:     /" >&2
29847     ;;
29848 esac
29849 echo "$as_me:$LINENO: checking for $ac_header" >&5
29850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29852   echo $ECHO_N "(cached) $ECHO_C" >&6
29853 else
29854   eval "$as_ac_Header=\$ac_header_preproc"
29855 fi
29856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29858
29859 fi
29860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29861   cat >>confdefs.h <<_ACEOF
29862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29863 _ACEOF
29864
29865 else
29866
29867                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29868 echo "$as_me: error: could not locate SQL headers" >&2;}
29869    { (exit 1); exit 1; }; }
29870
29871 fi
29872
29873 done
29874
29875
29876         sql_LIBS="$LIBS"
29877         LIBS="$LTHREAD_LIBS"
29878
29879         if test $ol_with_odbc = auto ; then
29880                 ol_with_odbc="iodbc unixodbc odbc32"
29881         fi
29882
29883         for odbc in $ol_with_odbc ; do
29884                 if test $ol_link_sql = no ; then
29885                         case $odbc in
29886                         iodbc)
29887                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29888 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
29889 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29890   echo $ECHO_N "(cached) $ECHO_C" >&6
29891 else
29892   ac_check_lib_save_LIBS=$LIBS
29893 LIBS="-liodbc  $LIBS"
29894 cat >conftest.$ac_ext <<_ACEOF
29895 /* confdefs.h.  */
29896 _ACEOF
29897 cat confdefs.h >>conftest.$ac_ext
29898 cat >>conftest.$ac_ext <<_ACEOF
29899 /* end confdefs.h.  */
29900
29901 /* Override any gcc2 internal prototype to avoid an error.  */
29902 #ifdef __cplusplus
29903 extern "C"
29904 #endif
29905 /* We use char because int might match the return type of a gcc2
29906    builtin and then its argument prototype would still apply.  */
29907 char SQLDriverConnect ();
29908 int
29909 main ()
29910 {
29911 SQLDriverConnect ();
29912   ;
29913   return 0;
29914 }
29915 _ACEOF
29916 rm -f conftest.$ac_objext conftest$ac_exeext
29917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29918   (eval $ac_link) 2>conftest.er1
29919   ac_status=$?
29920   grep -v '^ *+' conftest.er1 >conftest.err
29921   rm -f conftest.er1
29922   cat conftest.err >&5
29923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924   (exit $ac_status); } &&
29925          { ac_try='test -z "$ac_c_werror_flag"
29926                          || test ! -s conftest.err'
29927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29928   (eval $ac_try) 2>&5
29929   ac_status=$?
29930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931   (exit $ac_status); }; } &&
29932          { ac_try='test -s conftest$ac_exeext'
29933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29934   (eval $ac_try) 2>&5
29935   ac_status=$?
29936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937   (exit $ac_status); }; }; then
29938   ac_cv_lib_iodbc_SQLDriverConnect=yes
29939 else
29940   echo "$as_me: failed program was:" >&5
29941 sed 's/^/| /' conftest.$ac_ext >&5
29942
29943 ac_cv_lib_iodbc_SQLDriverConnect=no
29944 fi
29945 rm -f conftest.err conftest.$ac_objext \
29946       conftest$ac_exeext conftest.$ac_ext
29947 LIBS=$ac_check_lib_save_LIBS
29948 fi
29949 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29950 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
29951 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29952   have_iodbc=yes
29953 else
29954   have_iodbc=no
29955 fi
29956
29957                                 if test $have_iodbc = yes ; then
29958                                         ol_link_sql="-liodbc"
29959                                 fi
29960                                 ;;
29961
29962                         unixodbc)
29963                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29964 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
29965 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29966   echo $ECHO_N "(cached) $ECHO_C" >&6
29967 else
29968   ac_check_lib_save_LIBS=$LIBS
29969 LIBS="-lodbc  $LIBS"
29970 cat >conftest.$ac_ext <<_ACEOF
29971 /* confdefs.h.  */
29972 _ACEOF
29973 cat confdefs.h >>conftest.$ac_ext
29974 cat >>conftest.$ac_ext <<_ACEOF
29975 /* end confdefs.h.  */
29976
29977 /* Override any gcc2 internal prototype to avoid an error.  */
29978 #ifdef __cplusplus
29979 extern "C"
29980 #endif
29981 /* We use char because int might match the return type of a gcc2
29982    builtin and then its argument prototype would still apply.  */
29983 char SQLDriverConnect ();
29984 int
29985 main ()
29986 {
29987 SQLDriverConnect ();
29988   ;
29989   return 0;
29990 }
29991 _ACEOF
29992 rm -f conftest.$ac_objext conftest$ac_exeext
29993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29994   (eval $ac_link) 2>conftest.er1
29995   ac_status=$?
29996   grep -v '^ *+' conftest.er1 >conftest.err
29997   rm -f conftest.er1
29998   cat conftest.err >&5
29999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000   (exit $ac_status); } &&
30001          { ac_try='test -z "$ac_c_werror_flag"
30002                          || test ! -s conftest.err'
30003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30004   (eval $ac_try) 2>&5
30005   ac_status=$?
30006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007   (exit $ac_status); }; } &&
30008          { ac_try='test -s conftest$ac_exeext'
30009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30010   (eval $ac_try) 2>&5
30011   ac_status=$?
30012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013   (exit $ac_status); }; }; then
30014   ac_cv_lib_odbc_SQLDriverConnect=yes
30015 else
30016   echo "$as_me: failed program was:" >&5
30017 sed 's/^/| /' conftest.$ac_ext >&5
30018
30019 ac_cv_lib_odbc_SQLDriverConnect=no
30020 fi
30021 rm -f conftest.err conftest.$ac_objext \
30022       conftest$ac_exeext conftest.$ac_ext
30023 LIBS=$ac_check_lib_save_LIBS
30024 fi
30025 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30026 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
30027 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30028   have_odbc=yes
30029 else
30030   have_odbc=no
30031 fi
30032
30033                                 if test $have_odbc = yes ; then
30034                                         ol_link_sql="-lodbc"
30035                                 fi
30036                                 ;;
30037
30038                         odbc32)
30039                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30040 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6
30041 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30042   echo $ECHO_N "(cached) $ECHO_C" >&6
30043 else
30044   ac_check_lib_save_LIBS=$LIBS
30045 LIBS="-lodbc32  $LIBS"
30046 cat >conftest.$ac_ext <<_ACEOF
30047 /* confdefs.h.  */
30048 _ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h.  */
30052
30053 /* Override any gcc2 internal prototype to avoid an error.  */
30054 #ifdef __cplusplus
30055 extern "C"
30056 #endif
30057 /* We use char because int might match the return type of a gcc2
30058    builtin and then its argument prototype would still apply.  */
30059 char SQLDriverConnect ();
30060 int
30061 main ()
30062 {
30063 SQLDriverConnect ();
30064   ;
30065   return 0;
30066 }
30067 _ACEOF
30068 rm -f conftest.$ac_objext conftest$ac_exeext
30069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30070   (eval $ac_link) 2>conftest.er1
30071   ac_status=$?
30072   grep -v '^ *+' conftest.er1 >conftest.err
30073   rm -f conftest.er1
30074   cat conftest.err >&5
30075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076   (exit $ac_status); } &&
30077          { ac_try='test -z "$ac_c_werror_flag"
30078                          || test ! -s conftest.err'
30079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30080   (eval $ac_try) 2>&5
30081   ac_status=$?
30082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083   (exit $ac_status); }; } &&
30084          { ac_try='test -s conftest$ac_exeext'
30085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30086   (eval $ac_try) 2>&5
30087   ac_status=$?
30088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089   (exit $ac_status); }; }; then
30090   ac_cv_lib_odbc32_SQLDriverConnect=yes
30091 else
30092   echo "$as_me: failed program was:" >&5
30093 sed 's/^/| /' conftest.$ac_ext >&5
30094
30095 ac_cv_lib_odbc32_SQLDriverConnect=no
30096 fi
30097 rm -f conftest.err conftest.$ac_objext \
30098       conftest$ac_exeext conftest.$ac_ext
30099 LIBS=$ac_check_lib_save_LIBS
30100 fi
30101 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30102 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6
30103 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30104   have_odbc32=yes
30105 else
30106   have_odbc32=no
30107 fi
30108
30109                                 if test $have_odbc32 = yes ; then
30110                                         ol_link_sql="-lodbc32"
30111                                 fi
30112                                 ;;
30113
30114                         *)
30115                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30116 echo "$as_me: error: unknown ODBC library" >&2;}
30117    { (exit 1); exit 1; }; }
30118                                 ;;
30119                         esac
30120                 fi
30121         done
30122
30123         LIBS="$sql_LIBS"
30124
30125         if test $ol_link_sql != no ; then
30126                 SLAPD_SQL_LIBS="$ol_link_sql"
30127
30128         elif test $ol_enable_sql != auto ; then
30129                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30130 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30131    { (exit 1); exit 1; }; }
30132         fi
30133 fi
30134
30135 ol_link_ndb=no
30136 if test $ol_enable_ndb != no ; then
30137         # Extract the first word of "mysql_config", so it can be a program name with args.
30138 set dummy mysql_config; ac_word=$2
30139 echo "$as_me:$LINENO: checking for $ac_word" >&5
30140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30141 if test "${ac_cv_prog_MYSQL+set}" = set; then
30142   echo $ECHO_N "(cached) $ECHO_C" >&6
30143 else
30144   if test -n "$MYSQL"; then
30145   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30146 else
30147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30148 for as_dir in $PATH
30149 do
30150   IFS=$as_save_IFS
30151   test -z "$as_dir" && as_dir=.
30152   for ac_exec_ext in '' $ac_executable_extensions; do
30153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30154     ac_cv_prog_MYSQL="yes"
30155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30156     break 2
30157   fi
30158 done
30159 done
30160
30161 fi
30162 fi
30163 MYSQL=$ac_cv_prog_MYSQL
30164 if test -n "$MYSQL"; then
30165   echo "$as_me:$LINENO: result: $MYSQL" >&5
30166 echo "${ECHO_T}$MYSQL" >&6
30167 else
30168   echo "$as_me:$LINENO: result: no" >&5
30169 echo "${ECHO_T}no" >&6
30170 fi
30171
30172         if test "$MYSQL" != yes ; then
30173                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30174 echo "$as_me: error: could not locate mysql_config" >&2;}
30175    { (exit 1); exit 1; }; }
30176         fi
30177
30178         SQL_INC=`mysql_config --include`
30179         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30180
30181         save_CPPFLAGS="$CPPFLAGS"
30182         CPPFLAGS="$SLAPD_NDB_INCS"
30183         echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30184 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6
30185         cat >conftest.$ac_ext <<_ACEOF
30186 /* confdefs.h.  */
30187 _ACEOF
30188 cat confdefs.h >>conftest.$ac_ext
30189 cat >>conftest.$ac_ext <<_ACEOF
30190 /* end confdefs.h.  */
30191 #include <NdbApi.hpp>
30192 _ACEOF
30193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30195   ac_status=$?
30196   grep -v '^ *+' conftest.er1 >conftest.err
30197   rm -f conftest.er1
30198   cat conftest.err >&5
30199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200   (exit $ac_status); } >/dev/null; then
30201   if test -s conftest.err; then
30202     ac_cpp_err=$ac_c_preproc_warn_flag
30203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30204   else
30205     ac_cpp_err=
30206   fi
30207 else
30208   ac_cpp_err=yes
30209 fi
30210 if test -z "$ac_cpp_err"; then
30211   echo "$as_me:$LINENO: result: yes" >&5
30212 echo "${ECHO_T}yes" >&6
30213 else
30214   echo "$as_me: failed program was:" >&5
30215 sed 's/^/| /' conftest.$ac_ext >&5
30216
30217   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30218 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30219    { (exit 1); exit 1; }; }
30220
30221 fi
30222 rm -f conftest.err conftest.$ac_ext
30223         CPPFLAGS="$save_CPPFLAGS"
30224
30225         SQL_LIB=`mysql_config --libs_r`
30226         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30227
30228         save_LDFLAGS="$LDFLAGS"
30229         save_LIBS="$LIBS"
30230         LDFLAGS="$SQL_LIB"
30231         echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30232 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6
30233 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30234   echo $ECHO_N "(cached) $ECHO_C" >&6
30235 else
30236   ac_check_lib_save_LIBS=$LIBS
30237 LIBS="-lndbclient -lstdc++ $LIBS"
30238 cat >conftest.$ac_ext <<_ACEOF
30239 /* confdefs.h.  */
30240 _ACEOF
30241 cat confdefs.h >>conftest.$ac_ext
30242 cat >>conftest.$ac_ext <<_ACEOF
30243 /* end confdefs.h.  */
30244
30245 /* Override any gcc2 internal prototype to avoid an error.  */
30246 #ifdef __cplusplus
30247 extern "C"
30248 #endif
30249 /* We use char because int might match the return type of a gcc2
30250    builtin and then its argument prototype would still apply.  */
30251 char ndb_init ();
30252 int
30253 main ()
30254 {
30255 ndb_init ();
30256   ;
30257   return 0;
30258 }
30259 _ACEOF
30260 rm -f conftest.$ac_objext conftest$ac_exeext
30261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30262   (eval $ac_link) 2>conftest.er1
30263   ac_status=$?
30264   grep -v '^ *+' conftest.er1 >conftest.err
30265   rm -f conftest.er1
30266   cat conftest.err >&5
30267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268   (exit $ac_status); } &&
30269          { ac_try='test -z "$ac_c_werror_flag"
30270                          || test ! -s conftest.err'
30271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30272   (eval $ac_try) 2>&5
30273   ac_status=$?
30274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275   (exit $ac_status); }; } &&
30276          { ac_try='test -s conftest$ac_exeext'
30277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30278   (eval $ac_try) 2>&5
30279   ac_status=$?
30280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281   (exit $ac_status); }; }; then
30282   ac_cv_lib_ndbclient_ndb_init=yes
30283 else
30284   echo "$as_me: failed program was:" >&5
30285 sed 's/^/| /' conftest.$ac_ext >&5
30286
30287 ac_cv_lib_ndbclient_ndb_init=no
30288 fi
30289 rm -f conftest.err conftest.$ac_objext \
30290       conftest$ac_exeext conftest.$ac_ext
30291 LIBS=$ac_check_lib_save_LIBS
30292 fi
30293 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30294 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6
30295 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30296   : ok
30297 else
30298
30299                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30300 echo "$as_me: error: could not locate ndbclient library" >&2;}
30301    { (exit 1); exit 1; }; }
30302
30303 fi
30304
30305         LIBS="$save_LIBS"
30306         LDFLAGS="$save_LDFLAGS"
30307
30308         if test "$ol_enable_ndb" = yes ; then
30309                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30310         fi
30311 fi
30312
30313 ol_icu=no
30314
30315 for ac_header in unicode/utypes.h
30316 do
30317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30319   echo "$as_me:$LINENO: checking for $ac_header" >&5
30320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30322   echo $ECHO_N "(cached) $ECHO_C" >&6
30323 fi
30324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30326 else
30327   # Is the header compilable?
30328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30330 cat >conftest.$ac_ext <<_ACEOF
30331 /* confdefs.h.  */
30332 _ACEOF
30333 cat confdefs.h >>conftest.$ac_ext
30334 cat >>conftest.$ac_ext <<_ACEOF
30335 /* end confdefs.h.  */
30336 $ac_includes_default
30337 #include <$ac_header>
30338 _ACEOF
30339 rm -f conftest.$ac_objext
30340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30341   (eval $ac_compile) 2>conftest.er1
30342   ac_status=$?
30343   grep -v '^ *+' conftest.er1 >conftest.err
30344   rm -f conftest.er1
30345   cat conftest.err >&5
30346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347   (exit $ac_status); } &&
30348          { ac_try='test -z "$ac_c_werror_flag"
30349                          || test ! -s conftest.err'
30350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30351   (eval $ac_try) 2>&5
30352   ac_status=$?
30353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354   (exit $ac_status); }; } &&
30355          { ac_try='test -s conftest.$ac_objext'
30356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30357   (eval $ac_try) 2>&5
30358   ac_status=$?
30359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360   (exit $ac_status); }; }; then
30361   ac_header_compiler=yes
30362 else
30363   echo "$as_me: failed program was:" >&5
30364 sed 's/^/| /' conftest.$ac_ext >&5
30365
30366 ac_header_compiler=no
30367 fi
30368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30370 echo "${ECHO_T}$ac_header_compiler" >&6
30371
30372 # Is the header present?
30373 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30375 cat >conftest.$ac_ext <<_ACEOF
30376 /* confdefs.h.  */
30377 _ACEOF
30378 cat confdefs.h >>conftest.$ac_ext
30379 cat >>conftest.$ac_ext <<_ACEOF
30380 /* end confdefs.h.  */
30381 #include <$ac_header>
30382 _ACEOF
30383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30384   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
30391   if test -s conftest.err; then
30392     ac_cpp_err=$ac_c_preproc_warn_flag
30393     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30394   else
30395     ac_cpp_err=
30396   fi
30397 else
30398   ac_cpp_err=yes
30399 fi
30400 if test -z "$ac_cpp_err"; then
30401   ac_header_preproc=yes
30402 else
30403   echo "$as_me: failed program was:" >&5
30404 sed 's/^/| /' conftest.$ac_ext >&5
30405
30406   ac_header_preproc=no
30407 fi
30408 rm -f conftest.err conftest.$ac_ext
30409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30410 echo "${ECHO_T}$ac_header_preproc" >&6
30411
30412 # So?  What about this header?
30413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30414   yes:no: )
30415     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30417     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30419     ac_header_preproc=yes
30420     ;;
30421   no:yes:* )
30422     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30424     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30425 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30426     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30428     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30429 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30432     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30434     (
30435       cat <<\_ASBOX
30436 ## --------------------------------------------- ##
30437 ## Report this to <http://www.openldap.org/its/> ##
30438 ## --------------------------------------------- ##
30439 _ASBOX
30440     ) |
30441       sed "s/^/$as_me: WARNING:     /" >&2
30442     ;;
30443 esac
30444 echo "$as_me:$LINENO: checking for $ac_header" >&5
30445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30447   echo $ECHO_N "(cached) $ECHO_C" >&6
30448 else
30449   eval "$as_ac_Header=\$ac_header_preproc"
30450 fi
30451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30453
30454 fi
30455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30456   cat >>confdefs.h <<_ACEOF
30457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30458 _ACEOF
30459
30460 fi
30461
30462 done
30463
30464 if test $ac_cv_header_unicode_utypes_h = yes ; then
30465                 OL_ICULIBS="-licuuc -licudata"
30466
30467         echo "$as_me:$LINENO: checking for ICU libraries" >&5
30468 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
30469 if test "${ol_cv_lib_icu+set}" = set; then
30470   echo $ECHO_N "(cached) $ECHO_C" >&6
30471 else
30472
30473                 ol_LIBS="$LIBS"
30474                 LIBS="$OL_ICULIBS $LIBS"
30475                 cat >conftest.$ac_ext <<_ACEOF
30476 /* confdefs.h.  */
30477 _ACEOF
30478 cat confdefs.h >>conftest.$ac_ext
30479 cat >>conftest.$ac_ext <<_ACEOF
30480 /* end confdefs.h.  */
30481
30482 #include <unicode/utypes.h>
30483
30484 int
30485 main ()
30486 {
30487
30488 (void) u_errorName(0);
30489
30490   ;
30491   return 0;
30492 }
30493 _ACEOF
30494 rm -f conftest.$ac_objext conftest$ac_exeext
30495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30496   (eval $ac_link) 2>conftest.er1
30497   ac_status=$?
30498   grep -v '^ *+' conftest.er1 >conftest.err
30499   rm -f conftest.er1
30500   cat conftest.err >&5
30501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502   (exit $ac_status); } &&
30503          { ac_try='test -z "$ac_c_werror_flag"
30504                          || test ! -s conftest.err'
30505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30506   (eval $ac_try) 2>&5
30507   ac_status=$?
30508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509   (exit $ac_status); }; } &&
30510          { ac_try='test -s conftest$ac_exeext'
30511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30512   (eval $ac_try) 2>&5
30513   ac_status=$?
30514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30515   (exit $ac_status); }; }; then
30516   ol_cv_lib_icu=yes
30517 else
30518   echo "$as_me: failed program was:" >&5
30519 sed 's/^/| /' conftest.$ac_ext >&5
30520
30521 ol_cv_lib_icu=no
30522 fi
30523 rm -f conftest.err conftest.$ac_objext \
30524       conftest$ac_exeext conftest.$ac_ext
30525                 LIBS="$ol_LIBS"
30526
30527 fi
30528 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30529 echo "${ECHO_T}$ol_cv_lib_icu" >&6
30530
30531         if test $ol_cv_lib_icu != no ; then
30532                 ol_icu="$OL_ICULIBS"
30533
30534 cat >>confdefs.h <<\_ACEOF
30535 #define HAVE_ICU 1
30536 _ACEOF
30537
30538         fi
30539 fi
30540
30541 if test "$ol_icu" = no ; then
30542         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30543 echo "$as_me: WARNING: ICU not available" >&2;}
30544 else
30545         ICU_LIBS="$ol_icu"
30546 fi
30547 WITH_SASL=no
30548 ol_link_sasl=no
30549 ol_link_spasswd=no
30550 if test $ol_with_cyrus_sasl != no ; then
30551
30552
30553 for ac_header in sasl/sasl.h sasl.h
30554 do
30555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30557   echo "$as_me:$LINENO: checking for $ac_header" >&5
30558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30560   echo $ECHO_N "(cached) $ECHO_C" >&6
30561 fi
30562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30564 else
30565   # Is the header compilable?
30566 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30568 cat >conftest.$ac_ext <<_ACEOF
30569 /* confdefs.h.  */
30570 _ACEOF
30571 cat confdefs.h >>conftest.$ac_ext
30572 cat >>conftest.$ac_ext <<_ACEOF
30573 /* end confdefs.h.  */
30574 $ac_includes_default
30575 #include <$ac_header>
30576 _ACEOF
30577 rm -f conftest.$ac_objext
30578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30579   (eval $ac_compile) 2>conftest.er1
30580   ac_status=$?
30581   grep -v '^ *+' conftest.er1 >conftest.err
30582   rm -f conftest.er1
30583   cat conftest.err >&5
30584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585   (exit $ac_status); } &&
30586          { ac_try='test -z "$ac_c_werror_flag"
30587                          || test ! -s conftest.err'
30588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30589   (eval $ac_try) 2>&5
30590   ac_status=$?
30591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592   (exit $ac_status); }; } &&
30593          { ac_try='test -s conftest.$ac_objext'
30594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30595   (eval $ac_try) 2>&5
30596   ac_status=$?
30597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30598   (exit $ac_status); }; }; then
30599   ac_header_compiler=yes
30600 else
30601   echo "$as_me: failed program was:" >&5
30602 sed 's/^/| /' conftest.$ac_ext >&5
30603
30604 ac_header_compiler=no
30605 fi
30606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30608 echo "${ECHO_T}$ac_header_compiler" >&6
30609
30610 # Is the header present?
30611 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30613 cat >conftest.$ac_ext <<_ACEOF
30614 /* confdefs.h.  */
30615 _ACEOF
30616 cat confdefs.h >>conftest.$ac_ext
30617 cat >>conftest.$ac_ext <<_ACEOF
30618 /* end confdefs.h.  */
30619 #include <$ac_header>
30620 _ACEOF
30621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30623   ac_status=$?
30624   grep -v '^ *+' conftest.er1 >conftest.err
30625   rm -f conftest.er1
30626   cat conftest.err >&5
30627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628   (exit $ac_status); } >/dev/null; then
30629   if test -s conftest.err; then
30630     ac_cpp_err=$ac_c_preproc_warn_flag
30631     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30632   else
30633     ac_cpp_err=
30634   fi
30635 else
30636   ac_cpp_err=yes
30637 fi
30638 if test -z "$ac_cpp_err"; then
30639   ac_header_preproc=yes
30640 else
30641   echo "$as_me: failed program was:" >&5
30642 sed 's/^/| /' conftest.$ac_ext >&5
30643
30644   ac_header_preproc=no
30645 fi
30646 rm -f conftest.err conftest.$ac_ext
30647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30648 echo "${ECHO_T}$ac_header_preproc" >&6
30649
30650 # So?  What about this header?
30651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30652   yes:no: )
30653     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30657     ac_header_preproc=yes
30658     ;;
30659   no:yes:* )
30660     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30662     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30663 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30664     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30666     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30667 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30670     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30672     (
30673       cat <<\_ASBOX
30674 ## --------------------------------------------- ##
30675 ## Report this to <http://www.openldap.org/its/> ##
30676 ## --------------------------------------------- ##
30677 _ASBOX
30678     ) |
30679       sed "s/^/$as_me: WARNING:     /" >&2
30680     ;;
30681 esac
30682 echo "$as_me:$LINENO: checking for $ac_header" >&5
30683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30685   echo $ECHO_N "(cached) $ECHO_C" >&6
30686 else
30687   eval "$as_ac_Header=\$ac_header_preproc"
30688 fi
30689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30691
30692 fi
30693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30694   cat >>confdefs.h <<_ACEOF
30695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30696 _ACEOF
30697
30698 fi
30699
30700 done
30701
30702
30703         if test $ac_cv_header_sasl_sasl_h = yes ||
30704            test $ac_cv_header_sasl_h = yes; then
30705                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30706 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
30707 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30708   echo $ECHO_N "(cached) $ECHO_C" >&6
30709 else
30710   ac_check_lib_save_LIBS=$LIBS
30711 LIBS="-lsasl2  $LIBS"
30712 cat >conftest.$ac_ext <<_ACEOF
30713 /* confdefs.h.  */
30714 _ACEOF
30715 cat confdefs.h >>conftest.$ac_ext
30716 cat >>conftest.$ac_ext <<_ACEOF
30717 /* end confdefs.h.  */
30718
30719 /* Override any gcc2 internal prototype to avoid an error.  */
30720 #ifdef __cplusplus
30721 extern "C"
30722 #endif
30723 /* We use char because int might match the return type of a gcc2
30724    builtin and then its argument prototype would still apply.  */
30725 char sasl_client_init ();
30726 int
30727 main ()
30728 {
30729 sasl_client_init ();
30730   ;
30731   return 0;
30732 }
30733 _ACEOF
30734 rm -f conftest.$ac_objext conftest$ac_exeext
30735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30736   (eval $ac_link) 2>conftest.er1
30737   ac_status=$?
30738   grep -v '^ *+' conftest.er1 >conftest.err
30739   rm -f conftest.er1
30740   cat conftest.err >&5
30741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742   (exit $ac_status); } &&
30743          { ac_try='test -z "$ac_c_werror_flag"
30744                          || test ! -s conftest.err'
30745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30746   (eval $ac_try) 2>&5
30747   ac_status=$?
30748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30749   (exit $ac_status); }; } &&
30750          { ac_try='test -s conftest$ac_exeext'
30751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30752   (eval $ac_try) 2>&5
30753   ac_status=$?
30754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755   (exit $ac_status); }; }; then
30756   ac_cv_lib_sasl2_sasl_client_init=yes
30757 else
30758   echo "$as_me: failed program was:" >&5
30759 sed 's/^/| /' conftest.$ac_ext >&5
30760
30761 ac_cv_lib_sasl2_sasl_client_init=no
30762 fi
30763 rm -f conftest.err conftest.$ac_objext \
30764       conftest$ac_exeext conftest.$ac_ext
30765 LIBS=$ac_check_lib_save_LIBS
30766 fi
30767 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30768 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
30769 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30770   ol_link_sasl="-lsasl2"
30771 else
30772   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30773 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
30774 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30775   echo $ECHO_N "(cached) $ECHO_C" >&6
30776 else
30777   ac_check_lib_save_LIBS=$LIBS
30778 LIBS="-lsasl  $LIBS"
30779 cat >conftest.$ac_ext <<_ACEOF
30780 /* confdefs.h.  */
30781 _ACEOF
30782 cat confdefs.h >>conftest.$ac_ext
30783 cat >>conftest.$ac_ext <<_ACEOF
30784 /* end confdefs.h.  */
30785
30786 /* Override any gcc2 internal prototype to avoid an error.  */
30787 #ifdef __cplusplus
30788 extern "C"
30789 #endif
30790 /* We use char because int might match the return type of a gcc2
30791    builtin and then its argument prototype would still apply.  */
30792 char sasl_client_init ();
30793 int
30794 main ()
30795 {
30796 sasl_client_init ();
30797   ;
30798   return 0;
30799 }
30800 _ACEOF
30801 rm -f conftest.$ac_objext conftest$ac_exeext
30802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30803   (eval $ac_link) 2>conftest.er1
30804   ac_status=$?
30805   grep -v '^ *+' conftest.er1 >conftest.err
30806   rm -f conftest.er1
30807   cat conftest.err >&5
30808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30809   (exit $ac_status); } &&
30810          { ac_try='test -z "$ac_c_werror_flag"
30811                          || test ! -s conftest.err'
30812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30813   (eval $ac_try) 2>&5
30814   ac_status=$?
30815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816   (exit $ac_status); }; } &&
30817          { ac_try='test -s conftest$ac_exeext'
30818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30819   (eval $ac_try) 2>&5
30820   ac_status=$?
30821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822   (exit $ac_status); }; }; then
30823   ac_cv_lib_sasl_sasl_client_init=yes
30824 else
30825   echo "$as_me: failed program was:" >&5
30826 sed 's/^/| /' conftest.$ac_ext >&5
30827
30828 ac_cv_lib_sasl_sasl_client_init=no
30829 fi
30830 rm -f conftest.err conftest.$ac_objext \
30831       conftest$ac_exeext conftest.$ac_ext
30832 LIBS=$ac_check_lib_save_LIBS
30833 fi
30834 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30835 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
30836 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30837   ol_link_sasl="-lsasl"
30838 fi
30839
30840 fi
30841
30842         fi
30843
30844         if test $ol_link_sasl = no ; then
30845                 if test $ol_with_cyrus_sasl != auto ; then
30846                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30847 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30848    { (exit 1); exit 1; }; }
30849                 else
30850                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30851 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30852                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30853 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30854                         if test $ol_link_tls = no ; then
30855                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30856 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30857                         fi
30858                 fi
30859         else
30860                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30861 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
30862 if test "${ol_cv_sasl_compat+set}" = set; then
30863   echo $ECHO_N "(cached) $ECHO_C" >&6
30864 else
30865
30866         cat >conftest.$ac_ext <<_ACEOF
30867 /* confdefs.h.  */
30868 _ACEOF
30869 cat confdefs.h >>conftest.$ac_ext
30870 cat >>conftest.$ac_ext <<_ACEOF
30871 /* end confdefs.h.  */
30872
30873 #ifdef HAVE_SASL_SASL_H
30874 #include <sasl/sasl.h>
30875 #else
30876 #include <sasl.h>
30877 #endif
30878
30879 /* Require 2.1.15+ */
30880 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
30881         char *__sasl_compat = "2.2+ or better okay (we guess)";
30882 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
30883         && SASL_VERSION_STEP >=15
30884         char *__sasl_compat = "2.1.15+ or better okay";
30885 #endif
30886
30887 _ACEOF
30888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30889   $EGREP "__sasl_compat" >/dev/null 2>&1; then
30890   ol_cv_sasl_compat=yes
30891 else
30892   ol_cv_sasl_compat=no
30893 fi
30894 rm -f conftest*
30895
30896 fi
30897 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30898 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
30899
30900                 if test $ol_cv_sasl_compat = no ; then
30901                         ol_link_sasl=no
30902                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30903 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30904    { (exit 1); exit 1; }; }
30905                 fi
30906
30907
30908 cat >>confdefs.h <<\_ACEOF
30909 #define HAVE_CYRUS_SASL 1
30910 _ACEOF
30911
30912                 SASL_LIBS="$ol_link_sasl"
30913                 if test $ol_enable_spasswd != no ; then
30914                         ol_link_spasswd=yes
30915                 fi
30916
30917                 ac_save_LIBS="$LIBS"
30918                 LIBS="$LIBS $ol_link_sasl"
30919                 echo "$as_me:$LINENO: checking for sasl_version" >&5
30920 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
30921 if test "${ac_cv_func_sasl_version+set}" = set; then
30922   echo $ECHO_N "(cached) $ECHO_C" >&6
30923 else
30924   cat >conftest.$ac_ext <<_ACEOF
30925 /* confdefs.h.  */
30926 _ACEOF
30927 cat confdefs.h >>conftest.$ac_ext
30928 cat >>conftest.$ac_ext <<_ACEOF
30929 /* end confdefs.h.  */
30930 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30932 #define sasl_version innocuous_sasl_version
30933
30934 /* System header to define __stub macros and hopefully few prototypes,
30935     which can conflict with char sasl_version (); below.
30936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30937     <limits.h> exists even on freestanding compilers.  */
30938
30939 #ifdef __STDC__
30940 # include <limits.h>
30941 #else
30942 # include <assert.h>
30943 #endif
30944
30945 #undef sasl_version
30946
30947 /* Override any gcc2 internal prototype to avoid an error.  */
30948 #ifdef __cplusplus
30949 extern "C"
30950 {
30951 #endif
30952 /* We use char because int might match the return type of a gcc2
30953    builtin and then its argument prototype would still apply.  */
30954 char sasl_version ();
30955 /* The GNU C library defines this for functions which it implements
30956     to always fail with ENOSYS.  Some functions are actually named
30957     something starting with __ and the normal name is an alias.  */
30958 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
30959 choke me
30960 #else
30961 char (*f) () = sasl_version;
30962 #endif
30963 #ifdef __cplusplus
30964 }
30965 #endif
30966
30967 int
30968 main ()
30969 {
30970 return f != sasl_version;
30971   ;
30972   return 0;
30973 }
30974 _ACEOF
30975 rm -f conftest.$ac_objext conftest$ac_exeext
30976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30977   (eval $ac_link) 2>conftest.er1
30978   ac_status=$?
30979   grep -v '^ *+' conftest.er1 >conftest.err
30980   rm -f conftest.er1
30981   cat conftest.err >&5
30982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983   (exit $ac_status); } &&
30984          { ac_try='test -z "$ac_c_werror_flag"
30985                          || test ! -s conftest.err'
30986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30987   (eval $ac_try) 2>&5
30988   ac_status=$?
30989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990   (exit $ac_status); }; } &&
30991          { ac_try='test -s conftest$ac_exeext'
30992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30993   (eval $ac_try) 2>&5
30994   ac_status=$?
30995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996   (exit $ac_status); }; }; then
30997   ac_cv_func_sasl_version=yes
30998 else
30999   echo "$as_me: failed program was:" >&5
31000 sed 's/^/| /' conftest.$ac_ext >&5
31001
31002 ac_cv_func_sasl_version=no
31003 fi
31004 rm -f conftest.err conftest.$ac_objext \
31005       conftest$ac_exeext conftest.$ac_ext
31006 fi
31007 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31008 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
31009 if test $ac_cv_func_sasl_version = yes; then
31010
31011 cat >>confdefs.h <<\_ACEOF
31012 #define HAVE_SASL_VERSION 1
31013 _ACEOF
31014
31015 fi
31016
31017                 LIBS="$ac_save_LIBS"
31018
31019                 WITH_SASL=yes
31020         fi
31021
31022 else
31023         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31024 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31025         if test $ol_link_tls = no ; then
31026                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31027 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31028         fi
31029 fi
31030
31031 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31032         dev=no
31033         if test -r /dev/urandom ; then
31034                 dev="/dev/urandom";
31035         elif test -r /idev/urandom ; then
31036                 dev="/idev/urandom";
31037         elif test -r /dev/srandom ; then
31038                 dev="/dev/srandom";
31039         elif test -r /dev/random ; then
31040                 dev="/dev/random";
31041         elif test -r /idev/random ; then
31042                 dev="/idev/random";
31043         fi
31044
31045         if test $dev != no ; then
31046
31047 cat >>confdefs.h <<_ACEOF
31048 #define URANDOM_DEVICE "$dev"
31049 _ACEOF
31050
31051         fi
31052 fi
31053
31054 ol_link_fetch=no
31055 if test $ol_with_fetch != no ; then
31056         ol_LIBS=$LIBS
31057 LIBS="-lfetch -lcom_err $LIBS"
31058 echo "$as_me:$LINENO: checking fetch(3) library" >&5
31059 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
31060 if test "${ol_cv_lib_fetch+set}" = set; then
31061   echo $ECHO_N "(cached) $ECHO_C" >&6
31062 else
31063
31064         cat >conftest.$ac_ext <<_ACEOF
31065 /* confdefs.h.  */
31066 _ACEOF
31067 cat confdefs.h >>conftest.$ac_ext
31068 cat >>conftest.$ac_ext <<_ACEOF
31069 /* end confdefs.h.  */
31070
31071 #ifdef HAVE_SYS_PARAM_H
31072 #include <sys/param.h>
31073 #endif
31074 #include <stdio.h>
31075 #include <fetch.h>
31076 int
31077 main ()
31078 {
31079 struct url *u = fetchParseURL("file:///");
31080   ;
31081   return 0;
31082 }
31083 _ACEOF
31084 rm -f conftest.$ac_objext conftest$ac_exeext
31085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31086   (eval $ac_link) 2>conftest.er1
31087   ac_status=$?
31088   grep -v '^ *+' conftest.er1 >conftest.err
31089   rm -f conftest.er1
31090   cat conftest.err >&5
31091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092   (exit $ac_status); } &&
31093          { ac_try='test -z "$ac_c_werror_flag"
31094                          || test ! -s conftest.err'
31095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31096   (eval $ac_try) 2>&5
31097   ac_status=$?
31098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099   (exit $ac_status); }; } &&
31100          { ac_try='test -s conftest$ac_exeext'
31101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31102   (eval $ac_try) 2>&5
31103   ac_status=$?
31104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105   (exit $ac_status); }; }; then
31106   ol_cv_lib_fetch=yes
31107 else
31108   echo "$as_me: failed program was:" >&5
31109 sed 's/^/| /' conftest.$ac_ext >&5
31110
31111 ol_cv_lib_fetch=no
31112 fi
31113 rm -f conftest.err conftest.$ac_objext \
31114       conftest$ac_exeext conftest.$ac_ext
31115 fi
31116 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31117 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
31118 LIBS=$ol_LIBS
31119 if test $ol_cv_lib_fetch != no ; then
31120         ol_link_fetch="-lfetch -lcom_err"
31121
31122 cat >>confdefs.h <<\_ACEOF
31123 #define HAVE_FETCH 1
31124 _ACEOF
31125
31126 fi
31127
31128
31129         if test $ol_cv_lib_fetch != no ; then
31130                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31131                 ol_link_fetch=freebsd
31132
31133         elif test $ol_with_fetch != auto ; then
31134                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31135 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31136    { (exit 1); exit 1; }; }
31137         fi
31138 fi
31139
31140 if test $ol_enable_crypt != no ; then
31141         save_LIBS="$LIBS"
31142         LIBS="$TLS_LIBS $LIBS"
31143
31144         echo "$as_me:$LINENO: checking for crypt" >&5
31145 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
31146 if test "${ac_cv_func_crypt+set}" = set; then
31147   echo $ECHO_N "(cached) $ECHO_C" >&6
31148 else
31149   cat >conftest.$ac_ext <<_ACEOF
31150 /* confdefs.h.  */
31151 _ACEOF
31152 cat confdefs.h >>conftest.$ac_ext
31153 cat >>conftest.$ac_ext <<_ACEOF
31154 /* end confdefs.h.  */
31155 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31156    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31157 #define crypt innocuous_crypt
31158
31159 /* System header to define __stub macros and hopefully few prototypes,
31160     which can conflict with char crypt (); below.
31161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31162     <limits.h> exists even on freestanding compilers.  */
31163
31164 #ifdef __STDC__
31165 # include <limits.h>
31166 #else
31167 # include <assert.h>
31168 #endif
31169
31170 #undef crypt
31171
31172 /* Override any gcc2 internal prototype to avoid an error.  */
31173 #ifdef __cplusplus
31174 extern "C"
31175 {
31176 #endif
31177 /* We use char because int might match the return type of a gcc2
31178    builtin and then its argument prototype would still apply.  */
31179 char crypt ();
31180 /* The GNU C library defines this for functions which it implements
31181     to always fail with ENOSYS.  Some functions are actually named
31182     something starting with __ and the normal name is an alias.  */
31183 #if defined (__stub_crypt) || defined (__stub___crypt)
31184 choke me
31185 #else
31186 char (*f) () = crypt;
31187 #endif
31188 #ifdef __cplusplus
31189 }
31190 #endif
31191
31192 int
31193 main ()
31194 {
31195 return f != crypt;
31196   ;
31197   return 0;
31198 }
31199 _ACEOF
31200 rm -f conftest.$ac_objext conftest$ac_exeext
31201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31202   (eval $ac_link) 2>conftest.er1
31203   ac_status=$?
31204   grep -v '^ *+' conftest.er1 >conftest.err
31205   rm -f conftest.er1
31206   cat conftest.err >&5
31207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208   (exit $ac_status); } &&
31209          { ac_try='test -z "$ac_c_werror_flag"
31210                          || test ! -s conftest.err'
31211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31212   (eval $ac_try) 2>&5
31213   ac_status=$?
31214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215   (exit $ac_status); }; } &&
31216          { ac_try='test -s conftest$ac_exeext'
31217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31218   (eval $ac_try) 2>&5
31219   ac_status=$?
31220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221   (exit $ac_status); }; }; then
31222   ac_cv_func_crypt=yes
31223 else
31224   echo "$as_me: failed program was:" >&5
31225 sed 's/^/| /' conftest.$ac_ext >&5
31226
31227 ac_cv_func_crypt=no
31228 fi
31229 rm -f conftest.err conftest.$ac_objext \
31230       conftest$ac_exeext conftest.$ac_ext
31231 fi
31232 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31233 echo "${ECHO_T}$ac_cv_func_crypt" >&6
31234 if test $ac_cv_func_crypt = yes; then
31235   have_crypt=yes
31236 else
31237
31238                 LIBS="$save_LIBS"
31239                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31240 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
31241 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31242   echo $ECHO_N "(cached) $ECHO_C" >&6
31243 else
31244   ac_check_lib_save_LIBS=$LIBS
31245 LIBS="-lcrypt  $LIBS"
31246 cat >conftest.$ac_ext <<_ACEOF
31247 /* confdefs.h.  */
31248 _ACEOF
31249 cat confdefs.h >>conftest.$ac_ext
31250 cat >>conftest.$ac_ext <<_ACEOF
31251 /* end confdefs.h.  */
31252
31253 /* Override any gcc2 internal prototype to avoid an error.  */
31254 #ifdef __cplusplus
31255 extern "C"
31256 #endif
31257 /* We use char because int might match the return type of a gcc2
31258    builtin and then its argument prototype would still apply.  */
31259 char crypt ();
31260 int
31261 main ()
31262 {
31263 crypt ();
31264   ;
31265   return 0;
31266 }
31267 _ACEOF
31268 rm -f conftest.$ac_objext conftest$ac_exeext
31269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31270   (eval $ac_link) 2>conftest.er1
31271   ac_status=$?
31272   grep -v '^ *+' conftest.er1 >conftest.err
31273   rm -f conftest.er1
31274   cat conftest.err >&5
31275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276   (exit $ac_status); } &&
31277          { ac_try='test -z "$ac_c_werror_flag"
31278                          || test ! -s conftest.err'
31279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31280   (eval $ac_try) 2>&5
31281   ac_status=$?
31282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283   (exit $ac_status); }; } &&
31284          { ac_try='test -s conftest$ac_exeext'
31285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31286   (eval $ac_try) 2>&5
31287   ac_status=$?
31288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289   (exit $ac_status); }; }; then
31290   ac_cv_lib_crypt_crypt=yes
31291 else
31292   echo "$as_me: failed program was:" >&5
31293 sed 's/^/| /' conftest.$ac_ext >&5
31294
31295 ac_cv_lib_crypt_crypt=no
31296 fi
31297 rm -f conftest.err conftest.$ac_objext \
31298       conftest$ac_exeext conftest.$ac_ext
31299 LIBS=$ac_check_lib_save_LIBS
31300 fi
31301 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31302 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
31303 if test $ac_cv_lib_crypt_crypt = yes; then
31304   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31305                         have_crypt=yes
31306 else
31307   have_crypt=no
31308 fi
31309
31310 fi
31311
31312
31313         LIBS="$save_LIBS"
31314
31315         if test $have_crypt = yes ; then
31316
31317 cat >>confdefs.h <<\_ACEOF
31318 #define HAVE_CRYPT 1
31319 _ACEOF
31320
31321         else
31322                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31323 echo "$as_me: WARNING: could not find crypt" >&2;}
31324                 if test $ol_enable_crypt = yes ; then
31325                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31326 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31327    { (exit 1); exit 1; }; }
31328                 fi
31329
31330                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31331 echo "$as_me: WARNING: disabling crypt support" >&2;}
31332                 ol_enable_crypt=no
31333         fi
31334 fi
31335
31336 if test $ol_enable_proctitle != no ; then
31337         echo "$as_me:$LINENO: checking for setproctitle" >&5
31338 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
31339 if test "${ac_cv_func_setproctitle+set}" = set; then
31340   echo $ECHO_N "(cached) $ECHO_C" >&6
31341 else
31342   cat >conftest.$ac_ext <<_ACEOF
31343 /* confdefs.h.  */
31344 _ACEOF
31345 cat confdefs.h >>conftest.$ac_ext
31346 cat >>conftest.$ac_ext <<_ACEOF
31347 /* end confdefs.h.  */
31348 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31350 #define setproctitle innocuous_setproctitle
31351
31352 /* System header to define __stub macros and hopefully few prototypes,
31353     which can conflict with char setproctitle (); below.
31354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31355     <limits.h> exists even on freestanding compilers.  */
31356
31357 #ifdef __STDC__
31358 # include <limits.h>
31359 #else
31360 # include <assert.h>
31361 #endif
31362
31363 #undef setproctitle
31364
31365 /* Override any gcc2 internal prototype to avoid an error.  */
31366 #ifdef __cplusplus
31367 extern "C"
31368 {
31369 #endif
31370 /* We use char because int might match the return type of a gcc2
31371    builtin and then its argument prototype would still apply.  */
31372 char setproctitle ();
31373 /* The GNU C library defines this for functions which it implements
31374     to always fail with ENOSYS.  Some functions are actually named
31375     something starting with __ and the normal name is an alias.  */
31376 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
31377 choke me
31378 #else
31379 char (*f) () = setproctitle;
31380 #endif
31381 #ifdef __cplusplus
31382 }
31383 #endif
31384
31385 int
31386 main ()
31387 {
31388 return f != setproctitle;
31389   ;
31390   return 0;
31391 }
31392 _ACEOF
31393 rm -f conftest.$ac_objext conftest$ac_exeext
31394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31395   (eval $ac_link) 2>conftest.er1
31396   ac_status=$?
31397   grep -v '^ *+' conftest.er1 >conftest.err
31398   rm -f conftest.er1
31399   cat conftest.err >&5
31400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401   (exit $ac_status); } &&
31402          { ac_try='test -z "$ac_c_werror_flag"
31403                          || test ! -s conftest.err'
31404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31405   (eval $ac_try) 2>&5
31406   ac_status=$?
31407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408   (exit $ac_status); }; } &&
31409          { ac_try='test -s conftest$ac_exeext'
31410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31411   (eval $ac_try) 2>&5
31412   ac_status=$?
31413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414   (exit $ac_status); }; }; then
31415   ac_cv_func_setproctitle=yes
31416 else
31417   echo "$as_me: failed program was:" >&5
31418 sed 's/^/| /' conftest.$ac_ext >&5
31419
31420 ac_cv_func_setproctitle=no
31421 fi
31422 rm -f conftest.err conftest.$ac_objext \
31423       conftest$ac_exeext conftest.$ac_ext
31424 fi
31425 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31426 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
31427 if test $ac_cv_func_setproctitle = yes; then
31428   have_setproctitle=yes
31429 else
31430
31431                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31432 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
31433 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31434   echo $ECHO_N "(cached) $ECHO_C" >&6
31435 else
31436   ac_check_lib_save_LIBS=$LIBS
31437 LIBS="-lutil  $LIBS"
31438 cat >conftest.$ac_ext <<_ACEOF
31439 /* confdefs.h.  */
31440 _ACEOF
31441 cat confdefs.h >>conftest.$ac_ext
31442 cat >>conftest.$ac_ext <<_ACEOF
31443 /* end confdefs.h.  */
31444
31445 /* Override any gcc2 internal prototype to avoid an error.  */
31446 #ifdef __cplusplus
31447 extern "C"
31448 #endif
31449 /* We use char because int might match the return type of a gcc2
31450    builtin and then its argument prototype would still apply.  */
31451 char setproctitle ();
31452 int
31453 main ()
31454 {
31455 setproctitle ();
31456   ;
31457   return 0;
31458 }
31459 _ACEOF
31460 rm -f conftest.$ac_objext conftest$ac_exeext
31461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31462   (eval $ac_link) 2>conftest.er1
31463   ac_status=$?
31464   grep -v '^ *+' conftest.er1 >conftest.err
31465   rm -f conftest.er1
31466   cat conftest.err >&5
31467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31468   (exit $ac_status); } &&
31469          { ac_try='test -z "$ac_c_werror_flag"
31470                          || test ! -s conftest.err'
31471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31472   (eval $ac_try) 2>&5
31473   ac_status=$?
31474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475   (exit $ac_status); }; } &&
31476          { ac_try='test -s conftest$ac_exeext'
31477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31478   (eval $ac_try) 2>&5
31479   ac_status=$?
31480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481   (exit $ac_status); }; }; then
31482   ac_cv_lib_util_setproctitle=yes
31483 else
31484   echo "$as_me: failed program was:" >&5
31485 sed 's/^/| /' conftest.$ac_ext >&5
31486
31487 ac_cv_lib_util_setproctitle=no
31488 fi
31489 rm -f conftest.err conftest.$ac_objext \
31490       conftest$ac_exeext conftest.$ac_ext
31491 LIBS=$ac_check_lib_save_LIBS
31492 fi
31493 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31494 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
31495 if test $ac_cv_lib_util_setproctitle = yes; then
31496   have_setproctitle=yes
31497                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31498 else
31499   have_setproctitle=no
31500                         case $LIBOBJS in
31501     "setproctitle.$ac_objext"   | \
31502   *" setproctitle.$ac_objext"   | \
31503     "setproctitle.$ac_objext "* | \
31504   *" setproctitle.$ac_objext "* ) ;;
31505   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
31506 esac
31507
31508                         LIBSRCS="$LIBSRCS setproctitle.c"
31509 fi
31510
31511 fi
31512
31513
31514         if test $have_setproctitle = yes ; then
31515
31516 cat >>confdefs.h <<\_ACEOF
31517 #define HAVE_SETPROCTITLE 1
31518 _ACEOF
31519
31520         fi
31521 fi
31522
31523 if test $ol_enable_slp != no ; then
31524
31525 for ac_header in slp.h
31526 do
31527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31529   echo "$as_me:$LINENO: checking for $ac_header" >&5
31530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31532   echo $ECHO_N "(cached) $ECHO_C" >&6
31533 fi
31534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31536 else
31537   # Is the header compilable?
31538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31540 cat >conftest.$ac_ext <<_ACEOF
31541 /* confdefs.h.  */
31542 _ACEOF
31543 cat confdefs.h >>conftest.$ac_ext
31544 cat >>conftest.$ac_ext <<_ACEOF
31545 /* end confdefs.h.  */
31546 $ac_includes_default
31547 #include <$ac_header>
31548 _ACEOF
31549 rm -f conftest.$ac_objext
31550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31551   (eval $ac_compile) 2>conftest.er1
31552   ac_status=$?
31553   grep -v '^ *+' conftest.er1 >conftest.err
31554   rm -f conftest.er1
31555   cat conftest.err >&5
31556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557   (exit $ac_status); } &&
31558          { ac_try='test -z "$ac_c_werror_flag"
31559                          || test ! -s conftest.err'
31560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31561   (eval $ac_try) 2>&5
31562   ac_status=$?
31563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564   (exit $ac_status); }; } &&
31565          { ac_try='test -s conftest.$ac_objext'
31566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31567   (eval $ac_try) 2>&5
31568   ac_status=$?
31569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31570   (exit $ac_status); }; }; then
31571   ac_header_compiler=yes
31572 else
31573   echo "$as_me: failed program was:" >&5
31574 sed 's/^/| /' conftest.$ac_ext >&5
31575
31576 ac_header_compiler=no
31577 fi
31578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31580 echo "${ECHO_T}$ac_header_compiler" >&6
31581
31582 # Is the header present?
31583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31585 cat >conftest.$ac_ext <<_ACEOF
31586 /* confdefs.h.  */
31587 _ACEOF
31588 cat confdefs.h >>conftest.$ac_ext
31589 cat >>conftest.$ac_ext <<_ACEOF
31590 /* end confdefs.h.  */
31591 #include <$ac_header>
31592 _ACEOF
31593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31594   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31595   ac_status=$?
31596   grep -v '^ *+' conftest.er1 >conftest.err
31597   rm -f conftest.er1
31598   cat conftest.err >&5
31599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600   (exit $ac_status); } >/dev/null; then
31601   if test -s conftest.err; then
31602     ac_cpp_err=$ac_c_preproc_warn_flag
31603     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31604   else
31605     ac_cpp_err=
31606   fi
31607 else
31608   ac_cpp_err=yes
31609 fi
31610 if test -z "$ac_cpp_err"; then
31611   ac_header_preproc=yes
31612 else
31613   echo "$as_me: failed program was:" >&5
31614 sed 's/^/| /' conftest.$ac_ext >&5
31615
31616   ac_header_preproc=no
31617 fi
31618 rm -f conftest.err conftest.$ac_ext
31619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31620 echo "${ECHO_T}$ac_header_preproc" >&6
31621
31622 # So?  What about this header?
31623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31624   yes:no: )
31625     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31629     ac_header_preproc=yes
31630     ;;
31631   no:yes:* )
31632     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31634     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31635 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31636     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31638     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31639 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31642     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31644     (
31645       cat <<\_ASBOX
31646 ## --------------------------------------------- ##
31647 ## Report this to <http://www.openldap.org/its/> ##
31648 ## --------------------------------------------- ##
31649 _ASBOX
31650     ) |
31651       sed "s/^/$as_me: WARNING:     /" >&2
31652     ;;
31653 esac
31654 echo "$as_me:$LINENO: checking for $ac_header" >&5
31655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31657   echo $ECHO_N "(cached) $ECHO_C" >&6
31658 else
31659   eval "$as_ac_Header=\$ac_header_preproc"
31660 fi
31661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31663
31664 fi
31665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31666   cat >>confdefs.h <<_ACEOF
31667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31668 _ACEOF
31669
31670 fi
31671
31672 done
31673
31674
31675         if test $ac_cv_header_slp_h = yes ; then
31676                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31677 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
31678 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31679   echo $ECHO_N "(cached) $ECHO_C" >&6
31680 else
31681   ac_check_lib_save_LIBS=$LIBS
31682 LIBS="-lslp  $LIBS"
31683 cat >conftest.$ac_ext <<_ACEOF
31684 /* confdefs.h.  */
31685 _ACEOF
31686 cat confdefs.h >>conftest.$ac_ext
31687 cat >>conftest.$ac_ext <<_ACEOF
31688 /* end confdefs.h.  */
31689
31690 /* Override any gcc2 internal prototype to avoid an error.  */
31691 #ifdef __cplusplus
31692 extern "C"
31693 #endif
31694 /* We use char because int might match the return type of a gcc2
31695    builtin and then its argument prototype would still apply.  */
31696 char SLPOpen ();
31697 int
31698 main ()
31699 {
31700 SLPOpen ();
31701   ;
31702   return 0;
31703 }
31704 _ACEOF
31705 rm -f conftest.$ac_objext conftest$ac_exeext
31706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31707   (eval $ac_link) 2>conftest.er1
31708   ac_status=$?
31709   grep -v '^ *+' conftest.er1 >conftest.err
31710   rm -f conftest.er1
31711   cat conftest.err >&5
31712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713   (exit $ac_status); } &&
31714          { ac_try='test -z "$ac_c_werror_flag"
31715                          || test ! -s conftest.err'
31716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31717   (eval $ac_try) 2>&5
31718   ac_status=$?
31719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720   (exit $ac_status); }; } &&
31721          { ac_try='test -s conftest$ac_exeext'
31722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31723   (eval $ac_try) 2>&5
31724   ac_status=$?
31725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726   (exit $ac_status); }; }; then
31727   ac_cv_lib_slp_SLPOpen=yes
31728 else
31729   echo "$as_me: failed program was:" >&5
31730 sed 's/^/| /' conftest.$ac_ext >&5
31731
31732 ac_cv_lib_slp_SLPOpen=no
31733 fi
31734 rm -f conftest.err conftest.$ac_objext \
31735       conftest$ac_exeext conftest.$ac_ext
31736 LIBS=$ac_check_lib_save_LIBS
31737 fi
31738 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31739 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
31740 if test $ac_cv_lib_slp_SLPOpen = yes; then
31741   have_slp=yes
31742 else
31743   have_slp=no
31744 fi
31745
31746                 if test $have_slp = yes ; then
31747
31748 cat >>confdefs.h <<\_ACEOF
31749 #define HAVE_SLP 1
31750 _ACEOF
31751
31752                         SLAPD_SLP_LIBS=-lslp
31753                 fi
31754
31755         elif test $ol_enable_slp = yes ; then
31756                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31757 echo "$as_me: error: SLP not found" >&2;}
31758    { (exit 1); exit 1; }; }
31759         fi
31760 fi
31761
31762
31763 echo "$as_me:$LINENO: checking for mode_t" >&5
31764 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31765 if test "${ac_cv_type_mode_t+set}" = set; then
31766   echo $ECHO_N "(cached) $ECHO_C" >&6
31767 else
31768   cat >conftest.$ac_ext <<_ACEOF
31769 /* confdefs.h.  */
31770 _ACEOF
31771 cat confdefs.h >>conftest.$ac_ext
31772 cat >>conftest.$ac_ext <<_ACEOF
31773 /* end confdefs.h.  */
31774 $ac_includes_default
31775 int
31776 main ()
31777 {
31778 if ((mode_t *) 0)
31779   return 0;
31780 if (sizeof (mode_t))
31781   return 0;
31782   ;
31783   return 0;
31784 }
31785 _ACEOF
31786 rm -f conftest.$ac_objext
31787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31788   (eval $ac_compile) 2>conftest.er1
31789   ac_status=$?
31790   grep -v '^ *+' conftest.er1 >conftest.err
31791   rm -f conftest.er1
31792   cat conftest.err >&5
31793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794   (exit $ac_status); } &&
31795          { ac_try='test -z "$ac_c_werror_flag"
31796                          || test ! -s conftest.err'
31797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31798   (eval $ac_try) 2>&5
31799   ac_status=$?
31800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801   (exit $ac_status); }; } &&
31802          { ac_try='test -s conftest.$ac_objext'
31803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31804   (eval $ac_try) 2>&5
31805   ac_status=$?
31806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807   (exit $ac_status); }; }; then
31808   ac_cv_type_mode_t=yes
31809 else
31810   echo "$as_me: failed program was:" >&5
31811 sed 's/^/| /' conftest.$ac_ext >&5
31812
31813 ac_cv_type_mode_t=no
31814 fi
31815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31816 fi
31817 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31818 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31819 if test $ac_cv_type_mode_t = yes; then
31820   :
31821 else
31822
31823 cat >>confdefs.h <<_ACEOF
31824 #define mode_t int
31825 _ACEOF
31826
31827 fi
31828
31829 echo "$as_me:$LINENO: checking for off_t" >&5
31830 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31831 if test "${ac_cv_type_off_t+set}" = set; then
31832   echo $ECHO_N "(cached) $ECHO_C" >&6
31833 else
31834   cat >conftest.$ac_ext <<_ACEOF
31835 /* confdefs.h.  */
31836 _ACEOF
31837 cat confdefs.h >>conftest.$ac_ext
31838 cat >>conftest.$ac_ext <<_ACEOF
31839 /* end confdefs.h.  */
31840 $ac_includes_default
31841 int
31842 main ()
31843 {
31844 if ((off_t *) 0)
31845   return 0;
31846 if (sizeof (off_t))
31847   return 0;
31848   ;
31849   return 0;
31850 }
31851 _ACEOF
31852 rm -f conftest.$ac_objext
31853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31854   (eval $ac_compile) 2>conftest.er1
31855   ac_status=$?
31856   grep -v '^ *+' conftest.er1 >conftest.err
31857   rm -f conftest.er1
31858   cat conftest.err >&5
31859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860   (exit $ac_status); } &&
31861          { ac_try='test -z "$ac_c_werror_flag"
31862                          || test ! -s conftest.err'
31863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31864   (eval $ac_try) 2>&5
31865   ac_status=$?
31866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867   (exit $ac_status); }; } &&
31868          { ac_try='test -s conftest.$ac_objext'
31869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31870   (eval $ac_try) 2>&5
31871   ac_status=$?
31872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873   (exit $ac_status); }; }; then
31874   ac_cv_type_off_t=yes
31875 else
31876   echo "$as_me: failed program was:" >&5
31877 sed 's/^/| /' conftest.$ac_ext >&5
31878
31879 ac_cv_type_off_t=no
31880 fi
31881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31882 fi
31883 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31884 echo "${ECHO_T}$ac_cv_type_off_t" >&6
31885 if test $ac_cv_type_off_t = yes; then
31886   :
31887 else
31888
31889 cat >>confdefs.h <<_ACEOF
31890 #define off_t long
31891 _ACEOF
31892
31893 fi
31894
31895 echo "$as_me:$LINENO: checking for pid_t" >&5
31896 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31897 if test "${ac_cv_type_pid_t+set}" = set; then
31898   echo $ECHO_N "(cached) $ECHO_C" >&6
31899 else
31900   cat >conftest.$ac_ext <<_ACEOF
31901 /* confdefs.h.  */
31902 _ACEOF
31903 cat confdefs.h >>conftest.$ac_ext
31904 cat >>conftest.$ac_ext <<_ACEOF
31905 /* end confdefs.h.  */
31906 $ac_includes_default
31907 int
31908 main ()
31909 {
31910 if ((pid_t *) 0)
31911   return 0;
31912 if (sizeof (pid_t))
31913   return 0;
31914   ;
31915   return 0;
31916 }
31917 _ACEOF
31918 rm -f conftest.$ac_objext
31919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31920   (eval $ac_compile) 2>conftest.er1
31921   ac_status=$?
31922   grep -v '^ *+' conftest.er1 >conftest.err
31923   rm -f conftest.er1
31924   cat conftest.err >&5
31925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926   (exit $ac_status); } &&
31927          { ac_try='test -z "$ac_c_werror_flag"
31928                          || test ! -s conftest.err'
31929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31930   (eval $ac_try) 2>&5
31931   ac_status=$?
31932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933   (exit $ac_status); }; } &&
31934          { ac_try='test -s conftest.$ac_objext'
31935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31936   (eval $ac_try) 2>&5
31937   ac_status=$?
31938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939   (exit $ac_status); }; }; then
31940   ac_cv_type_pid_t=yes
31941 else
31942   echo "$as_me: failed program was:" >&5
31943 sed 's/^/| /' conftest.$ac_ext >&5
31944
31945 ac_cv_type_pid_t=no
31946 fi
31947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31948 fi
31949 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31950 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31951 if test $ac_cv_type_pid_t = yes; then
31952   :
31953 else
31954
31955 cat >>confdefs.h <<_ACEOF
31956 #define pid_t int
31957 _ACEOF
31958
31959 fi
31960
31961 echo "$as_me:$LINENO: checking for ssize_t" >&5
31962 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
31963 if test "${ac_cv_type_ssize_t+set}" = set; then
31964   echo $ECHO_N "(cached) $ECHO_C" >&6
31965 else
31966   cat >conftest.$ac_ext <<_ACEOF
31967 /* confdefs.h.  */
31968 _ACEOF
31969 cat confdefs.h >>conftest.$ac_ext
31970 cat >>conftest.$ac_ext <<_ACEOF
31971 /* end confdefs.h.  */
31972 $ac_includes_default
31973 int
31974 main ()
31975 {
31976 if ((ssize_t *) 0)
31977   return 0;
31978 if (sizeof (ssize_t))
31979   return 0;
31980   ;
31981   return 0;
31982 }
31983 _ACEOF
31984 rm -f conftest.$ac_objext
31985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31986   (eval $ac_compile) 2>conftest.er1
31987   ac_status=$?
31988   grep -v '^ *+' conftest.er1 >conftest.err
31989   rm -f conftest.er1
31990   cat conftest.err >&5
31991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992   (exit $ac_status); } &&
31993          { ac_try='test -z "$ac_c_werror_flag"
31994                          || test ! -s conftest.err'
31995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31996   (eval $ac_try) 2>&5
31997   ac_status=$?
31998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999   (exit $ac_status); }; } &&
32000          { ac_try='test -s conftest.$ac_objext'
32001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32002   (eval $ac_try) 2>&5
32003   ac_status=$?
32004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005   (exit $ac_status); }; }; then
32006   ac_cv_type_ssize_t=yes
32007 else
32008   echo "$as_me: failed program was:" >&5
32009 sed 's/^/| /' conftest.$ac_ext >&5
32010
32011 ac_cv_type_ssize_t=no
32012 fi
32013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32014 fi
32015 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32016 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32017 if test $ac_cv_type_ssize_t = yes; then
32018   :
32019 else
32020
32021 cat >>confdefs.h <<_ACEOF
32022 #define ssize_t signed int
32023 _ACEOF
32024
32025 fi
32026
32027 echo "$as_me:$LINENO: checking for caddr_t" >&5
32028 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
32029 if test "${ac_cv_type_caddr_t+set}" = set; then
32030   echo $ECHO_N "(cached) $ECHO_C" >&6
32031 else
32032   cat >conftest.$ac_ext <<_ACEOF
32033 /* confdefs.h.  */
32034 _ACEOF
32035 cat confdefs.h >>conftest.$ac_ext
32036 cat >>conftest.$ac_ext <<_ACEOF
32037 /* end confdefs.h.  */
32038 $ac_includes_default
32039 int
32040 main ()
32041 {
32042 if ((caddr_t *) 0)
32043   return 0;
32044 if (sizeof (caddr_t))
32045   return 0;
32046   ;
32047   return 0;
32048 }
32049 _ACEOF
32050 rm -f conftest.$ac_objext
32051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32052   (eval $ac_compile) 2>conftest.er1
32053   ac_status=$?
32054   grep -v '^ *+' conftest.er1 >conftest.err
32055   rm -f conftest.er1
32056   cat conftest.err >&5
32057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058   (exit $ac_status); } &&
32059          { ac_try='test -z "$ac_c_werror_flag"
32060                          || test ! -s conftest.err'
32061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32062   (eval $ac_try) 2>&5
32063   ac_status=$?
32064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32065   (exit $ac_status); }; } &&
32066          { ac_try='test -s conftest.$ac_objext'
32067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32068   (eval $ac_try) 2>&5
32069   ac_status=$?
32070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32071   (exit $ac_status); }; }; then
32072   ac_cv_type_caddr_t=yes
32073 else
32074   echo "$as_me: failed program was:" >&5
32075 sed 's/^/| /' conftest.$ac_ext >&5
32076
32077 ac_cv_type_caddr_t=no
32078 fi
32079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32080 fi
32081 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32082 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
32083 if test $ac_cv_type_caddr_t = yes; then
32084   :
32085 else
32086
32087 cat >>confdefs.h <<_ACEOF
32088 #define caddr_t char *
32089 _ACEOF
32090
32091 fi
32092
32093 echo "$as_me:$LINENO: checking for size_t" >&5
32094 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32095 if test "${ac_cv_type_size_t+set}" = set; then
32096   echo $ECHO_N "(cached) $ECHO_C" >&6
32097 else
32098   cat >conftest.$ac_ext <<_ACEOF
32099 /* confdefs.h.  */
32100 _ACEOF
32101 cat confdefs.h >>conftest.$ac_ext
32102 cat >>conftest.$ac_ext <<_ACEOF
32103 /* end confdefs.h.  */
32104 $ac_includes_default
32105 int
32106 main ()
32107 {
32108 if ((size_t *) 0)
32109   return 0;
32110 if (sizeof (size_t))
32111   return 0;
32112   ;
32113   return 0;
32114 }
32115 _ACEOF
32116 rm -f conftest.$ac_objext
32117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32118   (eval $ac_compile) 2>conftest.er1
32119   ac_status=$?
32120   grep -v '^ *+' conftest.er1 >conftest.err
32121   rm -f conftest.er1
32122   cat conftest.err >&5
32123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124   (exit $ac_status); } &&
32125          { ac_try='test -z "$ac_c_werror_flag"
32126                          || test ! -s conftest.err'
32127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32128   (eval $ac_try) 2>&5
32129   ac_status=$?
32130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131   (exit $ac_status); }; } &&
32132          { ac_try='test -s conftest.$ac_objext'
32133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32134   (eval $ac_try) 2>&5
32135   ac_status=$?
32136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137   (exit $ac_status); }; }; then
32138   ac_cv_type_size_t=yes
32139 else
32140   echo "$as_me: failed program was:" >&5
32141 sed 's/^/| /' conftest.$ac_ext >&5
32142
32143 ac_cv_type_size_t=no
32144 fi
32145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32146 fi
32147 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32148 echo "${ECHO_T}$ac_cv_type_size_t" >&6
32149 if test $ac_cv_type_size_t = yes; then
32150   :
32151 else
32152
32153 cat >>confdefs.h <<_ACEOF
32154 #define size_t unsigned
32155 _ACEOF
32156
32157 fi
32158
32159
32160 echo "$as_me:$LINENO: checking for long long" >&5
32161 echo $ECHO_N "checking for long long... $ECHO_C" >&6
32162 if test "${ac_cv_type_long_long+set}" = set; then
32163   echo $ECHO_N "(cached) $ECHO_C" >&6
32164 else
32165   cat >conftest.$ac_ext <<_ACEOF
32166 /* confdefs.h.  */
32167 _ACEOF
32168 cat confdefs.h >>conftest.$ac_ext
32169 cat >>conftest.$ac_ext <<_ACEOF
32170 /* end confdefs.h.  */
32171 $ac_includes_default
32172 int
32173 main ()
32174 {
32175 if ((long long *) 0)
32176   return 0;
32177 if (sizeof (long long))
32178   return 0;
32179   ;
32180   return 0;
32181 }
32182 _ACEOF
32183 rm -f conftest.$ac_objext
32184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32185   (eval $ac_compile) 2>conftest.er1
32186   ac_status=$?
32187   grep -v '^ *+' conftest.er1 >conftest.err
32188   rm -f conftest.er1
32189   cat conftest.err >&5
32190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191   (exit $ac_status); } &&
32192          { ac_try='test -z "$ac_c_werror_flag"
32193                          || test ! -s conftest.err'
32194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32195   (eval $ac_try) 2>&5
32196   ac_status=$?
32197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32198   (exit $ac_status); }; } &&
32199          { ac_try='test -s conftest.$ac_objext'
32200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32201   (eval $ac_try) 2>&5
32202   ac_status=$?
32203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204   (exit $ac_status); }; }; then
32205   ac_cv_type_long_long=yes
32206 else
32207   echo "$as_me: failed program was:" >&5
32208 sed 's/^/| /' conftest.$ac_ext >&5
32209
32210 ac_cv_type_long_long=no
32211 fi
32212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32213 fi
32214 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32215 echo "${ECHO_T}$ac_cv_type_long_long" >&6
32216 if test $ac_cv_type_long_long = yes; then
32217
32218 cat >>confdefs.h <<_ACEOF
32219 #define HAVE_LONG_LONG 1
32220 _ACEOF
32221
32222
32223 fi
32224
32225 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32226 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
32227 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32228   echo $ECHO_N "(cached) $ECHO_C" >&6
32229 else
32230   cat >conftest.$ac_ext <<_ACEOF
32231 /* confdefs.h.  */
32232 _ACEOF
32233 cat confdefs.h >>conftest.$ac_ext
32234 cat >>conftest.$ac_ext <<_ACEOF
32235 /* end confdefs.h.  */
32236 $ac_includes_default
32237 int
32238 main ()
32239 {
32240 if ((ptrdiff_t *) 0)
32241   return 0;
32242 if (sizeof (ptrdiff_t))
32243   return 0;
32244   ;
32245   return 0;
32246 }
32247 _ACEOF
32248 rm -f conftest.$ac_objext
32249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32250   (eval $ac_compile) 2>conftest.er1
32251   ac_status=$?
32252   grep -v '^ *+' conftest.er1 >conftest.err
32253   rm -f conftest.er1
32254   cat conftest.err >&5
32255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32256   (exit $ac_status); } &&
32257          { ac_try='test -z "$ac_c_werror_flag"
32258                          || test ! -s conftest.err'
32259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32260   (eval $ac_try) 2>&5
32261   ac_status=$?
32262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263   (exit $ac_status); }; } &&
32264          { ac_try='test -s conftest.$ac_objext'
32265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32266   (eval $ac_try) 2>&5
32267   ac_status=$?
32268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269   (exit $ac_status); }; }; then
32270   ac_cv_type_ptrdiff_t=yes
32271 else
32272   echo "$as_me: failed program was:" >&5
32273 sed 's/^/| /' conftest.$ac_ext >&5
32274
32275 ac_cv_type_ptrdiff_t=no
32276 fi
32277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32278 fi
32279 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32280 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
32281 if test $ac_cv_type_ptrdiff_t = yes; then
32282
32283 cat >>confdefs.h <<_ACEOF
32284 #define HAVE_PTRDIFF_T 1
32285 _ACEOF
32286
32287
32288 fi
32289
32290
32291
32292 echo "$as_me:$LINENO: checking for socklen_t" >&5
32293 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
32294 if test "${ac_cv_type_socklen_t+set}" = set; then
32295   echo $ECHO_N "(cached) $ECHO_C" >&6
32296 else
32297   cat >conftest.$ac_ext <<_ACEOF
32298 /* confdefs.h.  */
32299 _ACEOF
32300 cat confdefs.h >>conftest.$ac_ext
32301 cat >>conftest.$ac_ext <<_ACEOF
32302 /* end confdefs.h.  */
32303 $ac_includes_default
32304 #ifdef HAVE_SYS_SOCKET_H
32305 #include <sys/socket.h>
32306 #endif
32307
32308 int
32309 main ()
32310 {
32311 if ((socklen_t *) 0)
32312   return 0;
32313 if (sizeof (socklen_t))
32314   return 0;
32315   ;
32316   return 0;
32317 }
32318 _ACEOF
32319 rm -f conftest.$ac_objext
32320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32321   (eval $ac_compile) 2>conftest.er1
32322   ac_status=$?
32323   grep -v '^ *+' conftest.er1 >conftest.err
32324   rm -f conftest.er1
32325   cat conftest.err >&5
32326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327   (exit $ac_status); } &&
32328          { ac_try='test -z "$ac_c_werror_flag"
32329                          || test ! -s conftest.err'
32330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32331   (eval $ac_try) 2>&5
32332   ac_status=$?
32333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334   (exit $ac_status); }; } &&
32335          { ac_try='test -s conftest.$ac_objext'
32336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32337   (eval $ac_try) 2>&5
32338   ac_status=$?
32339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32340   (exit $ac_status); }; }; then
32341   ac_cv_type_socklen_t=yes
32342 else
32343   echo "$as_me: failed program was:" >&5
32344 sed 's/^/| /' conftest.$ac_ext >&5
32345
32346 ac_cv_type_socklen_t=no
32347 fi
32348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32349 fi
32350 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32351 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
32352
32353
32354 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32355 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
32356 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32357   echo $ECHO_N "(cached) $ECHO_C" >&6
32358 else
32359
32360         set socklen_t int unsigned "unsigned long" long size_t
32361         test "$ac_cv_type_socklen_t" = yes || shift
32362         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32363         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32364                 cat >conftest.$ac_ext <<_ACEOF
32365 /* confdefs.h.  */
32366 _ACEOF
32367 cat confdefs.h >>conftest.$ac_ext
32368 cat >>conftest.$ac_ext <<_ACEOF
32369 /* end confdefs.h.  */
32370 $ac_includes_default
32371 #ifdef HAVE_SYS_SOCKET_H
32372 #include <sys/socket.h>
32373 #endif
32374 extern int accept(int s, $addrtype *ap, $lentype *lp);
32375
32376 int
32377 main ()
32378 {
32379
32380 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32381
32382   ;
32383   return 0;
32384 }
32385 _ACEOF
32386 rm -f conftest.$ac_objext
32387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32388   (eval $ac_compile) 2>conftest.er1
32389   ac_status=$?
32390   grep -v '^ *+' conftest.er1 >conftest.err
32391   rm -f conftest.er1
32392   cat conftest.err >&5
32393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394   (exit $ac_status); } &&
32395          { ac_try='test -z "$ac_c_werror_flag"
32396                          || test ! -s conftest.err'
32397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32398   (eval $ac_try) 2>&5
32399   ac_status=$?
32400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401   (exit $ac_status); }; } &&
32402          { ac_try='test -s conftest.$ac_objext'
32403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32404   (eval $ac_try) 2>&5
32405   ac_status=$?
32406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407   (exit $ac_status); }; }; then
32408   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32409 else
32410   echo "$as_me: failed program was:" >&5
32411 sed 's/^/| /' conftest.$ac_ext >&5
32412
32413 fi
32414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32415         done ; done
32416 fi
32417
32418 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32419 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
32420
32421 cat >>confdefs.h <<_ACEOF
32422 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32423 _ACEOF
32424
32425
32426 if test "$ac_cv_type_socklen_t" != yes; then
32427
32428 cat >>confdefs.h <<_ACEOF
32429 #define socklen_t $ol_cv_type_ber_socklen_t
32430 _ACEOF
32431
32432 fi
32433
32434
32435 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32436 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
32437 if test "${ac_cv_type_signal+set}" = set; then
32438   echo $ECHO_N "(cached) $ECHO_C" >&6
32439 else
32440   cat >conftest.$ac_ext <<_ACEOF
32441 /* confdefs.h.  */
32442 _ACEOF
32443 cat confdefs.h >>conftest.$ac_ext
32444 cat >>conftest.$ac_ext <<_ACEOF
32445 /* end confdefs.h.  */
32446 #include <sys/types.h>
32447 #include <signal.h>
32448 #ifdef signal
32449 # undef signal
32450 #endif
32451 #ifdef __cplusplus
32452 extern "C" void (*signal (int, void (*)(int)))(int);
32453 #else
32454 void (*signal ()) ();
32455 #endif
32456
32457 int
32458 main ()
32459 {
32460 int i;
32461   ;
32462   return 0;
32463 }
32464 _ACEOF
32465 rm -f conftest.$ac_objext
32466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32467   (eval $ac_compile) 2>conftest.er1
32468   ac_status=$?
32469   grep -v '^ *+' conftest.er1 >conftest.err
32470   rm -f conftest.er1
32471   cat conftest.err >&5
32472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473   (exit $ac_status); } &&
32474          { ac_try='test -z "$ac_c_werror_flag"
32475                          || test ! -s conftest.err'
32476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32477   (eval $ac_try) 2>&5
32478   ac_status=$?
32479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480   (exit $ac_status); }; } &&
32481          { ac_try='test -s conftest.$ac_objext'
32482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32483   (eval $ac_try) 2>&5
32484   ac_status=$?
32485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486   (exit $ac_status); }; }; then
32487   ac_cv_type_signal=void
32488 else
32489   echo "$as_me: failed program was:" >&5
32490 sed 's/^/| /' conftest.$ac_ext >&5
32491
32492 ac_cv_type_signal=int
32493 fi
32494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32495 fi
32496 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32497 echo "${ECHO_T}$ac_cv_type_signal" >&6
32498
32499 cat >>confdefs.h <<_ACEOF
32500 #define RETSIGTYPE $ac_cv_type_signal
32501 _ACEOF
32502
32503
32504
32505 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32506 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
32507 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32508   echo $ECHO_N "(cached) $ECHO_C" >&6
32509 else
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 <signal.h>
32518
32519
32520 int
32521 main ()
32522 {
32523 if ((sig_atomic_t *) 0)
32524   return 0;
32525 if (sizeof (sig_atomic_t))
32526   return 0;
32527   ;
32528   return 0;
32529 }
32530 _ACEOF
32531 rm -f conftest.$ac_objext
32532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32533   (eval $ac_compile) 2>conftest.er1
32534   ac_status=$?
32535   grep -v '^ *+' conftest.er1 >conftest.err
32536   rm -f conftest.er1
32537   cat conftest.err >&5
32538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32539   (exit $ac_status); } &&
32540          { ac_try='test -z "$ac_c_werror_flag"
32541                          || test ! -s conftest.err'
32542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32543   (eval $ac_try) 2>&5
32544   ac_status=$?
32545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546   (exit $ac_status); }; } &&
32547          { ac_try='test -s conftest.$ac_objext'
32548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32549   (eval $ac_try) 2>&5
32550   ac_status=$?
32551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552   (exit $ac_status); }; }; then
32553   ac_cv_type_sig_atomic_t=yes
32554 else
32555   echo "$as_me: failed program was:" >&5
32556 sed 's/^/| /' conftest.$ac_ext >&5
32557
32558 ac_cv_type_sig_atomic_t=no
32559 fi
32560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32561 fi
32562 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32563 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
32564 if test $ac_cv_type_sig_atomic_t = yes; then
32565   :
32566 else
32567
32568 cat >>confdefs.h <<_ACEOF
32569 #define sig_atomic_t int
32570 _ACEOF
32571
32572 fi
32573
32574
32575 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32576 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32577 if test "${ac_cv_type_uid_t+set}" = set; then
32578   echo $ECHO_N "(cached) $ECHO_C" >&6
32579 else
32580   cat >conftest.$ac_ext <<_ACEOF
32581 /* confdefs.h.  */
32582 _ACEOF
32583 cat confdefs.h >>conftest.$ac_ext
32584 cat >>conftest.$ac_ext <<_ACEOF
32585 /* end confdefs.h.  */
32586 #include <sys/types.h>
32587
32588 _ACEOF
32589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32590   $EGREP "uid_t" >/dev/null 2>&1; then
32591   ac_cv_type_uid_t=yes
32592 else
32593   ac_cv_type_uid_t=no
32594 fi
32595 rm -f conftest*
32596
32597 fi
32598 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32599 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32600 if test $ac_cv_type_uid_t = no; then
32601
32602 cat >>confdefs.h <<\_ACEOF
32603 #define uid_t int
32604 _ACEOF
32605
32606
32607 cat >>confdefs.h <<\_ACEOF
32608 #define gid_t int
32609 _ACEOF
32610
32611 fi
32612
32613
32614 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32615 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
32616 if test "${ac_cv_header_time+set}" = set; then
32617   echo $ECHO_N "(cached) $ECHO_C" >&6
32618 else
32619   cat >conftest.$ac_ext <<_ACEOF
32620 /* confdefs.h.  */
32621 _ACEOF
32622 cat confdefs.h >>conftest.$ac_ext
32623 cat >>conftest.$ac_ext <<_ACEOF
32624 /* end confdefs.h.  */
32625 #include <sys/types.h>
32626 #include <sys/time.h>
32627 #include <time.h>
32628
32629 int
32630 main ()
32631 {
32632 if ((struct tm *) 0)
32633 return 0;
32634   ;
32635   return 0;
32636 }
32637 _ACEOF
32638 rm -f conftest.$ac_objext
32639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32640   (eval $ac_compile) 2>conftest.er1
32641   ac_status=$?
32642   grep -v '^ *+' conftest.er1 >conftest.err
32643   rm -f conftest.er1
32644   cat conftest.err >&5
32645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646   (exit $ac_status); } &&
32647          { ac_try='test -z "$ac_c_werror_flag"
32648                          || test ! -s conftest.err'
32649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32650   (eval $ac_try) 2>&5
32651   ac_status=$?
32652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653   (exit $ac_status); }; } &&
32654          { ac_try='test -s conftest.$ac_objext'
32655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32656   (eval $ac_try) 2>&5
32657   ac_status=$?
32658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659   (exit $ac_status); }; }; then
32660   ac_cv_header_time=yes
32661 else
32662   echo "$as_me: failed program was:" >&5
32663 sed 's/^/| /' conftest.$ac_ext >&5
32664
32665 ac_cv_header_time=no
32666 fi
32667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32668 fi
32669 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32670 echo "${ECHO_T}$ac_cv_header_time" >&6
32671 if test $ac_cv_header_time = yes; then
32672
32673 cat >>confdefs.h <<\_ACEOF
32674 #define TIME_WITH_SYS_TIME 1
32675 _ACEOF
32676
32677 fi
32678
32679 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32680 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
32681 if test "${ac_cv_struct_tm+set}" = set; then
32682   echo $ECHO_N "(cached) $ECHO_C" >&6
32683 else
32684   cat >conftest.$ac_ext <<_ACEOF
32685 /* confdefs.h.  */
32686 _ACEOF
32687 cat confdefs.h >>conftest.$ac_ext
32688 cat >>conftest.$ac_ext <<_ACEOF
32689 /* end confdefs.h.  */
32690 #include <sys/types.h>
32691 #include <time.h>
32692
32693 int
32694 main ()
32695 {
32696 struct tm *tp; tp->tm_sec;
32697   ;
32698   return 0;
32699 }
32700 _ACEOF
32701 rm -f conftest.$ac_objext
32702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32703   (eval $ac_compile) 2>conftest.er1
32704   ac_status=$?
32705   grep -v '^ *+' conftest.er1 >conftest.err
32706   rm -f conftest.er1
32707   cat conftest.err >&5
32708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709   (exit $ac_status); } &&
32710          { ac_try='test -z "$ac_c_werror_flag"
32711                          || test ! -s conftest.err'
32712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32713   (eval $ac_try) 2>&5
32714   ac_status=$?
32715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716   (exit $ac_status); }; } &&
32717          { ac_try='test -s conftest.$ac_objext'
32718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32719   (eval $ac_try) 2>&5
32720   ac_status=$?
32721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722   (exit $ac_status); }; }; then
32723   ac_cv_struct_tm=time.h
32724 else
32725   echo "$as_me: failed program was:" >&5
32726 sed 's/^/| /' conftest.$ac_ext >&5
32727
32728 ac_cv_struct_tm=sys/time.h
32729 fi
32730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32731 fi
32732 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32733 echo "${ECHO_T}$ac_cv_struct_tm" >&6
32734 if test $ac_cv_struct_tm = sys/time.h; then
32735
32736 cat >>confdefs.h <<\_ACEOF
32737 #define TM_IN_SYS_TIME 1
32738 _ACEOF
32739
32740 fi
32741
32742 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32743 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
32744 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32745   echo $ECHO_N "(cached) $ECHO_C" >&6
32746 else
32747   cat >conftest.$ac_ext <<_ACEOF
32748 /* confdefs.h.  */
32749 _ACEOF
32750 cat confdefs.h >>conftest.$ac_ext
32751 cat >>conftest.$ac_ext <<_ACEOF
32752 /* end confdefs.h.  */
32753 $ac_includes_default
32754 int
32755 main ()
32756 {
32757 static struct stat ac_aggr;
32758 if (ac_aggr.st_blksize)
32759 return 0;
32760   ;
32761   return 0;
32762 }
32763 _ACEOF
32764 rm -f conftest.$ac_objext
32765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32766   (eval $ac_compile) 2>conftest.er1
32767   ac_status=$?
32768   grep -v '^ *+' conftest.er1 >conftest.err
32769   rm -f conftest.er1
32770   cat conftest.err >&5
32771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772   (exit $ac_status); } &&
32773          { ac_try='test -z "$ac_c_werror_flag"
32774                          || test ! -s conftest.err'
32775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32776   (eval $ac_try) 2>&5
32777   ac_status=$?
32778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779   (exit $ac_status); }; } &&
32780          { ac_try='test -s conftest.$ac_objext'
32781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32782   (eval $ac_try) 2>&5
32783   ac_status=$?
32784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785   (exit $ac_status); }; }; then
32786   ac_cv_member_struct_stat_st_blksize=yes
32787 else
32788   echo "$as_me: failed program was:" >&5
32789 sed 's/^/| /' conftest.$ac_ext >&5
32790
32791 cat >conftest.$ac_ext <<_ACEOF
32792 /* confdefs.h.  */
32793 _ACEOF
32794 cat confdefs.h >>conftest.$ac_ext
32795 cat >>conftest.$ac_ext <<_ACEOF
32796 /* end confdefs.h.  */
32797 $ac_includes_default
32798 int
32799 main ()
32800 {
32801 static struct stat ac_aggr;
32802 if (sizeof ac_aggr.st_blksize)
32803 return 0;
32804   ;
32805   return 0;
32806 }
32807 _ACEOF
32808 rm -f conftest.$ac_objext
32809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32810   (eval $ac_compile) 2>conftest.er1
32811   ac_status=$?
32812   grep -v '^ *+' conftest.er1 >conftest.err
32813   rm -f conftest.er1
32814   cat conftest.err >&5
32815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816   (exit $ac_status); } &&
32817          { ac_try='test -z "$ac_c_werror_flag"
32818                          || test ! -s conftest.err'
32819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32820   (eval $ac_try) 2>&5
32821   ac_status=$?
32822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823   (exit $ac_status); }; } &&
32824          { ac_try='test -s conftest.$ac_objext'
32825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32826   (eval $ac_try) 2>&5
32827   ac_status=$?
32828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32829   (exit $ac_status); }; }; then
32830   ac_cv_member_struct_stat_st_blksize=yes
32831 else
32832   echo "$as_me: failed program was:" >&5
32833 sed 's/^/| /' conftest.$ac_ext >&5
32834
32835 ac_cv_member_struct_stat_st_blksize=no
32836 fi
32837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32838 fi
32839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32840 fi
32841 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32842 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
32843 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32844
32845 cat >>confdefs.h <<_ACEOF
32846 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32847 _ACEOF
32848
32849
32850 fi
32851
32852 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32853 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
32854 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32855   echo $ECHO_N "(cached) $ECHO_C" >&6
32856 else
32857   cat >conftest.$ac_ext <<_ACEOF
32858 /* confdefs.h.  */
32859 _ACEOF
32860 cat confdefs.h >>conftest.$ac_ext
32861 cat >>conftest.$ac_ext <<_ACEOF
32862 /* end confdefs.h.  */
32863 $ac_includes_default
32864 #include <pwd.h>
32865
32866 int
32867 main ()
32868 {
32869 static struct passwd ac_aggr;
32870 if (ac_aggr.pw_gecos)
32871 return 0;
32872   ;
32873   return 0;
32874 }
32875 _ACEOF
32876 rm -f conftest.$ac_objext
32877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32878   (eval $ac_compile) 2>conftest.er1
32879   ac_status=$?
32880   grep -v '^ *+' conftest.er1 >conftest.err
32881   rm -f conftest.er1
32882   cat conftest.err >&5
32883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884   (exit $ac_status); } &&
32885          { ac_try='test -z "$ac_c_werror_flag"
32886                          || test ! -s conftest.err'
32887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32888   (eval $ac_try) 2>&5
32889   ac_status=$?
32890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891   (exit $ac_status); }; } &&
32892          { ac_try='test -s conftest.$ac_objext'
32893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32894   (eval $ac_try) 2>&5
32895   ac_status=$?
32896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32897   (exit $ac_status); }; }; then
32898   ac_cv_member_struct_passwd_pw_gecos=yes
32899 else
32900   echo "$as_me: failed program was:" >&5
32901 sed 's/^/| /' conftest.$ac_ext >&5
32902
32903 cat >conftest.$ac_ext <<_ACEOF
32904 /* confdefs.h.  */
32905 _ACEOF
32906 cat confdefs.h >>conftest.$ac_ext
32907 cat >>conftest.$ac_ext <<_ACEOF
32908 /* end confdefs.h.  */
32909 $ac_includes_default
32910 #include <pwd.h>
32911
32912 int
32913 main ()
32914 {
32915 static struct passwd ac_aggr;
32916 if (sizeof ac_aggr.pw_gecos)
32917 return 0;
32918   ;
32919   return 0;
32920 }
32921 _ACEOF
32922 rm -f conftest.$ac_objext
32923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32924   (eval $ac_compile) 2>conftest.er1
32925   ac_status=$?
32926   grep -v '^ *+' conftest.er1 >conftest.err
32927   rm -f conftest.er1
32928   cat conftest.err >&5
32929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930   (exit $ac_status); } &&
32931          { ac_try='test -z "$ac_c_werror_flag"
32932                          || test ! -s conftest.err'
32933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32934   (eval $ac_try) 2>&5
32935   ac_status=$?
32936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32937   (exit $ac_status); }; } &&
32938          { ac_try='test -s conftest.$ac_objext'
32939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32940   (eval $ac_try) 2>&5
32941   ac_status=$?
32942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943   (exit $ac_status); }; }; then
32944   ac_cv_member_struct_passwd_pw_gecos=yes
32945 else
32946   echo "$as_me: failed program was:" >&5
32947 sed 's/^/| /' conftest.$ac_ext >&5
32948
32949 ac_cv_member_struct_passwd_pw_gecos=no
32950 fi
32951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32952 fi
32953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32954 fi
32955 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32956 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
32957 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32958
32959 cat >>confdefs.h <<_ACEOF
32960 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32961 _ACEOF
32962
32963
32964 fi
32965
32966 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32967 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
32968 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32969   echo $ECHO_N "(cached) $ECHO_C" >&6
32970 else
32971   cat >conftest.$ac_ext <<_ACEOF
32972 /* confdefs.h.  */
32973 _ACEOF
32974 cat confdefs.h >>conftest.$ac_ext
32975 cat >>conftest.$ac_ext <<_ACEOF
32976 /* end confdefs.h.  */
32977 $ac_includes_default
32978 #include <pwd.h>
32979
32980 int
32981 main ()
32982 {
32983 static struct passwd ac_aggr;
32984 if (ac_aggr.pw_passwd)
32985 return 0;
32986   ;
32987   return 0;
32988 }
32989 _ACEOF
32990 rm -f conftest.$ac_objext
32991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32992   (eval $ac_compile) 2>conftest.er1
32993   ac_status=$?
32994   grep -v '^ *+' conftest.er1 >conftest.err
32995   rm -f conftest.er1
32996   cat conftest.err >&5
32997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32998   (exit $ac_status); } &&
32999          { ac_try='test -z "$ac_c_werror_flag"
33000                          || test ! -s conftest.err'
33001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33002   (eval $ac_try) 2>&5
33003   ac_status=$?
33004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33005   (exit $ac_status); }; } &&
33006          { ac_try='test -s conftest.$ac_objext'
33007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33008   (eval $ac_try) 2>&5
33009   ac_status=$?
33010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011   (exit $ac_status); }; }; then
33012   ac_cv_member_struct_passwd_pw_passwd=yes
33013 else
33014   echo "$as_me: failed program was:" >&5
33015 sed 's/^/| /' conftest.$ac_ext >&5
33016
33017 cat >conftest.$ac_ext <<_ACEOF
33018 /* confdefs.h.  */
33019 _ACEOF
33020 cat confdefs.h >>conftest.$ac_ext
33021 cat >>conftest.$ac_ext <<_ACEOF
33022 /* end confdefs.h.  */
33023 $ac_includes_default
33024 #include <pwd.h>
33025
33026 int
33027 main ()
33028 {
33029 static struct passwd ac_aggr;
33030 if (sizeof ac_aggr.pw_passwd)
33031 return 0;
33032   ;
33033   return 0;
33034 }
33035 _ACEOF
33036 rm -f conftest.$ac_objext
33037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33038   (eval $ac_compile) 2>conftest.er1
33039   ac_status=$?
33040   grep -v '^ *+' conftest.er1 >conftest.err
33041   rm -f conftest.er1
33042   cat conftest.err >&5
33043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044   (exit $ac_status); } &&
33045          { ac_try='test -z "$ac_c_werror_flag"
33046                          || test ! -s conftest.err'
33047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33048   (eval $ac_try) 2>&5
33049   ac_status=$?
33050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051   (exit $ac_status); }; } &&
33052          { ac_try='test -s conftest.$ac_objext'
33053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33054   (eval $ac_try) 2>&5
33055   ac_status=$?
33056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057   (exit $ac_status); }; }; then
33058   ac_cv_member_struct_passwd_pw_passwd=yes
33059 else
33060   echo "$as_me: failed program was:" >&5
33061 sed 's/^/| /' conftest.$ac_ext >&5
33062
33063 ac_cv_member_struct_passwd_pw_passwd=no
33064 fi
33065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33066 fi
33067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33068 fi
33069 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
33070 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
33071 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
33072
33073 cat >>confdefs.h <<_ACEOF
33074 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
33075 _ACEOF
33076
33077
33078 fi
33079
33080
33081 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
33082 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
33083 if test "${ol_cv_c_upper_lower+set}" = set; then
33084   echo $ECHO_N "(cached) $ECHO_C" >&6
33085 else
33086
33087         if test "$cross_compiling" = yes; then
33088   ol_cv_c_upper_lower=safe
33089 else
33090   cat >conftest.$ac_ext <<_ACEOF
33091 /* confdefs.h.  */
33092 _ACEOF
33093 cat confdefs.h >>conftest.$ac_ext
33094 cat >>conftest.$ac_ext <<_ACEOF
33095 /* end confdefs.h.  */
33096
33097 #include <ctype.h>
33098 main()
33099 {
33100         if ('C' == toupper('C'))
33101                 exit(0);
33102         else
33103                 exit(1);
33104 }
33105 _ACEOF
33106 rm -f conftest$ac_exeext
33107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33108   (eval $ac_link) 2>&5
33109   ac_status=$?
33110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33113   (eval $ac_try) 2>&5
33114   ac_status=$?
33115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116   (exit $ac_status); }; }; then
33117   ol_cv_c_upper_lower=no
33118 else
33119   echo "$as_me: program exited with status $ac_status" >&5
33120 echo "$as_me: failed program was:" >&5
33121 sed 's/^/| /' conftest.$ac_ext >&5
33122
33123 ( exit $ac_status )
33124 ol_cv_c_upper_lower=yes
33125 fi
33126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33127 fi
33128 fi
33129 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33130 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
33131 if test $ol_cv_c_upper_lower != no ; then
33132
33133 cat >>confdefs.h <<\_ACEOF
33134 #define C_UPPER_LOWER 1
33135 _ACEOF
33136
33137 fi
33138
33139 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33140 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
33141 if test "${ac_cv_c_const+set}" = set; then
33142   echo $ECHO_N "(cached) $ECHO_C" >&6
33143 else
33144   cat >conftest.$ac_ext <<_ACEOF
33145 /* confdefs.h.  */
33146 _ACEOF
33147 cat confdefs.h >>conftest.$ac_ext
33148 cat >>conftest.$ac_ext <<_ACEOF
33149 /* end confdefs.h.  */
33150
33151 int
33152 main ()
33153 {
33154 /* FIXME: Include the comments suggested by Paul. */
33155 #ifndef __cplusplus
33156   /* Ultrix mips cc rejects this.  */
33157   typedef int charset[2];
33158   const charset x;
33159   /* SunOS 4.1.1 cc rejects this.  */
33160   char const *const *ccp;
33161   char **p;
33162   /* NEC SVR4.0.2 mips cc rejects this.  */
33163   struct point {int x, y;};
33164   static struct point const zero = {0,0};
33165   /* AIX XL C 1.02.0.0 rejects this.
33166      It does not let you subtract one const X* pointer from another in
33167      an arm of an if-expression whose if-part is not a constant
33168      expression */
33169   const char *g = "string";
33170   ccp = &g + (g ? g-g : 0);
33171   /* HPUX 7.0 cc rejects these. */
33172   ++ccp;
33173   p = (char**) ccp;
33174   ccp = (char const *const *) p;
33175   { /* SCO 3.2v4 cc rejects this.  */
33176     char *t;
33177     char const *s = 0 ? (char *) 0 : (char const *) 0;
33178
33179     *t++ = 0;
33180   }
33181   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33182     int x[] = {25, 17};
33183     const int *foo = &x[0];
33184     ++foo;
33185   }
33186   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33187     typedef const int *iptr;
33188     iptr p = 0;
33189     ++p;
33190   }
33191   { /* AIX XL C 1.02.0.0 rejects this saying
33192        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33193     struct s { int j; const int *ap[3]; };
33194     struct s *b; b->j = 5;
33195   }
33196   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33197     const int foo = 10;
33198   }
33199 #endif
33200
33201   ;
33202   return 0;
33203 }
33204 _ACEOF
33205 rm -f conftest.$ac_objext
33206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33207   (eval $ac_compile) 2>conftest.er1
33208   ac_status=$?
33209   grep -v '^ *+' conftest.er1 >conftest.err
33210   rm -f conftest.er1
33211   cat conftest.err >&5
33212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213   (exit $ac_status); } &&
33214          { ac_try='test -z "$ac_c_werror_flag"
33215                          || test ! -s conftest.err'
33216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33217   (eval $ac_try) 2>&5
33218   ac_status=$?
33219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33220   (exit $ac_status); }; } &&
33221          { ac_try='test -s conftest.$ac_objext'
33222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33223   (eval $ac_try) 2>&5
33224   ac_status=$?
33225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226   (exit $ac_status); }; }; then
33227   ac_cv_c_const=yes
33228 else
33229   echo "$as_me: failed program was:" >&5
33230 sed 's/^/| /' conftest.$ac_ext >&5
33231
33232 ac_cv_c_const=no
33233 fi
33234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33235 fi
33236 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33237 echo "${ECHO_T}$ac_cv_c_const" >&6
33238 if test $ac_cv_c_const = no; then
33239
33240 cat >>confdefs.h <<\_ACEOF
33241 #define const
33242 _ACEOF
33243
33244 fi
33245
33246 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33247 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
33248 if test "${ol_cv_c_volatile+set}" = set; then
33249   echo $ECHO_N "(cached) $ECHO_C" >&6
33250 else
33251   cat >conftest.$ac_ext <<_ACEOF
33252 /* confdefs.h.  */
33253 _ACEOF
33254 cat confdefs.h >>conftest.$ac_ext
33255 cat >>conftest.$ac_ext <<_ACEOF
33256 /* end confdefs.h.  */
33257 int x, y, z;
33258 int
33259 main ()
33260 {
33261 volatile int a; int * volatile b = x ? &y : &z;
33262       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33263       *b = 0;
33264   ;
33265   return 0;
33266 }
33267 _ACEOF
33268 rm -f conftest.$ac_objext
33269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33270   (eval $ac_compile) 2>conftest.er1
33271   ac_status=$?
33272   grep -v '^ *+' conftest.er1 >conftest.err
33273   rm -f conftest.er1
33274   cat conftest.err >&5
33275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33276   (exit $ac_status); } &&
33277          { ac_try='test -z "$ac_c_werror_flag"
33278                          || test ! -s conftest.err'
33279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33280   (eval $ac_try) 2>&5
33281   ac_status=$?
33282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283   (exit $ac_status); }; } &&
33284          { ac_try='test -s conftest.$ac_objext'
33285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33286   (eval $ac_try) 2>&5
33287   ac_status=$?
33288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289   (exit $ac_status); }; }; then
33290   ol_cv_c_volatile=yes
33291 else
33292   echo "$as_me: failed program was:" >&5
33293 sed 's/^/| /' conftest.$ac_ext >&5
33294
33295 ol_cv_c_volatile=no
33296 fi
33297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33298 fi
33299 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33300 echo "${ECHO_T}$ol_cv_c_volatile" >&6
33301   if test $ol_cv_c_volatile = yes; then
33302     :
33303   else
33304
33305 cat >>confdefs.h <<\_ACEOF
33306 #define volatile
33307 _ACEOF
33308
33309   fi
33310
33311
33312 if test $cross_compiling = yes ; then
33313         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33314 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33315
33316 cat >>confdefs.h <<\_ACEOF
33317 #define CROSS_COMPILING 1
33318 _ACEOF
33319
33320 else
33321         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33322 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
33323 if test "${ac_cv_c_bigendian+set}" = set; then
33324   echo $ECHO_N "(cached) $ECHO_C" >&6
33325 else
33326   # See if sys/param.h defines the BYTE_ORDER macro.
33327 cat >conftest.$ac_ext <<_ACEOF
33328 /* confdefs.h.  */
33329 _ACEOF
33330 cat confdefs.h >>conftest.$ac_ext
33331 cat >>conftest.$ac_ext <<_ACEOF
33332 /* end confdefs.h.  */
33333 #include <sys/types.h>
33334 #include <sys/param.h>
33335
33336 int
33337 main ()
33338 {
33339 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
33340  bogus endian macros
33341 #endif
33342
33343   ;
33344   return 0;
33345 }
33346 _ACEOF
33347 rm -f conftest.$ac_objext
33348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33349   (eval $ac_compile) 2>conftest.er1
33350   ac_status=$?
33351   grep -v '^ *+' conftest.er1 >conftest.err
33352   rm -f conftest.er1
33353   cat conftest.err >&5
33354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355   (exit $ac_status); } &&
33356          { ac_try='test -z "$ac_c_werror_flag"
33357                          || test ! -s conftest.err'
33358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33359   (eval $ac_try) 2>&5
33360   ac_status=$?
33361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362   (exit $ac_status); }; } &&
33363          { ac_try='test -s conftest.$ac_objext'
33364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33365   (eval $ac_try) 2>&5
33366   ac_status=$?
33367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368   (exit $ac_status); }; }; then
33369   # It does; now see whether it defined to BIG_ENDIAN or not.
33370 cat >conftest.$ac_ext <<_ACEOF
33371 /* confdefs.h.  */
33372 _ACEOF
33373 cat confdefs.h >>conftest.$ac_ext
33374 cat >>conftest.$ac_ext <<_ACEOF
33375 /* end confdefs.h.  */
33376 #include <sys/types.h>
33377 #include <sys/param.h>
33378
33379 int
33380 main ()
33381 {
33382 #if BYTE_ORDER != BIG_ENDIAN
33383  not big endian
33384 #endif
33385
33386   ;
33387   return 0;
33388 }
33389 _ACEOF
33390 rm -f conftest.$ac_objext
33391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33392   (eval $ac_compile) 2>conftest.er1
33393   ac_status=$?
33394   grep -v '^ *+' conftest.er1 >conftest.err
33395   rm -f conftest.er1
33396   cat conftest.err >&5
33397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33398   (exit $ac_status); } &&
33399          { ac_try='test -z "$ac_c_werror_flag"
33400                          || test ! -s conftest.err'
33401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33402   (eval $ac_try) 2>&5
33403   ac_status=$?
33404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405   (exit $ac_status); }; } &&
33406          { ac_try='test -s conftest.$ac_objext'
33407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33408   (eval $ac_try) 2>&5
33409   ac_status=$?
33410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411   (exit $ac_status); }; }; then
33412   ac_cv_c_bigendian=yes
33413 else
33414   echo "$as_me: failed program was:" >&5
33415 sed 's/^/| /' conftest.$ac_ext >&5
33416
33417 ac_cv_c_bigendian=no
33418 fi
33419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33420 else
33421   echo "$as_me: failed program was:" >&5
33422 sed 's/^/| /' conftest.$ac_ext >&5
33423
33424 # It does not; compile a test program.
33425 if test "$cross_compiling" = yes; then
33426   # try to guess the endianness by grepping values into an object file
33427   ac_cv_c_bigendian=unknown
33428   cat >conftest.$ac_ext <<_ACEOF
33429 /* confdefs.h.  */
33430 _ACEOF
33431 cat confdefs.h >>conftest.$ac_ext
33432 cat >>conftest.$ac_ext <<_ACEOF
33433 /* end confdefs.h.  */
33434 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33435 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33436 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33437 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33438 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33439 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33440 int
33441 main ()
33442 {
33443  _ascii (); _ebcdic ();
33444   ;
33445   return 0;
33446 }
33447 _ACEOF
33448 rm -f conftest.$ac_objext
33449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33450   (eval $ac_compile) 2>conftest.er1
33451   ac_status=$?
33452   grep -v '^ *+' conftest.er1 >conftest.err
33453   rm -f conftest.er1
33454   cat conftest.err >&5
33455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456   (exit $ac_status); } &&
33457          { ac_try='test -z "$ac_c_werror_flag"
33458                          || test ! -s conftest.err'
33459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33460   (eval $ac_try) 2>&5
33461   ac_status=$?
33462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463   (exit $ac_status); }; } &&
33464          { ac_try='test -s conftest.$ac_objext'
33465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33466   (eval $ac_try) 2>&5
33467   ac_status=$?
33468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469   (exit $ac_status); }; }; then
33470   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33471   ac_cv_c_bigendian=yes
33472 fi
33473 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33474   if test "$ac_cv_c_bigendian" = unknown; then
33475     ac_cv_c_bigendian=no
33476   else
33477     # finding both strings is unlikely to happen, but who knows?
33478     ac_cv_c_bigendian=unknown
33479   fi
33480 fi
33481 else
33482   echo "$as_me: failed program was:" >&5
33483 sed 's/^/| /' conftest.$ac_ext >&5
33484
33485 fi
33486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33487 else
33488   cat >conftest.$ac_ext <<_ACEOF
33489 /* confdefs.h.  */
33490 _ACEOF
33491 cat confdefs.h >>conftest.$ac_ext
33492 cat >>conftest.$ac_ext <<_ACEOF
33493 /* end confdefs.h.  */
33494 int
33495 main ()
33496 {
33497   /* Are we little or big endian?  From Harbison&Steele.  */
33498   union
33499   {
33500     long l;
33501     char c[sizeof (long)];
33502   } u;
33503   u.l = 1;
33504   exit (u.c[sizeof (long) - 1] == 1);
33505 }
33506 _ACEOF
33507 rm -f conftest$ac_exeext
33508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33509   (eval $ac_link) 2>&5
33510   ac_status=$?
33511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33514   (eval $ac_try) 2>&5
33515   ac_status=$?
33516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33517   (exit $ac_status); }; }; then
33518   ac_cv_c_bigendian=no
33519 else
33520   echo "$as_me: program exited with status $ac_status" >&5
33521 echo "$as_me: failed program was:" >&5
33522 sed 's/^/| /' conftest.$ac_ext >&5
33523
33524 ( exit $ac_status )
33525 ac_cv_c_bigendian=yes
33526 fi
33527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33528 fi
33529 fi
33530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33531 fi
33532 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33533 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
33534 case $ac_cv_c_bigendian in
33535   yes)
33536
33537 cat >>confdefs.h <<\_ACEOF
33538 #define WORDS_BIGENDIAN 1
33539 _ACEOF
33540  ;;
33541   no)
33542      ;;
33543   *)
33544     { { echo "$as_me:$LINENO: error: unknown endianness
33545 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33546 echo "$as_me: error: unknown endianness
33547 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33548    { (exit 1); exit 1; }; } ;;
33549 esac
33550
33551 fi
33552
33553 echo "$as_me:$LINENO: checking for short" >&5
33554 echo $ECHO_N "checking for short... $ECHO_C" >&6
33555 if test "${ac_cv_type_short+set}" = set; then
33556   echo $ECHO_N "(cached) $ECHO_C" >&6
33557 else
33558   cat >conftest.$ac_ext <<_ACEOF
33559 /* confdefs.h.  */
33560 _ACEOF
33561 cat confdefs.h >>conftest.$ac_ext
33562 cat >>conftest.$ac_ext <<_ACEOF
33563 /* end confdefs.h.  */
33564 $ac_includes_default
33565 int
33566 main ()
33567 {
33568 if ((short *) 0)
33569   return 0;
33570 if (sizeof (short))
33571   return 0;
33572   ;
33573   return 0;
33574 }
33575 _ACEOF
33576 rm -f conftest.$ac_objext
33577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33578   (eval $ac_compile) 2>conftest.er1
33579   ac_status=$?
33580   grep -v '^ *+' conftest.er1 >conftest.err
33581   rm -f conftest.er1
33582   cat conftest.err >&5
33583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584   (exit $ac_status); } &&
33585          { ac_try='test -z "$ac_c_werror_flag"
33586                          || test ! -s conftest.err'
33587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33588   (eval $ac_try) 2>&5
33589   ac_status=$?
33590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591   (exit $ac_status); }; } &&
33592          { ac_try='test -s conftest.$ac_objext'
33593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33594   (eval $ac_try) 2>&5
33595   ac_status=$?
33596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597   (exit $ac_status); }; }; then
33598   ac_cv_type_short=yes
33599 else
33600   echo "$as_me: failed program was:" >&5
33601 sed 's/^/| /' conftest.$ac_ext >&5
33602
33603 ac_cv_type_short=no
33604 fi
33605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33606 fi
33607 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33608 echo "${ECHO_T}$ac_cv_type_short" >&6
33609
33610 echo "$as_me:$LINENO: checking size of short" >&5
33611 echo $ECHO_N "checking size of short... $ECHO_C" >&6
33612 if test "${ac_cv_sizeof_short+set}" = set; then
33613   echo $ECHO_N "(cached) $ECHO_C" >&6
33614 else
33615   if test "$ac_cv_type_short" = yes; then
33616   # The cast to unsigned long works around a bug in the HP C Compiler
33617   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33618   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33619   # This bug is HP SR number 8606223364.
33620   if test "$cross_compiling" = yes; then
33621   # Depending upon the size, compute the lo and hi bounds.
33622 cat >conftest.$ac_ext <<_ACEOF
33623 /* confdefs.h.  */
33624 _ACEOF
33625 cat confdefs.h >>conftest.$ac_ext
33626 cat >>conftest.$ac_ext <<_ACEOF
33627 /* end confdefs.h.  */
33628 $ac_includes_default
33629 int
33630 main ()
33631 {
33632 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
33633 test_array [0] = 0
33634
33635   ;
33636   return 0;
33637 }
33638 _ACEOF
33639 rm -f conftest.$ac_objext
33640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33641   (eval $ac_compile) 2>conftest.er1
33642   ac_status=$?
33643   grep -v '^ *+' conftest.er1 >conftest.err
33644   rm -f conftest.er1
33645   cat conftest.err >&5
33646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647   (exit $ac_status); } &&
33648          { ac_try='test -z "$ac_c_werror_flag"
33649                          || test ! -s conftest.err'
33650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33651   (eval $ac_try) 2>&5
33652   ac_status=$?
33653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654   (exit $ac_status); }; } &&
33655          { ac_try='test -s conftest.$ac_objext'
33656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657   (eval $ac_try) 2>&5
33658   ac_status=$?
33659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660   (exit $ac_status); }; }; then
33661   ac_lo=0 ac_mid=0
33662   while :; do
33663     cat >conftest.$ac_ext <<_ACEOF
33664 /* confdefs.h.  */
33665 _ACEOF
33666 cat confdefs.h >>conftest.$ac_ext
33667 cat >>conftest.$ac_ext <<_ACEOF
33668 /* end confdefs.h.  */
33669 $ac_includes_default
33670 int
33671 main ()
33672 {
33673 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33674 test_array [0] = 0
33675
33676   ;
33677   return 0;
33678 }
33679 _ACEOF
33680 rm -f conftest.$ac_objext
33681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33682   (eval $ac_compile) 2>conftest.er1
33683   ac_status=$?
33684   grep -v '^ *+' conftest.er1 >conftest.err
33685   rm -f conftest.er1
33686   cat conftest.err >&5
33687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33688   (exit $ac_status); } &&
33689          { ac_try='test -z "$ac_c_werror_flag"
33690                          || test ! -s conftest.err'
33691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33692   (eval $ac_try) 2>&5
33693   ac_status=$?
33694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695   (exit $ac_status); }; } &&
33696          { ac_try='test -s conftest.$ac_objext'
33697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33698   (eval $ac_try) 2>&5
33699   ac_status=$?
33700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701   (exit $ac_status); }; }; then
33702   ac_hi=$ac_mid; break
33703 else
33704   echo "$as_me: failed program was:" >&5
33705 sed 's/^/| /' conftest.$ac_ext >&5
33706
33707 ac_lo=`expr $ac_mid + 1`
33708                     if test $ac_lo -le $ac_mid; then
33709                       ac_lo= ac_hi=
33710                       break
33711                     fi
33712                     ac_mid=`expr 2 '*' $ac_mid + 1`
33713 fi
33714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33715   done
33716 else
33717   echo "$as_me: failed program was:" >&5
33718 sed 's/^/| /' conftest.$ac_ext >&5
33719
33720 cat >conftest.$ac_ext <<_ACEOF
33721 /* confdefs.h.  */
33722 _ACEOF
33723 cat confdefs.h >>conftest.$ac_ext
33724 cat >>conftest.$ac_ext <<_ACEOF
33725 /* end confdefs.h.  */
33726 $ac_includes_default
33727 int
33728 main ()
33729 {
33730 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
33731 test_array [0] = 0
33732
33733   ;
33734   return 0;
33735 }
33736 _ACEOF
33737 rm -f conftest.$ac_objext
33738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33739   (eval $ac_compile) 2>conftest.er1
33740   ac_status=$?
33741   grep -v '^ *+' conftest.er1 >conftest.err
33742   rm -f conftest.er1
33743   cat conftest.err >&5
33744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745   (exit $ac_status); } &&
33746          { ac_try='test -z "$ac_c_werror_flag"
33747                          || test ! -s conftest.err'
33748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33749   (eval $ac_try) 2>&5
33750   ac_status=$?
33751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752   (exit $ac_status); }; } &&
33753          { ac_try='test -s conftest.$ac_objext'
33754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33755   (eval $ac_try) 2>&5
33756   ac_status=$?
33757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758   (exit $ac_status); }; }; then
33759   ac_hi=-1 ac_mid=-1
33760   while :; do
33761     cat >conftest.$ac_ext <<_ACEOF
33762 /* confdefs.h.  */
33763 _ACEOF
33764 cat confdefs.h >>conftest.$ac_ext
33765 cat >>conftest.$ac_ext <<_ACEOF
33766 /* end confdefs.h.  */
33767 $ac_includes_default
33768 int
33769 main ()
33770 {
33771 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
33772 test_array [0] = 0
33773
33774   ;
33775   return 0;
33776 }
33777 _ACEOF
33778 rm -f conftest.$ac_objext
33779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33780   (eval $ac_compile) 2>conftest.er1
33781   ac_status=$?
33782   grep -v '^ *+' conftest.er1 >conftest.err
33783   rm -f conftest.er1
33784   cat conftest.err >&5
33785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786   (exit $ac_status); } &&
33787          { ac_try='test -z "$ac_c_werror_flag"
33788                          || test ! -s conftest.err'
33789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33790   (eval $ac_try) 2>&5
33791   ac_status=$?
33792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33793   (exit $ac_status); }; } &&
33794          { ac_try='test -s conftest.$ac_objext'
33795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33796   (eval $ac_try) 2>&5
33797   ac_status=$?
33798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799   (exit $ac_status); }; }; then
33800   ac_lo=$ac_mid; break
33801 else
33802   echo "$as_me: failed program was:" >&5
33803 sed 's/^/| /' conftest.$ac_ext >&5
33804
33805 ac_hi=`expr '(' $ac_mid ')' - 1`
33806                        if test $ac_mid -le $ac_hi; then
33807                          ac_lo= ac_hi=
33808                          break
33809                        fi
33810                        ac_mid=`expr 2 '*' $ac_mid`
33811 fi
33812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33813   done
33814 else
33815   echo "$as_me: failed program was:" >&5
33816 sed 's/^/| /' conftest.$ac_ext >&5
33817
33818 ac_lo= ac_hi=
33819 fi
33820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33821 fi
33822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33823 # Binary search between lo and hi bounds.
33824 while test "x$ac_lo" != "x$ac_hi"; do
33825   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33826   cat >conftest.$ac_ext <<_ACEOF
33827 /* confdefs.h.  */
33828 _ACEOF
33829 cat confdefs.h >>conftest.$ac_ext
33830 cat >>conftest.$ac_ext <<_ACEOF
33831 /* end confdefs.h.  */
33832 $ac_includes_default
33833 int
33834 main ()
33835 {
33836 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33837 test_array [0] = 0
33838
33839   ;
33840   return 0;
33841 }
33842 _ACEOF
33843 rm -f conftest.$ac_objext
33844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33845   (eval $ac_compile) 2>conftest.er1
33846   ac_status=$?
33847   grep -v '^ *+' conftest.er1 >conftest.err
33848   rm -f conftest.er1
33849   cat conftest.err >&5
33850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33851   (exit $ac_status); } &&
33852          { ac_try='test -z "$ac_c_werror_flag"
33853                          || test ! -s conftest.err'
33854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33855   (eval $ac_try) 2>&5
33856   ac_status=$?
33857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33858   (exit $ac_status); }; } &&
33859          { ac_try='test -s conftest.$ac_objext'
33860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33861   (eval $ac_try) 2>&5
33862   ac_status=$?
33863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864   (exit $ac_status); }; }; then
33865   ac_hi=$ac_mid
33866 else
33867   echo "$as_me: failed program was:" >&5
33868 sed 's/^/| /' conftest.$ac_ext >&5
33869
33870 ac_lo=`expr '(' $ac_mid ')' + 1`
33871 fi
33872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33873 done
33874 case $ac_lo in
33875 ?*) ac_cv_sizeof_short=$ac_lo;;
33876 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
33877 See \`config.log' for more details." >&5
33878 echo "$as_me: error: cannot compute sizeof (short), 77
33879 See \`config.log' for more details." >&2;}
33880    { (exit 1); exit 1; }; } ;;
33881 esac
33882 else
33883   if test "$cross_compiling" = yes; then
33884   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33885 See \`config.log' for more details." >&5
33886 echo "$as_me: error: cannot run test program while cross compiling
33887 See \`config.log' for more details." >&2;}
33888    { (exit 1); exit 1; }; }
33889 else
33890   cat >conftest.$ac_ext <<_ACEOF
33891 /* confdefs.h.  */
33892 _ACEOF
33893 cat confdefs.h >>conftest.$ac_ext
33894 cat >>conftest.$ac_ext <<_ACEOF
33895 /* end confdefs.h.  */
33896 $ac_includes_default
33897 long longval () { return (long) (sizeof (short)); }
33898 unsigned long ulongval () { return (long) (sizeof (short)); }
33899 #include <stdio.h>
33900 #include <stdlib.h>
33901 int
33902 main ()
33903 {
33904
33905   FILE *f = fopen ("conftest.val", "w");
33906   if (! f)
33907     exit (1);
33908   if (((long) (sizeof (short))) < 0)
33909     {
33910       long i = longval ();
33911       if (i != ((long) (sizeof (short))))
33912         exit (1);
33913       fprintf (f, "%ld\n", i);
33914     }
33915   else
33916     {
33917       unsigned long i = ulongval ();
33918       if (i != ((long) (sizeof (short))))
33919         exit (1);
33920       fprintf (f, "%lu\n", i);
33921     }
33922   exit (ferror (f) || fclose (f) != 0);
33923
33924   ;
33925   return 0;
33926 }
33927 _ACEOF
33928 rm -f conftest$ac_exeext
33929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33930   (eval $ac_link) 2>&5
33931   ac_status=$?
33932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33935   (eval $ac_try) 2>&5
33936   ac_status=$?
33937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33938   (exit $ac_status); }; }; then
33939   ac_cv_sizeof_short=`cat conftest.val`
33940 else
33941   echo "$as_me: program exited with status $ac_status" >&5
33942 echo "$as_me: failed program was:" >&5
33943 sed 's/^/| /' conftest.$ac_ext >&5
33944
33945 ( exit $ac_status )
33946 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
33947 See \`config.log' for more details." >&5
33948 echo "$as_me: error: cannot compute sizeof (short), 77
33949 See \`config.log' for more details." >&2;}
33950    { (exit 1); exit 1; }; }
33951 fi
33952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33953 fi
33954 fi
33955 rm -f conftest.val
33956 else
33957   ac_cv_sizeof_short=0
33958 fi
33959 fi
33960 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33961 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
33962 cat >>confdefs.h <<_ACEOF
33963 #define SIZEOF_SHORT $ac_cv_sizeof_short
33964 _ACEOF
33965
33966
33967 echo "$as_me:$LINENO: checking for int" >&5
33968 echo $ECHO_N "checking for int... $ECHO_C" >&6
33969 if test "${ac_cv_type_int+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 ((int *) 0)
33983   return 0;
33984 if (sizeof (int))
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_int=yes
34013 else
34014   echo "$as_me: failed program was:" >&5
34015 sed 's/^/| /' conftest.$ac_ext >&5
34016
34017 ac_cv_type_int=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_int" >&5
34022 echo "${ECHO_T}$ac_cv_type_int" >&6
34023
34024 echo "$as_me:$LINENO: checking size of int" >&5
34025 echo $ECHO_N "checking size of int... $ECHO_C" >&6
34026 if test "${ac_cv_sizeof_int+set}" = set; then
34027   echo $ECHO_N "(cached) $ECHO_C" >&6
34028 else
34029   if test "$ac_cv_type_int" = yes; then
34030   # The cast to unsigned long works around a bug in the HP C Compiler
34031   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34032   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34033   # This bug is HP SR number 8606223364.
34034   if test "$cross_compiling" = yes; then
34035   # Depending upon the size, compute the lo and hi bounds.
34036 cat >conftest.$ac_ext <<_ACEOF
34037 /* confdefs.h.  */
34038 _ACEOF
34039 cat confdefs.h >>conftest.$ac_ext
34040 cat >>conftest.$ac_ext <<_ACEOF
34041 /* end confdefs.h.  */
34042 $ac_includes_default
34043 int
34044 main ()
34045 {
34046 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
34047 test_array [0] = 0
34048
34049   ;
34050   return 0;
34051 }
34052 _ACEOF
34053 rm -f conftest.$ac_objext
34054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34055   (eval $ac_compile) 2>conftest.er1
34056   ac_status=$?
34057   grep -v '^ *+' conftest.er1 >conftest.err
34058   rm -f conftest.er1
34059   cat conftest.err >&5
34060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061   (exit $ac_status); } &&
34062          { ac_try='test -z "$ac_c_werror_flag"
34063                          || test ! -s conftest.err'
34064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34065   (eval $ac_try) 2>&5
34066   ac_status=$?
34067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068   (exit $ac_status); }; } &&
34069          { ac_try='test -s conftest.$ac_objext'
34070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34071   (eval $ac_try) 2>&5
34072   ac_status=$?
34073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34074   (exit $ac_status); }; }; then
34075   ac_lo=0 ac_mid=0
34076   while :; do
34077     cat >conftest.$ac_ext <<_ACEOF
34078 /* confdefs.h.  */
34079 _ACEOF
34080 cat confdefs.h >>conftest.$ac_ext
34081 cat >>conftest.$ac_ext <<_ACEOF
34082 /* end confdefs.h.  */
34083 $ac_includes_default
34084 int
34085 main ()
34086 {
34087 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
34088 test_array [0] = 0
34089
34090   ;
34091   return 0;
34092 }
34093 _ACEOF
34094 rm -f conftest.$ac_objext
34095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34096   (eval $ac_compile) 2>conftest.er1
34097   ac_status=$?
34098   grep -v '^ *+' conftest.er1 >conftest.err
34099   rm -f conftest.er1
34100   cat conftest.err >&5
34101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34102   (exit $ac_status); } &&
34103          { ac_try='test -z "$ac_c_werror_flag"
34104                          || test ! -s conftest.err'
34105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34106   (eval $ac_try) 2>&5
34107   ac_status=$?
34108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109   (exit $ac_status); }; } &&
34110          { ac_try='test -s conftest.$ac_objext'
34111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34112   (eval $ac_try) 2>&5
34113   ac_status=$?
34114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34115   (exit $ac_status); }; }; then
34116   ac_hi=$ac_mid; break
34117 else
34118   echo "$as_me: failed program was:" >&5
34119 sed 's/^/| /' conftest.$ac_ext >&5
34120
34121 ac_lo=`expr $ac_mid + 1`
34122                     if test $ac_lo -le $ac_mid; then
34123                       ac_lo= ac_hi=
34124                       break
34125                     fi
34126                     ac_mid=`expr 2 '*' $ac_mid + 1`
34127 fi
34128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34129   done
34130 else
34131   echo "$as_me: failed program was:" >&5
34132 sed 's/^/| /' conftest.$ac_ext >&5
34133
34134 cat >conftest.$ac_ext <<_ACEOF
34135 /* confdefs.h.  */
34136 _ACEOF
34137 cat confdefs.h >>conftest.$ac_ext
34138 cat >>conftest.$ac_ext <<_ACEOF
34139 /* end confdefs.h.  */
34140 $ac_includes_default
34141 int
34142 main ()
34143 {
34144 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
34145 test_array [0] = 0
34146
34147   ;
34148   return 0;
34149 }
34150 _ACEOF
34151 rm -f conftest.$ac_objext
34152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34153   (eval $ac_compile) 2>conftest.er1
34154   ac_status=$?
34155   grep -v '^ *+' conftest.er1 >conftest.err
34156   rm -f conftest.er1
34157   cat conftest.err >&5
34158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159   (exit $ac_status); } &&
34160          { ac_try='test -z "$ac_c_werror_flag"
34161                          || test ! -s conftest.err'
34162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34163   (eval $ac_try) 2>&5
34164   ac_status=$?
34165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34166   (exit $ac_status); }; } &&
34167          { ac_try='test -s conftest.$ac_objext'
34168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34169   (eval $ac_try) 2>&5
34170   ac_status=$?
34171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34172   (exit $ac_status); }; }; then
34173   ac_hi=-1 ac_mid=-1
34174   while :; do
34175     cat >conftest.$ac_ext <<_ACEOF
34176 /* confdefs.h.  */
34177 _ACEOF
34178 cat confdefs.h >>conftest.$ac_ext
34179 cat >>conftest.$ac_ext <<_ACEOF
34180 /* end confdefs.h.  */
34181 $ac_includes_default
34182 int
34183 main ()
34184 {
34185 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
34186 test_array [0] = 0
34187
34188   ;
34189   return 0;
34190 }
34191 _ACEOF
34192 rm -f conftest.$ac_objext
34193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34194   (eval $ac_compile) 2>conftest.er1
34195   ac_status=$?
34196   grep -v '^ *+' conftest.er1 >conftest.err
34197   rm -f conftest.er1
34198   cat conftest.err >&5
34199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34200   (exit $ac_status); } &&
34201          { ac_try='test -z "$ac_c_werror_flag"
34202                          || test ! -s conftest.err'
34203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34204   (eval $ac_try) 2>&5
34205   ac_status=$?
34206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207   (exit $ac_status); }; } &&
34208          { ac_try='test -s conftest.$ac_objext'
34209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34210   (eval $ac_try) 2>&5
34211   ac_status=$?
34212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34213   (exit $ac_status); }; }; then
34214   ac_lo=$ac_mid; break
34215 else
34216   echo "$as_me: failed program was:" >&5
34217 sed 's/^/| /' conftest.$ac_ext >&5
34218
34219 ac_hi=`expr '(' $ac_mid ')' - 1`
34220                        if test $ac_mid -le $ac_hi; then
34221                          ac_lo= ac_hi=
34222                          break
34223                        fi
34224                        ac_mid=`expr 2 '*' $ac_mid`
34225 fi
34226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34227   done
34228 else
34229   echo "$as_me: failed program was:" >&5
34230 sed 's/^/| /' conftest.$ac_ext >&5
34231
34232 ac_lo= ac_hi=
34233 fi
34234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34235 fi
34236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34237 # Binary search between lo and hi bounds.
34238 while test "x$ac_lo" != "x$ac_hi"; do
34239   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34240   cat >conftest.$ac_ext <<_ACEOF
34241 /* confdefs.h.  */
34242 _ACEOF
34243 cat confdefs.h >>conftest.$ac_ext
34244 cat >>conftest.$ac_ext <<_ACEOF
34245 /* end confdefs.h.  */
34246 $ac_includes_default
34247 int
34248 main ()
34249 {
34250 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
34251 test_array [0] = 0
34252
34253   ;
34254   return 0;
34255 }
34256 _ACEOF
34257 rm -f conftest.$ac_objext
34258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34259   (eval $ac_compile) 2>conftest.er1
34260   ac_status=$?
34261   grep -v '^ *+' conftest.er1 >conftest.err
34262   rm -f conftest.er1
34263   cat conftest.err >&5
34264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265   (exit $ac_status); } &&
34266          { ac_try='test -z "$ac_c_werror_flag"
34267                          || test ! -s conftest.err'
34268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34269   (eval $ac_try) 2>&5
34270   ac_status=$?
34271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272   (exit $ac_status); }; } &&
34273          { ac_try='test -s conftest.$ac_objext'
34274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34275   (eval $ac_try) 2>&5
34276   ac_status=$?
34277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278   (exit $ac_status); }; }; then
34279   ac_hi=$ac_mid
34280 else
34281   echo "$as_me: failed program was:" >&5
34282 sed 's/^/| /' conftest.$ac_ext >&5
34283
34284 ac_lo=`expr '(' $ac_mid ')' + 1`
34285 fi
34286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34287 done
34288 case $ac_lo in
34289 ?*) ac_cv_sizeof_int=$ac_lo;;
34290 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34291 See \`config.log' for more details." >&5
34292 echo "$as_me: error: cannot compute sizeof (int), 77
34293 See \`config.log' for more details." >&2;}
34294    { (exit 1); exit 1; }; } ;;
34295 esac
34296 else
34297   if test "$cross_compiling" = yes; then
34298   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34299 See \`config.log' for more details." >&5
34300 echo "$as_me: error: cannot run test program while cross compiling
34301 See \`config.log' for more details." >&2;}
34302    { (exit 1); exit 1; }; }
34303 else
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 long longval () { return (long) (sizeof (int)); }
34312 unsigned long ulongval () { return (long) (sizeof (int)); }
34313 #include <stdio.h>
34314 #include <stdlib.h>
34315 int
34316 main ()
34317 {
34318
34319   FILE *f = fopen ("conftest.val", "w");
34320   if (! f)
34321     exit (1);
34322   if (((long) (sizeof (int))) < 0)
34323     {
34324       long i = longval ();
34325       if (i != ((long) (sizeof (int))))
34326         exit (1);
34327       fprintf (f, "%ld\n", i);
34328     }
34329   else
34330     {
34331       unsigned long i = ulongval ();
34332       if (i != ((long) (sizeof (int))))
34333         exit (1);
34334       fprintf (f, "%lu\n", i);
34335     }
34336   exit (ferror (f) || fclose (f) != 0);
34337
34338   ;
34339   return 0;
34340 }
34341 _ACEOF
34342 rm -f conftest$ac_exeext
34343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34344   (eval $ac_link) 2>&5
34345   ac_status=$?
34346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34349   (eval $ac_try) 2>&5
34350   ac_status=$?
34351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34352   (exit $ac_status); }; }; then
34353   ac_cv_sizeof_int=`cat conftest.val`
34354 else
34355   echo "$as_me: program exited with status $ac_status" >&5
34356 echo "$as_me: failed program was:" >&5
34357 sed 's/^/| /' conftest.$ac_ext >&5
34358
34359 ( exit $ac_status )
34360 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34361 See \`config.log' for more details." >&5
34362 echo "$as_me: error: cannot compute sizeof (int), 77
34363 See \`config.log' for more details." >&2;}
34364    { (exit 1); exit 1; }; }
34365 fi
34366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34367 fi
34368 fi
34369 rm -f conftest.val
34370 else
34371   ac_cv_sizeof_int=0
34372 fi
34373 fi
34374 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34375 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
34376 cat >>confdefs.h <<_ACEOF
34377 #define SIZEOF_INT $ac_cv_sizeof_int
34378 _ACEOF
34379
34380
34381 echo "$as_me:$LINENO: checking for long" >&5
34382 echo $ECHO_N "checking for long... $ECHO_C" >&6
34383 if test "${ac_cv_type_long+set}" = set; then
34384   echo $ECHO_N "(cached) $ECHO_C" >&6
34385 else
34386   cat >conftest.$ac_ext <<_ACEOF
34387 /* confdefs.h.  */
34388 _ACEOF
34389 cat confdefs.h >>conftest.$ac_ext
34390 cat >>conftest.$ac_ext <<_ACEOF
34391 /* end confdefs.h.  */
34392 $ac_includes_default
34393 int
34394 main ()
34395 {
34396 if ((long *) 0)
34397   return 0;
34398 if (sizeof (long))
34399   return 0;
34400   ;
34401   return 0;
34402 }
34403 _ACEOF
34404 rm -f conftest.$ac_objext
34405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34406   (eval $ac_compile) 2>conftest.er1
34407   ac_status=$?
34408   grep -v '^ *+' conftest.er1 >conftest.err
34409   rm -f conftest.er1
34410   cat conftest.err >&5
34411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34412   (exit $ac_status); } &&
34413          { ac_try='test -z "$ac_c_werror_flag"
34414                          || test ! -s conftest.err'
34415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34416   (eval $ac_try) 2>&5
34417   ac_status=$?
34418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419   (exit $ac_status); }; } &&
34420          { ac_try='test -s conftest.$ac_objext'
34421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34422   (eval $ac_try) 2>&5
34423   ac_status=$?
34424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425   (exit $ac_status); }; }; then
34426   ac_cv_type_long=yes
34427 else
34428   echo "$as_me: failed program was:" >&5
34429 sed 's/^/| /' conftest.$ac_ext >&5
34430
34431 ac_cv_type_long=no
34432 fi
34433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34434 fi
34435 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34436 echo "${ECHO_T}$ac_cv_type_long" >&6
34437
34438 echo "$as_me:$LINENO: checking size of long" >&5
34439 echo $ECHO_N "checking size of long... $ECHO_C" >&6
34440 if test "${ac_cv_sizeof_long+set}" = set; then
34441   echo $ECHO_N "(cached) $ECHO_C" >&6
34442 else
34443   if test "$ac_cv_type_long" = yes; then
34444   # The cast to unsigned long works around a bug in the HP C Compiler
34445   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34446   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34447   # This bug is HP SR number 8606223364.
34448   if test "$cross_compiling" = yes; then
34449   # Depending upon the size, compute the lo and hi bounds.
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 int
34458 main ()
34459 {
34460 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
34461 test_array [0] = 0
34462
34463   ;
34464   return 0;
34465 }
34466 _ACEOF
34467 rm -f conftest.$ac_objext
34468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34469   (eval $ac_compile) 2>conftest.er1
34470   ac_status=$?
34471   grep -v '^ *+' conftest.er1 >conftest.err
34472   rm -f conftest.er1
34473   cat conftest.err >&5
34474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475   (exit $ac_status); } &&
34476          { ac_try='test -z "$ac_c_werror_flag"
34477                          || test ! -s conftest.err'
34478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34479   (eval $ac_try) 2>&5
34480   ac_status=$?
34481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482   (exit $ac_status); }; } &&
34483          { ac_try='test -s conftest.$ac_objext'
34484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34485   (eval $ac_try) 2>&5
34486   ac_status=$?
34487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34488   (exit $ac_status); }; }; then
34489   ac_lo=0 ac_mid=0
34490   while :; do
34491     cat >conftest.$ac_ext <<_ACEOF
34492 /* confdefs.h.  */
34493 _ACEOF
34494 cat confdefs.h >>conftest.$ac_ext
34495 cat >>conftest.$ac_ext <<_ACEOF
34496 /* end confdefs.h.  */
34497 $ac_includes_default
34498 int
34499 main ()
34500 {
34501 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34502 test_array [0] = 0
34503
34504   ;
34505   return 0;
34506 }
34507 _ACEOF
34508 rm -f conftest.$ac_objext
34509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34510   (eval $ac_compile) 2>conftest.er1
34511   ac_status=$?
34512   grep -v '^ *+' conftest.er1 >conftest.err
34513   rm -f conftest.er1
34514   cat conftest.err >&5
34515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34516   (exit $ac_status); } &&
34517          { ac_try='test -z "$ac_c_werror_flag"
34518                          || test ! -s conftest.err'
34519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34520   (eval $ac_try) 2>&5
34521   ac_status=$?
34522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523   (exit $ac_status); }; } &&
34524          { ac_try='test -s conftest.$ac_objext'
34525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34526   (eval $ac_try) 2>&5
34527   ac_status=$?
34528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34529   (exit $ac_status); }; }; then
34530   ac_hi=$ac_mid; break
34531 else
34532   echo "$as_me: failed program was:" >&5
34533 sed 's/^/| /' conftest.$ac_ext >&5
34534
34535 ac_lo=`expr $ac_mid + 1`
34536                     if test $ac_lo -le $ac_mid; then
34537                       ac_lo= ac_hi=
34538                       break
34539                     fi
34540                     ac_mid=`expr 2 '*' $ac_mid + 1`
34541 fi
34542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34543   done
34544 else
34545   echo "$as_me: failed program was:" >&5
34546 sed 's/^/| /' conftest.$ac_ext >&5
34547
34548 cat >conftest.$ac_ext <<_ACEOF
34549 /* confdefs.h.  */
34550 _ACEOF
34551 cat confdefs.h >>conftest.$ac_ext
34552 cat >>conftest.$ac_ext <<_ACEOF
34553 /* end confdefs.h.  */
34554 $ac_includes_default
34555 int
34556 main ()
34557 {
34558 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
34559 test_array [0] = 0
34560
34561   ;
34562   return 0;
34563 }
34564 _ACEOF
34565 rm -f conftest.$ac_objext
34566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34567   (eval $ac_compile) 2>conftest.er1
34568   ac_status=$?
34569   grep -v '^ *+' conftest.er1 >conftest.err
34570   rm -f conftest.er1
34571   cat conftest.err >&5
34572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34573   (exit $ac_status); } &&
34574          { ac_try='test -z "$ac_c_werror_flag"
34575                          || test ! -s conftest.err'
34576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34577   (eval $ac_try) 2>&5
34578   ac_status=$?
34579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580   (exit $ac_status); }; } &&
34581          { ac_try='test -s conftest.$ac_objext'
34582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34583   (eval $ac_try) 2>&5
34584   ac_status=$?
34585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34586   (exit $ac_status); }; }; then
34587   ac_hi=-1 ac_mid=-1
34588   while :; do
34589     cat >conftest.$ac_ext <<_ACEOF
34590 /* confdefs.h.  */
34591 _ACEOF
34592 cat confdefs.h >>conftest.$ac_ext
34593 cat >>conftest.$ac_ext <<_ACEOF
34594 /* end confdefs.h.  */
34595 $ac_includes_default
34596 int
34597 main ()
34598 {
34599 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
34600 test_array [0] = 0
34601
34602   ;
34603   return 0;
34604 }
34605 _ACEOF
34606 rm -f conftest.$ac_objext
34607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34608   (eval $ac_compile) 2>conftest.er1
34609   ac_status=$?
34610   grep -v '^ *+' conftest.er1 >conftest.err
34611   rm -f conftest.er1
34612   cat conftest.err >&5
34613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34614   (exit $ac_status); } &&
34615          { ac_try='test -z "$ac_c_werror_flag"
34616                          || test ! -s conftest.err'
34617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34618   (eval $ac_try) 2>&5
34619   ac_status=$?
34620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621   (exit $ac_status); }; } &&
34622          { ac_try='test -s conftest.$ac_objext'
34623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34624   (eval $ac_try) 2>&5
34625   ac_status=$?
34626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34627   (exit $ac_status); }; }; then
34628   ac_lo=$ac_mid; break
34629 else
34630   echo "$as_me: failed program was:" >&5
34631 sed 's/^/| /' conftest.$ac_ext >&5
34632
34633 ac_hi=`expr '(' $ac_mid ')' - 1`
34634                        if test $ac_mid -le $ac_hi; then
34635                          ac_lo= ac_hi=
34636                          break
34637                        fi
34638                        ac_mid=`expr 2 '*' $ac_mid`
34639 fi
34640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34641   done
34642 else
34643   echo "$as_me: failed program was:" >&5
34644 sed 's/^/| /' conftest.$ac_ext >&5
34645
34646 ac_lo= ac_hi=
34647 fi
34648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34649 fi
34650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34651 # Binary search between lo and hi bounds.
34652 while test "x$ac_lo" != "x$ac_hi"; do
34653   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34654   cat >conftest.$ac_ext <<_ACEOF
34655 /* confdefs.h.  */
34656 _ACEOF
34657 cat confdefs.h >>conftest.$ac_ext
34658 cat >>conftest.$ac_ext <<_ACEOF
34659 /* end confdefs.h.  */
34660 $ac_includes_default
34661 int
34662 main ()
34663 {
34664 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34665 test_array [0] = 0
34666
34667   ;
34668   return 0;
34669 }
34670 _ACEOF
34671 rm -f conftest.$ac_objext
34672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34673   (eval $ac_compile) 2>conftest.er1
34674   ac_status=$?
34675   grep -v '^ *+' conftest.er1 >conftest.err
34676   rm -f conftest.er1
34677   cat conftest.err >&5
34678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34679   (exit $ac_status); } &&
34680          { ac_try='test -z "$ac_c_werror_flag"
34681                          || test ! -s conftest.err'
34682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34683   (eval $ac_try) 2>&5
34684   ac_status=$?
34685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34686   (exit $ac_status); }; } &&
34687          { ac_try='test -s conftest.$ac_objext'
34688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34689   (eval $ac_try) 2>&5
34690   ac_status=$?
34691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692   (exit $ac_status); }; }; then
34693   ac_hi=$ac_mid
34694 else
34695   echo "$as_me: failed program was:" >&5
34696 sed 's/^/| /' conftest.$ac_ext >&5
34697
34698 ac_lo=`expr '(' $ac_mid ')' + 1`
34699 fi
34700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34701 done
34702 case $ac_lo in
34703 ?*) ac_cv_sizeof_long=$ac_lo;;
34704 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
34705 See \`config.log' for more details." >&5
34706 echo "$as_me: error: cannot compute sizeof (long), 77
34707 See \`config.log' for more details." >&2;}
34708    { (exit 1); exit 1; }; } ;;
34709 esac
34710 else
34711   if test "$cross_compiling" = yes; then
34712   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34713 See \`config.log' for more details." >&5
34714 echo "$as_me: error: cannot run test program while cross compiling
34715 See \`config.log' for more details." >&2;}
34716    { (exit 1); exit 1; }; }
34717 else
34718   cat >conftest.$ac_ext <<_ACEOF
34719 /* confdefs.h.  */
34720 _ACEOF
34721 cat confdefs.h >>conftest.$ac_ext
34722 cat >>conftest.$ac_ext <<_ACEOF
34723 /* end confdefs.h.  */
34724 $ac_includes_default
34725 long longval () { return (long) (sizeof (long)); }
34726 unsigned long ulongval () { return (long) (sizeof (long)); }
34727 #include <stdio.h>
34728 #include <stdlib.h>
34729 int
34730 main ()
34731 {
34732
34733   FILE *f = fopen ("conftest.val", "w");
34734   if (! f)
34735     exit (1);
34736   if (((long) (sizeof (long))) < 0)
34737     {
34738       long i = longval ();
34739       if (i != ((long) (sizeof (long))))
34740         exit (1);
34741       fprintf (f, "%ld\n", i);
34742     }
34743   else
34744     {
34745       unsigned long i = ulongval ();
34746       if (i != ((long) (sizeof (long))))
34747         exit (1);
34748       fprintf (f, "%lu\n", i);
34749     }
34750   exit (ferror (f) || fclose (f) != 0);
34751
34752   ;
34753   return 0;
34754 }
34755 _ACEOF
34756 rm -f conftest$ac_exeext
34757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34758   (eval $ac_link) 2>&5
34759   ac_status=$?
34760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34763   (eval $ac_try) 2>&5
34764   ac_status=$?
34765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766   (exit $ac_status); }; }; then
34767   ac_cv_sizeof_long=`cat conftest.val`
34768 else
34769   echo "$as_me: program exited with status $ac_status" >&5
34770 echo "$as_me: failed program was:" >&5
34771 sed 's/^/| /' conftest.$ac_ext >&5
34772
34773 ( exit $ac_status )
34774 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
34775 See \`config.log' for more details." >&5
34776 echo "$as_me: error: cannot compute sizeof (long), 77
34777 See \`config.log' for more details." >&2;}
34778    { (exit 1); exit 1; }; }
34779 fi
34780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34781 fi
34782 fi
34783 rm -f conftest.val
34784 else
34785   ac_cv_sizeof_long=0
34786 fi
34787 fi
34788 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34789 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
34790 cat >>confdefs.h <<_ACEOF
34791 #define SIZEOF_LONG $ac_cv_sizeof_long
34792 _ACEOF
34793
34794
34795 echo "$as_me:$LINENO: checking for long long" >&5
34796 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34797 if test "${ac_cv_type_long_long+set}" = set; then
34798   echo $ECHO_N "(cached) $ECHO_C" >&6
34799 else
34800   cat >conftest.$ac_ext <<_ACEOF
34801 /* confdefs.h.  */
34802 _ACEOF
34803 cat confdefs.h >>conftest.$ac_ext
34804 cat >>conftest.$ac_ext <<_ACEOF
34805 /* end confdefs.h.  */
34806 $ac_includes_default
34807 int
34808 main ()
34809 {
34810 if ((long long *) 0)
34811   return 0;
34812 if (sizeof (long long))
34813   return 0;
34814   ;
34815   return 0;
34816 }
34817 _ACEOF
34818 rm -f conftest.$ac_objext
34819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34820   (eval $ac_compile) 2>conftest.er1
34821   ac_status=$?
34822   grep -v '^ *+' conftest.er1 >conftest.err
34823   rm -f conftest.er1
34824   cat conftest.err >&5
34825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826   (exit $ac_status); } &&
34827          { ac_try='test -z "$ac_c_werror_flag"
34828                          || test ! -s conftest.err'
34829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34830   (eval $ac_try) 2>&5
34831   ac_status=$?
34832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833   (exit $ac_status); }; } &&
34834          { ac_try='test -s conftest.$ac_objext'
34835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34836   (eval $ac_try) 2>&5
34837   ac_status=$?
34838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34839   (exit $ac_status); }; }; then
34840   ac_cv_type_long_long=yes
34841 else
34842   echo "$as_me: failed program was:" >&5
34843 sed 's/^/| /' conftest.$ac_ext >&5
34844
34845 ac_cv_type_long_long=no
34846 fi
34847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34848 fi
34849 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34850 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34851
34852 echo "$as_me:$LINENO: checking size of long long" >&5
34853 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
34854 if test "${ac_cv_sizeof_long_long+set}" = set; then
34855   echo $ECHO_N "(cached) $ECHO_C" >&6
34856 else
34857   if test "$ac_cv_type_long_long" = yes; then
34858   # The cast to unsigned long works around a bug in the HP C Compiler
34859   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34860   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34861   # This bug is HP SR number 8606223364.
34862   if test "$cross_compiling" = yes; then
34863   # Depending upon the size, compute the lo and hi bounds.
34864 cat >conftest.$ac_ext <<_ACEOF
34865 /* confdefs.h.  */
34866 _ACEOF
34867 cat confdefs.h >>conftest.$ac_ext
34868 cat >>conftest.$ac_ext <<_ACEOF
34869 /* end confdefs.h.  */
34870 $ac_includes_default
34871 int
34872 main ()
34873 {
34874 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
34875 test_array [0] = 0
34876
34877   ;
34878   return 0;
34879 }
34880 _ACEOF
34881 rm -f conftest.$ac_objext
34882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34883   (eval $ac_compile) 2>conftest.er1
34884   ac_status=$?
34885   grep -v '^ *+' conftest.er1 >conftest.err
34886   rm -f conftest.er1
34887   cat conftest.err >&5
34888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889   (exit $ac_status); } &&
34890          { ac_try='test -z "$ac_c_werror_flag"
34891                          || test ! -s conftest.err'
34892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34893   (eval $ac_try) 2>&5
34894   ac_status=$?
34895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896   (exit $ac_status); }; } &&
34897          { ac_try='test -s conftest.$ac_objext'
34898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34899   (eval $ac_try) 2>&5
34900   ac_status=$?
34901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902   (exit $ac_status); }; }; then
34903   ac_lo=0 ac_mid=0
34904   while :; do
34905     cat >conftest.$ac_ext <<_ACEOF
34906 /* confdefs.h.  */
34907 _ACEOF
34908 cat confdefs.h >>conftest.$ac_ext
34909 cat >>conftest.$ac_ext <<_ACEOF
34910 /* end confdefs.h.  */
34911 $ac_includes_default
34912 int
34913 main ()
34914 {
34915 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
34916 test_array [0] = 0
34917
34918   ;
34919   return 0;
34920 }
34921 _ACEOF
34922 rm -f conftest.$ac_objext
34923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34924   (eval $ac_compile) 2>conftest.er1
34925   ac_status=$?
34926   grep -v '^ *+' conftest.er1 >conftest.err
34927   rm -f conftest.er1
34928   cat conftest.err >&5
34929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930   (exit $ac_status); } &&
34931          { ac_try='test -z "$ac_c_werror_flag"
34932                          || test ! -s conftest.err'
34933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34934   (eval $ac_try) 2>&5
34935   ac_status=$?
34936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937   (exit $ac_status); }; } &&
34938          { ac_try='test -s conftest.$ac_objext'
34939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34940   (eval $ac_try) 2>&5
34941   ac_status=$?
34942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943   (exit $ac_status); }; }; then
34944   ac_hi=$ac_mid; break
34945 else
34946   echo "$as_me: failed program was:" >&5
34947 sed 's/^/| /' conftest.$ac_ext >&5
34948
34949 ac_lo=`expr $ac_mid + 1`
34950                     if test $ac_lo -le $ac_mid; then
34951                       ac_lo= ac_hi=
34952                       break
34953                     fi
34954                     ac_mid=`expr 2 '*' $ac_mid + 1`
34955 fi
34956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34957   done
34958 else
34959   echo "$as_me: failed program was:" >&5
34960 sed 's/^/| /' conftest.$ac_ext >&5
34961
34962 cat >conftest.$ac_ext <<_ACEOF
34963 /* confdefs.h.  */
34964 _ACEOF
34965 cat confdefs.h >>conftest.$ac_ext
34966 cat >>conftest.$ac_ext <<_ACEOF
34967 /* end confdefs.h.  */
34968 $ac_includes_default
34969 int
34970 main ()
34971 {
34972 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
34973 test_array [0] = 0
34974
34975   ;
34976   return 0;
34977 }
34978 _ACEOF
34979 rm -f conftest.$ac_objext
34980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34981   (eval $ac_compile) 2>conftest.er1
34982   ac_status=$?
34983   grep -v '^ *+' conftest.er1 >conftest.err
34984   rm -f conftest.er1
34985   cat conftest.err >&5
34986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987   (exit $ac_status); } &&
34988          { ac_try='test -z "$ac_c_werror_flag"
34989                          || test ! -s conftest.err'
34990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34991   (eval $ac_try) 2>&5
34992   ac_status=$?
34993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34994   (exit $ac_status); }; } &&
34995          { ac_try='test -s conftest.$ac_objext'
34996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34997   (eval $ac_try) 2>&5
34998   ac_status=$?
34999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35000   (exit $ac_status); }; }; then
35001   ac_hi=-1 ac_mid=-1
35002   while :; do
35003     cat >conftest.$ac_ext <<_ACEOF
35004 /* confdefs.h.  */
35005 _ACEOF
35006 cat confdefs.h >>conftest.$ac_ext
35007 cat >>conftest.$ac_ext <<_ACEOF
35008 /* end confdefs.h.  */
35009 $ac_includes_default
35010 int
35011 main ()
35012 {
35013 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
35014 test_array [0] = 0
35015
35016   ;
35017   return 0;
35018 }
35019 _ACEOF
35020 rm -f conftest.$ac_objext
35021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35022   (eval $ac_compile) 2>conftest.er1
35023   ac_status=$?
35024   grep -v '^ *+' conftest.er1 >conftest.err
35025   rm -f conftest.er1
35026   cat conftest.err >&5
35027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35028   (exit $ac_status); } &&
35029          { ac_try='test -z "$ac_c_werror_flag"
35030                          || test ! -s conftest.err'
35031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35032   (eval $ac_try) 2>&5
35033   ac_status=$?
35034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35035   (exit $ac_status); }; } &&
35036          { ac_try='test -s conftest.$ac_objext'
35037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35038   (eval $ac_try) 2>&5
35039   ac_status=$?
35040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041   (exit $ac_status); }; }; then
35042   ac_lo=$ac_mid; break
35043 else
35044   echo "$as_me: failed program was:" >&5
35045 sed 's/^/| /' conftest.$ac_ext >&5
35046
35047 ac_hi=`expr '(' $ac_mid ')' - 1`
35048                        if test $ac_mid -le $ac_hi; then
35049                          ac_lo= ac_hi=
35050                          break
35051                        fi
35052                        ac_mid=`expr 2 '*' $ac_mid`
35053 fi
35054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35055   done
35056 else
35057   echo "$as_me: failed program was:" >&5
35058 sed 's/^/| /' conftest.$ac_ext >&5
35059
35060 ac_lo= ac_hi=
35061 fi
35062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35063 fi
35064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35065 # Binary search between lo and hi bounds.
35066 while test "x$ac_lo" != "x$ac_hi"; do
35067   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35068   cat >conftest.$ac_ext <<_ACEOF
35069 /* confdefs.h.  */
35070 _ACEOF
35071 cat confdefs.h >>conftest.$ac_ext
35072 cat >>conftest.$ac_ext <<_ACEOF
35073 /* end confdefs.h.  */
35074 $ac_includes_default
35075 int
35076 main ()
35077 {
35078 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
35079 test_array [0] = 0
35080
35081   ;
35082   return 0;
35083 }
35084 _ACEOF
35085 rm -f conftest.$ac_objext
35086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35087   (eval $ac_compile) 2>conftest.er1
35088   ac_status=$?
35089   grep -v '^ *+' conftest.er1 >conftest.err
35090   rm -f conftest.er1
35091   cat conftest.err >&5
35092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35093   (exit $ac_status); } &&
35094          { ac_try='test -z "$ac_c_werror_flag"
35095                          || test ! -s conftest.err'
35096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35097   (eval $ac_try) 2>&5
35098   ac_status=$?
35099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100   (exit $ac_status); }; } &&
35101          { ac_try='test -s conftest.$ac_objext'
35102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35103   (eval $ac_try) 2>&5
35104   ac_status=$?
35105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35106   (exit $ac_status); }; }; then
35107   ac_hi=$ac_mid
35108 else
35109   echo "$as_me: failed program was:" >&5
35110 sed 's/^/| /' conftest.$ac_ext >&5
35111
35112 ac_lo=`expr '(' $ac_mid ')' + 1`
35113 fi
35114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35115 done
35116 case $ac_lo in
35117 ?*) ac_cv_sizeof_long_long=$ac_lo;;
35118 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
35119 See \`config.log' for more details." >&5
35120 echo "$as_me: error: cannot compute sizeof (long long), 77
35121 See \`config.log' for more details." >&2;}
35122    { (exit 1); exit 1; }; } ;;
35123 esac
35124 else
35125   if test "$cross_compiling" = yes; then
35126   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35127 See \`config.log' for more details." >&5
35128 echo "$as_me: error: cannot run test program while cross compiling
35129 See \`config.log' for more details." >&2;}
35130    { (exit 1); exit 1; }; }
35131 else
35132   cat >conftest.$ac_ext <<_ACEOF
35133 /* confdefs.h.  */
35134 _ACEOF
35135 cat confdefs.h >>conftest.$ac_ext
35136 cat >>conftest.$ac_ext <<_ACEOF
35137 /* end confdefs.h.  */
35138 $ac_includes_default
35139 long longval () { return (long) (sizeof (long long)); }
35140 unsigned long ulongval () { return (long) (sizeof (long long)); }
35141 #include <stdio.h>
35142 #include <stdlib.h>
35143 int
35144 main ()
35145 {
35146
35147   FILE *f = fopen ("conftest.val", "w");
35148   if (! f)
35149     exit (1);
35150   if (((long) (sizeof (long long))) < 0)
35151     {
35152       long i = longval ();
35153       if (i != ((long) (sizeof (long long))))
35154         exit (1);
35155       fprintf (f, "%ld\n", i);
35156     }
35157   else
35158     {
35159       unsigned long i = ulongval ();
35160       if (i != ((long) (sizeof (long long))))
35161         exit (1);
35162       fprintf (f, "%lu\n", i);
35163     }
35164   exit (ferror (f) || fclose (f) != 0);
35165
35166   ;
35167   return 0;
35168 }
35169 _ACEOF
35170 rm -f conftest$ac_exeext
35171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35172   (eval $ac_link) 2>&5
35173   ac_status=$?
35174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35175   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35177   (eval $ac_try) 2>&5
35178   ac_status=$?
35179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180   (exit $ac_status); }; }; then
35181   ac_cv_sizeof_long_long=`cat conftest.val`
35182 else
35183   echo "$as_me: program exited with status $ac_status" >&5
35184 echo "$as_me: failed program was:" >&5
35185 sed 's/^/| /' conftest.$ac_ext >&5
35186
35187 ( exit $ac_status )
35188 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
35189 See \`config.log' for more details." >&5
35190 echo "$as_me: error: cannot compute sizeof (long long), 77
35191 See \`config.log' for more details." >&2;}
35192    { (exit 1); exit 1; }; }
35193 fi
35194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35195 fi
35196 fi
35197 rm -f conftest.val
35198 else
35199   ac_cv_sizeof_long_long=0
35200 fi
35201 fi
35202 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35203 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
35204 cat >>confdefs.h <<_ACEOF
35205 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35206 _ACEOF
35207
35208
35209 echo "$as_me:$LINENO: checking for wchar_t" >&5
35210 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
35211 if test "${ac_cv_type_wchar_t+set}" = set; then
35212   echo $ECHO_N "(cached) $ECHO_C" >&6
35213 else
35214   cat >conftest.$ac_ext <<_ACEOF
35215 /* confdefs.h.  */
35216 _ACEOF
35217 cat confdefs.h >>conftest.$ac_ext
35218 cat >>conftest.$ac_ext <<_ACEOF
35219 /* end confdefs.h.  */
35220 $ac_includes_default
35221 int
35222 main ()
35223 {
35224 if ((wchar_t *) 0)
35225   return 0;
35226 if (sizeof (wchar_t))
35227   return 0;
35228   ;
35229   return 0;
35230 }
35231 _ACEOF
35232 rm -f conftest.$ac_objext
35233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35234   (eval $ac_compile) 2>conftest.er1
35235   ac_status=$?
35236   grep -v '^ *+' conftest.er1 >conftest.err
35237   rm -f conftest.er1
35238   cat conftest.err >&5
35239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240   (exit $ac_status); } &&
35241          { ac_try='test -z "$ac_c_werror_flag"
35242                          || test ! -s conftest.err'
35243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35244   (eval $ac_try) 2>&5
35245   ac_status=$?
35246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247   (exit $ac_status); }; } &&
35248          { ac_try='test -s conftest.$ac_objext'
35249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35250   (eval $ac_try) 2>&5
35251   ac_status=$?
35252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253   (exit $ac_status); }; }; then
35254   ac_cv_type_wchar_t=yes
35255 else
35256   echo "$as_me: failed program was:" >&5
35257 sed 's/^/| /' conftest.$ac_ext >&5
35258
35259 ac_cv_type_wchar_t=no
35260 fi
35261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35262 fi
35263 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35264 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
35265
35266 echo "$as_me:$LINENO: checking size of wchar_t" >&5
35267 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
35268 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35269   echo $ECHO_N "(cached) $ECHO_C" >&6
35270 else
35271   if test "$ac_cv_type_wchar_t" = yes; then
35272   # The cast to unsigned long works around a bug in the HP C Compiler
35273   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35274   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35275   # This bug is HP SR number 8606223364.
35276   if test "$cross_compiling" = yes; then
35277   # Depending upon the size, compute the lo and hi bounds.
35278 cat >conftest.$ac_ext <<_ACEOF
35279 /* confdefs.h.  */
35280 _ACEOF
35281 cat confdefs.h >>conftest.$ac_ext
35282 cat >>conftest.$ac_ext <<_ACEOF
35283 /* end confdefs.h.  */
35284 $ac_includes_default
35285 int
35286 main ()
35287 {
35288 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
35289 test_array [0] = 0
35290
35291   ;
35292   return 0;
35293 }
35294 _ACEOF
35295 rm -f conftest.$ac_objext
35296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35297   (eval $ac_compile) 2>conftest.er1
35298   ac_status=$?
35299   grep -v '^ *+' conftest.er1 >conftest.err
35300   rm -f conftest.er1
35301   cat conftest.err >&5
35302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35303   (exit $ac_status); } &&
35304          { ac_try='test -z "$ac_c_werror_flag"
35305                          || test ! -s conftest.err'
35306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35307   (eval $ac_try) 2>&5
35308   ac_status=$?
35309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35310   (exit $ac_status); }; } &&
35311          { ac_try='test -s conftest.$ac_objext'
35312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35313   (eval $ac_try) 2>&5
35314   ac_status=$?
35315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35316   (exit $ac_status); }; }; then
35317   ac_lo=0 ac_mid=0
35318   while :; do
35319     cat >conftest.$ac_ext <<_ACEOF
35320 /* confdefs.h.  */
35321 _ACEOF
35322 cat confdefs.h >>conftest.$ac_ext
35323 cat >>conftest.$ac_ext <<_ACEOF
35324 /* end confdefs.h.  */
35325 $ac_includes_default
35326 int
35327 main ()
35328 {
35329 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35330 test_array [0] = 0
35331
35332   ;
35333   return 0;
35334 }
35335 _ACEOF
35336 rm -f conftest.$ac_objext
35337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35338   (eval $ac_compile) 2>conftest.er1
35339   ac_status=$?
35340   grep -v '^ *+' conftest.er1 >conftest.err
35341   rm -f conftest.er1
35342   cat conftest.err >&5
35343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35344   (exit $ac_status); } &&
35345          { ac_try='test -z "$ac_c_werror_flag"
35346                          || test ! -s conftest.err'
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); }; } &&
35352          { ac_try='test -s conftest.$ac_objext'
35353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35354   (eval $ac_try) 2>&5
35355   ac_status=$?
35356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357   (exit $ac_status); }; }; then
35358   ac_hi=$ac_mid; break
35359 else
35360   echo "$as_me: failed program was:" >&5
35361 sed 's/^/| /' conftest.$ac_ext >&5
35362
35363 ac_lo=`expr $ac_mid + 1`
35364                     if test $ac_lo -le $ac_mid; then
35365                       ac_lo= ac_hi=
35366                       break
35367                     fi
35368                     ac_mid=`expr 2 '*' $ac_mid + 1`
35369 fi
35370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35371   done
35372 else
35373   echo "$as_me: failed program was:" >&5
35374 sed 's/^/| /' conftest.$ac_ext >&5
35375
35376 cat >conftest.$ac_ext <<_ACEOF
35377 /* confdefs.h.  */
35378 _ACEOF
35379 cat confdefs.h >>conftest.$ac_ext
35380 cat >>conftest.$ac_ext <<_ACEOF
35381 /* end confdefs.h.  */
35382 $ac_includes_default
35383 int
35384 main ()
35385 {
35386 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
35387 test_array [0] = 0
35388
35389   ;
35390   return 0;
35391 }
35392 _ACEOF
35393 rm -f conftest.$ac_objext
35394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35395   (eval $ac_compile) 2>conftest.er1
35396   ac_status=$?
35397   grep -v '^ *+' conftest.er1 >conftest.err
35398   rm -f conftest.er1
35399   cat conftest.err >&5
35400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35401   (exit $ac_status); } &&
35402          { ac_try='test -z "$ac_c_werror_flag"
35403                          || test ! -s conftest.err'
35404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35405   (eval $ac_try) 2>&5
35406   ac_status=$?
35407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408   (exit $ac_status); }; } &&
35409          { ac_try='test -s conftest.$ac_objext'
35410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35411   (eval $ac_try) 2>&5
35412   ac_status=$?
35413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414   (exit $ac_status); }; }; then
35415   ac_hi=-1 ac_mid=-1
35416   while :; do
35417     cat >conftest.$ac_ext <<_ACEOF
35418 /* confdefs.h.  */
35419 _ACEOF
35420 cat confdefs.h >>conftest.$ac_ext
35421 cat >>conftest.$ac_ext <<_ACEOF
35422 /* end confdefs.h.  */
35423 $ac_includes_default
35424 int
35425 main ()
35426 {
35427 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
35428 test_array [0] = 0
35429
35430   ;
35431   return 0;
35432 }
35433 _ACEOF
35434 rm -f conftest.$ac_objext
35435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35436   (eval $ac_compile) 2>conftest.er1
35437   ac_status=$?
35438   grep -v '^ *+' conftest.er1 >conftest.err
35439   rm -f conftest.er1
35440   cat conftest.err >&5
35441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35442   (exit $ac_status); } &&
35443          { ac_try='test -z "$ac_c_werror_flag"
35444                          || test ! -s conftest.err'
35445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35446   (eval $ac_try) 2>&5
35447   ac_status=$?
35448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35449   (exit $ac_status); }; } &&
35450          { ac_try='test -s conftest.$ac_objext'
35451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35452   (eval $ac_try) 2>&5
35453   ac_status=$?
35454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35455   (exit $ac_status); }; }; then
35456   ac_lo=$ac_mid; break
35457 else
35458   echo "$as_me: failed program was:" >&5
35459 sed 's/^/| /' conftest.$ac_ext >&5
35460
35461 ac_hi=`expr '(' $ac_mid ')' - 1`
35462                        if test $ac_mid -le $ac_hi; then
35463                          ac_lo= ac_hi=
35464                          break
35465                        fi
35466                        ac_mid=`expr 2 '*' $ac_mid`
35467 fi
35468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35469   done
35470 else
35471   echo "$as_me: failed program was:" >&5
35472 sed 's/^/| /' conftest.$ac_ext >&5
35473
35474 ac_lo= ac_hi=
35475 fi
35476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35477 fi
35478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35479 # Binary search between lo and hi bounds.
35480 while test "x$ac_lo" != "x$ac_hi"; do
35481   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35482   cat >conftest.$ac_ext <<_ACEOF
35483 /* confdefs.h.  */
35484 _ACEOF
35485 cat confdefs.h >>conftest.$ac_ext
35486 cat >>conftest.$ac_ext <<_ACEOF
35487 /* end confdefs.h.  */
35488 $ac_includes_default
35489 int
35490 main ()
35491 {
35492 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35493 test_array [0] = 0
35494
35495   ;
35496   return 0;
35497 }
35498 _ACEOF
35499 rm -f conftest.$ac_objext
35500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35501   (eval $ac_compile) 2>conftest.er1
35502   ac_status=$?
35503   grep -v '^ *+' conftest.er1 >conftest.err
35504   rm -f conftest.er1
35505   cat conftest.err >&5
35506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35507   (exit $ac_status); } &&
35508          { ac_try='test -z "$ac_c_werror_flag"
35509                          || test ! -s conftest.err'
35510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35511   (eval $ac_try) 2>&5
35512   ac_status=$?
35513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514   (exit $ac_status); }; } &&
35515          { ac_try='test -s conftest.$ac_objext'
35516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35517   (eval $ac_try) 2>&5
35518   ac_status=$?
35519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520   (exit $ac_status); }; }; then
35521   ac_hi=$ac_mid
35522 else
35523   echo "$as_me: failed program was:" >&5
35524 sed 's/^/| /' conftest.$ac_ext >&5
35525
35526 ac_lo=`expr '(' $ac_mid ')' + 1`
35527 fi
35528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35529 done
35530 case $ac_lo in
35531 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35532 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35533 See \`config.log' for more details." >&5
35534 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35535 See \`config.log' for more details." >&2;}
35536    { (exit 1); exit 1; }; } ;;
35537 esac
35538 else
35539   if test "$cross_compiling" = yes; then
35540   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35541 See \`config.log' for more details." >&5
35542 echo "$as_me: error: cannot run test program while cross compiling
35543 See \`config.log' for more details." >&2;}
35544    { (exit 1); exit 1; }; }
35545 else
35546   cat >conftest.$ac_ext <<_ACEOF
35547 /* confdefs.h.  */
35548 _ACEOF
35549 cat confdefs.h >>conftest.$ac_ext
35550 cat >>conftest.$ac_ext <<_ACEOF
35551 /* end confdefs.h.  */
35552 $ac_includes_default
35553 long longval () { return (long) (sizeof (wchar_t)); }
35554 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
35555 #include <stdio.h>
35556 #include <stdlib.h>
35557 int
35558 main ()
35559 {
35560
35561   FILE *f = fopen ("conftest.val", "w");
35562   if (! f)
35563     exit (1);
35564   if (((long) (sizeof (wchar_t))) < 0)
35565     {
35566       long i = longval ();
35567       if (i != ((long) (sizeof (wchar_t))))
35568         exit (1);
35569       fprintf (f, "%ld\n", i);
35570     }
35571   else
35572     {
35573       unsigned long i = ulongval ();
35574       if (i != ((long) (sizeof (wchar_t))))
35575         exit (1);
35576       fprintf (f, "%lu\n", i);
35577     }
35578   exit (ferror (f) || fclose (f) != 0);
35579
35580   ;
35581   return 0;
35582 }
35583 _ACEOF
35584 rm -f conftest$ac_exeext
35585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35586   (eval $ac_link) 2>&5
35587   ac_status=$?
35588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
35595   ac_cv_sizeof_wchar_t=`cat conftest.val`
35596 else
35597   echo "$as_me: program exited with status $ac_status" >&5
35598 echo "$as_me: failed program was:" >&5
35599 sed 's/^/| /' conftest.$ac_ext >&5
35600
35601 ( exit $ac_status )
35602 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35603 See \`config.log' for more details." >&5
35604 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35605 See \`config.log' for more details." >&2;}
35606    { (exit 1); exit 1; }; }
35607 fi
35608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35609 fi
35610 fi
35611 rm -f conftest.val
35612 else
35613   ac_cv_sizeof_wchar_t=0
35614 fi
35615 fi
35616 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35617 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
35618 cat >>confdefs.h <<_ACEOF
35619 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35620 _ACEOF
35621
35622
35623
35624 if test "$ac_cv_sizeof_int" -lt 4 ; then
35625         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35626 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35627
35628
35629 cat >>confdefs.h <<\_ACEOF
35630 #define LBER_INT_T long
35631 _ACEOF
35632
35633 else
35634
35635 cat >>confdefs.h <<\_ACEOF
35636 #define LBER_INT_T int
35637 _ACEOF
35638
35639 fi
35640
35641
35642 cat >>confdefs.h <<\_ACEOF
35643 #define LBER_LEN_T long
35644 _ACEOF
35645
35646
35647 cat >>confdefs.h <<\_ACEOF
35648 #define LBER_SOCKET_T int
35649 _ACEOF
35650
35651
35652 cat >>confdefs.h <<\_ACEOF
35653 #define LBER_TAG_T long
35654 _ACEOF
35655
35656
35657 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35658         if test $ac_cv_sizeof_long_long -gt 4 ; then
35659                 ol_with_mp=longlong
35660
35661 cat >>confdefs.h <<\_ACEOF
35662 #define USE_MP_LONG_LONG 1
35663 _ACEOF
35664
35665         elif test $ol_with_mp = longlong ; then
35666                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35667 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35668    { (exit 1); exit 1; }; }
35669         fi
35670 fi
35671 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35672         if test $ac_cv_sizeof_long -gt 4 ; then
35673                 ol_with_mp=long
35674
35675 cat >>confdefs.h <<\_ACEOF
35676 #define USE_MP_LONG 1
35677 _ACEOF
35678
35679         elif test $ol_with_mp = long ; then
35680                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35681 echo "$as_me: error: long unusable for multiple precision" >&2;}
35682    { (exit 1); exit 1; }; }
35683         fi
35684 fi
35685 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35686
35687 for ac_header in openssl/bn.h
35688 do
35689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35691   echo "$as_me:$LINENO: checking for $ac_header" >&5
35692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35694   echo $ECHO_N "(cached) $ECHO_C" >&6
35695 fi
35696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35698 else
35699   # Is the header compilable?
35700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35702 cat >conftest.$ac_ext <<_ACEOF
35703 /* confdefs.h.  */
35704 _ACEOF
35705 cat confdefs.h >>conftest.$ac_ext
35706 cat >>conftest.$ac_ext <<_ACEOF
35707 /* end confdefs.h.  */
35708 $ac_includes_default
35709 #include <$ac_header>
35710 _ACEOF
35711 rm -f conftest.$ac_objext
35712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35713   (eval $ac_compile) 2>conftest.er1
35714   ac_status=$?
35715   grep -v '^ *+' conftest.er1 >conftest.err
35716   rm -f conftest.er1
35717   cat conftest.err >&5
35718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35719   (exit $ac_status); } &&
35720          { ac_try='test -z "$ac_c_werror_flag"
35721                          || test ! -s conftest.err'
35722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35723   (eval $ac_try) 2>&5
35724   ac_status=$?
35725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35726   (exit $ac_status); }; } &&
35727          { ac_try='test -s conftest.$ac_objext'
35728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35729   (eval $ac_try) 2>&5
35730   ac_status=$?
35731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35732   (exit $ac_status); }; }; then
35733   ac_header_compiler=yes
35734 else
35735   echo "$as_me: failed program was:" >&5
35736 sed 's/^/| /' conftest.$ac_ext >&5
35737
35738 ac_header_compiler=no
35739 fi
35740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35742 echo "${ECHO_T}$ac_header_compiler" >&6
35743
35744 # Is the header present?
35745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35747 cat >conftest.$ac_ext <<_ACEOF
35748 /* confdefs.h.  */
35749 _ACEOF
35750 cat confdefs.h >>conftest.$ac_ext
35751 cat >>conftest.$ac_ext <<_ACEOF
35752 /* end confdefs.h.  */
35753 #include <$ac_header>
35754 _ACEOF
35755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35756   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35757   ac_status=$?
35758   grep -v '^ *+' conftest.er1 >conftest.err
35759   rm -f conftest.er1
35760   cat conftest.err >&5
35761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762   (exit $ac_status); } >/dev/null; then
35763   if test -s conftest.err; then
35764     ac_cpp_err=$ac_c_preproc_warn_flag
35765     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35766   else
35767     ac_cpp_err=
35768   fi
35769 else
35770   ac_cpp_err=yes
35771 fi
35772 if test -z "$ac_cpp_err"; then
35773   ac_header_preproc=yes
35774 else
35775   echo "$as_me: failed program was:" >&5
35776 sed 's/^/| /' conftest.$ac_ext >&5
35777
35778   ac_header_preproc=no
35779 fi
35780 rm -f conftest.err conftest.$ac_ext
35781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35782 echo "${ECHO_T}$ac_header_preproc" >&6
35783
35784 # So?  What about this header?
35785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35786   yes:no: )
35787     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35791     ac_header_preproc=yes
35792     ;;
35793   no:yes:* )
35794     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35796     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35797 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35798     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35800     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35801 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35804     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35806     (
35807       cat <<\_ASBOX
35808 ## --------------------------------------------- ##
35809 ## Report this to <http://www.openldap.org/its/> ##
35810 ## --------------------------------------------- ##
35811 _ASBOX
35812     ) |
35813       sed "s/^/$as_me: WARNING:     /" >&2
35814     ;;
35815 esac
35816 echo "$as_me:$LINENO: checking for $ac_header" >&5
35817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35819   echo $ECHO_N "(cached) $ECHO_C" >&6
35820 else
35821   eval "$as_ac_Header=\$ac_header_preproc"
35822 fi
35823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35825
35826 fi
35827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35828   cat >>confdefs.h <<_ACEOF
35829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35830 _ACEOF
35831
35832 fi
35833
35834 done
35835
35836
35837 for ac_header in openssl/crypto.h
35838 do
35839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35841   echo "$as_me:$LINENO: checking for $ac_header" >&5
35842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35844   echo $ECHO_N "(cached) $ECHO_C" >&6
35845 fi
35846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35848 else
35849   # Is the header compilable?
35850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35852 cat >conftest.$ac_ext <<_ACEOF
35853 /* confdefs.h.  */
35854 _ACEOF
35855 cat confdefs.h >>conftest.$ac_ext
35856 cat >>conftest.$ac_ext <<_ACEOF
35857 /* end confdefs.h.  */
35858 $ac_includes_default
35859 #include <$ac_header>
35860 _ACEOF
35861 rm -f conftest.$ac_objext
35862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35863   (eval $ac_compile) 2>conftest.er1
35864   ac_status=$?
35865   grep -v '^ *+' conftest.er1 >conftest.err
35866   rm -f conftest.er1
35867   cat conftest.err >&5
35868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35869   (exit $ac_status); } &&
35870          { ac_try='test -z "$ac_c_werror_flag"
35871                          || test ! -s conftest.err'
35872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35873   (eval $ac_try) 2>&5
35874   ac_status=$?
35875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35876   (exit $ac_status); }; } &&
35877          { ac_try='test -s conftest.$ac_objext'
35878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35879   (eval $ac_try) 2>&5
35880   ac_status=$?
35881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882   (exit $ac_status); }; }; then
35883   ac_header_compiler=yes
35884 else
35885   echo "$as_me: failed program was:" >&5
35886 sed 's/^/| /' conftest.$ac_ext >&5
35887
35888 ac_header_compiler=no
35889 fi
35890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35892 echo "${ECHO_T}$ac_header_compiler" >&6
35893
35894 # Is the header present?
35895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35897 cat >conftest.$ac_ext <<_ACEOF
35898 /* confdefs.h.  */
35899 _ACEOF
35900 cat confdefs.h >>conftest.$ac_ext
35901 cat >>conftest.$ac_ext <<_ACEOF
35902 /* end confdefs.h.  */
35903 #include <$ac_header>
35904 _ACEOF
35905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35907   ac_status=$?
35908   grep -v '^ *+' conftest.er1 >conftest.err
35909   rm -f conftest.er1
35910   cat conftest.err >&5
35911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35912   (exit $ac_status); } >/dev/null; then
35913   if test -s conftest.err; then
35914     ac_cpp_err=$ac_c_preproc_warn_flag
35915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35916   else
35917     ac_cpp_err=
35918   fi
35919 else
35920   ac_cpp_err=yes
35921 fi
35922 if test -z "$ac_cpp_err"; then
35923   ac_header_preproc=yes
35924 else
35925   echo "$as_me: failed program was:" >&5
35926 sed 's/^/| /' conftest.$ac_ext >&5
35927
35928   ac_header_preproc=no
35929 fi
35930 rm -f conftest.err conftest.$ac_ext
35931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35932 echo "${ECHO_T}$ac_header_preproc" >&6
35933
35934 # So?  What about this header?
35935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35936   yes:no: )
35937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35941     ac_header_preproc=yes
35942     ;;
35943   no:yes:* )
35944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35956     (
35957       cat <<\_ASBOX
35958 ## --------------------------------------------- ##
35959 ## Report this to <http://www.openldap.org/its/> ##
35960 ## --------------------------------------------- ##
35961 _ASBOX
35962     ) |
35963       sed "s/^/$as_me: WARNING:     /" >&2
35964     ;;
35965 esac
35966 echo "$as_me:$LINENO: checking for $ac_header" >&5
35967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35969   echo $ECHO_N "(cached) $ECHO_C" >&6
35970 else
35971   eval "$as_ac_Header=\$ac_header_preproc"
35972 fi
35973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35975
35976 fi
35977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35978   cat >>confdefs.h <<_ACEOF
35979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35980 _ACEOF
35981
35982 fi
35983
35984 done
35985
35986         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35987                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35988                 test "$ol_with_tls" = "found" ; then
35989                 ol_with_mp=bignum
35990
35991 cat >>confdefs.h <<\_ACEOF
35992 #define USE_MP_BIGNUM 1
35993 _ACEOF
35994
35995         elif test $ol_with_mp = bignum ; then
35996                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35997 echo "$as_me: error: bignum not available" >&2;}
35998    { (exit 1); exit 1; }; }
35999         fi
36000 fi
36001 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
36002
36003 for ac_header in gmp.h
36004 do
36005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36007   echo "$as_me:$LINENO: checking for $ac_header" >&5
36008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36010   echo $ECHO_N "(cached) $ECHO_C" >&6
36011 fi
36012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36014 else
36015   # Is the header compilable?
36016 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36018 cat >conftest.$ac_ext <<_ACEOF
36019 /* confdefs.h.  */
36020 _ACEOF
36021 cat confdefs.h >>conftest.$ac_ext
36022 cat >>conftest.$ac_ext <<_ACEOF
36023 /* end confdefs.h.  */
36024 $ac_includes_default
36025 #include <$ac_header>
36026 _ACEOF
36027 rm -f conftest.$ac_objext
36028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36029   (eval $ac_compile) 2>conftest.er1
36030   ac_status=$?
36031   grep -v '^ *+' conftest.er1 >conftest.err
36032   rm -f conftest.er1
36033   cat conftest.err >&5
36034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035   (exit $ac_status); } &&
36036          { ac_try='test -z "$ac_c_werror_flag"
36037                          || test ! -s conftest.err'
36038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36039   (eval $ac_try) 2>&5
36040   ac_status=$?
36041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36042   (exit $ac_status); }; } &&
36043          { ac_try='test -s conftest.$ac_objext'
36044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36045   (eval $ac_try) 2>&5
36046   ac_status=$?
36047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36048   (exit $ac_status); }; }; then
36049   ac_header_compiler=yes
36050 else
36051   echo "$as_me: failed program was:" >&5
36052 sed 's/^/| /' conftest.$ac_ext >&5
36053
36054 ac_header_compiler=no
36055 fi
36056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36058 echo "${ECHO_T}$ac_header_compiler" >&6
36059
36060 # Is the header present?
36061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36063 cat >conftest.$ac_ext <<_ACEOF
36064 /* confdefs.h.  */
36065 _ACEOF
36066 cat confdefs.h >>conftest.$ac_ext
36067 cat >>conftest.$ac_ext <<_ACEOF
36068 /* end confdefs.h.  */
36069 #include <$ac_header>
36070 _ACEOF
36071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36073   ac_status=$?
36074   grep -v '^ *+' conftest.er1 >conftest.err
36075   rm -f conftest.er1
36076   cat conftest.err >&5
36077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36078   (exit $ac_status); } >/dev/null; then
36079   if test -s conftest.err; then
36080     ac_cpp_err=$ac_c_preproc_warn_flag
36081     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36082   else
36083     ac_cpp_err=
36084   fi
36085 else
36086   ac_cpp_err=yes
36087 fi
36088 if test -z "$ac_cpp_err"; then
36089   ac_header_preproc=yes
36090 else
36091   echo "$as_me: failed program was:" >&5
36092 sed 's/^/| /' conftest.$ac_ext >&5
36093
36094   ac_header_preproc=no
36095 fi
36096 rm -f conftest.err conftest.$ac_ext
36097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36098 echo "${ECHO_T}$ac_header_preproc" >&6
36099
36100 # So?  What about this header?
36101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36102   yes:no: )
36103     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36107     ac_header_preproc=yes
36108     ;;
36109   no:yes:* )
36110     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36112     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36113 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36114     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36116     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36117 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36120     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36122     (
36123       cat <<\_ASBOX
36124 ## --------------------------------------------- ##
36125 ## Report this to <http://www.openldap.org/its/> ##
36126 ## --------------------------------------------- ##
36127 _ASBOX
36128     ) |
36129       sed "s/^/$as_me: WARNING:     /" >&2
36130     ;;
36131 esac
36132 echo "$as_me:$LINENO: checking for $ac_header" >&5
36133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36135   echo $ECHO_N "(cached) $ECHO_C" >&6
36136 else
36137   eval "$as_ac_Header=\$ac_header_preproc"
36138 fi
36139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36141
36142 fi
36143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36144   cat >>confdefs.h <<_ACEOF
36145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36146 _ACEOF
36147
36148 fi
36149
36150 done
36151
36152
36153 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36154 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36155 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36156   echo $ECHO_N "(cached) $ECHO_C" >&6
36157 else
36158   ac_check_lib_save_LIBS=$LIBS
36159 LIBS="-lgmp  $LIBS"
36160 cat >conftest.$ac_ext <<_ACEOF
36161 /* confdefs.h.  */
36162 _ACEOF
36163 cat confdefs.h >>conftest.$ac_ext
36164 cat >>conftest.$ac_ext <<_ACEOF
36165 /* end confdefs.h.  */
36166
36167 /* Override any gcc2 internal prototype to avoid an error.  */
36168 #ifdef __cplusplus
36169 extern "C"
36170 #endif
36171 /* We use char because int might match the return type of a gcc2
36172    builtin and then its argument prototype would still apply.  */
36173 char __gmpz_add_ui ();
36174 int
36175 main ()
36176 {
36177 __gmpz_add_ui ();
36178   ;
36179   return 0;
36180 }
36181 _ACEOF
36182 rm -f conftest.$ac_objext conftest$ac_exeext
36183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36184   (eval $ac_link) 2>conftest.er1
36185   ac_status=$?
36186   grep -v '^ *+' conftest.er1 >conftest.err
36187   rm -f conftest.er1
36188   cat conftest.err >&5
36189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36190   (exit $ac_status); } &&
36191          { ac_try='test -z "$ac_c_werror_flag"
36192                          || test ! -s conftest.err'
36193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36194   (eval $ac_try) 2>&5
36195   ac_status=$?
36196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36197   (exit $ac_status); }; } &&
36198          { ac_try='test -s conftest$ac_exeext'
36199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36200   (eval $ac_try) 2>&5
36201   ac_status=$?
36202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203   (exit $ac_status); }; }; then
36204   ac_cv_lib_gmp___gmpz_add_ui=yes
36205 else
36206   echo "$as_me: failed program was:" >&5
36207 sed 's/^/| /' conftest.$ac_ext >&5
36208
36209 ac_cv_lib_gmp___gmpz_add_ui=no
36210 fi
36211 rm -f conftest.err conftest.$ac_objext \
36212       conftest$ac_exeext conftest.$ac_ext
36213 LIBS=$ac_check_lib_save_LIBS
36214 fi
36215 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36216 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36217 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36218   cat >>confdefs.h <<_ACEOF
36219 #define HAVE_LIBGMP 1
36220 _ACEOF
36221
36222   LIBS="-lgmp $LIBS"
36223
36224 fi
36225
36226         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36227
36228 cat >>confdefs.h <<\_ACEOF
36229 #define USE_MP_GMP 1
36230 _ACEOF
36231
36232                 ol_with_mp=gmp
36233         elif test $ol_with_mp = gmp ; then
36234                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36235 echo "$as_me: error: gmp not available" >&2;}
36236    { (exit 1); exit 1; }; }
36237         fi
36238 fi
36239 if test $ol_with_mp = auto ; then
36240         ol_with_mp=no
36241 fi
36242
36243 echo "$as_me:$LINENO: checking for working memcmp" >&5
36244 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
36245 if test "${ac_cv_func_memcmp_working+set}" = set; then
36246   echo $ECHO_N "(cached) $ECHO_C" >&6
36247 else
36248   if test "$cross_compiling" = yes; then
36249   ac_cv_func_memcmp_working=no
36250 else
36251   cat >conftest.$ac_ext <<_ACEOF
36252 /* confdefs.h.  */
36253 _ACEOF
36254 cat confdefs.h >>conftest.$ac_ext
36255 cat >>conftest.$ac_ext <<_ACEOF
36256 /* end confdefs.h.  */
36257 $ac_includes_default
36258 int
36259 main ()
36260 {
36261
36262   /* Some versions of memcmp are not 8-bit clean.  */
36263   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
36264   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36265     exit (1);
36266
36267   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36268      or more and with at least one buffer not starting on a 4-byte boundary.
36269      William Lewis provided this test program.   */
36270   {
36271     char foo[21];
36272     char bar[21];
36273     int i;
36274     for (i = 0; i < 4; i++)
36275       {
36276         char *a = foo + i;
36277         char *b = bar + i;
36278         strcpy (a, "--------01111111");
36279         strcpy (b, "--------10000000");
36280         if (memcmp (a, b, 16) >= 0)
36281           exit (1);
36282       }
36283     exit (0);
36284   }
36285
36286   ;
36287   return 0;
36288 }
36289 _ACEOF
36290 rm -f conftest$ac_exeext
36291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36292   (eval $ac_link) 2>&5
36293   ac_status=$?
36294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36295   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36297   (eval $ac_try) 2>&5
36298   ac_status=$?
36299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300   (exit $ac_status); }; }; then
36301   ac_cv_func_memcmp_working=yes
36302 else
36303   echo "$as_me: program exited with status $ac_status" >&5
36304 echo "$as_me: failed program was:" >&5
36305 sed 's/^/| /' conftest.$ac_ext >&5
36306
36307 ( exit $ac_status )
36308 ac_cv_func_memcmp_working=no
36309 fi
36310 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36311 fi
36312 fi
36313 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36314 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
36315 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
36316     "memcmp.$ac_objext"   | \
36317   *" memcmp.$ac_objext"   | \
36318     "memcmp.$ac_objext "* | \
36319   *" memcmp.$ac_objext "* ) ;;
36320   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
36321 esac
36322
36323
36324
36325 if test $ac_cv_func_memcmp_working = no ; then
36326
36327 cat >>confdefs.h <<\_ACEOF
36328 #define NEED_MEMCMP_REPLACEMENT 1
36329 _ACEOF
36330
36331 fi
36332
36333
36334 for ac_func in strftime
36335 do
36336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36337 echo "$as_me:$LINENO: checking for $ac_func" >&5
36338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36339 if eval "test \"\${$as_ac_var+set}\" = set"; then
36340   echo $ECHO_N "(cached) $ECHO_C" >&6
36341 else
36342   cat >conftest.$ac_ext <<_ACEOF
36343 /* confdefs.h.  */
36344 _ACEOF
36345 cat confdefs.h >>conftest.$ac_ext
36346 cat >>conftest.$ac_ext <<_ACEOF
36347 /* end confdefs.h.  */
36348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36350 #define $ac_func innocuous_$ac_func
36351
36352 /* System header to define __stub macros and hopefully few prototypes,
36353     which can conflict with char $ac_func (); below.
36354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36355     <limits.h> exists even on freestanding compilers.  */
36356
36357 #ifdef __STDC__
36358 # include <limits.h>
36359 #else
36360 # include <assert.h>
36361 #endif
36362
36363 #undef $ac_func
36364
36365 /* Override any gcc2 internal prototype to avoid an error.  */
36366 #ifdef __cplusplus
36367 extern "C"
36368 {
36369 #endif
36370 /* We use char because int might match the return type of a gcc2
36371    builtin and then its argument prototype would still apply.  */
36372 char $ac_func ();
36373 /* The GNU C library defines this for functions which it implements
36374     to always fail with ENOSYS.  Some functions are actually named
36375     something starting with __ and the normal name is an alias.  */
36376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36377 choke me
36378 #else
36379 char (*f) () = $ac_func;
36380 #endif
36381 #ifdef __cplusplus
36382 }
36383 #endif
36384
36385 int
36386 main ()
36387 {
36388 return f != $ac_func;
36389   ;
36390   return 0;
36391 }
36392 _ACEOF
36393 rm -f conftest.$ac_objext conftest$ac_exeext
36394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36395   (eval $ac_link) 2>conftest.er1
36396   ac_status=$?
36397   grep -v '^ *+' conftest.er1 >conftest.err
36398   rm -f conftest.er1
36399   cat conftest.err >&5
36400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36401   (exit $ac_status); } &&
36402          { ac_try='test -z "$ac_c_werror_flag"
36403                          || test ! -s conftest.err'
36404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36405   (eval $ac_try) 2>&5
36406   ac_status=$?
36407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36408   (exit $ac_status); }; } &&
36409          { ac_try='test -s conftest$ac_exeext'
36410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36411   (eval $ac_try) 2>&5
36412   ac_status=$?
36413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414   (exit $ac_status); }; }; then
36415   eval "$as_ac_var=yes"
36416 else
36417   echo "$as_me: failed program was:" >&5
36418 sed 's/^/| /' conftest.$ac_ext >&5
36419
36420 eval "$as_ac_var=no"
36421 fi
36422 rm -f conftest.err conftest.$ac_objext \
36423       conftest$ac_exeext conftest.$ac_ext
36424 fi
36425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36427 if test `eval echo '${'$as_ac_var'}'` = yes; then
36428   cat >>confdefs.h <<_ACEOF
36429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36430 _ACEOF
36431
36432 else
36433   # strftime is in -lintl on SCO UNIX.
36434 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36435 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
36436 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36437   echo $ECHO_N "(cached) $ECHO_C" >&6
36438 else
36439   ac_check_lib_save_LIBS=$LIBS
36440 LIBS="-lintl  $LIBS"
36441 cat >conftest.$ac_ext <<_ACEOF
36442 /* confdefs.h.  */
36443 _ACEOF
36444 cat confdefs.h >>conftest.$ac_ext
36445 cat >>conftest.$ac_ext <<_ACEOF
36446 /* end confdefs.h.  */
36447
36448 /* Override any gcc2 internal prototype to avoid an error.  */
36449 #ifdef __cplusplus
36450 extern "C"
36451 #endif
36452 /* We use char because int might match the return type of a gcc2
36453    builtin and then its argument prototype would still apply.  */
36454 char strftime ();
36455 int
36456 main ()
36457 {
36458 strftime ();
36459   ;
36460   return 0;
36461 }
36462 _ACEOF
36463 rm -f conftest.$ac_objext conftest$ac_exeext
36464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36465   (eval $ac_link) 2>conftest.er1
36466   ac_status=$?
36467   grep -v '^ *+' conftest.er1 >conftest.err
36468   rm -f conftest.er1
36469   cat conftest.err >&5
36470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471   (exit $ac_status); } &&
36472          { ac_try='test -z "$ac_c_werror_flag"
36473                          || test ! -s conftest.err'
36474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36475   (eval $ac_try) 2>&5
36476   ac_status=$?
36477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36478   (exit $ac_status); }; } &&
36479          { ac_try='test -s conftest$ac_exeext'
36480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36481   (eval $ac_try) 2>&5
36482   ac_status=$?
36483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36484   (exit $ac_status); }; }; then
36485   ac_cv_lib_intl_strftime=yes
36486 else
36487   echo "$as_me: failed program was:" >&5
36488 sed 's/^/| /' conftest.$ac_ext >&5
36489
36490 ac_cv_lib_intl_strftime=no
36491 fi
36492 rm -f conftest.err conftest.$ac_objext \
36493       conftest$ac_exeext conftest.$ac_ext
36494 LIBS=$ac_check_lib_save_LIBS
36495 fi
36496 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36497 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
36498 if test $ac_cv_lib_intl_strftime = yes; then
36499   cat >>confdefs.h <<\_ACEOF
36500 #define HAVE_STRFTIME 1
36501 _ACEOF
36502
36503 LIBS="-lintl $LIBS"
36504 fi
36505
36506 fi
36507 done
36508
36509
36510 echo "$as_me:$LINENO: checking for inet_aton()" >&5
36511 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
36512 if test "${ol_cv_func_inet_aton+set}" = set; then
36513   echo $ECHO_N "(cached) $ECHO_C" >&6
36514 else
36515   cat >conftest.$ac_ext <<_ACEOF
36516 /* confdefs.h.  */
36517 _ACEOF
36518 cat confdefs.h >>conftest.$ac_ext
36519 cat >>conftest.$ac_ext <<_ACEOF
36520 /* end confdefs.h.  */
36521
36522 #ifdef HAVE_SYS_TYPES_H
36523 #       include <sys/types.h>
36524 #endif
36525 #ifdef HAVE_SYS_SOCKET_H
36526 #       include <sys/socket.h>
36527 #       ifdef HAVE_SYS_SELECT_H
36528 #               include <sys/select.h>
36529 #       endif
36530 #       include <netinet/in.h>
36531 #       ifdef HAVE_ARPA_INET_H
36532 #               include <arpa/inet.h>
36533 #       endif
36534 #endif
36535
36536 int
36537 main ()
36538 {
36539 struct in_addr in;
36540 int rc = inet_aton( "255.255.255.255", &in );
36541   ;
36542   return 0;
36543 }
36544 _ACEOF
36545 rm -f conftest.$ac_objext conftest$ac_exeext
36546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36547   (eval $ac_link) 2>conftest.er1
36548   ac_status=$?
36549   grep -v '^ *+' conftest.er1 >conftest.err
36550   rm -f conftest.er1
36551   cat conftest.err >&5
36552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553   (exit $ac_status); } &&
36554          { ac_try='test -z "$ac_c_werror_flag"
36555                          || test ! -s conftest.err'
36556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36557   (eval $ac_try) 2>&5
36558   ac_status=$?
36559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36560   (exit $ac_status); }; } &&
36561          { ac_try='test -s conftest$ac_exeext'
36562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36563   (eval $ac_try) 2>&5
36564   ac_status=$?
36565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566   (exit $ac_status); }; }; then
36567   ol_cv_func_inet_aton=yes
36568 else
36569   echo "$as_me: failed program was:" >&5
36570 sed 's/^/| /' conftest.$ac_ext >&5
36571
36572 ol_cv_func_inet_aton=no
36573 fi
36574 rm -f conftest.err conftest.$ac_objext \
36575       conftest$ac_exeext conftest.$ac_ext
36576 fi
36577 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36578 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
36579   if test $ol_cv_func_inet_aton != no; then
36580
36581 cat >>confdefs.h <<\_ACEOF
36582 #define HAVE_INET_ATON 1
36583 _ACEOF
36584
36585   fi
36586
36587
36588 echo "$as_me:$LINENO: checking for _spawnlp" >&5
36589 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
36590 if test "${ac_cv_func__spawnlp+set}" = set; then
36591   echo $ECHO_N "(cached) $ECHO_C" >&6
36592 else
36593   cat >conftest.$ac_ext <<_ACEOF
36594 /* confdefs.h.  */
36595 _ACEOF
36596 cat confdefs.h >>conftest.$ac_ext
36597 cat >>conftest.$ac_ext <<_ACEOF
36598 /* end confdefs.h.  */
36599 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36601 #define _spawnlp innocuous__spawnlp
36602
36603 /* System header to define __stub macros and hopefully few prototypes,
36604     which can conflict with char _spawnlp (); below.
36605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36606     <limits.h> exists even on freestanding compilers.  */
36607
36608 #ifdef __STDC__
36609 # include <limits.h>
36610 #else
36611 # include <assert.h>
36612 #endif
36613
36614 #undef _spawnlp
36615
36616 /* Override any gcc2 internal prototype to avoid an error.  */
36617 #ifdef __cplusplus
36618 extern "C"
36619 {
36620 #endif
36621 /* We use char because int might match the return type of a gcc2
36622    builtin and then its argument prototype would still apply.  */
36623 char _spawnlp ();
36624 /* The GNU C library defines this for functions which it implements
36625     to always fail with ENOSYS.  Some functions are actually named
36626     something starting with __ and the normal name is an alias.  */
36627 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
36628 choke me
36629 #else
36630 char (*f) () = _spawnlp;
36631 #endif
36632 #ifdef __cplusplus
36633 }
36634 #endif
36635
36636 int
36637 main ()
36638 {
36639 return f != _spawnlp;
36640   ;
36641   return 0;
36642 }
36643 _ACEOF
36644 rm -f conftest.$ac_objext conftest$ac_exeext
36645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36646   (eval $ac_link) 2>conftest.er1
36647   ac_status=$?
36648   grep -v '^ *+' conftest.er1 >conftest.err
36649   rm -f conftest.er1
36650   cat conftest.err >&5
36651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36652   (exit $ac_status); } &&
36653          { ac_try='test -z "$ac_c_werror_flag"
36654                          || test ! -s conftest.err'
36655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36656   (eval $ac_try) 2>&5
36657   ac_status=$?
36658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36659   (exit $ac_status); }; } &&
36660          { ac_try='test -s conftest$ac_exeext'
36661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36662   (eval $ac_try) 2>&5
36663   ac_status=$?
36664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36665   (exit $ac_status); }; }; then
36666   ac_cv_func__spawnlp=yes
36667 else
36668   echo "$as_me: failed program was:" >&5
36669 sed 's/^/| /' conftest.$ac_ext >&5
36670
36671 ac_cv_func__spawnlp=no
36672 fi
36673 rm -f conftest.err conftest.$ac_objext \
36674       conftest$ac_exeext conftest.$ac_ext
36675 fi
36676 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36677 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
36678 if test $ac_cv_func__spawnlp = yes; then
36679
36680 cat >>confdefs.h <<\_ACEOF
36681 #define HAVE_SPAWNLP 1
36682 _ACEOF
36683
36684 fi
36685
36686
36687 echo "$as_me:$LINENO: checking for _snprintf" >&5
36688 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
36689 if test "${ac_cv_func__snprintf+set}" = set; then
36690   echo $ECHO_N "(cached) $ECHO_C" >&6
36691 else
36692   cat >conftest.$ac_ext <<_ACEOF
36693 /* confdefs.h.  */
36694 _ACEOF
36695 cat confdefs.h >>conftest.$ac_ext
36696 cat >>conftest.$ac_ext <<_ACEOF
36697 /* end confdefs.h.  */
36698 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36700 #define _snprintf innocuous__snprintf
36701
36702 /* System header to define __stub macros and hopefully few prototypes,
36703     which can conflict with char _snprintf (); below.
36704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36705     <limits.h> exists even on freestanding compilers.  */
36706
36707 #ifdef __STDC__
36708 # include <limits.h>
36709 #else
36710 # include <assert.h>
36711 #endif
36712
36713 #undef _snprintf
36714
36715 /* Override any gcc2 internal prototype to avoid an error.  */
36716 #ifdef __cplusplus
36717 extern "C"
36718 {
36719 #endif
36720 /* We use char because int might match the return type of a gcc2
36721    builtin and then its argument prototype would still apply.  */
36722 char _snprintf ();
36723 /* The GNU C library defines this for functions which it implements
36724     to always fail with ENOSYS.  Some functions are actually named
36725     something starting with __ and the normal name is an alias.  */
36726 #if defined (__stub__snprintf) || defined (__stub____snprintf)
36727 choke me
36728 #else
36729 char (*f) () = _snprintf;
36730 #endif
36731 #ifdef __cplusplus
36732 }
36733 #endif
36734
36735 int
36736 main ()
36737 {
36738 return f != _snprintf;
36739   ;
36740   return 0;
36741 }
36742 _ACEOF
36743 rm -f conftest.$ac_objext conftest$ac_exeext
36744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36745   (eval $ac_link) 2>conftest.er1
36746   ac_status=$?
36747   grep -v '^ *+' conftest.er1 >conftest.err
36748   rm -f conftest.er1
36749   cat conftest.err >&5
36750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36751   (exit $ac_status); } &&
36752          { ac_try='test -z "$ac_c_werror_flag"
36753                          || test ! -s conftest.err'
36754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36755   (eval $ac_try) 2>&5
36756   ac_status=$?
36757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36758   (exit $ac_status); }; } &&
36759          { ac_try='test -s conftest$ac_exeext'
36760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36761   (eval $ac_try) 2>&5
36762   ac_status=$?
36763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36764   (exit $ac_status); }; }; then
36765   ac_cv_func__snprintf=yes
36766 else
36767   echo "$as_me: failed program was:" >&5
36768 sed 's/^/| /' conftest.$ac_ext >&5
36769
36770 ac_cv_func__snprintf=no
36771 fi
36772 rm -f conftest.err conftest.$ac_objext \
36773       conftest$ac_exeext conftest.$ac_ext
36774 fi
36775 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36776 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
36777 if test $ac_cv_func__snprintf = yes; then
36778   ac_cv_func_snprintf=yes
36779
36780 cat >>confdefs.h <<\_ACEOF
36781 #define snprintf _snprintf
36782 _ACEOF
36783
36784
36785 fi
36786
36787
36788
36789
36790 for ac_func in vsnprintf _vsnprintf
36791 do
36792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36793 echo "$as_me:$LINENO: checking for $ac_func" >&5
36794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36795 if eval "test \"\${$as_ac_var+set}\" = set"; then
36796   echo $ECHO_N "(cached) $ECHO_C" >&6
36797 else
36798   cat >conftest.$ac_ext <<_ACEOF
36799 /* confdefs.h.  */
36800 _ACEOF
36801 cat confdefs.h >>conftest.$ac_ext
36802 cat >>conftest.$ac_ext <<_ACEOF
36803 /* end confdefs.h.  */
36804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36806 #define $ac_func innocuous_$ac_func
36807
36808 /* System header to define __stub macros and hopefully few prototypes,
36809     which can conflict with char $ac_func (); below.
36810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36811     <limits.h> exists even on freestanding compilers.  */
36812
36813 #ifdef __STDC__
36814 # include <limits.h>
36815 #else
36816 # include <assert.h>
36817 #endif
36818
36819 #undef $ac_func
36820
36821 /* Override any gcc2 internal prototype to avoid an error.  */
36822 #ifdef __cplusplus
36823 extern "C"
36824 {
36825 #endif
36826 /* We use char because int might match the return type of a gcc2
36827    builtin and then its argument prototype would still apply.  */
36828 char $ac_func ();
36829 /* The GNU C library defines this for functions which it implements
36830     to always fail with ENOSYS.  Some functions are actually named
36831     something starting with __ and the normal name is an alias.  */
36832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36833 choke me
36834 #else
36835 char (*f) () = $ac_func;
36836 #endif
36837 #ifdef __cplusplus
36838 }
36839 #endif
36840
36841 int
36842 main ()
36843 {
36844 return f != $ac_func;
36845   ;
36846   return 0;
36847 }
36848 _ACEOF
36849 rm -f conftest.$ac_objext conftest$ac_exeext
36850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36851   (eval $ac_link) 2>conftest.er1
36852   ac_status=$?
36853   grep -v '^ *+' conftest.er1 >conftest.err
36854   rm -f conftest.er1
36855   cat conftest.err >&5
36856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36857   (exit $ac_status); } &&
36858          { ac_try='test -z "$ac_c_werror_flag"
36859                          || test ! -s conftest.err'
36860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36861   (eval $ac_try) 2>&5
36862   ac_status=$?
36863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36864   (exit $ac_status); }; } &&
36865          { ac_try='test -s conftest$ac_exeext'
36866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36867   (eval $ac_try) 2>&5
36868   ac_status=$?
36869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870   (exit $ac_status); }; }; then
36871   eval "$as_ac_var=yes"
36872 else
36873   echo "$as_me: failed program was:" >&5
36874 sed 's/^/| /' conftest.$ac_ext >&5
36875
36876 eval "$as_ac_var=no"
36877 fi
36878 rm -f conftest.err conftest.$ac_objext \
36879       conftest$ac_exeext conftest.$ac_ext
36880 fi
36881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36883 if test `eval echo '${'$as_ac_var'}'` = yes; then
36884   cat >>confdefs.h <<_ACEOF
36885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36886 _ACEOF
36887
36888 fi
36889 done
36890
36891
36892 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36893         ac_cv_func_vsnprintf=yes
36894
36895 cat >>confdefs.h <<\_ACEOF
36896 #define vsnprintf _vsnprintf
36897 _ACEOF
36898
36899 fi
36900
36901
36902 for ac_func in vprintf
36903 do
36904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36905 echo "$as_me:$LINENO: checking for $ac_func" >&5
36906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36907 if eval "test \"\${$as_ac_var+set}\" = set"; then
36908   echo $ECHO_N "(cached) $ECHO_C" >&6
36909 else
36910   cat >conftest.$ac_ext <<_ACEOF
36911 /* confdefs.h.  */
36912 _ACEOF
36913 cat confdefs.h >>conftest.$ac_ext
36914 cat >>conftest.$ac_ext <<_ACEOF
36915 /* end confdefs.h.  */
36916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36917    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36918 #define $ac_func innocuous_$ac_func
36919
36920 /* System header to define __stub macros and hopefully few prototypes,
36921     which can conflict with char $ac_func (); below.
36922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36923     <limits.h> exists even on freestanding compilers.  */
36924
36925 #ifdef __STDC__
36926 # include <limits.h>
36927 #else
36928 # include <assert.h>
36929 #endif
36930
36931 #undef $ac_func
36932
36933 /* Override any gcc2 internal prototype to avoid an error.  */
36934 #ifdef __cplusplus
36935 extern "C"
36936 {
36937 #endif
36938 /* We use char because int might match the return type of a gcc2
36939    builtin and then its argument prototype would still apply.  */
36940 char $ac_func ();
36941 /* The GNU C library defines this for functions which it implements
36942     to always fail with ENOSYS.  Some functions are actually named
36943     something starting with __ and the normal name is an alias.  */
36944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36945 choke me
36946 #else
36947 char (*f) () = $ac_func;
36948 #endif
36949 #ifdef __cplusplus
36950 }
36951 #endif
36952
36953 int
36954 main ()
36955 {
36956 return f != $ac_func;
36957   ;
36958   return 0;
36959 }
36960 _ACEOF
36961 rm -f conftest.$ac_objext conftest$ac_exeext
36962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36963   (eval $ac_link) 2>conftest.er1
36964   ac_status=$?
36965   grep -v '^ *+' conftest.er1 >conftest.err
36966   rm -f conftest.er1
36967   cat conftest.err >&5
36968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36969   (exit $ac_status); } &&
36970          { ac_try='test -z "$ac_c_werror_flag"
36971                          || test ! -s conftest.err'
36972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36973   (eval $ac_try) 2>&5
36974   ac_status=$?
36975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36976   (exit $ac_status); }; } &&
36977          { ac_try='test -s conftest$ac_exeext'
36978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36979   (eval $ac_try) 2>&5
36980   ac_status=$?
36981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36982   (exit $ac_status); }; }; then
36983   eval "$as_ac_var=yes"
36984 else
36985   echo "$as_me: failed program was:" >&5
36986 sed 's/^/| /' conftest.$ac_ext >&5
36987
36988 eval "$as_ac_var=no"
36989 fi
36990 rm -f conftest.err conftest.$ac_objext \
36991       conftest$ac_exeext conftest.$ac_ext
36992 fi
36993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36995 if test `eval echo '${'$as_ac_var'}'` = yes; then
36996   cat >>confdefs.h <<_ACEOF
36997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36998 _ACEOF
36999
37000 echo "$as_me:$LINENO: checking for _doprnt" >&5
37001 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
37002 if test "${ac_cv_func__doprnt+set}" = set; then
37003   echo $ECHO_N "(cached) $ECHO_C" >&6
37004 else
37005   cat >conftest.$ac_ext <<_ACEOF
37006 /* confdefs.h.  */
37007 _ACEOF
37008 cat confdefs.h >>conftest.$ac_ext
37009 cat >>conftest.$ac_ext <<_ACEOF
37010 /* end confdefs.h.  */
37011 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
37012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37013 #define _doprnt innocuous__doprnt
37014
37015 /* System header to define __stub macros and hopefully few prototypes,
37016     which can conflict with char _doprnt (); below.
37017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37018     <limits.h> exists even on freestanding compilers.  */
37019
37020 #ifdef __STDC__
37021 # include <limits.h>
37022 #else
37023 # include <assert.h>
37024 #endif
37025
37026 #undef _doprnt
37027
37028 /* Override any gcc2 internal prototype to avoid an error.  */
37029 #ifdef __cplusplus
37030 extern "C"
37031 {
37032 #endif
37033 /* We use char because int might match the return type of a gcc2
37034    builtin and then its argument prototype would still apply.  */
37035 char _doprnt ();
37036 /* The GNU C library defines this for functions which it implements
37037     to always fail with ENOSYS.  Some functions are actually named
37038     something starting with __ and the normal name is an alias.  */
37039 #if defined (__stub__doprnt) || defined (__stub____doprnt)
37040 choke me
37041 #else
37042 char (*f) () = _doprnt;
37043 #endif
37044 #ifdef __cplusplus
37045 }
37046 #endif
37047
37048 int
37049 main ()
37050 {
37051 return f != _doprnt;
37052   ;
37053   return 0;
37054 }
37055 _ACEOF
37056 rm -f conftest.$ac_objext conftest$ac_exeext
37057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37058   (eval $ac_link) 2>conftest.er1
37059   ac_status=$?
37060   grep -v '^ *+' conftest.er1 >conftest.err
37061   rm -f conftest.er1
37062   cat conftest.err >&5
37063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37064   (exit $ac_status); } &&
37065          { ac_try='test -z "$ac_c_werror_flag"
37066                          || test ! -s conftest.err'
37067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37068   (eval $ac_try) 2>&5
37069   ac_status=$?
37070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37071   (exit $ac_status); }; } &&
37072          { ac_try='test -s conftest$ac_exeext'
37073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37074   (eval $ac_try) 2>&5
37075   ac_status=$?
37076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37077   (exit $ac_status); }; }; then
37078   ac_cv_func__doprnt=yes
37079 else
37080   echo "$as_me: failed program was:" >&5
37081 sed 's/^/| /' conftest.$ac_ext >&5
37082
37083 ac_cv_func__doprnt=no
37084 fi
37085 rm -f conftest.err conftest.$ac_objext \
37086       conftest$ac_exeext conftest.$ac_ext
37087 fi
37088 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
37089 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
37090 if test $ac_cv_func__doprnt = yes; then
37091
37092 cat >>confdefs.h <<\_ACEOF
37093 #define HAVE_DOPRNT 1
37094 _ACEOF
37095
37096 fi
37097
37098 fi
37099 done
37100
37101
37102
37103 if test $ac_cv_func_vprintf = yes ; then
37104
37105
37106 for ac_func in snprintf vsnprintf
37107 do
37108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37109 echo "$as_me:$LINENO: checking for $ac_func" >&5
37110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37111 if eval "test \"\${$as_ac_var+set}\" = set"; then
37112   echo $ECHO_N "(cached) $ECHO_C" >&6
37113 else
37114   cat >conftest.$ac_ext <<_ACEOF
37115 /* confdefs.h.  */
37116 _ACEOF
37117 cat confdefs.h >>conftest.$ac_ext
37118 cat >>conftest.$ac_ext <<_ACEOF
37119 /* end confdefs.h.  */
37120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37122 #define $ac_func innocuous_$ac_func
37123
37124 /* System header to define __stub macros and hopefully few prototypes,
37125     which can conflict with char $ac_func (); below.
37126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37127     <limits.h> exists even on freestanding compilers.  */
37128
37129 #ifdef __STDC__
37130 # include <limits.h>
37131 #else
37132 # include <assert.h>
37133 #endif
37134
37135 #undef $ac_func
37136
37137 /* Override any gcc2 internal prototype to avoid an error.  */
37138 #ifdef __cplusplus
37139 extern "C"
37140 {
37141 #endif
37142 /* We use char because int might match the return type of a gcc2
37143    builtin and then its argument prototype would still apply.  */
37144 char $ac_func ();
37145 /* The GNU C library defines this for functions which it implements
37146     to always fail with ENOSYS.  Some functions are actually named
37147     something starting with __ and the normal name is an alias.  */
37148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37149 choke me
37150 #else
37151 char (*f) () = $ac_func;
37152 #endif
37153 #ifdef __cplusplus
37154 }
37155 #endif
37156
37157 int
37158 main ()
37159 {
37160 return f != $ac_func;
37161   ;
37162   return 0;
37163 }
37164 _ACEOF
37165 rm -f conftest.$ac_objext conftest$ac_exeext
37166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37167   (eval $ac_link) 2>conftest.er1
37168   ac_status=$?
37169   grep -v '^ *+' conftest.er1 >conftest.err
37170   rm -f conftest.er1
37171   cat conftest.err >&5
37172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173   (exit $ac_status); } &&
37174          { ac_try='test -z "$ac_c_werror_flag"
37175                          || test ! -s conftest.err'
37176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37177   (eval $ac_try) 2>&5
37178   ac_status=$?
37179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180   (exit $ac_status); }; } &&
37181          { ac_try='test -s conftest$ac_exeext'
37182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37183   (eval $ac_try) 2>&5
37184   ac_status=$?
37185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37186   (exit $ac_status); }; }; then
37187   eval "$as_ac_var=yes"
37188 else
37189   echo "$as_me: failed program was:" >&5
37190 sed 's/^/| /' conftest.$ac_ext >&5
37191
37192 eval "$as_ac_var=no"
37193 fi
37194 rm -f conftest.err conftest.$ac_objext \
37195       conftest$ac_exeext conftest.$ac_ext
37196 fi
37197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37199 if test `eval echo '${'$as_ac_var'}'` = yes; then
37200   cat >>confdefs.h <<_ACEOF
37201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37202 _ACEOF
37203
37204 fi
37205 done
37206
37207 fi
37208
37209
37210
37211
37212
37213
37214
37215
37216
37217
37218
37219
37220
37221
37222
37223
37224
37225
37226
37227
37228
37229
37230
37231
37232
37233
37234
37235
37236
37237
37238
37239
37240
37241
37242
37243
37244
37245
37246
37247
37248
37249
37250
37251
37252
37253
37254
37255
37256
37257
37258
37259
37260
37261
37262
37263
37264
37265 for ac_func in \
37266         bcopy                   \
37267         closesocket             \
37268         chroot                  \
37269         endgrent                \
37270         endpwent                \
37271         fcntl                   \
37272         flock                   \
37273         fstat                   \
37274         getdtablesize           \
37275         geteuid                 \
37276         getgrgid                \
37277         gethostname             \
37278         getpass                 \
37279         getpassphrase           \
37280         getpwuid                \
37281         getpwnam                \
37282         getspnam                \
37283         gettimeofday            \
37284         initgroups              \
37285         inet_ntoa_b             \
37286         ioctl                   \
37287         lockf                   \
37288         memcpy                  \
37289         memmove                 \
37290         memrchr                 \
37291         mkstemp                 \
37292         mktemp                  \
37293         pipe                    \
37294         read                    \
37295         recv                    \
37296         recvfrom                \
37297         setpwfile               \
37298         setgid                  \
37299         setegid                 \
37300         setsid                  \
37301         setuid                  \
37302         seteuid                 \
37303         signal                  \
37304         strdup                  \
37305         strpbrk                 \
37306         strrchr                 \
37307         strsep                  \
37308         strstr                  \
37309         strtol                  \
37310         strtoul                 \
37311         strtoq                  \
37312         strtouq                 \
37313         strtoll                 \
37314         strspn                  \
37315         sysconf                 \
37316         waitpid                 \
37317         wait4                   \
37318         write                   \
37319         send                    \
37320         sendmsg                 \
37321         sendto                  \
37322
37323 do
37324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37325 echo "$as_me:$LINENO: checking for $ac_func" >&5
37326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37327 if eval "test \"\${$as_ac_var+set}\" = set"; then
37328   echo $ECHO_N "(cached) $ECHO_C" >&6
37329 else
37330   cat >conftest.$ac_ext <<_ACEOF
37331 /* confdefs.h.  */
37332 _ACEOF
37333 cat confdefs.h >>conftest.$ac_ext
37334 cat >>conftest.$ac_ext <<_ACEOF
37335 /* end confdefs.h.  */
37336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37338 #define $ac_func innocuous_$ac_func
37339
37340 /* System header to define __stub macros and hopefully few prototypes,
37341     which can conflict with char $ac_func (); below.
37342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37343     <limits.h> exists even on freestanding compilers.  */
37344
37345 #ifdef __STDC__
37346 # include <limits.h>
37347 #else
37348 # include <assert.h>
37349 #endif
37350
37351 #undef $ac_func
37352
37353 /* Override any gcc2 internal prototype to avoid an error.  */
37354 #ifdef __cplusplus
37355 extern "C"
37356 {
37357 #endif
37358 /* We use char because int might match the return type of a gcc2
37359    builtin and then its argument prototype would still apply.  */
37360 char $ac_func ();
37361 /* The GNU C library defines this for functions which it implements
37362     to always fail with ENOSYS.  Some functions are actually named
37363     something starting with __ and the normal name is an alias.  */
37364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37365 choke me
37366 #else
37367 char (*f) () = $ac_func;
37368 #endif
37369 #ifdef __cplusplus
37370 }
37371 #endif
37372
37373 int
37374 main ()
37375 {
37376 return f != $ac_func;
37377   ;
37378   return 0;
37379 }
37380 _ACEOF
37381 rm -f conftest.$ac_objext conftest$ac_exeext
37382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37383   (eval $ac_link) 2>conftest.er1
37384   ac_status=$?
37385   grep -v '^ *+' conftest.er1 >conftest.err
37386   rm -f conftest.er1
37387   cat conftest.err >&5
37388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37389   (exit $ac_status); } &&
37390          { ac_try='test -z "$ac_c_werror_flag"
37391                          || test ! -s conftest.err'
37392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37393   (eval $ac_try) 2>&5
37394   ac_status=$?
37395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37396   (exit $ac_status); }; } &&
37397          { ac_try='test -s conftest$ac_exeext'
37398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37399   (eval $ac_try) 2>&5
37400   ac_status=$?
37401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37402   (exit $ac_status); }; }; then
37403   eval "$as_ac_var=yes"
37404 else
37405   echo "$as_me: failed program was:" >&5
37406 sed 's/^/| /' conftest.$ac_ext >&5
37407
37408 eval "$as_ac_var=no"
37409 fi
37410 rm -f conftest.err conftest.$ac_objext \
37411       conftest$ac_exeext conftest.$ac_ext
37412 fi
37413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37415 if test `eval echo '${'$as_ac_var'}'` = yes; then
37416   cat >>confdefs.h <<_ACEOF
37417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37418 _ACEOF
37419
37420 fi
37421 done
37422
37423
37424
37425
37426 for ac_func in getopt getpeereid
37427 do
37428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37429 echo "$as_me:$LINENO: checking for $ac_func" >&5
37430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37431 if eval "test \"\${$as_ac_var+set}\" = set"; then
37432   echo $ECHO_N "(cached) $ECHO_C" >&6
37433 else
37434   cat >conftest.$ac_ext <<_ACEOF
37435 /* confdefs.h.  */
37436 _ACEOF
37437 cat confdefs.h >>conftest.$ac_ext
37438 cat >>conftest.$ac_ext <<_ACEOF
37439 /* end confdefs.h.  */
37440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37442 #define $ac_func innocuous_$ac_func
37443
37444 /* System header to define __stub macros and hopefully few prototypes,
37445     which can conflict with char $ac_func (); below.
37446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37447     <limits.h> exists even on freestanding compilers.  */
37448
37449 #ifdef __STDC__
37450 # include <limits.h>
37451 #else
37452 # include <assert.h>
37453 #endif
37454
37455 #undef $ac_func
37456
37457 /* Override any gcc2 internal prototype to avoid an error.  */
37458 #ifdef __cplusplus
37459 extern "C"
37460 {
37461 #endif
37462 /* We use char because int might match the return type of a gcc2
37463    builtin and then its argument prototype would still apply.  */
37464 char $ac_func ();
37465 /* The GNU C library defines this for functions which it implements
37466     to always fail with ENOSYS.  Some functions are actually named
37467     something starting with __ and the normal name is an alias.  */
37468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37469 choke me
37470 #else
37471 char (*f) () = $ac_func;
37472 #endif
37473 #ifdef __cplusplus
37474 }
37475 #endif
37476
37477 int
37478 main ()
37479 {
37480 return f != $ac_func;
37481   ;
37482   return 0;
37483 }
37484 _ACEOF
37485 rm -f conftest.$ac_objext conftest$ac_exeext
37486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37487   (eval $ac_link) 2>conftest.er1
37488   ac_status=$?
37489   grep -v '^ *+' conftest.er1 >conftest.err
37490   rm -f conftest.er1
37491   cat conftest.err >&5
37492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37493   (exit $ac_status); } &&
37494          { ac_try='test -z "$ac_c_werror_flag"
37495                          || test ! -s conftest.err'
37496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37497   (eval $ac_try) 2>&5
37498   ac_status=$?
37499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37500   (exit $ac_status); }; } &&
37501          { ac_try='test -s conftest$ac_exeext'
37502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37503   (eval $ac_try) 2>&5
37504   ac_status=$?
37505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37506   (exit $ac_status); }; }; then
37507   eval "$as_ac_var=yes"
37508 else
37509   echo "$as_me: failed program was:" >&5
37510 sed 's/^/| /' conftest.$ac_ext >&5
37511
37512 eval "$as_ac_var=no"
37513 fi
37514 rm -f conftest.err conftest.$ac_objext \
37515       conftest$ac_exeext conftest.$ac_ext
37516 fi
37517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37519 if test `eval echo '${'$as_ac_var'}'` = yes; then
37520   cat >>confdefs.h <<_ACEOF
37521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37522 _ACEOF
37523
37524 else
37525   case $LIBOBJS in
37526     "$ac_func.$ac_objext"   | \
37527   *" $ac_func.$ac_objext"   | \
37528     "$ac_func.$ac_objext "* | \
37529   *" $ac_func.$ac_objext "* ) ;;
37530   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
37531 esac
37532
37533 fi
37534 done
37535
37536
37537
37538 if test "$ac_cv_func_getopt" != yes; then
37539         LIBSRCS="$LIBSRCS getopt.c"
37540 fi
37541
37542 if test "$ac_cv_func_getpeereid" != yes; then
37543
37544 for ac_func in getpeerucred
37545 do
37546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37547 echo "$as_me:$LINENO: checking for $ac_func" >&5
37548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37549 if eval "test \"\${$as_ac_var+set}\" = set"; then
37550   echo $ECHO_N "(cached) $ECHO_C" >&6
37551 else
37552   cat >conftest.$ac_ext <<_ACEOF
37553 /* confdefs.h.  */
37554 _ACEOF
37555 cat confdefs.h >>conftest.$ac_ext
37556 cat >>conftest.$ac_ext <<_ACEOF
37557 /* end confdefs.h.  */
37558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37560 #define $ac_func innocuous_$ac_func
37561
37562 /* System header to define __stub macros and hopefully few prototypes,
37563     which can conflict with char $ac_func (); below.
37564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37565     <limits.h> exists even on freestanding compilers.  */
37566
37567 #ifdef __STDC__
37568 # include <limits.h>
37569 #else
37570 # include <assert.h>
37571 #endif
37572
37573 #undef $ac_func
37574
37575 /* Override any gcc2 internal prototype to avoid an error.  */
37576 #ifdef __cplusplus
37577 extern "C"
37578 {
37579 #endif
37580 /* We use char because int might match the return type of a gcc2
37581    builtin and then its argument prototype would still apply.  */
37582 char $ac_func ();
37583 /* The GNU C library defines this for functions which it implements
37584     to always fail with ENOSYS.  Some functions are actually named
37585     something starting with __ and the normal name is an alias.  */
37586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37587 choke me
37588 #else
37589 char (*f) () = $ac_func;
37590 #endif
37591 #ifdef __cplusplus
37592 }
37593 #endif
37594
37595 int
37596 main ()
37597 {
37598 return f != $ac_func;
37599   ;
37600   return 0;
37601 }
37602 _ACEOF
37603 rm -f conftest.$ac_objext conftest$ac_exeext
37604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37605   (eval $ac_link) 2>conftest.er1
37606   ac_status=$?
37607   grep -v '^ *+' conftest.er1 >conftest.err
37608   rm -f conftest.er1
37609   cat conftest.err >&5
37610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611   (exit $ac_status); } &&
37612          { ac_try='test -z "$ac_c_werror_flag"
37613                          || test ! -s conftest.err'
37614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37615   (eval $ac_try) 2>&5
37616   ac_status=$?
37617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618   (exit $ac_status); }; } &&
37619          { ac_try='test -s conftest$ac_exeext'
37620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37621   (eval $ac_try) 2>&5
37622   ac_status=$?
37623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37624   (exit $ac_status); }; }; then
37625   eval "$as_ac_var=yes"
37626 else
37627   echo "$as_me: failed program was:" >&5
37628 sed 's/^/| /' conftest.$ac_ext >&5
37629
37630 eval "$as_ac_var=no"
37631 fi
37632 rm -f conftest.err conftest.$ac_objext \
37633       conftest$ac_exeext conftest.$ac_ext
37634 fi
37635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37637 if test `eval echo '${'$as_ac_var'}'` = yes; then
37638   cat >>confdefs.h <<_ACEOF
37639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37640 _ACEOF
37641
37642 fi
37643 done
37644
37645         if test "$ac_cv_func_getpeerucred" != yes ; then
37646                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37647 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
37648 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37649   echo $ECHO_N "(cached) $ECHO_C" >&6
37650 else
37651   cat >conftest.$ac_ext <<_ACEOF
37652 /* confdefs.h.  */
37653 _ACEOF
37654 cat confdefs.h >>conftest.$ac_ext
37655 cat >>conftest.$ac_ext <<_ACEOF
37656 /* end confdefs.h.  */
37657 $ac_includes_default
37658 #ifdef HAVE_SYS_SOCKET_H
37659 #include <sys/socket.h>
37660 #endif
37661
37662 int
37663 main ()
37664 {
37665 static struct msghdr ac_aggr;
37666 if (ac_aggr.msg_accrightslen)
37667 return 0;
37668   ;
37669   return 0;
37670 }
37671 _ACEOF
37672 rm -f conftest.$ac_objext
37673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37674   (eval $ac_compile) 2>conftest.er1
37675   ac_status=$?
37676   grep -v '^ *+' conftest.er1 >conftest.err
37677   rm -f conftest.er1
37678   cat conftest.err >&5
37679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37680   (exit $ac_status); } &&
37681          { ac_try='test -z "$ac_c_werror_flag"
37682                          || test ! -s conftest.err'
37683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37684   (eval $ac_try) 2>&5
37685   ac_status=$?
37686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37687   (exit $ac_status); }; } &&
37688          { ac_try='test -s conftest.$ac_objext'
37689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37690   (eval $ac_try) 2>&5
37691   ac_status=$?
37692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37693   (exit $ac_status); }; }; then
37694   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37695 else
37696   echo "$as_me: failed program was:" >&5
37697 sed 's/^/| /' conftest.$ac_ext >&5
37698
37699 cat >conftest.$ac_ext <<_ACEOF
37700 /* confdefs.h.  */
37701 _ACEOF
37702 cat confdefs.h >>conftest.$ac_ext
37703 cat >>conftest.$ac_ext <<_ACEOF
37704 /* end confdefs.h.  */
37705 $ac_includes_default
37706 #ifdef HAVE_SYS_SOCKET_H
37707 #include <sys/socket.h>
37708 #endif
37709
37710 int
37711 main ()
37712 {
37713 static struct msghdr ac_aggr;
37714 if (sizeof ac_aggr.msg_accrightslen)
37715 return 0;
37716   ;
37717   return 0;
37718 }
37719 _ACEOF
37720 rm -f conftest.$ac_objext
37721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37722   (eval $ac_compile) 2>conftest.er1
37723   ac_status=$?
37724   grep -v '^ *+' conftest.er1 >conftest.err
37725   rm -f conftest.er1
37726   cat conftest.err >&5
37727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37728   (exit $ac_status); } &&
37729          { ac_try='test -z "$ac_c_werror_flag"
37730                          || test ! -s conftest.err'
37731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37732   (eval $ac_try) 2>&5
37733   ac_status=$?
37734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37735   (exit $ac_status); }; } &&
37736          { ac_try='test -s conftest.$ac_objext'
37737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37738   (eval $ac_try) 2>&5
37739   ac_status=$?
37740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37741   (exit $ac_status); }; }; then
37742   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37743 else
37744   echo "$as_me: failed program was:" >&5
37745 sed 's/^/| /' conftest.$ac_ext >&5
37746
37747 ac_cv_member_struct_msghdr_msg_accrightslen=no
37748 fi
37749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37750 fi
37751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37752 fi
37753 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37754 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
37755 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37756
37757 cat >>confdefs.h <<_ACEOF
37758 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37759 _ACEOF
37760
37761
37762 fi
37763
37764                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37765                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37766 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
37767 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37768   echo $ECHO_N "(cached) $ECHO_C" >&6
37769 else
37770   cat >conftest.$ac_ext <<_ACEOF
37771 /* confdefs.h.  */
37772 _ACEOF
37773 cat confdefs.h >>conftest.$ac_ext
37774 cat >>conftest.$ac_ext <<_ACEOF
37775 /* end confdefs.h.  */
37776 $ac_includes_default
37777 #ifdef HAVE_SYS_SOCKET_H
37778 #include <sys/socket.h>
37779 #endif
37780
37781 int
37782 main ()
37783 {
37784 static struct msghdr ac_aggr;
37785 if (ac_aggr.msg_control)
37786 return 0;
37787   ;
37788   return 0;
37789 }
37790 _ACEOF
37791 rm -f conftest.$ac_objext
37792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37793   (eval $ac_compile) 2>conftest.er1
37794   ac_status=$?
37795   grep -v '^ *+' conftest.er1 >conftest.err
37796   rm -f conftest.er1
37797   cat conftest.err >&5
37798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37799   (exit $ac_status); } &&
37800          { ac_try='test -z "$ac_c_werror_flag"
37801                          || test ! -s conftest.err'
37802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37803   (eval $ac_try) 2>&5
37804   ac_status=$?
37805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37806   (exit $ac_status); }; } &&
37807          { ac_try='test -s conftest.$ac_objext'
37808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37809   (eval $ac_try) 2>&5
37810   ac_status=$?
37811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37812   (exit $ac_status); }; }; then
37813   ac_cv_member_struct_msghdr_msg_control=yes
37814 else
37815   echo "$as_me: failed program was:" >&5
37816 sed 's/^/| /' conftest.$ac_ext >&5
37817
37818 cat >conftest.$ac_ext <<_ACEOF
37819 /* confdefs.h.  */
37820 _ACEOF
37821 cat confdefs.h >>conftest.$ac_ext
37822 cat >>conftest.$ac_ext <<_ACEOF
37823 /* end confdefs.h.  */
37824 $ac_includes_default
37825 #ifdef HAVE_SYS_SOCKET_H
37826 #include <sys/socket.h>
37827 #endif
37828
37829 int
37830 main ()
37831 {
37832 static struct msghdr ac_aggr;
37833 if (sizeof ac_aggr.msg_control)
37834 return 0;
37835   ;
37836   return 0;
37837 }
37838 _ACEOF
37839 rm -f conftest.$ac_objext
37840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37841   (eval $ac_compile) 2>conftest.er1
37842   ac_status=$?
37843   grep -v '^ *+' conftest.er1 >conftest.err
37844   rm -f conftest.er1
37845   cat conftest.err >&5
37846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37847   (exit $ac_status); } &&
37848          { ac_try='test -z "$ac_c_werror_flag"
37849                          || test ! -s conftest.err'
37850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37851   (eval $ac_try) 2>&5
37852   ac_status=$?
37853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37854   (exit $ac_status); }; } &&
37855          { ac_try='test -s conftest.$ac_objext'
37856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37857   (eval $ac_try) 2>&5
37858   ac_status=$?
37859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37860   (exit $ac_status); }; }; then
37861   ac_cv_member_struct_msghdr_msg_control=yes
37862 else
37863   echo "$as_me: failed program was:" >&5
37864 sed 's/^/| /' conftest.$ac_ext >&5
37865
37866 ac_cv_member_struct_msghdr_msg_control=no
37867 fi
37868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37869 fi
37870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37871 fi
37872 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37873 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
37874 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37875
37876 cat >>confdefs.h <<_ACEOF
37877 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37878 _ACEOF
37879
37880
37881 fi
37882
37883                 fi
37884                 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37885 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
37886 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37887   echo $ECHO_N "(cached) $ECHO_C" >&6
37888 else
37889   cat >conftest.$ac_ext <<_ACEOF
37890 /* confdefs.h.  */
37891 _ACEOF
37892 cat confdefs.h >>conftest.$ac_ext
37893 cat >>conftest.$ac_ext <<_ACEOF
37894 /* end confdefs.h.  */
37895 $ac_includes_default
37896 int
37897 main ()
37898 {
37899 static struct stat ac_aggr;
37900 if (ac_aggr.st_fstype)
37901 return 0;
37902   ;
37903   return 0;
37904 }
37905 _ACEOF
37906 rm -f conftest.$ac_objext
37907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37908   (eval $ac_compile) 2>conftest.er1
37909   ac_status=$?
37910   grep -v '^ *+' conftest.er1 >conftest.err
37911   rm -f conftest.er1
37912   cat conftest.err >&5
37913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37914   (exit $ac_status); } &&
37915          { ac_try='test -z "$ac_c_werror_flag"
37916                          || test ! -s conftest.err'
37917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37918   (eval $ac_try) 2>&5
37919   ac_status=$?
37920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37921   (exit $ac_status); }; } &&
37922          { ac_try='test -s conftest.$ac_objext'
37923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37924   (eval $ac_try) 2>&5
37925   ac_status=$?
37926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927   (exit $ac_status); }; }; then
37928   ac_cv_member_struct_stat_st_fstype=yes
37929 else
37930   echo "$as_me: failed program was:" >&5
37931 sed 's/^/| /' conftest.$ac_ext >&5
37932
37933 cat >conftest.$ac_ext <<_ACEOF
37934 /* confdefs.h.  */
37935 _ACEOF
37936 cat confdefs.h >>conftest.$ac_ext
37937 cat >>conftest.$ac_ext <<_ACEOF
37938 /* end confdefs.h.  */
37939 $ac_includes_default
37940 int
37941 main ()
37942 {
37943 static struct stat ac_aggr;
37944 if (sizeof ac_aggr.st_fstype)
37945 return 0;
37946   ;
37947   return 0;
37948 }
37949 _ACEOF
37950 rm -f conftest.$ac_objext
37951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37952   (eval $ac_compile) 2>conftest.er1
37953   ac_status=$?
37954   grep -v '^ *+' conftest.er1 >conftest.err
37955   rm -f conftest.er1
37956   cat conftest.err >&5
37957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37958   (exit $ac_status); } &&
37959          { ac_try='test -z "$ac_c_werror_flag"
37960                          || test ! -s conftest.err'
37961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37962   (eval $ac_try) 2>&5
37963   ac_status=$?
37964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37965   (exit $ac_status); }; } &&
37966          { ac_try='test -s conftest.$ac_objext'
37967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37968   (eval $ac_try) 2>&5
37969   ac_status=$?
37970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971   (exit $ac_status); }; }; then
37972   ac_cv_member_struct_stat_st_fstype=yes
37973 else
37974   echo "$as_me: failed program was:" >&5
37975 sed 's/^/| /' conftest.$ac_ext >&5
37976
37977 ac_cv_member_struct_stat_st_fstype=no
37978 fi
37979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37980 fi
37981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37982 fi
37983 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37984 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
37985 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37986
37987 cat >>confdefs.h <<_ACEOF
37988 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37989 _ACEOF
37990
37991
37992 fi
37993 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37994 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
37995 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37996   echo $ECHO_N "(cached) $ECHO_C" >&6
37997 else
37998   cat >conftest.$ac_ext <<_ACEOF
37999 /* confdefs.h.  */
38000 _ACEOF
38001 cat confdefs.h >>conftest.$ac_ext
38002 cat >>conftest.$ac_ext <<_ACEOF
38003 /* end confdefs.h.  */
38004 $ac_includes_default
38005 int
38006 main ()
38007 {
38008 static struct stat ac_aggr;
38009 if (ac_aggr.st_vfstype)
38010 return 0;
38011   ;
38012   return 0;
38013 }
38014 _ACEOF
38015 rm -f conftest.$ac_objext
38016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38017   (eval $ac_compile) 2>conftest.er1
38018   ac_status=$?
38019   grep -v '^ *+' conftest.er1 >conftest.err
38020   rm -f conftest.er1
38021   cat conftest.err >&5
38022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023   (exit $ac_status); } &&
38024          { ac_try='test -z "$ac_c_werror_flag"
38025                          || test ! -s conftest.err'
38026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38027   (eval $ac_try) 2>&5
38028   ac_status=$?
38029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38030   (exit $ac_status); }; } &&
38031          { ac_try='test -s conftest.$ac_objext'
38032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38033   (eval $ac_try) 2>&5
38034   ac_status=$?
38035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38036   (exit $ac_status); }; }; then
38037   ac_cv_member_struct_stat_st_vfstype=yes
38038 else
38039   echo "$as_me: failed program was:" >&5
38040 sed 's/^/| /' conftest.$ac_ext >&5
38041
38042 cat >conftest.$ac_ext <<_ACEOF
38043 /* confdefs.h.  */
38044 _ACEOF
38045 cat confdefs.h >>conftest.$ac_ext
38046 cat >>conftest.$ac_ext <<_ACEOF
38047 /* end confdefs.h.  */
38048 $ac_includes_default
38049 int
38050 main ()
38051 {
38052 static struct stat ac_aggr;
38053 if (sizeof ac_aggr.st_vfstype)
38054 return 0;
38055   ;
38056   return 0;
38057 }
38058 _ACEOF
38059 rm -f conftest.$ac_objext
38060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38061   (eval $ac_compile) 2>conftest.er1
38062   ac_status=$?
38063   grep -v '^ *+' conftest.er1 >conftest.err
38064   rm -f conftest.er1
38065   cat conftest.err >&5
38066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38067   (exit $ac_status); } &&
38068          { ac_try='test -z "$ac_c_werror_flag"
38069                          || test ! -s conftest.err'
38070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38071   (eval $ac_try) 2>&5
38072   ac_status=$?
38073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38074   (exit $ac_status); }; } &&
38075          { ac_try='test -s conftest.$ac_objext'
38076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38077   (eval $ac_try) 2>&5
38078   ac_status=$?
38079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38080   (exit $ac_status); }; }; then
38081   ac_cv_member_struct_stat_st_vfstype=yes
38082 else
38083   echo "$as_me: failed program was:" >&5
38084 sed 's/^/| /' conftest.$ac_ext >&5
38085
38086 ac_cv_member_struct_stat_st_vfstype=no
38087 fi
38088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38089 fi
38090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38091 fi
38092 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
38093 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
38094 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
38095
38096 cat >>confdefs.h <<_ACEOF
38097 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
38098 _ACEOF
38099
38100
38101 fi
38102
38103                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
38104                         cat >conftest.$ac_ext <<_ACEOF
38105 struct stat st; char *ptr=st.st_fstype;
38106 _ACEOF
38107 rm -f conftest.$ac_objext
38108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38109   (eval $ac_compile) 2>conftest.er1
38110   ac_status=$?
38111   grep -v '^ *+' conftest.er1 >conftest.err
38112   rm -f conftest.er1
38113   cat conftest.err >&5
38114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115   (exit $ac_status); } &&
38116          { ac_try='test -z "$ac_c_werror_flag"
38117                          || test ! -s conftest.err'
38118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38119   (eval $ac_try) 2>&5
38120   ac_status=$?
38121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38122   (exit $ac_status); }; } &&
38123          { ac_try='test -s conftest.$ac_objext'
38124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38125   (eval $ac_try) 2>&5
38126   ac_status=$?
38127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38128   (exit $ac_status); }; }; then
38129
38130 cat >>confdefs.h <<\_ACEOF
38131 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
38132 _ACEOF
38133
38134 else
38135   echo "$as_me: failed program was:" >&5
38136 sed 's/^/| /' conftest.$ac_ext >&5
38137
38138
38139 cat >>confdefs.h <<\_ACEOF
38140 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
38141 _ACEOF
38142
38143 fi
38144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38145                 fi
38146         fi
38147         LIBSRCS="$LIBSRCS getpeereid.c"
38148 fi
38149
38150 if test "$ac_cv_func_snprintf" != yes ||
38151    test "$ac_cv_func_vsnprintf" != yes; then
38152         if test "$ac_cv_func_snprintf" != yes; then
38153
38154 cat >>confdefs.h <<\_ACEOF
38155 #define snprintf ber_pvt_snprintf
38156 _ACEOF
38157
38158         fi
38159         if test "$ac_cv_func_vsnprintf" != yes; then
38160
38161 cat >>confdefs.h <<\_ACEOF
38162 #define vsnprintf ber_pvt_vsnprintf
38163 _ACEOF
38164
38165         fi
38166 fi
38167
38168
38169 if test "$ol_enable_slapi" != no ; then
38170
38171 for ac_header in ltdl.h
38172 do
38173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38175   echo "$as_me:$LINENO: checking for $ac_header" >&5
38176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38178   echo $ECHO_N "(cached) $ECHO_C" >&6
38179 fi
38180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38182 else
38183   # Is the header compilable?
38184 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38186 cat >conftest.$ac_ext <<_ACEOF
38187 /* confdefs.h.  */
38188 _ACEOF
38189 cat confdefs.h >>conftest.$ac_ext
38190 cat >>conftest.$ac_ext <<_ACEOF
38191 /* end confdefs.h.  */
38192 $ac_includes_default
38193 #include <$ac_header>
38194 _ACEOF
38195 rm -f conftest.$ac_objext
38196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38197   (eval $ac_compile) 2>conftest.er1
38198   ac_status=$?
38199   grep -v '^ *+' conftest.er1 >conftest.err
38200   rm -f conftest.er1
38201   cat conftest.err >&5
38202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38203   (exit $ac_status); } &&
38204          { ac_try='test -z "$ac_c_werror_flag"
38205                          || test ! -s conftest.err'
38206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38207   (eval $ac_try) 2>&5
38208   ac_status=$?
38209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38210   (exit $ac_status); }; } &&
38211          { ac_try='test -s conftest.$ac_objext'
38212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38213   (eval $ac_try) 2>&5
38214   ac_status=$?
38215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38216   (exit $ac_status); }; }; then
38217   ac_header_compiler=yes
38218 else
38219   echo "$as_me: failed program was:" >&5
38220 sed 's/^/| /' conftest.$ac_ext >&5
38221
38222 ac_header_compiler=no
38223 fi
38224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38226 echo "${ECHO_T}$ac_header_compiler" >&6
38227
38228 # Is the header present?
38229 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38231 cat >conftest.$ac_ext <<_ACEOF
38232 /* confdefs.h.  */
38233 _ACEOF
38234 cat confdefs.h >>conftest.$ac_ext
38235 cat >>conftest.$ac_ext <<_ACEOF
38236 /* end confdefs.h.  */
38237 #include <$ac_header>
38238 _ACEOF
38239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38241   ac_status=$?
38242   grep -v '^ *+' conftest.er1 >conftest.err
38243   rm -f conftest.er1
38244   cat conftest.err >&5
38245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38246   (exit $ac_status); } >/dev/null; then
38247   if test -s conftest.err; then
38248     ac_cpp_err=$ac_c_preproc_warn_flag
38249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38250   else
38251     ac_cpp_err=
38252   fi
38253 else
38254   ac_cpp_err=yes
38255 fi
38256 if test -z "$ac_cpp_err"; then
38257   ac_header_preproc=yes
38258 else
38259   echo "$as_me: failed program was:" >&5
38260 sed 's/^/| /' conftest.$ac_ext >&5
38261
38262   ac_header_preproc=no
38263 fi
38264 rm -f conftest.err conftest.$ac_ext
38265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38266 echo "${ECHO_T}$ac_header_preproc" >&6
38267
38268 # So?  What about this header?
38269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38270   yes:no: )
38271     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38275     ac_header_preproc=yes
38276     ;;
38277   no:yes:* )
38278     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38280     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38281 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38282     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38284     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38285 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38288     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38290     (
38291       cat <<\_ASBOX
38292 ## --------------------------------------------- ##
38293 ## Report this to <http://www.openldap.org/its/> ##
38294 ## --------------------------------------------- ##
38295 _ASBOX
38296     ) |
38297       sed "s/^/$as_me: WARNING:     /" >&2
38298     ;;
38299 esac
38300 echo "$as_me:$LINENO: checking for $ac_header" >&5
38301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38303   echo $ECHO_N "(cached) $ECHO_C" >&6
38304 else
38305   eval "$as_ac_Header=\$ac_header_preproc"
38306 fi
38307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38309
38310 fi
38311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38312   cat >>confdefs.h <<_ACEOF
38313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38314 _ACEOF
38315
38316 fi
38317
38318 done
38319
38320
38321         if test $ac_cv_header_ltdl_h != yes ; then
38322                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38323 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38324    { (exit 1); exit 1; }; }
38325         fi
38326         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38327 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
38328 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38329   echo $ECHO_N "(cached) $ECHO_C" >&6
38330 else
38331   ac_check_lib_save_LIBS=$LIBS
38332 LIBS="-lltdl  $LIBS"
38333 cat >conftest.$ac_ext <<_ACEOF
38334 /* confdefs.h.  */
38335 _ACEOF
38336 cat confdefs.h >>conftest.$ac_ext
38337 cat >>conftest.$ac_ext <<_ACEOF
38338 /* end confdefs.h.  */
38339
38340 /* Override any gcc2 internal prototype to avoid an error.  */
38341 #ifdef __cplusplus
38342 extern "C"
38343 #endif
38344 /* We use char because int might match the return type of a gcc2
38345    builtin and then its argument prototype would still apply.  */
38346 char lt_dlinit ();
38347 int
38348 main ()
38349 {
38350 lt_dlinit ();
38351   ;
38352   return 0;
38353 }
38354 _ACEOF
38355 rm -f conftest.$ac_objext conftest$ac_exeext
38356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38357   (eval $ac_link) 2>conftest.er1
38358   ac_status=$?
38359   grep -v '^ *+' conftest.er1 >conftest.err
38360   rm -f conftest.er1
38361   cat conftest.err >&5
38362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38363   (exit $ac_status); } &&
38364          { ac_try='test -z "$ac_c_werror_flag"
38365                          || test ! -s conftest.err'
38366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38367   (eval $ac_try) 2>&5
38368   ac_status=$?
38369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38370   (exit $ac_status); }; } &&
38371          { ac_try='test -s conftest$ac_exeext'
38372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38373   (eval $ac_try) 2>&5
38374   ac_status=$?
38375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38376   (exit $ac_status); }; }; then
38377   ac_cv_lib_ltdl_lt_dlinit=yes
38378 else
38379   echo "$as_me: failed program was:" >&5
38380 sed 's/^/| /' conftest.$ac_ext >&5
38381
38382 ac_cv_lib_ltdl_lt_dlinit=no
38383 fi
38384 rm -f conftest.err conftest.$ac_objext \
38385       conftest$ac_exeext conftest.$ac_ext
38386 LIBS=$ac_check_lib_save_LIBS
38387 fi
38388 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38389 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
38390 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38391
38392                 SLAPI_LIBS=-lltdl
38393                 LIBSLAPI=libslapi.a
38394                 LIBSLAPITOOLS=../libslapi.a
38395
38396 cat >>confdefs.h <<\_ACEOF
38397 #define HAVE_LIBLTDL 1
38398 _ACEOF
38399
38400
38401 else
38402   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38403 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38404    { (exit 1); exit 1; }; }
38405 fi
38406
38407
38408
38409 cat >>confdefs.h <<\_ACEOF
38410 #define LDAP_SLAPI 1
38411 _ACEOF
38412
38413 fi
38414
38415 if test "$ol_enable_debug" != no ; then
38416         if test "$ol_enable_debug" = traditional; then
38417
38418 cat >>confdefs.h <<\_ACEOF
38419 #define OLD_DEBUG 1
38420 _ACEOF
38421
38422         fi
38423
38424 cat >>confdefs.h <<\_ACEOF
38425 #define LDAP_DEBUG 1
38426 _ACEOF
38427
38428 fi
38429 if test "$ol_enable_syslog" = yes ; then
38430
38431 cat >>confdefs.h <<\_ACEOF
38432 #define LDAP_SYSLOG 1
38433 _ACEOF
38434
38435 fi
38436 if test "$ol_enable_proctitle" != no ; then
38437
38438 cat >>confdefs.h <<\_ACEOF
38439 #define LDAP_PROCTITLE 1
38440 _ACEOF
38441
38442 fi
38443 if test "$ol_enable_referrals" != no ; then
38444
38445 cat >>confdefs.h <<\_ACEOF
38446 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38447 _ACEOF
38448
38449 fi
38450 if test "$ol_enable_local" != no; then
38451
38452 cat >>confdefs.h <<\_ACEOF
38453 #define LDAP_PF_LOCAL 1
38454 _ACEOF
38455
38456 fi
38457 if test "$ol_link_ipv6" != no; then
38458
38459 cat >>confdefs.h <<\_ACEOF
38460 #define LDAP_PF_INET6 1
38461 _ACEOF
38462
38463 fi
38464 if test "$ol_enable_cleartext" != no ; then
38465
38466 cat >>confdefs.h <<\_ACEOF
38467 #define SLAPD_CLEARTEXT 1
38468 _ACEOF
38469
38470 fi
38471 if test "$ol_enable_crypt" != no ; then
38472
38473 cat >>confdefs.h <<\_ACEOF
38474 #define SLAPD_CRYPT 1
38475 _ACEOF
38476
38477 fi
38478 if test "$ol_link_spasswd" != no ; then
38479
38480 cat >>confdefs.h <<\_ACEOF
38481 #define SLAPD_SPASSWD 1
38482 _ACEOF
38483
38484 fi
38485 if test "$ol_enable_rlookups" != no ; then
38486
38487 cat >>confdefs.h <<\_ACEOF
38488 #define SLAPD_RLOOKUPS 1
38489 _ACEOF
38490
38491 fi
38492 if test "$ol_enable_aci" != no ; then
38493         if test $ol_enable_dynacl = no ; then
38494                 ol_enable_dynacl=yes
38495                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38496 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38497         fi
38498         if test "$ol_enable_aci" = mod ; then
38499                 MFLAG=SLAPD_MOD_DYNAMIC
38500                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38501 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38502    { (exit 1); exit 1; }; }
38503         else
38504                 MFLAG=SLAPD_MOD_STATIC
38505         fi
38506         WITH_ACI_ENABLED=$ol_enable_aci
38507
38508 cat >>confdefs.h <<_ACEOF
38509 #define SLAPD_ACI_ENABLED $MFLAG
38510 _ACEOF
38511
38512 else
38513         WITH_ACI_ENABLED=no
38514 fi
38515 if test "$ol_enable_dynacl" != no ; then
38516
38517 cat >>confdefs.h <<\_ACEOF
38518 #define SLAP_DYNACL 1
38519 _ACEOF
38520
38521 fi
38522
38523 if test "$ol_link_modules" != no ; then
38524
38525 cat >>confdefs.h <<\_ACEOF
38526 #define SLAPD_MODULES 1
38527 _ACEOF
38528
38529         BUILD_SLAPD=yes
38530         SLAPD_MODULES_LDFLAGS="-dlopen self"
38531 fi
38532
38533
38534 cat >>confdefs.h <<\_ACEOF
38535 #define SLAPD_MOD_STATIC 1
38536 _ACEOF
38537
38538
38539 cat >>confdefs.h <<\_ACEOF
38540 #define SLAPD_MOD_DYNAMIC 2
38541 _ACEOF
38542
38543
38544 if test "$ol_enable_monitor" != no ; then
38545         BUILD_SLAPD=yes
38546         BUILD_MONITOR=$ol_enable_monitor
38547         if test "$ol_enable_monitor" = mod ; then
38548                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38549                 MFLAG=SLAPD_MOD_DYNAMIC
38550         else
38551                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38552                 MFLAG=SLAPD_MOD_STATIC
38553         fi
38554
38555 cat >>confdefs.h <<_ACEOF
38556 #define SLAPD_MONITOR $MFLAG
38557 _ACEOF
38558
38559 fi
38560
38561 if test "$ol_enable_bdb" != no ; then
38562         BUILD_SLAPD=yes
38563         BUILD_BDB=$ol_enable_bdb
38564         if test "$ol_enable_bdb" = mod ; then
38565                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38566                 MFLAG=SLAPD_MOD_DYNAMIC
38567         else
38568                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38569                 MFLAG=SLAPD_MOD_STATIC
38570         fi
38571
38572 cat >>confdefs.h <<_ACEOF
38573 #define SLAPD_BDB $MFLAG
38574 _ACEOF
38575
38576 fi
38577
38578 if test "$ol_enable_dnssrv" != no ; then
38579         BUILD_SLAPD=yes
38580         BUILD_DNSSRV=$ol_enable_dnssrv
38581         if test "$ol_enable_dnssrv" = mod ; then
38582                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38583                 MFLAG=SLAPD_MOD_DYNAMIC
38584         else
38585                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38586                 MFLAG=SLAPD_MOD_STATIC
38587         fi
38588
38589 cat >>confdefs.h <<_ACEOF
38590 #define SLAPD_DNSSRV $MFLAG
38591 _ACEOF
38592
38593 fi
38594
38595 if test "$ol_enable_hdb" != no ; then
38596         BUILD_SLAPD=yes
38597         BUILD_HDB=$ol_enable_hdb
38598         if test "$ol_enable_hdb" = mod ; then
38599                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38600                 MFLAG=SLAPD_MOD_DYNAMIC
38601         else
38602                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38603                 MFLAG=SLAPD_MOD_STATIC
38604         fi
38605
38606 cat >>confdefs.h <<_ACEOF
38607 #define SLAPD_HDB $MFLAG
38608 _ACEOF
38609
38610 fi
38611
38612 if test "$ol_enable_ldap" != no ; then
38613         BUILD_SLAPD=yes
38614         BUILD_LDAP=$ol_enable_ldap
38615         if test "$ol_enable_ldap" = mod ; then
38616                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38617                 MFLAG=SLAPD_MOD_DYNAMIC
38618         else
38619                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38620                 MFLAG=SLAPD_MOD_STATIC
38621         fi
38622
38623 cat >>confdefs.h <<_ACEOF
38624 #define SLAPD_LDAP $MFLAG
38625 _ACEOF
38626
38627 fi
38628
38629 if test "$ol_enable_meta" != no ; then
38630         BUILD_SLAPD=yes
38631         BUILD_META=$ol_enable_meta
38632         BUILD_REWRITE=yes
38633         if test "$ol_enable_meta" = mod ; then
38634                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38635                 MFLAG=SLAPD_MOD_DYNAMIC
38636         else
38637                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38638                 MFLAG=SLAPD_MOD_STATIC
38639         fi
38640
38641 cat >>confdefs.h <<_ACEOF
38642 #define SLAPD_META $MFLAG
38643 _ACEOF
38644
38645 fi
38646
38647 if test "$ol_enable_ndb" != no ; then
38648         BUILD_SLAPD=yes
38649         BUILD_NDB=$ol_enable_ndb
38650         if test "$ol_enable_ndb" = mod ; then
38651                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38652                 MFLAG=SLAPD_MOD_DYNAMIC
38653         else
38654                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38655                 MFLAG=SLAPD_MOD_STATIC
38656         fi
38657
38658 cat >>confdefs.h <<_ACEOF
38659 #define SLAPD_NDB $MFLAG
38660 _ACEOF
38661
38662 fi
38663
38664 if test "$ol_enable_null" != no ; then
38665         BUILD_SLAPD=yes
38666         BUILD_NULL=$ol_enable_null
38667         if test "$ol_enable_null" = mod ; then
38668                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38669                 MFLAG=SLAPD_MOD_DYNAMIC
38670         else
38671                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38672                 MFLAG=SLAPD_MOD_STATIC
38673         fi
38674
38675 cat >>confdefs.h <<_ACEOF
38676 #define SLAPD_NULL $MFLAG
38677 _ACEOF
38678
38679 fi
38680
38681 if test "$ol_enable_passwd" != no ; then
38682         BUILD_SLAPD=yes
38683         BUILD_PASSWD=$ol_enable_passwd
38684         if test "$ol_enable_passwd" = mod ; then
38685                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38686                 MFLAG=SLAPD_MOD_DYNAMIC
38687         else
38688                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38689                 MFLAG=SLAPD_MOD_STATIC
38690         fi
38691
38692 cat >>confdefs.h <<_ACEOF
38693 #define SLAPD_PASSWD $MFLAG
38694 _ACEOF
38695
38696 fi
38697
38698 if test "$ol_link_perl" != no ; then
38699         BUILD_SLAPD=yes
38700         BUILD_PERL=$ol_enable_perl
38701         if test "$ol_enable_perl" = mod ; then
38702                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38703                 MFLAG=SLAPD_MOD_DYNAMIC
38704         else
38705                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38706                 MFLAG=SLAPD_MOD_STATIC
38707         fi
38708
38709 cat >>confdefs.h <<_ACEOF
38710 #define SLAPD_PERL $MFLAG
38711 _ACEOF
38712
38713 fi
38714
38715 if test "$ol_enable_relay" != no ; then
38716         BUILD_SLAPD=yes
38717         BUILD_RELAY=$ol_enable_relay
38718         if test "$ol_enable_relay" = mod ; then
38719                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38720                 MFLAG=SLAPD_MOD_DYNAMIC
38721         else
38722                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38723                 MFLAG=SLAPD_MOD_STATIC
38724         fi
38725
38726 cat >>confdefs.h <<_ACEOF
38727 #define SLAPD_RELAY $MFLAG
38728 _ACEOF
38729
38730 fi
38731
38732 if test "$ol_enable_shell" != no ; then
38733         if test "$ol_link_threads" != no ; then
38734                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38735 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38736         fi
38737         BUILD_SLAPD=yes
38738         BUILD_SHELL=$ol_enable_shell
38739         if test "$ol_enable_shell" = mod ; then
38740                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38741                 MFLAG=SLAPD_MOD_DYNAMIC
38742         else
38743                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38744                 MFLAG=SLAPD_MOD_STATIC
38745         fi
38746
38747 cat >>confdefs.h <<_ACEOF
38748 #define SLAPD_SHELL $MFLAG
38749 _ACEOF
38750
38751 fi
38752
38753 if test "$ol_enable_sock" != no ; then
38754         BUILD_SLAPD=yes
38755         BUILD_SOCK=$ol_enable_sock
38756         if test "$ol_enable_sock" = mod ; then
38757                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38758                 MFLAG=SLAPD_MOD_DYNAMIC
38759         else
38760                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38761                 MFLAG=SLAPD_MOD_STATIC
38762         fi
38763
38764 cat >>confdefs.h <<_ACEOF
38765 #define SLAPD_SOCK $MFLAG
38766 _ACEOF
38767
38768 fi
38769
38770 if test "$ol_link_sql" != no ; then
38771         BUILD_SLAPD=yes
38772         BUILD_SQL=$ol_enable_sql
38773         if test "$ol_enable_sql" = mod; then
38774                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38775                 MFLAG=SLAPD_MOD_DYNAMIC
38776         else
38777                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38778                 MFLAG=SLAPD_MOD_STATIC
38779         fi
38780
38781 cat >>confdefs.h <<_ACEOF
38782 #define SLAPD_SQL $MFLAG
38783 _ACEOF
38784
38785 fi
38786
38787 if test "$ol_enable_accesslog" != no ; then
38788         BUILD_ACCESSLOG=$ol_enable_accesslog
38789         if test "$ol_enable_accesslog" = mod ; then
38790                 MFLAG=SLAPD_MOD_DYNAMIC
38791                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38792         else
38793                 MFLAG=SLAPD_MOD_STATIC
38794                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38795         fi
38796
38797 cat >>confdefs.h <<_ACEOF
38798 #define SLAPD_OVER_ACCESSLOG $MFLAG
38799 _ACEOF
38800
38801 fi
38802
38803 if test "$ol_enable_auditlog" != no ; then
38804         BUILD_AUDITLOG=$ol_enable_auditlog
38805         if test "$ol_enable_auditlog" = mod ; then
38806                 MFLAG=SLAPD_MOD_DYNAMIC
38807                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38808         else
38809                 MFLAG=SLAPD_MOD_STATIC
38810                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38811         fi
38812
38813 cat >>confdefs.h <<_ACEOF
38814 #define SLAPD_OVER_AUDITLOG $MFLAG
38815 _ACEOF
38816
38817 fi
38818
38819 if test "$ol_enable_collect" != no ; then
38820         BUILD_COLLECT=$ol_enable_collect
38821         if test "$ol_enable_collect" = mod ; then
38822                 MFLAG=SLAPD_MOD_DYNAMIC
38823                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38824         else
38825                 MFLAG=SLAPD_MOD_STATIC
38826                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38827         fi
38828
38829 cat >>confdefs.h <<_ACEOF
38830 #define SLAPD_OVER_COLLECT $MFLAG
38831 _ACEOF
38832
38833 fi
38834
38835 if test "$ol_enable_constraint" != no ; then
38836         BUILD_CONSTRAINT=$ol_enable_constraint
38837         if test "$ol_enable_constraint" = mod ; then
38838                 MFLAG=SLAPD_MOD_DYNAMIC
38839                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38840         else
38841                 MFLAG=SLAPD_MOD_STATIC
38842                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38843         fi
38844
38845 cat >>confdefs.h <<_ACEOF
38846 #define SLAPD_OVER_CONSTRAINT $MFLAG
38847 _ACEOF
38848
38849 fi
38850
38851 if test "$ol_enable_dds" != no ; then
38852         BUILD_DDS=$ol_enable_dds
38853         if test "$ol_enable_dds" = mod ; then
38854                 MFLAG=SLAPD_MOD_DYNAMIC
38855                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38856         else
38857                 MFLAG=SLAPD_MOD_STATIC
38858                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38859         fi
38860
38861 cat >>confdefs.h <<_ACEOF
38862 #define SLAPD_OVER_DDS $MFLAG
38863 _ACEOF
38864
38865 fi
38866
38867 if test "$ol_enable_deref" != no ; then
38868         BUILD_DDS=$ol_enable_deref
38869         if test "$ol_enable_deref" = mod ; then
38870                 MFLAG=SLAPD_MOD_DYNAMIC
38871                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38872         else
38873                 MFLAG=SLAPD_MOD_STATIC
38874                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38875         fi
38876
38877 cat >>confdefs.h <<_ACEOF
38878 #define SLAPD_OVER_DEREF $MFLAG
38879 _ACEOF
38880
38881 fi
38882
38883 if test "$ol_enable_dyngroup" != no ; then
38884         BUILD_DYNGROUP=$ol_enable_dyngroup
38885         if test "$ol_enable_dyngroup" = mod ; then
38886                 MFLAG=SLAPD_MOD_DYNAMIC
38887                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38888         else
38889                 MFLAG=SLAPD_MOD_STATIC
38890                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38891         fi
38892
38893 cat >>confdefs.h <<_ACEOF
38894 #define SLAPD_OVER_DYNGROUP $MFLAG
38895 _ACEOF
38896
38897 fi
38898
38899 if test "$ol_enable_dynlist" != no ; then
38900         BUILD_DYNLIST=$ol_enable_dynlist
38901         if test "$ol_enable_dynlist" = mod ; then
38902                 MFLAG=SLAPD_MOD_DYNAMIC
38903                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38904         else
38905                 MFLAG=SLAPD_MOD_STATIC
38906                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38907         fi
38908
38909 cat >>confdefs.h <<_ACEOF
38910 #define SLAPD_OVER_DYNLIST $MFLAG
38911 _ACEOF
38912
38913 fi
38914
38915 if test "$ol_enable_memberof" != no ; then
38916         BUILD_MEMBEROF=$ol_enable_memberof
38917         if test "$ol_enable_memberof" = mod ; then
38918                 MFLAG=SLAPD_MOD_DYNAMIC
38919                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38920         else
38921                 MFLAG=SLAPD_MOD_STATIC
38922                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38923         fi
38924
38925 cat >>confdefs.h <<_ACEOF
38926 #define SLAPD_OVER_MEMBEROF $MFLAG
38927 _ACEOF
38928
38929 fi
38930
38931 if test "$ol_enable_ppolicy" != no ; then
38932         BUILD_PPOLICY=$ol_enable_ppolicy
38933         if test "$ol_enable_ppolicy" = mod ; then
38934                 MFLAG=SLAPD_MOD_DYNAMIC
38935                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38936         else
38937                 MFLAG=SLAPD_MOD_STATIC
38938                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38939         fi
38940
38941 cat >>confdefs.h <<_ACEOF
38942 #define SLAPD_OVER_PPOLICY $MFLAG
38943 _ACEOF
38944
38945 fi
38946
38947 if test "$ol_enable_proxycache" != no ; then
38948         BUILD_PROXYCACHE=$ol_enable_proxycache
38949         if test "$ol_enable_proxycache" = mod ; then
38950                 MFLAG=SLAPD_MOD_DYNAMIC
38951                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38952         else
38953                 MFLAG=SLAPD_MOD_STATIC
38954                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38955         fi
38956
38957 cat >>confdefs.h <<_ACEOF
38958 #define SLAPD_OVER_PROXYCACHE $MFLAG
38959 _ACEOF
38960
38961 fi
38962
38963 if test "$ol_enable_refint" != no ; then
38964         BUILD_REFINT=$ol_enable_refint
38965         if test "$ol_enable_refint" = mod ; then
38966                 MFLAG=SLAPD_MOD_DYNAMIC
38967                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38968         else
38969                 MFLAG=SLAPD_MOD_STATIC
38970                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38971         fi
38972
38973 cat >>confdefs.h <<_ACEOF
38974 #define SLAPD_OVER_REFINT $MFLAG
38975 _ACEOF
38976
38977 fi
38978
38979 if test "$ol_enable_retcode" != no ; then
38980         BUILD_RETCODE=$ol_enable_retcode
38981         if test "$ol_enable_retcode" = mod ; then
38982                 MFLAG=SLAPD_MOD_DYNAMIC
38983                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38984         else
38985                 MFLAG=SLAPD_MOD_STATIC
38986                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38987         fi
38988
38989 cat >>confdefs.h <<_ACEOF
38990 #define SLAPD_OVER_RETCODE $MFLAG
38991 _ACEOF
38992
38993 fi
38994
38995 if test "$ol_enable_rwm" != no ; then
38996         BUILD_REWRITE=yes
38997         BUILD_RWM=$ol_enable_rwm
38998         if test "$ol_enable_rwm" = mod ; then
38999                 MFLAG=SLAPD_MOD_DYNAMIC
39000                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
39001         else
39002                 MFLAG=SLAPD_MOD_STATIC
39003                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
39004         fi
39005
39006 cat >>confdefs.h <<_ACEOF
39007 #define SLAPD_OVER_RWM $MFLAG
39008 _ACEOF
39009
39010 fi
39011
39012 if test "$ol_enable_seqmod" != no ; then
39013         BUILD_SEQMOD=$ol_enable_seqmod
39014         if test "$ol_enable_seqmod" = mod ; then
39015                 MFLAG=SLAPD_MOD_DYNAMIC
39016                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
39017         else
39018                 MFLAG=SLAPD_MOD_STATIC
39019                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
39020         fi
39021
39022 cat >>confdefs.h <<_ACEOF
39023 #define SLAPD_OVER_SEQMOD $MFLAG
39024 _ACEOF
39025
39026 fi
39027
39028 if test "$ol_enable_syncprov" != no ; then
39029         BUILD_SYNCPROV=$ol_enable_syncprov
39030         if test "$ol_enable_syncprov" = mod ; then
39031                 MFLAG=SLAPD_MOD_DYNAMIC
39032                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
39033         else
39034                 MFLAG=SLAPD_MOD_STATIC
39035                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
39036         fi
39037
39038 cat >>confdefs.h <<_ACEOF
39039 #define SLAPD_OVER_SYNCPROV $MFLAG
39040 _ACEOF
39041
39042 fi
39043
39044 if test "$ol_enable_translucent" != no ; then
39045         BUILD_TRANSLUCENT=$ol_enable_translucent
39046         if test "$ol_enable_translucent" = mod ; then
39047                 MFLAG=SLAPD_MOD_DYNAMIC
39048                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
39049         else
39050                 MFLAG=SLAPD_MOD_STATIC
39051                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
39052         fi
39053
39054 cat >>confdefs.h <<_ACEOF
39055 #define SLAPD_OVER_TRANSLUCENT $MFLAG
39056 _ACEOF
39057
39058 fi
39059
39060 if test "$ol_enable_unique" != no ; then
39061         BUILD_UNIQUE=$ol_enable_unique
39062         if test "$ol_enable_unique" = mod ; then
39063                 MFLAG=SLAPD_MOD_DYNAMIC
39064                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
39065         else
39066                 MFLAG=SLAPD_MOD_STATIC
39067                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
39068         fi
39069
39070 cat >>confdefs.h <<_ACEOF
39071 #define SLAPD_OVER_UNIQUE $MFLAG
39072 _ACEOF
39073
39074 fi
39075
39076 if test "$ol_enable_valsort" != no ; then
39077         BUILD_VALSORT=$ol_enable_valsort
39078         if test "$ol_enable_valsort" = mod ; then
39079                 MFLAG=SLAPD_MOD_DYNAMIC
39080                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
39081         else
39082                 MFLAG=SLAPD_MOD_STATIC
39083                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
39084         fi
39085
39086 cat >>confdefs.h <<_ACEOF
39087 #define SLAPD_OVER_VALSORT $MFLAG
39088 _ACEOF
39089
39090 fi
39091
39092 if test "$ol_enable_rewrite" != no ; then
39093
39094 cat >>confdefs.h <<\_ACEOF
39095 #define ENABLE_REWRITE 1
39096 _ACEOF
39097
39098         BUILD_REWRITE=yes
39099 fi
39100
39101 if test "$ol_enable_slapi" != no ; then
39102
39103 cat >>confdefs.h <<\_ACEOF
39104 #define ENABLE_SLAPI 1
39105 _ACEOF
39106
39107         BUILD_SLAPI=yes
39108         SLAPD_SLAPI_DEPEND=libslapi.a
39109 fi
39110
39111
39112
39113 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
39114         PLAT=NT
39115         SLAPD_MODULES_LDFLAGS=
39116 else
39117         PLAT=UNIX
39118 fi
39119
39120
39121
39122
39123
39124
39125
39126
39127
39128
39129
39130
39131
39132
39133
39134
39135
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
39193
39194
39195
39196
39197
39198
39199
39200
39201
39202
39203
39204
39205
39206
39207
39208
39209 # Check whether --with-xxinstall or --without-xxinstall was given.
39210 if test "${with_xxinstall+set}" = set; then
39211   withval="$with_xxinstall"
39212
39213 fi;
39214
39215
39216                                                                                                                                                                                                                                                                                                                                                                                                                 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"
39217
39218
39219           ac_config_commands="$ac_config_commands default"
39220
39221
39222
39223 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39224 # Let make expand exec_prefix.
39225 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39226
39227 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39228 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39229 # trailing colons and then remove the whole line if VPATH becomes empty
39230 # (actually we leave an empty line to preserve line numbers).
39231 if test "x$srcdir" = x.; then
39232   ac_vpsub='/^[  ]*VPATH[        ]*=/{
39233 s/:*\$(srcdir):*/:/;
39234 s/:*\${srcdir}:*/:/;
39235 s/:*@srcdir@:*/:/;
39236 s/^\([^=]*=[     ]*\):*/\1/;
39237 s/:*$//;
39238 s/^[^=]*=[       ]*$//;
39239 }'
39240 fi
39241
39242 DEFS=-DHAVE_CONFIG_H
39243
39244 ac_libobjs=
39245 ac_ltlibobjs=
39246 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39247   # 1. Remove the extension, and $U if already installed.
39248   ac_i=`echo "$ac_i" |
39249          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39250   # 2. Add them.
39251   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39252   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39253 done
39254 LIBOBJS=$ac_libobjs
39255
39256 LTLIBOBJS=$ac_ltlibobjs
39257
39258
39259 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39260   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39261 Usually this means the macro was only invoked conditionally." >&5
39262 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39263 Usually this means the macro was only invoked conditionally." >&2;}
39264    { (exit 1); exit 1; }; }
39265 fi
39266 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39267   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39268 Usually this means the macro was only invoked conditionally." >&5
39269 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39270 Usually this means the macro was only invoked conditionally." >&2;}
39271    { (exit 1); exit 1; }; }
39272 fi
39273 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39274   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39275 Usually this means the macro was only invoked conditionally." >&5
39276 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39277 Usually this means the macro was only invoked conditionally." >&2;}
39278    { (exit 1); exit 1; }; }
39279 fi
39280
39281 : ${CONFIG_STATUS=./config.status}
39282 ac_clean_files_save=$ac_clean_files
39283 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39284 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39285 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39286 cat >$CONFIG_STATUS <<_ACEOF
39287 #! $SHELL
39288 # Generated by $as_me.
39289 # Run this file to recreate the current configuration.
39290 # Compiler output produced by configure, useful for debugging
39291 # configure, is in config.log if it exists.
39292
39293 debug=false
39294 ac_cs_recheck=false
39295 ac_cs_silent=false
39296 SHELL=\${CONFIG_SHELL-$SHELL}
39297 _ACEOF
39298
39299 cat >>$CONFIG_STATUS <<\_ACEOF
39300 ## --------------------- ##
39301 ## M4sh Initialization.  ##
39302 ## --------------------- ##
39303
39304 # Be Bourne compatible
39305 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39306   emulate sh
39307   NULLCMD=:
39308   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39309   # is contrary to our usage.  Disable this feature.
39310   alias -g '${1+"$@"}'='"$@"'
39311 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39312   set -o posix
39313 fi
39314 DUALCASE=1; export DUALCASE # for MKS sh
39315
39316 # Support unset when possible.
39317 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39318   as_unset=unset
39319 else
39320   as_unset=false
39321 fi
39322
39323
39324 # Work around bugs in pre-3.0 UWIN ksh.
39325 $as_unset ENV MAIL MAILPATH
39326 PS1='$ '
39327 PS2='> '
39328 PS4='+ '
39329
39330 # NLS nuisances.
39331 for as_var in \
39332   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39333   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39334   LC_TELEPHONE LC_TIME
39335 do
39336   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39337     eval $as_var=C; export $as_var
39338   else
39339     $as_unset $as_var
39340   fi
39341 done
39342
39343 # Required to use basename.
39344 if expr a : '\(a\)' >/dev/null 2>&1; then
39345   as_expr=expr
39346 else
39347   as_expr=false
39348 fi
39349
39350 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39351   as_basename=basename
39352 else
39353   as_basename=false
39354 fi
39355
39356
39357 # Name of the executable.
39358 as_me=`$as_basename "$0" ||
39359 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39360          X"$0" : 'X\(//\)$' \| \
39361          X"$0" : 'X\(/\)$' \| \
39362          .     : '\(.\)' 2>/dev/null ||
39363 echo X/"$0" |
39364     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39365           /^X\/\(\/\/\)$/{ s//\1/; q; }
39366           /^X\/\(\/\).*/{ s//\1/; q; }
39367           s/.*/./; q'`
39368
39369
39370 # PATH needs CR, and LINENO needs CR and PATH.
39371 # Avoid depending upon Character Ranges.
39372 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39373 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39374 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39375 as_cr_digits='0123456789'
39376 as_cr_alnum=$as_cr_Letters$as_cr_digits
39377
39378 # The user is always right.
39379 if test "${PATH_SEPARATOR+set}" != set; then
39380   echo "#! /bin/sh" >conf$$.sh
39381   echo  "exit 0"   >>conf$$.sh
39382   chmod +x conf$$.sh
39383   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39384     PATH_SEPARATOR=';'
39385   else
39386     PATH_SEPARATOR=:
39387   fi
39388   rm -f conf$$.sh
39389 fi
39390
39391
39392   as_lineno_1=$LINENO
39393   as_lineno_2=$LINENO
39394   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39395   test "x$as_lineno_1" != "x$as_lineno_2" &&
39396   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
39397   # Find who we are.  Look in the path if we contain no path at all
39398   # relative or not.
39399   case $0 in
39400     *[\\/]* ) as_myself=$0 ;;
39401     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39402 for as_dir in $PATH
39403 do
39404   IFS=$as_save_IFS
39405   test -z "$as_dir" && as_dir=.
39406   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39407 done
39408
39409        ;;
39410   esac
39411   # We did not find ourselves, most probably we were run as `sh COMMAND'
39412   # in which case we are not to be found in the path.
39413   if test "x$as_myself" = x; then
39414     as_myself=$0
39415   fi
39416   if test ! -f "$as_myself"; then
39417     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39418 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39419    { (exit 1); exit 1; }; }
39420   fi
39421   case $CONFIG_SHELL in
39422   '')
39423     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39424 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39425 do
39426   IFS=$as_save_IFS
39427   test -z "$as_dir" && as_dir=.
39428   for as_base in sh bash ksh sh5; do
39429          case $as_dir in
39430          /*)
39431            if ("$as_dir/$as_base" -c '
39432   as_lineno_1=$LINENO
39433   as_lineno_2=$LINENO
39434   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39435   test "x$as_lineno_1" != "x$as_lineno_2" &&
39436   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
39437              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39438              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39439              CONFIG_SHELL=$as_dir/$as_base
39440              export CONFIG_SHELL
39441              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39442            fi;;
39443          esac
39444        done
39445 done
39446 ;;
39447   esac
39448
39449   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39450   # uniformly replaced by the line number.  The first 'sed' inserts a
39451   # line-number line before each line; the second 'sed' does the real
39452   # work.  The second script uses 'N' to pair each line-number line
39453   # with the numbered line, and appends trailing '-' during
39454   # substitution so that $LINENO is not a special case at line end.
39455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39456   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
39457   sed '=' <$as_myself |
39458     sed '
39459       N
39460       s,$,-,
39461       : loop
39462       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39463       t loop
39464       s,-$,,
39465       s,^['$as_cr_digits']*\n,,
39466     ' >$as_me.lineno &&
39467   chmod +x $as_me.lineno ||
39468     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39469 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39470    { (exit 1); exit 1; }; }
39471
39472   # Don't try to exec as it changes $[0], causing all sort of problems
39473   # (the dirname of $[0] is not the place where we might find the
39474   # original and so on.  Autoconf is especially sensible to this).
39475   . ./$as_me.lineno
39476   # Exit status is that of the last command.
39477   exit
39478 }
39479
39480
39481 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39482   *c*,-n*) ECHO_N= ECHO_C='
39483 ' ECHO_T='      ' ;;
39484   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39485   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
39486 esac
39487
39488 if expr a : '\(a\)' >/dev/null 2>&1; then
39489   as_expr=expr
39490 else
39491   as_expr=false
39492 fi
39493
39494 rm -f conf$$ conf$$.exe conf$$.file
39495 echo >conf$$.file
39496 if ln -s conf$$.file conf$$ 2>/dev/null; then
39497   # We could just check for DJGPP; but this test a) works b) is more generic
39498   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39499   if test -f conf$$.exe; then
39500     # Don't use ln at all; we don't have any links
39501     as_ln_s='cp -p'
39502   else
39503     as_ln_s='ln -s'
39504   fi
39505 elif ln conf$$.file conf$$ 2>/dev/null; then
39506   as_ln_s=ln
39507 else
39508   as_ln_s='cp -p'
39509 fi
39510 rm -f conf$$ conf$$.exe conf$$.file
39511
39512 if mkdir -p . 2>/dev/null; then
39513   as_mkdir_p=:
39514 else
39515   test -d ./-p && rmdir ./-p
39516   as_mkdir_p=false
39517 fi
39518
39519 as_executable_p="test -f"
39520
39521 # Sed expression to map a string onto a valid CPP name.
39522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39523
39524 # Sed expression to map a string onto a valid variable name.
39525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39526
39527
39528 # IFS
39529 # We need space, tab and new line, in precisely that order.
39530 as_nl='
39531 '
39532 IFS="   $as_nl"
39533
39534 # CDPATH.
39535 $as_unset CDPATH
39536
39537 exec 6>&1
39538
39539 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39540 # report actual input values of CONFIG_FILES etc. instead of their
39541 # values after options handling.  Logging --version etc. is OK.
39542 exec 5>>config.log
39543 {
39544   echo
39545   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39546 ## Running $as_me. ##
39547 _ASBOX
39548 } >&5
39549 cat >&5 <<_CSEOF
39550
39551 This file was extended by $as_me, which was
39552 generated by GNU Autoconf 2.59.  Invocation command line was
39553
39554   CONFIG_FILES    = $CONFIG_FILES
39555   CONFIG_HEADERS  = $CONFIG_HEADERS
39556   CONFIG_LINKS    = $CONFIG_LINKS
39557   CONFIG_COMMANDS = $CONFIG_COMMANDS
39558   $ $0 $@
39559
39560 _CSEOF
39561 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39562 echo >&5
39563 _ACEOF
39564
39565 # Files that config.status was made for.
39566 if test -n "$ac_config_files"; then
39567   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39568 fi
39569
39570 if test -n "$ac_config_headers"; then
39571   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39572 fi
39573
39574 if test -n "$ac_config_links"; then
39575   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39576 fi
39577
39578 if test -n "$ac_config_commands"; then
39579   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39580 fi
39581
39582 cat >>$CONFIG_STATUS <<\_ACEOF
39583
39584 ac_cs_usage="\
39585 \`$as_me' instantiates files from templates according to the
39586 current configuration.
39587
39588 Usage: $0 [OPTIONS] [FILE]...
39589
39590   -h, --help       print this help, then exit
39591   -V, --version    print version number, then exit
39592   -q, --quiet      do not print progress messages
39593   -d, --debug      don't remove temporary files
39594       --recheck    update $as_me by reconfiguring in the same conditions
39595   --file=FILE[:TEMPLATE]
39596                    instantiate the configuration file FILE
39597   --header=FILE[:TEMPLATE]
39598                    instantiate the configuration header FILE
39599
39600 Configuration files:
39601 $config_files
39602
39603 Configuration headers:
39604 $config_headers
39605
39606 Configuration commands:
39607 $config_commands
39608
39609 Report bugs to <bug-autoconf@gnu.org>."
39610 _ACEOF
39611
39612 cat >>$CONFIG_STATUS <<_ACEOF
39613 ac_cs_version="\\
39614 config.status
39615 configured by $0, generated by GNU Autoconf 2.59,
39616   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39617
39618 Copyright (C) 2003 Free Software Foundation, Inc.
39619 This config.status script is free software; the Free Software Foundation
39620 gives unlimited permission to copy, distribute and modify it."
39621 srcdir=$srcdir
39622 INSTALL="$INSTALL"
39623 _ACEOF
39624
39625 cat >>$CONFIG_STATUS <<\_ACEOF
39626 # If no file are specified by the user, then we need to provide default
39627 # value.  By we need to know if files were specified by the user.
39628 ac_need_defaults=:
39629 while test $# != 0
39630 do
39631   case $1 in
39632   --*=*)
39633     ac_option=`expr "x$1" : 'x\([^=]*\)='`
39634     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39635     ac_shift=:
39636     ;;
39637   -*)
39638     ac_option=$1
39639     ac_optarg=$2
39640     ac_shift=shift
39641     ;;
39642   *) # This is not an option, so the user has probably given explicit
39643      # arguments.
39644      ac_option=$1
39645      ac_need_defaults=false;;
39646   esac
39647
39648   case $ac_option in
39649   # Handling of the options.
39650 _ACEOF
39651 cat >>$CONFIG_STATUS <<\_ACEOF
39652   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39653     ac_cs_recheck=: ;;
39654   --version | --vers* | -V )
39655     echo "$ac_cs_version"; exit 0 ;;
39656   --he | --h)
39657     # Conflict between --help and --header
39658     { { echo "$as_me:$LINENO: error: ambiguous option: $1
39659 Try \`$0 --help' for more information." >&5
39660 echo "$as_me: error: ambiguous option: $1
39661 Try \`$0 --help' for more information." >&2;}
39662    { (exit 1); exit 1; }; };;
39663   --help | --hel | -h )
39664     echo "$ac_cs_usage"; exit 0 ;;
39665   --debug | --d* | -d )
39666     debug=: ;;
39667   --file | --fil | --fi | --f )
39668     $ac_shift
39669     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39670     ac_need_defaults=false;;
39671   --header | --heade | --head | --hea )
39672     $ac_shift
39673     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39674     ac_need_defaults=false;;
39675   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39676   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39677     ac_cs_silent=: ;;
39678
39679   # This is an error.
39680   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39681 Try \`$0 --help' for more information." >&5
39682 echo "$as_me: error: unrecognized option: $1
39683 Try \`$0 --help' for more information." >&2;}
39684    { (exit 1); exit 1; }; } ;;
39685
39686   *) ac_config_targets="$ac_config_targets $1" ;;
39687
39688   esac
39689   shift
39690 done
39691
39692 ac_configure_extra_args=
39693
39694 if $ac_cs_silent; then
39695   exec 6>/dev/null
39696   ac_configure_extra_args="$ac_configure_extra_args --silent"
39697 fi
39698
39699 _ACEOF
39700 cat >>$CONFIG_STATUS <<_ACEOF
39701 if \$ac_cs_recheck; then
39702   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39703   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39704 fi
39705
39706 _ACEOF
39707
39708 cat >>$CONFIG_STATUS <<_ACEOF
39709 #
39710 # INIT-COMMANDS section.
39711 #
39712
39713 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39714
39715 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39716 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39717
39718
39719 _ACEOF
39720
39721
39722
39723 cat >>$CONFIG_STATUS <<\_ACEOF
39724 for ac_config_target in $ac_config_targets
39725 do
39726   case "$ac_config_target" in
39727   # Handling of arguments.
39728   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39729   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39730   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39731   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39732   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39733   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39734   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39735   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39736   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39737   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39738   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39739   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39740   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39741   "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" ;;
39742   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39743   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39744   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39745   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39746   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39747   "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" ;;
39748   "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" ;;
39749   "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" ;;
39750   "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" ;;
39751   "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" ;;
39752   "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" ;;
39753   "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" ;;
39754   "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" ;;
39755   "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" ;;
39756   "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" ;;
39757   "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" ;;
39758   "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" ;;
39759   "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" ;;
39760   "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" ;;
39761   "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" ;;
39762   "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" ;;
39763   "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" ;;
39764   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39765   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39766   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39767   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39768   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39769   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39770   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39771   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39772   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39773   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39774 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39775    { (exit 1); exit 1; }; };;
39776   esac
39777 done
39778
39779 # If the user did not use the arguments to specify the items to instantiate,
39780 # then the envvar interface is used.  Set only those that are not.
39781 # We use the long form for the default assignment because of an extremely
39782 # bizarre bug on SunOS 4.1.3.
39783 if $ac_need_defaults; then
39784   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39785   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39786   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39787 fi
39788
39789 # Have a temporary directory for convenience.  Make it in the build tree
39790 # simply because there is no reason to put it here, and in addition,
39791 # creating and moving files from /tmp can sometimes cause problems.
39792 # Create a temporary directory, and hook for its removal unless debugging.
39793 $debug ||
39794 {
39795   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39796   trap '{ (exit 1); exit 1; }' 1 2 13 15
39797 }
39798
39799 # Create a (secure) tmp directory for tmp files.
39800
39801 {
39802   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39803   test -n "$tmp" && test -d "$tmp"
39804 }  ||
39805 {
39806   tmp=./confstat$$-$RANDOM
39807   (umask 077 && mkdir $tmp)
39808 } ||
39809 {
39810    echo "$me: cannot create a temporary directory in ." >&2
39811    { (exit 1); exit 1; }
39812 }
39813
39814 _ACEOF
39815
39816 cat >>$CONFIG_STATUS <<_ACEOF
39817
39818 #
39819 # CONFIG_FILES section.
39820 #
39821
39822 # No need to generate the scripts if there are no CONFIG_FILES.
39823 # This happens for instance when ./config.status config.h
39824 if test -n "\$CONFIG_FILES"; then
39825   # Protect against being on the right side of a sed subst in config.status.
39826   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39827    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39828 s,@SHELL@,$SHELL,;t t
39829 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39830 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39831 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39832 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39833 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39834 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39835 s,@exec_prefix@,$exec_prefix,;t t
39836 s,@prefix@,$prefix,;t t
39837 s,@program_transform_name@,$program_transform_name,;t t
39838 s,@bindir@,$bindir,;t t
39839 s,@sbindir@,$sbindir,;t t
39840 s,@libexecdir@,$libexecdir,;t t
39841 s,@datadir@,$datadir,;t t
39842 s,@sysconfdir@,$sysconfdir,;t t
39843 s,@sharedstatedir@,$sharedstatedir,;t t
39844 s,@localstatedir@,$localstatedir,;t t
39845 s,@libdir@,$libdir,;t t
39846 s,@includedir@,$includedir,;t t
39847 s,@oldincludedir@,$oldincludedir,;t t
39848 s,@infodir@,$infodir,;t t
39849 s,@mandir@,$mandir,;t t
39850 s,@build_alias@,$build_alias,;t t
39851 s,@host_alias@,$host_alias,;t t
39852 s,@target_alias@,$target_alias,;t t
39853 s,@DEFS@,$DEFS,;t t
39854 s,@ECHO_C@,$ECHO_C,;t t
39855 s,@ECHO_N@,$ECHO_N,;t t
39856 s,@ECHO_T@,$ECHO_T,;t t
39857 s,@LIBS@,$LIBS,;t t
39858 s,@build@,$build,;t t
39859 s,@build_cpu@,$build_cpu,;t t
39860 s,@build_vendor@,$build_vendor,;t t
39861 s,@build_os@,$build_os,;t t
39862 s,@host@,$host,;t t
39863 s,@host_cpu@,$host_cpu,;t t
39864 s,@host_vendor@,$host_vendor,;t t
39865 s,@host_os@,$host_os,;t t
39866 s,@target@,$target,;t t
39867 s,@target_cpu@,$target_cpu,;t t
39868 s,@target_vendor@,$target_vendor,;t t
39869 s,@target_os@,$target_os,;t t
39870 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39871 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39872 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39873 s,@CYGPATH_W@,$CYGPATH_W,;t t
39874 s,@PACKAGE@,$PACKAGE,;t t
39875 s,@VERSION@,$VERSION,;t t
39876 s,@ACLOCAL@,$ACLOCAL,;t t
39877 s,@AUTOCONF@,$AUTOCONF,;t t
39878 s,@AUTOMAKE@,$AUTOMAKE,;t t
39879 s,@AUTOHEADER@,$AUTOHEADER,;t t
39880 s,@MAKEINFO@,$MAKEINFO,;t t
39881 s,@install_sh@,$install_sh,;t t
39882 s,@STRIP@,$STRIP,;t t
39883 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39884 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
39885 s,@mkdir_p@,$mkdir_p,;t t
39886 s,@AWK@,$AWK,;t t
39887 s,@SET_MAKE@,$SET_MAKE,;t t
39888 s,@am__leading_dot@,$am__leading_dot,;t t
39889 s,@AMTAR@,$AMTAR,;t t
39890 s,@am__tar@,$am__tar,;t t
39891 s,@am__untar@,$am__untar,;t t
39892 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
39893 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
39894 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
39895 s,@top_builddir@,$top_builddir,;t t
39896 s,@ldap_subdir@,$ldap_subdir,;t t
39897 s,@CC@,$CC,;t t
39898 s,@AR@,$AR,;t t
39899 s,@CFLAGS@,$CFLAGS,;t t
39900 s,@LDFLAGS@,$LDFLAGS,;t t
39901 s,@CPPFLAGS@,$CPPFLAGS,;t t
39902 s,@ac_ct_CC@,$ac_ct_CC,;t t
39903 s,@EXEEXT@,$EXEEXT,;t t
39904 s,@OBJEXT@,$OBJEXT,;t t
39905 s,@DEPDIR@,$DEPDIR,;t t
39906 s,@am__include@,$am__include,;t t
39907 s,@am__quote@,$am__quote,;t t
39908 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
39909 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
39910 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
39911 s,@CCDEPMODE@,$CCDEPMODE,;t t
39912 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
39913 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
39914 s,@EGREP@,$EGREP,;t t
39915 s,@LN_S@,$LN_S,;t t
39916 s,@ECHO@,$ECHO,;t t
39917 s,@ac_ct_AR@,$ac_ct_AR,;t t
39918 s,@RANLIB@,$RANLIB,;t t
39919 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39920 s,@DLLTOOL@,$DLLTOOL,;t t
39921 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
39922 s,@AS@,$AS,;t t
39923 s,@ac_ct_AS@,$ac_ct_AS,;t t
39924 s,@OBJDUMP@,$OBJDUMP,;t t
39925 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
39926 s,@CPP@,$CPP,;t t
39927 s,@LIBTOOL@,$LIBTOOL,;t t
39928 s,@PERLBIN@,$PERLBIN,;t t
39929 s,@OL_MKDEP@,$OL_MKDEP,;t t
39930 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
39931 s,@LTSTATIC@,$LTSTATIC,;t t
39932 s,@MYSQL@,$MYSQL,;t t
39933 s,@LIBOBJS@,$LIBOBJS,;t t
39934 s,@LIBSRCS@,$LIBSRCS,;t t
39935 s,@PLAT@,$PLAT,;t t
39936 s,@WITH_SASL@,$WITH_SASL,;t t
39937 s,@WITH_TLS@,$WITH_TLS,;t t
39938 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
39939 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
39940 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
39941 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
39942 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
39943 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
39944 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
39945 s,@BUILD_BDB@,$BUILD_BDB,;t t
39946 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
39947 s,@BUILD_HDB@,$BUILD_HDB,;t t
39948 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
39949 s,@BUILD_META@,$BUILD_META,;t t
39950 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
39951 s,@BUILD_NDB@,$BUILD_NDB,;t t
39952 s,@BUILD_NULL@,$BUILD_NULL,;t t
39953 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
39954 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
39955 s,@BUILD_PERL@,$BUILD_PERL,;t t
39956 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
39957 s,@BUILD_SOCK@,$BUILD_SOCK,;t t
39958 s,@BUILD_SQL@,$BUILD_SQL,;t t
39959 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
39960 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
39961 s,@BUILD_COLLECT@,$BUILD_COLLECT,;t t
39962 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
39963 s,@BUILD_DDS@,$BUILD_DDS,;t t
39964 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
39965 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
39966 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
39967 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
39968 s,@BUILD_MEMBEROF@,$BUILD_MEMBEROF,;t t
39969 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
39970 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
39971 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
39972 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
39973 s,@BUILD_RWM@,$BUILD_RWM,;t t
39974 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
39975 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
39976 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
39977 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
39978 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
39979 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
39980 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
39981 s,@BDB_LIBS@,$BDB_LIBS,;t t
39982 s,@SLAPD_NDB_LIBS@,$SLAPD_NDB_LIBS,;t t
39983 s,@SLAPD_NDB_INCS@,$SLAPD_NDB_INCS,;t t
39984 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
39985 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
39986 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
39987 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
39988 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
39989 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
39990 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
39991 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
39992 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
39993 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
39994 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
39995 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
39996 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
39997 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
39998 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
39999 s,@SASL_LIBS@,$SASL_LIBS,;t t
40000 s,@GSSAPI_LIBS@,$GSSAPI_LIBS,;t t
40001 s,@TLS_LIBS@,$TLS_LIBS,;t t
40002 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
40003 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
40004 s,@LIBSLAPI@,$LIBSLAPI,;t t
40005 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
40006 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
40007 s,@ICU_LIBS@,$ICU_LIBS,;t t
40008 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
40009 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
40010 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
40011 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
40012 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
40013 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
40014 CEOF
40015
40016 _ACEOF
40017
40018   cat >>$CONFIG_STATUS <<\_ACEOF
40019   # Split the substitutions into bite-sized pieces for seds with
40020   # small command number limits, like on Digital OSF/1 and HP-UX.
40021   ac_max_sed_lines=48
40022   ac_sed_frag=1 # Number of current file.
40023   ac_beg=1 # First line for current file.
40024   ac_end=$ac_max_sed_lines # Line after last line for current file.
40025   ac_more_lines=:
40026   ac_sed_cmds=
40027   while $ac_more_lines; do
40028     if test $ac_beg -gt 1; then
40029       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40030     else
40031       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40032     fi
40033     if test ! -s $tmp/subs.frag; then
40034       ac_more_lines=false
40035     else
40036       # The purpose of the label and of the branching condition is to
40037       # speed up the sed processing (if there are no `@' at all, there
40038       # is no need to browse any of the substitutions).
40039       # These are the two extra sed commands mentioned above.
40040       (echo ':t
40041   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40042       if test -z "$ac_sed_cmds"; then
40043         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
40044       else
40045         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
40046       fi
40047       ac_sed_frag=`expr $ac_sed_frag + 1`
40048       ac_beg=$ac_end
40049       ac_end=`expr $ac_end + $ac_max_sed_lines`
40050     fi
40051   done
40052   if test -z "$ac_sed_cmds"; then
40053     ac_sed_cmds=cat
40054   fi
40055 fi # test -n "$CONFIG_FILES"
40056
40057 _ACEOF
40058 cat >>$CONFIG_STATUS <<\_ACEOF
40059 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
40060   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40061   case $ac_file in
40062   - | *:- | *:-:* ) # input from stdin
40063         cat >$tmp/stdin
40064         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40065         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40066   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40067         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40068   * )   ac_file_in=$ac_file.in ;;
40069   esac
40070
40071   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40072   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40073 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40074          X"$ac_file" : 'X\(//\)[^/]' \| \
40075          X"$ac_file" : 'X\(//\)$' \| \
40076          X"$ac_file" : 'X\(/\)' \| \
40077          .     : '\(.\)' 2>/dev/null ||
40078 echo X"$ac_file" |
40079     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40080           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40081           /^X\(\/\/\)$/{ s//\1/; q; }
40082           /^X\(\/\).*/{ s//\1/; q; }
40083           s/.*/./; q'`
40084   { if $as_mkdir_p; then
40085     mkdir -p "$ac_dir"
40086   else
40087     as_dir="$ac_dir"
40088     as_dirs=
40089     while test ! -d "$as_dir"; do
40090       as_dirs="$as_dir $as_dirs"
40091       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40093          X"$as_dir" : 'X\(//\)[^/]' \| \
40094          X"$as_dir" : 'X\(//\)$' \| \
40095          X"$as_dir" : 'X\(/\)' \| \
40096          .     : '\(.\)' 2>/dev/null ||
40097 echo X"$as_dir" |
40098     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40099           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40100           /^X\(\/\/\)$/{ s//\1/; q; }
40101           /^X\(\/\).*/{ s//\1/; q; }
40102           s/.*/./; q'`
40103     done
40104     test ! -n "$as_dirs" || mkdir $as_dirs
40105   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40106 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40107    { (exit 1); exit 1; }; }; }
40108
40109   ac_builddir=.
40110
40111 if test "$ac_dir" != .; then
40112   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40113   # A "../" for each directory in $ac_dir_suffix.
40114   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40115 else
40116   ac_dir_suffix= ac_top_builddir=
40117 fi
40118
40119 case $srcdir in
40120   .)  # No --srcdir option.  We are building in place.
40121     ac_srcdir=.
40122     if test -z "$ac_top_builddir"; then
40123        ac_top_srcdir=.
40124     else
40125        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40126     fi ;;
40127   [\\/]* | ?:[\\/]* )  # Absolute path.
40128     ac_srcdir=$srcdir$ac_dir_suffix;
40129     ac_top_srcdir=$srcdir ;;
40130   *) # Relative path.
40131     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40132     ac_top_srcdir=$ac_top_builddir$srcdir ;;
40133 esac
40134
40135 # Do not use `cd foo && pwd` to compute absolute paths, because
40136 # the directories may not exist.
40137 case `pwd` in
40138 .) ac_abs_builddir="$ac_dir";;
40139 *)
40140   case "$ac_dir" in
40141   .) ac_abs_builddir=`pwd`;;
40142   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40143   *) ac_abs_builddir=`pwd`/"$ac_dir";;
40144   esac;;
40145 esac
40146 case $ac_abs_builddir in
40147 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40148 *)
40149   case ${ac_top_builddir}. in
40150   .) ac_abs_top_builddir=$ac_abs_builddir;;
40151   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40152   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40153   esac;;
40154 esac
40155 case $ac_abs_builddir in
40156 .) ac_abs_srcdir=$ac_srcdir;;
40157 *)
40158   case $ac_srcdir in
40159   .) ac_abs_srcdir=$ac_abs_builddir;;
40160   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40161   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40162   esac;;
40163 esac
40164 case $ac_abs_builddir in
40165 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40166 *)
40167   case $ac_top_srcdir in
40168   .) ac_abs_top_srcdir=$ac_abs_builddir;;
40169   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40170   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40171   esac;;
40172 esac
40173
40174
40175   case $INSTALL in
40176   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40177   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40178   esac
40179
40180   if test x"$ac_file" != x-; then
40181     { echo "$as_me:$LINENO: creating $ac_file" >&5
40182 echo "$as_me: creating $ac_file" >&6;}
40183     rm -f "$ac_file"
40184   fi
40185   # Let's still pretend it is `configure' which instantiates (i.e., don't
40186   # use $as_me), people would be surprised to read:
40187   #    /* config.h.  Generated by config.status.  */
40188   if test x"$ac_file" = x-; then
40189     configure_input=
40190   else
40191     configure_input="$ac_file.  "
40192   fi
40193   configure_input=$configure_input"Generated from `echo $ac_file_in |
40194                                      sed 's,.*/,,'` by configure."
40195
40196   # First look for the input files in the build tree, otherwise in the
40197   # src tree.
40198   ac_file_inputs=`IFS=:
40199     for f in $ac_file_in; do
40200       case $f in
40201       -) echo $tmp/stdin ;;
40202       [\\/$]*)
40203          # Absolute (can't be DOS-style, as IFS=:)
40204          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40205 echo "$as_me: error: cannot find input file: $f" >&2;}
40206    { (exit 1); exit 1; }; }
40207          echo "$f";;
40208       *) # Relative
40209          if test -f "$f"; then
40210            # Build tree
40211            echo "$f"
40212          elif test -f "$srcdir/$f"; then
40213            # Source tree
40214            echo "$srcdir/$f"
40215          else
40216            # /dev/null tree
40217            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40218 echo "$as_me: error: cannot find input file: $f" >&2;}
40219    { (exit 1); exit 1; }; }
40220          fi;;
40221       esac
40222     done` || { (exit 1); exit 1; }
40223 _ACEOF
40224 cat >>$CONFIG_STATUS <<_ACEOF
40225   sed "$ac_vpsub
40226 $extrasub
40227 _ACEOF
40228 cat >>$CONFIG_STATUS <<\_ACEOF
40229 :t
40230 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40231 s,@configure_input@,$configure_input,;t t
40232 s,@srcdir@,$ac_srcdir,;t t
40233 s,@abs_srcdir@,$ac_abs_srcdir,;t t
40234 s,@top_srcdir@,$ac_top_srcdir,;t t
40235 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40236 s,@builddir@,$ac_builddir,;t t
40237 s,@abs_builddir@,$ac_abs_builddir,;t t
40238 s,@top_builddir@,$ac_top_builddir,;t t
40239 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40240 s,@INSTALL@,$ac_INSTALL,;t t
40241 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40242   rm -f $tmp/stdin
40243   if test x"$ac_file" != x-; then
40244     mv $tmp/out $ac_file
40245   else
40246     cat $tmp/out
40247     rm -f $tmp/out
40248   fi
40249
40250 done
40251 _ACEOF
40252 cat >>$CONFIG_STATUS <<\_ACEOF
40253
40254 #
40255 # CONFIG_HEADER section.
40256 #
40257
40258 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40259 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40260 #
40261 # ac_d sets the value in "#define NAME VALUE" lines.
40262 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
40263 ac_dB='[         ].*$,\1#\2'
40264 ac_dC=' '
40265 ac_dD=',;t'
40266 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40267 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
40268 ac_uB='$,\1#\2define\3'
40269 ac_uC=' '
40270 ac_uD=',;t'
40271
40272 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40273   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40274   case $ac_file in
40275   - | *:- | *:-:* ) # input from stdin
40276         cat >$tmp/stdin
40277         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40278         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40279   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40280         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40281   * )   ac_file_in=$ac_file.in ;;
40282   esac
40283
40284   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40285 echo "$as_me: creating $ac_file" >&6;}
40286
40287   # First look for the input files in the build tree, otherwise in the
40288   # src tree.
40289   ac_file_inputs=`IFS=:
40290     for f in $ac_file_in; do
40291       case $f in
40292       -) echo $tmp/stdin ;;
40293       [\\/$]*)
40294          # Absolute (can't be DOS-style, as IFS=:)
40295          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40296 echo "$as_me: error: cannot find input file: $f" >&2;}
40297    { (exit 1); exit 1; }; }
40298          # Do quote $f, to prevent DOS paths from being IFS'd.
40299          echo "$f";;
40300       *) # Relative
40301          if test -f "$f"; then
40302            # Build tree
40303            echo "$f"
40304          elif test -f "$srcdir/$f"; then
40305            # Source tree
40306            echo "$srcdir/$f"
40307          else
40308            # /dev/null tree
40309            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40310 echo "$as_me: error: cannot find input file: $f" >&2;}
40311    { (exit 1); exit 1; }; }
40312          fi;;
40313       esac
40314     done` || { (exit 1); exit 1; }
40315   # Remove the trailing spaces.
40316   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
40317
40318 _ACEOF
40319
40320 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40321 # `conftest.undefs', that substitutes the proper values into
40322 # config.h.in to produce config.h.  The first handles `#define'
40323 # templates, and the second `#undef' templates.
40324 # And first: Protect against being on the right side of a sed subst in
40325 # config.status.  Protect against being in an unquoted here document
40326 # in config.status.
40327 rm -f conftest.defines conftest.undefs
40328 # Using a here document instead of a string reduces the quoting nightmare.
40329 # Putting comments in sed scripts is not portable.
40330 #
40331 # `end' is used to avoid that the second main sed command (meant for
40332 # 0-ary CPP macros) applies to n-ary macro definitions.
40333 # See the Autoconf documentation for `clear'.
40334 cat >confdef2sed.sed <<\_ACEOF
40335 s/[\\&,]/\\&/g
40336 s,[\\$`],\\&,g
40337 t clear
40338 : clear
40339 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40340 t end
40341 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40342 : end
40343 _ACEOF
40344 # If some macros were called several times there might be several times
40345 # the same #defines, which is useless.  Nevertheless, we may not want to
40346 # sort them, since we want the *last* AC-DEFINE to be honored.
40347 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40348 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40349 rm -f confdef2sed.sed
40350
40351 # This sed command replaces #undef with comments.  This is necessary, for
40352 # example, in the case of _POSIX_SOURCE, which is predefined and required
40353 # on some systems where configure will not decide to define it.
40354 cat >>conftest.undefs <<\_ACEOF
40355 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40356 _ACEOF
40357
40358 # Break up conftest.defines because some shells have a limit on the size
40359 # of here documents, and old seds have small limits too (100 cmds).
40360 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40361 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40362 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40363 echo '  :' >>$CONFIG_STATUS
40364 rm -f conftest.tail
40365 while grep . conftest.defines >/dev/null
40366 do
40367   # Write a limited-size here document to $tmp/defines.sed.
40368   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40369   # Speed up: don't consider the non `#define' lines.
40370   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
40371   # Work around the forget-to-reset-the-flag bug.
40372   echo 't clr' >>$CONFIG_STATUS
40373   echo ': clr' >>$CONFIG_STATUS
40374   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40375   echo 'CEOF
40376   sed -f $tmp/defines.sed $tmp/in >$tmp/out
40377   rm -f $tmp/in
40378   mv $tmp/out $tmp/in
40379 ' >>$CONFIG_STATUS
40380   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40381   rm -f conftest.defines
40382   mv conftest.tail conftest.defines
40383 done
40384 rm -f conftest.defines
40385 echo '  fi # grep' >>$CONFIG_STATUS
40386 echo >>$CONFIG_STATUS
40387
40388 # Break up conftest.undefs because some shells have a limit on the size
40389 # of here documents, and old seds have small limits too (100 cmds).
40390 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
40391 rm -f conftest.tail
40392 while grep . conftest.undefs >/dev/null
40393 do
40394   # Write a limited-size here document to $tmp/undefs.sed.
40395   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40396   # Speed up: don't consider the non `#undef'
40397   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
40398   # Work around the forget-to-reset-the-flag bug.
40399   echo 't clr' >>$CONFIG_STATUS
40400   echo ': clr' >>$CONFIG_STATUS
40401   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40402   echo 'CEOF
40403   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40404   rm -f $tmp/in
40405   mv $tmp/out $tmp/in
40406 ' >>$CONFIG_STATUS
40407   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40408   rm -f conftest.undefs
40409   mv conftest.tail conftest.undefs
40410 done
40411 rm -f conftest.undefs
40412
40413 cat >>$CONFIG_STATUS <<\_ACEOF
40414   # Let's still pretend it is `configure' which instantiates (i.e., don't
40415   # use $as_me), people would be surprised to read:
40416   #    /* config.h.  Generated by config.status.  */
40417   if test x"$ac_file" = x-; then
40418     echo "/* Generated by configure.  */" >$tmp/config.h
40419   else
40420     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
40421   fi
40422   cat $tmp/in >>$tmp/config.h
40423   rm -f $tmp/in
40424   if test x"$ac_file" != x-; then
40425     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40426       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40427 echo "$as_me: $ac_file is unchanged" >&6;}
40428     else
40429       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40431          X"$ac_file" : 'X\(//\)[^/]' \| \
40432          X"$ac_file" : 'X\(//\)$' \| \
40433          X"$ac_file" : 'X\(/\)' \| \
40434          .     : '\(.\)' 2>/dev/null ||
40435 echo X"$ac_file" |
40436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40437           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40438           /^X\(\/\/\)$/{ s//\1/; q; }
40439           /^X\(\/\).*/{ s//\1/; q; }
40440           s/.*/./; q'`
40441       { if $as_mkdir_p; then
40442     mkdir -p "$ac_dir"
40443   else
40444     as_dir="$ac_dir"
40445     as_dirs=
40446     while test ! -d "$as_dir"; do
40447       as_dirs="$as_dir $as_dirs"
40448       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40450          X"$as_dir" : 'X\(//\)[^/]' \| \
40451          X"$as_dir" : 'X\(//\)$' \| \
40452          X"$as_dir" : 'X\(/\)' \| \
40453          .     : '\(.\)' 2>/dev/null ||
40454 echo X"$as_dir" |
40455     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40456           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40457           /^X\(\/\/\)$/{ s//\1/; q; }
40458           /^X\(\/\).*/{ s//\1/; q; }
40459           s/.*/./; q'`
40460     done
40461     test ! -n "$as_dirs" || mkdir $as_dirs
40462   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40463 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40464    { (exit 1); exit 1; }; }; }
40465
40466       rm -f $ac_file
40467       mv $tmp/config.h $ac_file
40468     fi
40469   else
40470     cat $tmp/config.h
40471     rm -f $tmp/config.h
40472   fi
40473 # Compute $ac_file's index in $config_headers.
40474 _am_stamp_count=1
40475 for _am_header in $config_headers :; do
40476   case $_am_header in
40477     $ac_file | $ac_file:* )
40478       break ;;
40479     * )
40480       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40481   esac
40482 done
40483 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40484 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40485          X$ac_file : 'X\(//\)[^/]' \| \
40486          X$ac_file : 'X\(//\)$' \| \
40487          X$ac_file : 'X\(/\)' \| \
40488          .     : '\(.\)' 2>/dev/null ||
40489 echo X$ac_file |
40490     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40491           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40492           /^X\(\/\/\)$/{ s//\1/; q; }
40493           /^X\(\/\).*/{ s//\1/; q; }
40494           s/.*/./; q'`/stamp-h$_am_stamp_count
40495 done
40496 _ACEOF
40497 cat >>$CONFIG_STATUS <<\_ACEOF
40498
40499 #
40500 # CONFIG_COMMANDS section.
40501 #
40502 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40503   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40504   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40505   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40506 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40507          X"$ac_dest" : 'X\(//\)[^/]' \| \
40508          X"$ac_dest" : 'X\(//\)$' \| \
40509          X"$ac_dest" : 'X\(/\)' \| \
40510          .     : '\(.\)' 2>/dev/null ||
40511 echo X"$ac_dest" |
40512     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40513           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40514           /^X\(\/\/\)$/{ s//\1/; q; }
40515           /^X\(\/\).*/{ s//\1/; q; }
40516           s/.*/./; q'`
40517   { if $as_mkdir_p; then
40518     mkdir -p "$ac_dir"
40519   else
40520     as_dir="$ac_dir"
40521     as_dirs=
40522     while test ! -d "$as_dir"; do
40523       as_dirs="$as_dir $as_dirs"
40524       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40525 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40526          X"$as_dir" : 'X\(//\)[^/]' \| \
40527          X"$as_dir" : 'X\(//\)$' \| \
40528          X"$as_dir" : 'X\(/\)' \| \
40529          .     : '\(.\)' 2>/dev/null ||
40530 echo X"$as_dir" |
40531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40532           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40533           /^X\(\/\/\)$/{ s//\1/; q; }
40534           /^X\(\/\).*/{ s//\1/; q; }
40535           s/.*/./; q'`
40536     done
40537     test ! -n "$as_dirs" || mkdir $as_dirs
40538   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40539 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40540    { (exit 1); exit 1; }; }; }
40541
40542   ac_builddir=.
40543
40544 if test "$ac_dir" != .; then
40545   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40546   # A "../" for each directory in $ac_dir_suffix.
40547   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40548 else
40549   ac_dir_suffix= ac_top_builddir=
40550 fi
40551
40552 case $srcdir in
40553   .)  # No --srcdir option.  We are building in place.
40554     ac_srcdir=.
40555     if test -z "$ac_top_builddir"; then
40556        ac_top_srcdir=.
40557     else
40558        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40559     fi ;;
40560   [\\/]* | ?:[\\/]* )  # Absolute path.
40561     ac_srcdir=$srcdir$ac_dir_suffix;
40562     ac_top_srcdir=$srcdir ;;
40563   *) # Relative path.
40564     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40565     ac_top_srcdir=$ac_top_builddir$srcdir ;;
40566 esac
40567
40568 # Do not use `cd foo && pwd` to compute absolute paths, because
40569 # the directories may not exist.
40570 case `pwd` in
40571 .) ac_abs_builddir="$ac_dir";;
40572 *)
40573   case "$ac_dir" in
40574   .) ac_abs_builddir=`pwd`;;
40575   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40576   *) ac_abs_builddir=`pwd`/"$ac_dir";;
40577   esac;;
40578 esac
40579 case $ac_abs_builddir in
40580 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40581 *)
40582   case ${ac_top_builddir}. in
40583   .) ac_abs_top_builddir=$ac_abs_builddir;;
40584   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40585   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40586   esac;;
40587 esac
40588 case $ac_abs_builddir in
40589 .) ac_abs_srcdir=$ac_srcdir;;
40590 *)
40591   case $ac_srcdir in
40592   .) ac_abs_srcdir=$ac_abs_builddir;;
40593   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40594   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40595   esac;;
40596 esac
40597 case $ac_abs_builddir in
40598 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40599 *)
40600   case $ac_top_srcdir in
40601   .) ac_abs_top_srcdir=$ac_abs_builddir;;
40602   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40603   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40604   esac;;
40605 esac
40606
40607
40608   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40609 echo "$as_me: executing $ac_dest commands" >&6;}
40610   case $ac_dest in
40611     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40612   # Strip MF so we end up with the name of the file.
40613   mf=`echo "$mf" | sed -e 's/:.*$//'`
40614   # Check whether this is an Automake generated Makefile or not.
40615   # We used to match only the files named `Makefile.in', but
40616   # some people rename them; so instead we look at the file content.
40617   # Grep'ing the first line is not enough: some people post-process
40618   # each Makefile.in and add a new line on top of each file to say so.
40619   # So let's grep whole file.
40620   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40621     dirpart=`(dirname "$mf") 2>/dev/null ||
40622 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40623          X"$mf" : 'X\(//\)[^/]' \| \
40624          X"$mf" : 'X\(//\)$' \| \
40625          X"$mf" : 'X\(/\)' \| \
40626          .     : '\(.\)' 2>/dev/null ||
40627 echo X"$mf" |
40628     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40629           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40630           /^X\(\/\/\)$/{ s//\1/; q; }
40631           /^X\(\/\).*/{ s//\1/; q; }
40632           s/.*/./; q'`
40633   else
40634     continue
40635   fi
40636   # Extract the definition of DEPDIR, am__include, and am__quote
40637   # from the Makefile without running `make'.
40638   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40639   test -z "$DEPDIR" && continue
40640   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40641   test -z "am__include" && continue
40642   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40643   # When using ansi2knr, U may be empty or an underscore; expand it
40644   U=`sed -n 's/^U = //p' < "$mf"`
40645   # Find all dependency output files, they are included files with
40646   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40647   # simplest approach to changing $(DEPDIR) to its actual value in the
40648   # expansion.
40649   for file in `sed -n "
40650     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40651        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40652     # Make sure the directory exists.
40653     test -f "$dirpart/$file" && continue
40654     fdir=`(dirname "$file") 2>/dev/null ||
40655 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40656          X"$file" : 'X\(//\)[^/]' \| \
40657          X"$file" : 'X\(//\)$' \| \
40658          X"$file" : 'X\(/\)' \| \
40659          .     : '\(.\)' 2>/dev/null ||
40660 echo X"$file" |
40661     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40662           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40663           /^X\(\/\/\)$/{ s//\1/; q; }
40664           /^X\(\/\).*/{ s//\1/; q; }
40665           s/.*/./; q'`
40666     { if $as_mkdir_p; then
40667     mkdir -p $dirpart/$fdir
40668   else
40669     as_dir=$dirpart/$fdir
40670     as_dirs=
40671     while test ! -d "$as_dir"; do
40672       as_dirs="$as_dir $as_dirs"
40673       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40675          X"$as_dir" : 'X\(//\)[^/]' \| \
40676          X"$as_dir" : 'X\(//\)$' \| \
40677          X"$as_dir" : 'X\(/\)' \| \
40678          .     : '\(.\)' 2>/dev/null ||
40679 echo X"$as_dir" |
40680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40681           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40682           /^X\(\/\/\)$/{ s//\1/; q; }
40683           /^X\(\/\).*/{ s//\1/; q; }
40684           s/.*/./; q'`
40685     done
40686     test ! -n "$as_dirs" || mkdir $as_dirs
40687   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
40688 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
40689    { (exit 1); exit 1; }; }; }
40690
40691     # echo "creating $dirpart/$file"
40692     echo '# dummy' > "$dirpart/$file"
40693   done
40694 done
40695  ;;
40696     default )
40697 chmod +x tests/run
40698 date > stamp-h
40699 BACKENDSC="servers/slapd/backends.c"
40700 echo "Making $BACKENDSC"
40701 rm -f $BACKENDSC
40702 cat > $BACKENDSC << ENDX
40703 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40704  *
40705  * Copyright 1998-2009 The OpenLDAP Foundation.
40706  * All rights reserved.
40707  *
40708  * Redistribution and use in source and binary forms, with or without
40709  * modification, are permitted only as authorized by the OpenLDAP
40710  * Public License.
40711  *
40712  * A copy of this license is available in the file LICENSE in the
40713  * top-level directory of the distribution or, alternatively, at
40714  * <http://www.OpenLDAP.org/license.html>.
40715  */
40716 /* This file is automatically generated by configure; please do not edit. */
40717
40718 #include "portable.h"
40719 #include "slap.h"
40720
40721 ENDX
40722 if test "${STATIC_BACKENDS}"; then
40723         for b in config ${STATIC_BACKENDS}; do
40724                 bb=`echo "${b}" | sed -e 's/back-//'`
40725                 cat >> $BACKENDSC << ENDX
40726 extern BI_init ${bb}_back_initialize;
40727 ENDX
40728         done
40729
40730         cat >> $BACKENDSC << ENDX
40731
40732 BackendInfo slap_binfo[] = {
40733 ENDX
40734
40735         for b in config ${STATIC_BACKENDS}; do
40736                 bb=`echo "${b}" | sed -e 's/back-//'`
40737                 echo "    Add ${bb} ..."
40738                 cat >> $BACKENDSC << ENDX
40739         { "${bb}", ${bb}_back_initialize },
40740 ENDX
40741         done
40742
40743         cat >> $BACKENDSC << ENDX
40744         { NULL, NULL },
40745 };
40746
40747 /* end of generated file */
40748 ENDX
40749 fi
40750 OVERLAYSC="servers/slapd/overlays/statover.c"
40751 echo "Making $OVERLAYSC"
40752 rm -f $OVERLAYSC
40753 cat > $OVERLAYSC << ENDX
40754 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40755  *
40756  * Copyright 1998-2009 The OpenLDAP Foundation.
40757  * All rights reserved.
40758  *
40759  * Redistribution and use in source and binary forms, with or without
40760  * modification, are permitted only as authorized by the OpenLDAP
40761  * Public License.
40762  *
40763  * A copy of this license is available in the file LICENSE in the
40764  * top-level directory of the distribution or, alternatively, at
40765  * <http://www.OpenLDAP.org/license.html>.
40766  */
40767 /* This file is automatically generated by configure; please do not edit. */
40768
40769 #include "portable.h"
40770 #include "slap.h"
40771
40772 ENDX
40773 if test "${STATIC_OVERLAYS}"; then
40774         for o in ${STATIC_OVERLAYS}; do
40775                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40776                 cat >> $OVERLAYSC << ENDX
40777 extern OV_init ${oo}_initialize;
40778 ENDX
40779         done
40780 fi
40781
40782 cat >> $OVERLAYSC << ENDX
40783
40784 OverlayInit slap_oinfo[] = {
40785 ENDX
40786
40787 if test "${STATIC_OVERLAYS}"; then
40788         for o in ${STATIC_OVERLAYS}; do
40789                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40790                 echo "    Add ${oo} ..."
40791                 cat >> $OVERLAYSC << ENDX
40792         { "${oo}", ${oo}_initialize },
40793 ENDX
40794         done
40795 fi
40796
40797         cat >> $OVERLAYSC << ENDX
40798         { NULL, NULL },
40799 };
40800
40801 /* end of generated file */
40802 ENDX
40803
40804 if test "${ol_cv_mkdep}" = no; then
40805         echo '(Do not "make depend"; we do not know how to build dependencies)'
40806 else
40807         echo 'Please run "make depend" to build dependencies'
40808 fi
40809  ;;
40810   esac
40811 done
40812 _ACEOF
40813
40814 cat >>$CONFIG_STATUS <<\_ACEOF
40815
40816 { (exit 0); exit 0; }
40817 _ACEOF
40818 chmod +x $CONFIG_STATUS
40819 ac_clean_files=$ac_clean_files_save
40820
40821
40822 # configure is writing to config.log, and then calls config.status.
40823 # config.status does its own redirection, appending to config.log.
40824 # Unfortunately, on DOS this fails, as config.log is still kept open
40825 # by configure, so config.status won't be able to write to it; its
40826 # output is simply discarded.  So we exec the FD to /dev/null,
40827 # effectively closing config.log, so it can be properly (re)opened and
40828 # appended to by config.status.  When coming back to configure, we
40829 # need to make the FD available again.
40830 if test "$no_create" != yes; then
40831   ac_cs_success=:
40832   ac_config_status_args=
40833   test "$silent" = yes &&
40834     ac_config_status_args="$ac_config_status_args --quiet"
40835   exec 5>/dev/null
40836   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40837   exec 5>>config.log
40838   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40839   # would make configure fail if this is the last instruction.
40840   $ac_cs_success || { (exit 1); exit 1; }
40841 fi
40842