]> git.sur5r.net Git - openldap/blob - configure
fix previous commit
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.636 2006/09/05 23:54:54 ando Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293        echo_test_string=`eval $cmd` &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS BDB_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929
930 #
931 # Report the --help message.
932 #
933 if test "$ac_init_help" = "long"; then
934   # Omit some internal or obsolete options to make the list less imposing.
935   # This message is too long to be a string in the A/UX 3.1 sh.
936   cat <<_ACEOF
937 \`configure' configures this package to adapt to many kinds of systems.
938
939 Usage: $0 [OPTION]... [VAR=VALUE]...
940
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE.  See below for descriptions of some of the useful variables.
943
944 Defaults for the options are specified in brackets.
945
946 Configuration:
947   -h, --help              display this help and exit
948       --help=short        display options specific to this package
949       --help=recursive    display the short help of all the included packages
950   -V, --version           display version information and exit
951   -q, --quiet, --silent   do not print \`checking...' messages
952       --cache-file=FILE   cache test results in FILE [disabled]
953   -C, --config-cache      alias for \`--cache-file=config.cache'
954   -n, --no-create         do not create output files
955       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
956
957 _ACEOF
958
959   cat <<_ACEOF
960 Installation directories:
961   --prefix=PREFIX         install architecture-independent files in PREFIX
962                           [$ac_default_prefix]
963   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
964                           [PREFIX]
965
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
970
971 For better control, use the options below.
972
973 Fine tuning of the installation directories:
974   --bindir=DIR           user executables [EPREFIX/bin]
975   --sbindir=DIR          system admin executables [EPREFIX/sbin]
976   --libexecdir=DIR       program executables [EPREFIX/libexec]
977   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
978   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
979   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
980   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
981   --libdir=DIR           object code libraries [EPREFIX/lib]
982   --includedir=DIR       C header files [PREFIX/include]
983   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
984   --infodir=DIR          info documentation [PREFIX/info]
985   --mandir=DIR           man documentation [PREFIX/man]
986 _ACEOF
987
988   cat <<\_ACEOF
989
990 Program names:
991   --program-prefix=PREFIX            prepend PREFIX to installed program names
992   --program-suffix=SUFFIX            append SUFFIX to installed program names
993   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
994
995 System types:
996   --build=BUILD     configure for building on BUILD [guessed]
997   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
998   --target=TARGET   configure for building compilers for TARGET [HOST]
999 _ACEOF
1000 fi
1001
1002 if test -n "$ac_init_help"; then
1003
1004   cat <<\_ACEOF
1005
1006 Optional Features:
1007   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1008   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1009   --enable-debug          enable debugging no|yes|traditional [yes]
1010   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1011   --enable-syslog         enable syslog support [auto]
1012   --enable-proctitle      enable proctitle support [yes]
1013   --enable-ipv6           enable IPv6 support [auto]
1014   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1015
1016 SLAPD (Standalone LDAP Daemon) Options:
1017   --enable-slapd          enable building slapd [yes]
1018     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1019     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1020     --enable-cleartext    enable cleartext passwords [yes]
1021     --enable-crypt        enable crypt(3) passwords [no]
1022     --enable-lmpasswd     enable LAN Manager passwords [no]
1023     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1024     --enable-modules      enable dynamic module support [no]
1025     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1026     --enable-rlookups     enable reverse lookups of client hostnames [no]
1027     --enable-slapi        enable SLAPI support (experimental) [no]
1028     --enable-slp          enable SLPv2 support [no]
1029     --enable-wrappers     enable tcp wrapper support [no]
1030
1031 SLAPD Backend Options:
1032     --enable-backends     enable all available backends no|yes|mod
1033     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1034     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1035     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1036     --enable-ldap         enable ldap backend no|yes|mod [no]
1037     --enable-meta         enable metadirectory backend no|yes|mod [no]
1038     --enable-monitor      enable monitor backend no|yes|mod [yes]
1039     --enable-null         enable null backend no|yes|mod [no]
1040     --enable-passwd       enable passwd backend no|yes|mod [no]
1041     --enable-perl         enable perl backend no|yes|mod [no]
1042     --enable-relay        enable relay backend no|yes|mod [yes]
1043     --enable-shell        enable shell backend no|yes|mod [no]
1044     --enable-sql          enable sql backend no|yes|mod [no]
1045
1046 SLAPD Overlay Options:
1047     --enable-overlays     enable all available overlays no|yes|mod
1048     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1049     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1050     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1051     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1052     --enable-denyop       Deny Operation overlay no|yes|mod [no]
1053     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1054     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1055     --enable-lastmod      Last Modification overlay no|yes|mod [no]
1056     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1057     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1058     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1059     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1060     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1061     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1062     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1063     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1064     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1065     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1066
1067 SLURPD (Replication Daemon) Options:
1068   --enable-slurpd         enable building slurpd [auto]
1069
1070 Library Generation & Linking Options
1071   --enable-static[=PKGS]
1072                           build static libraries [default=yes]
1073   --enable-shared[=PKGS]
1074                           build shared libraries [default=yes]
1075   --enable-fast-install[=PKGS]
1076                           optimize for fast installation [default=yes]
1077   --disable-dependency-tracking  speeds up one-time build
1078   --enable-dependency-tracking   do not reject slow dependency extractors
1079   --disable-libtool-lock  avoid locking (might break parallel builds)
1080
1081 Optional Packages:
1082   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1083   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1084   --with-subdir=DIR       change default subdirectory used for installs
1085   --with-cyrus-sasl       with Cyrus SASL support [auto]
1086   --with-fetch            with fetch(3) URL support [auto]
1087   --with-threads          with threads [auto]
1088   --with-tls              with TLS/SSL support [auto]
1089   --with-yielding-select  with implicitly yielding select [auto]
1090   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1091   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1092   --with-pic              try to use only PIC/non-PIC objects [default=use
1093                           both]
1094   --with-tags[=TAGS]
1095                           include additional configurations [automatic]
1096
1097 See INSTALL file for further details.
1098
1099 Some influential environment variables:
1100   CC          C compiler command
1101   CFLAGS      C compiler flags
1102   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1103               nonstandard directory <lib dir>
1104   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1105               headers in a nonstandard directory <include dir>
1106   CPP         C preprocessor
1107
1108 Use these variables to override the choices made by `configure' or to help
1109 it to find libraries and programs with nonstandard names/locations.
1110
1111 _ACEOF
1112 fi
1113
1114 if test "$ac_init_help" = "recursive"; then
1115   # If there are subdirs, report their specific --help.
1116   ac_popdir=`pwd`
1117   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1118     test -d $ac_dir || continue
1119     ac_builddir=.
1120
1121 if test "$ac_dir" != .; then
1122   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1123   # A "../" for each directory in $ac_dir_suffix.
1124   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1125 else
1126   ac_dir_suffix= ac_top_builddir=
1127 fi
1128
1129 case $srcdir in
1130   .)  # No --srcdir option.  We are building in place.
1131     ac_srcdir=.
1132     if test -z "$ac_top_builddir"; then
1133        ac_top_srcdir=.
1134     else
1135        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1136     fi ;;
1137   [\\/]* | ?:[\\/]* )  # Absolute path.
1138     ac_srcdir=$srcdir$ac_dir_suffix;
1139     ac_top_srcdir=$srcdir ;;
1140   *) # Relative path.
1141     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1142     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1143 esac
1144
1145 # Do not use `cd foo && pwd` to compute absolute paths, because
1146 # the directories may not exist.
1147 case `pwd` in
1148 .) ac_abs_builddir="$ac_dir";;
1149 *)
1150   case "$ac_dir" in
1151   .) ac_abs_builddir=`pwd`;;
1152   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1153   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1154   esac;;
1155 esac
1156 case $ac_abs_builddir in
1157 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 *)
1159   case ${ac_top_builddir}. in
1160   .) ac_abs_top_builddir=$ac_abs_builddir;;
1161   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1162   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1163   esac;;
1164 esac
1165 case $ac_abs_builddir in
1166 .) ac_abs_srcdir=$ac_srcdir;;
1167 *)
1168   case $ac_srcdir in
1169   .) ac_abs_srcdir=$ac_abs_builddir;;
1170   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1171   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1172   esac;;
1173 esac
1174 case $ac_abs_builddir in
1175 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 *)
1177   case $ac_top_srcdir in
1178   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1179   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1180   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1181   esac;;
1182 esac
1183
1184     cd $ac_dir
1185     # Check for guested configure; otherwise get Cygnus style configure.
1186     if test -f $ac_srcdir/configure.gnu; then
1187       echo
1188       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1189     elif test -f $ac_srcdir/configure; then
1190       echo
1191       $SHELL $ac_srcdir/configure  --help=recursive
1192     elif test -f $ac_srcdir/configure.ac ||
1193            test -f $ac_srcdir/configure.in; then
1194       echo
1195       $ac_configure --help
1196     else
1197       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1198     fi
1199     cd $ac_popdir
1200   done
1201 fi
1202
1203 test -n "$ac_init_help" && exit 0
1204 if $ac_init_version; then
1205   cat <<\_ACEOF
1206
1207 Copyright (C) 2003 Free Software Foundation, Inc.
1208 This configure script is free software; the Free Software Foundation
1209 gives unlimited permission to copy, distribute and modify it.
1210
1211 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1212 Restrictions apply, see COPYRIGHT and LICENSE files.
1213 _ACEOF
1214   exit 0
1215 fi
1216 exec 5>config.log
1217 cat >&5 <<_ACEOF
1218 This file contains any messages produced by compilers while
1219 running configure, to aid debugging if configure makes a mistake.
1220
1221 It was created by $as_me, which was
1222 generated by GNU Autoconf 2.59.  Invocation command line was
1223
1224   $ $0 $@
1225
1226 _ACEOF
1227 {
1228 cat <<_ASUNAME
1229 ## --------- ##
1230 ## Platform. ##
1231 ## --------- ##
1232
1233 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1234 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1235 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1236 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1237 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1238
1239 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1240 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1241
1242 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1243 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1244 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1245 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1246 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1247 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1248 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1249
1250 _ASUNAME
1251
1252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1253 for as_dir in $PATH
1254 do
1255   IFS=$as_save_IFS
1256   test -z "$as_dir" && as_dir=.
1257   echo "PATH: $as_dir"
1258 done
1259
1260 } >&5
1261
1262 cat >&5 <<_ACEOF
1263
1264
1265 ## ----------- ##
1266 ## Core tests. ##
1267 ## ----------- ##
1268
1269 _ACEOF
1270
1271
1272 # Keep a trace of the command line.
1273 # Strip out --no-create and --no-recursion so they do not pile up.
1274 # Strip out --silent because we don't want to record it for future runs.
1275 # Also quote any args containing shell meta-characters.
1276 # Make two passes to allow for proper duplicate-argument suppression.
1277 ac_configure_args=
1278 ac_configure_args0=
1279 ac_configure_args1=
1280 ac_sep=
1281 ac_must_keep_next=false
1282 for ac_pass in 1 2
1283 do
1284   for ac_arg
1285   do
1286     case $ac_arg in
1287     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1288     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289     | -silent | --silent | --silen | --sile | --sil)
1290       continue ;;
1291     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1293     esac
1294     case $ac_pass in
1295     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1296     2)
1297       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1298       if test $ac_must_keep_next = true; then
1299         ac_must_keep_next=false # Got value, back to normal.
1300       else
1301         case $ac_arg in
1302           *=* | --config-cache | -C | -disable-* | --disable-* \
1303           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1304           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1305           | -with-* | --with-* | -without-* | --without-* | --x)
1306             case "$ac_configure_args0 " in
1307               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1308             esac
1309             ;;
1310           -* ) ac_must_keep_next=true ;;
1311         esac
1312       fi
1313       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1314       # Get rid of the leading space.
1315       ac_sep=" "
1316       ;;
1317     esac
1318   done
1319 done
1320 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1321 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1322
1323 # When interrupted or exit'd, cleanup temporary files, and complete
1324 # config.log.  We remove comments because anyway the quotes in there
1325 # would cause problems or look ugly.
1326 # WARNING: Be sure not to use single quotes in there, as some shells,
1327 # such as our DU 5.0 friend, will then `close' the trap.
1328 trap 'exit_status=$?
1329   # Save into config.log some information that might help in debugging.
1330   {
1331     echo
1332
1333     cat <<\_ASBOX
1334 ## ---------------- ##
1335 ## Cache variables. ##
1336 ## ---------------- ##
1337 _ASBOX
1338     echo
1339     # The following way of writing the cache mishandles newlines in values,
1340 {
1341   (set) 2>&1 |
1342     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1343     *ac_space=\ *)
1344       sed -n \
1345         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1346           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1347       ;;
1348     *)
1349       sed -n \
1350         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1351       ;;
1352     esac;
1353 }
1354     echo
1355
1356     cat <<\_ASBOX
1357 ## ----------------- ##
1358 ## Output variables. ##
1359 ## ----------------- ##
1360 _ASBOX
1361     echo
1362     for ac_var in $ac_subst_vars
1363     do
1364       eval ac_val=$`echo $ac_var`
1365       echo "$ac_var='"'"'$ac_val'"'"'"
1366     done | sort
1367     echo
1368
1369     if test -n "$ac_subst_files"; then
1370       cat <<\_ASBOX
1371 ## ------------- ##
1372 ## Output files. ##
1373 ## ------------- ##
1374 _ASBOX
1375       echo
1376       for ac_var in $ac_subst_files
1377       do
1378         eval ac_val=$`echo $ac_var`
1379         echo "$ac_var='"'"'$ac_val'"'"'"
1380       done | sort
1381       echo
1382     fi
1383
1384     if test -s confdefs.h; then
1385       cat <<\_ASBOX
1386 ## ----------- ##
1387 ## confdefs.h. ##
1388 ## ----------- ##
1389 _ASBOX
1390       echo
1391       sed "/^$/d" confdefs.h | sort
1392       echo
1393     fi
1394     test "$ac_signal" != 0 &&
1395       echo "$as_me: caught signal $ac_signal"
1396     echo "$as_me: exit $exit_status"
1397   } >&5
1398   rm -f core *.core &&
1399   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1400     exit $exit_status
1401      ' 0
1402 for ac_signal in 1 2 13 15; do
1403   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1404 done
1405 ac_signal=0
1406
1407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1408 rm -rf conftest* confdefs.h
1409 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1410 echo >confdefs.h
1411
1412 # Predefined preprocessor variables.
1413
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_NAME "$PACKAGE_NAME"
1416 _ACEOF
1417
1418
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1421 _ACEOF
1422
1423
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1426 _ACEOF
1427
1428
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_STRING "$PACKAGE_STRING"
1431 _ACEOF
1432
1433
1434 cat >>confdefs.h <<_ACEOF
1435 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1436 _ACEOF
1437
1438
1439 # Let the site file select an alternate cache file if it wants to.
1440 # Prefer explicitly selected file to automatically selected ones.
1441 if test -z "$CONFIG_SITE"; then
1442   if test "x$prefix" != xNONE; then
1443     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1444   else
1445     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1446   fi
1447 fi
1448 for ac_site_file in $CONFIG_SITE; do
1449   if test -r "$ac_site_file"; then
1450     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1451 echo "$as_me: loading site script $ac_site_file" >&6;}
1452     sed 's/^/| /' "$ac_site_file" >&5
1453     . "$ac_site_file"
1454   fi
1455 done
1456
1457
1458 # Check that the precious variables saved in the cache have kept the same
1459 # value.
1460 ac_cache_corrupted=false
1461 for ac_var in `(set) 2>&1 |
1462                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1463   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1464   eval ac_new_set=\$ac_env_${ac_var}_set
1465   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1466   eval ac_new_val="\$ac_env_${ac_var}_value"
1467   case $ac_old_set,$ac_new_set in
1468     set,)
1469       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1470 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1471       ac_cache_corrupted=: ;;
1472     ,set)
1473       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1474 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1475       ac_cache_corrupted=: ;;
1476     ,);;
1477     *)
1478       if test "x$ac_old_val" != "x$ac_new_val"; then
1479         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1480 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1481         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1482 echo "$as_me:   former value:  $ac_old_val" >&2;}
1483         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1484 echo "$as_me:   current value: $ac_new_val" >&2;}
1485         ac_cache_corrupted=:
1486       fi;;
1487   esac
1488   # Pass precious variables to config.status.
1489   if test "$ac_new_set" = set; then
1490     case $ac_new_val in
1491     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1492       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1493     *) ac_arg=$ac_var=$ac_new_val ;;
1494     esac
1495     case " $ac_configure_args " in
1496       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1497       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1498     esac
1499   fi
1500 done
1501 if $ac_cache_corrupted; then
1502   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1503 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1504   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1505 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1506    { (exit 1); exit 1; }; }
1507 fi
1508
1509 ac_ext=c
1510 ac_cpp='$CPP $CPPFLAGS'
1511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557 ac_aux_dir=
1558 for ac_dir in build $srcdir/build; do
1559   if test -f $ac_dir/install-sh; then
1560     ac_aux_dir=$ac_dir
1561     ac_install_sh="$ac_aux_dir/install-sh -c"
1562     break
1563   elif test -f $ac_dir/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/shtool; then
1568     ac_aux_dir=$ac_dir
1569     ac_install_sh="$ac_aux_dir/shtool install -c"
1570     break
1571   fi
1572 done
1573 if test -z "$ac_aux_dir"; then
1574   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1575 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1576    { (exit 1); exit 1; }; }
1577 fi
1578 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1579 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1580 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581
1582 eval `$ac_aux_dir/version.sh`
1583 if test -z "$OL_STRING"; then
1584         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1585 echo "$as_me: error: could not determine version" >&2;}
1586    { (exit 1); exit 1; }; }
1587 fi
1588
1589 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1590         ac_cv_shtool="$ac_aux_dir/shtool"
1591 else
1592         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1593 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1594    { (exit 1); exit 1; }; }
1595 fi
1596
1597 SHTOOL="$ac_cv_shtool"
1598
1599 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1600 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1601
1602 OPENLDAP_CVS=""
1603 if test -d $ac_aux_dir/CVS; then
1604         OPENLDAP_CVS="(from CVS sources) "
1605 fi
1606
1607 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1608
1609 # Make sure we can run config.sub.
1610 $ac_config_sub sun4 >/dev/null 2>&1 ||
1611   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1612 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1613    { (exit 1); exit 1; }; }
1614
1615 echo "$as_me:$LINENO: checking build system type" >&5
1616 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1617 if test "${ac_cv_build+set}" = set; then
1618   echo $ECHO_N "(cached) $ECHO_C" >&6
1619 else
1620   ac_cv_build_alias=$build_alias
1621 test -z "$ac_cv_build_alias" &&
1622   ac_cv_build_alias=`$ac_config_guess`
1623 test -z "$ac_cv_build_alias" &&
1624   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1625 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1626    { (exit 1); exit 1; }; }
1627 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1628   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1630    { (exit 1); exit 1; }; }
1631
1632 fi
1633 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1634 echo "${ECHO_T}$ac_cv_build" >&6
1635 build=$ac_cv_build
1636 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639
1640
1641 echo "$as_me:$LINENO: checking host system type" >&5
1642 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1643 if test "${ac_cv_host+set}" = set; then
1644   echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646   ac_cv_host_alias=$host_alias
1647 test -z "$ac_cv_host_alias" &&
1648   ac_cv_host_alias=$ac_cv_build_alias
1649 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1650   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1651 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1652    { (exit 1); exit 1; }; }
1653
1654 fi
1655 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1656 echo "${ECHO_T}$ac_cv_host" >&6
1657 host=$ac_cv_host
1658 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1659 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1660 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1661
1662
1663 echo "$as_me:$LINENO: checking target system type" >&5
1664 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1665 if test "${ac_cv_target+set}" = set; then
1666   echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668   ac_cv_target_alias=$target_alias
1669 test "x$ac_cv_target_alias" = "x" &&
1670   ac_cv_target_alias=$ac_cv_host_alias
1671 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1672   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1674    { (exit 1); exit 1; }; }
1675
1676 fi
1677 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1678 echo "${ECHO_T}$ac_cv_target" >&6
1679 target=$ac_cv_target
1680 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683
1684
1685 # The aliases save the names the user supplied, while $host etc.
1686 # will get canonicalized.
1687 test -n "$target_alias" &&
1688   test "$program_prefix$program_suffix$program_transform_name" = \
1689     NONENONEs,x,x, &&
1690   program_prefix=${target_alias}-
1691
1692 am__api_version="1.9"
1693 # Find a good install program.  We prefer a C program (faster),
1694 # so one script is as good as another.  But avoid the broken or
1695 # incompatible versions:
1696 # SysV /etc/install, /usr/sbin/install
1697 # SunOS /usr/etc/install
1698 # IRIX /sbin/install
1699 # AIX /bin/install
1700 # AmigaOS /C/install, which installs bootblocks on floppy discs
1701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704 # OS/2's system install, which has a completely different semantic
1705 # ./install, which can be erroneously created by make from ./install.sh.
1706 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1707 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1708 if test -z "$INSTALL"; then
1709 if test "${ac_cv_path_install+set}" = set; then
1710   echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1714 do
1715   IFS=$as_save_IFS
1716   test -z "$as_dir" && as_dir=.
1717   # Account for people who put trailing slashes in PATH elements.
1718 case $as_dir/ in
1719   ./ | .// | /cC/* | \
1720   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1721   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1722   /usr/ucb/* ) ;;
1723   *)
1724     # OSF1 and SCO ODT 3.0 have their own names for install.
1725     # Don't use installbsd from OSF since it installs stuff as root
1726     # by default.
1727     for ac_prog in ginstall scoinst install; do
1728       for ac_exec_ext in '' $ac_executable_extensions; do
1729         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1730           if test $ac_prog = install &&
1731             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732             # AIX install.  It has an incompatible calling convention.
1733             :
1734           elif test $ac_prog = install &&
1735             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736             # program-specific install script used by HP pwplus--don't use.
1737             :
1738           else
1739             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1740             break 3
1741           fi
1742         fi
1743       done
1744     done
1745     ;;
1746 esac
1747 done
1748
1749
1750 fi
1751   if test "${ac_cv_path_install+set}" = set; then
1752     INSTALL=$ac_cv_path_install
1753   else
1754     # As a last resort, use the slow shell script.  We don't cache a
1755     # path for INSTALL within a source directory, because that will
1756     # break other packages using the cache if that directory is
1757     # removed, or if the path is relative.
1758     INSTALL=$ac_install_sh
1759   fi
1760 fi
1761 echo "$as_me:$LINENO: result: $INSTALL" >&5
1762 echo "${ECHO_T}$INSTALL" >&6
1763
1764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1765 # It thinks the first close brace ends the variable substitution.
1766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1767
1768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1769
1770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1771
1772 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1773 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1774 # Just in case
1775 sleep 1
1776 echo timestamp > conftest.file
1777 # Do `set' in a subshell so we don't clobber the current shell's
1778 # arguments.  Must try -L first in case configure is actually a
1779 # symlink; some systems play weird games with the mod time of symlinks
1780 # (eg FreeBSD returns the mod time of the symlink's containing
1781 # directory).
1782 if (
1783    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1784    if test "$*" = "X"; then
1785       # -L didn't work.
1786       set X `ls -t $srcdir/configure conftest.file`
1787    fi
1788    rm -f conftest.file
1789    if test "$*" != "X $srcdir/configure conftest.file" \
1790       && test "$*" != "X conftest.file $srcdir/configure"; then
1791
1792       # If neither matched, then we have a broken ls.  This can happen
1793       # if, for instance, CONFIG_SHELL is bash and it inherits a
1794       # broken ls alias from the environment.  This has actually
1795       # happened.  Such a system could not be considered "sane".
1796       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1797 alias in your environment" >&5
1798 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1799 alias in your environment" >&2;}
1800    { (exit 1); exit 1; }; }
1801    fi
1802
1803    test "$2" = conftest.file
1804    )
1805 then
1806    # Ok.
1807    :
1808 else
1809    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1810 Check your system clock" >&5
1811 echo "$as_me: error: newly created file is older than distributed files!
1812 Check your system clock" >&2;}
1813    { (exit 1); exit 1; }; }
1814 fi
1815 echo "$as_me:$LINENO: result: yes" >&5
1816 echo "${ECHO_T}yes" >&6
1817 test "$program_prefix" != NONE &&
1818   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1819 # Use a double $ so make ignores it.
1820 test "$program_suffix" != NONE &&
1821   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1822 # Double any \ or $.  echo might interpret backslashes.
1823 # By default was `s,x,x', remove it if useless.
1824 cat <<\_ACEOF >conftest.sed
1825 s/[\\$]/&&/g;s/;s,x,x,$//
1826 _ACEOF
1827 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1828 rm conftest.sed
1829
1830 # expand $ac_aux_dir to an absolute path
1831 am_aux_dir=`cd $ac_aux_dir && pwd`
1832
1833 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1834 # Use eval to expand $SHELL
1835 if eval "$MISSING --run true"; then
1836   am_missing_run="$MISSING --run "
1837 else
1838   am_missing_run=
1839   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1840 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1841 fi
1842
1843 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1844   # We used to keeping the `.' as first argument, in order to
1845   # allow $(mkdir_p) to be used without argument.  As in
1846   #   $(mkdir_p) $(somedir)
1847   # where $(somedir) is conditionally defined.  However this is wrong
1848   # for two reasons:
1849   #  1. if the package is installed by a user who cannot write `.'
1850   #     make install will fail,
1851   #  2. the above comment should most certainly read
1852   #     $(mkdir_p) $(DESTDIR)$(somedir)
1853   #     so it does not work when $(somedir) is undefined and
1854   #     $(DESTDIR) is not.
1855   #  To support the latter case, we have to write
1856   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1857   #  so the `.' trick is pointless.
1858   mkdir_p='mkdir -p --'
1859 else
1860   # On NextStep and OpenStep, the `mkdir' command does not
1861   # recognize any option.  It will interpret all options as
1862   # directories to create, and then abort because `.' already
1863   # exists.
1864   for d in ./-p ./--version;
1865   do
1866     test -d $d && rmdir $d
1867   done
1868   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1869   if test -f "$ac_aux_dir/mkinstalldirs"; then
1870     mkdir_p='$(mkinstalldirs)'
1871   else
1872     mkdir_p='$(install_sh) -d'
1873   fi
1874 fi
1875
1876 for ac_prog in gawk mawk nawk awk
1877 do
1878   # Extract the first word of "$ac_prog", so it can be a program name with args.
1879 set dummy $ac_prog; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_AWK+set}" = set; then
1883   echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885   if test -n "$AWK"; then
1886   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891   IFS=$as_save_IFS
1892   test -z "$as_dir" && as_dir=.
1893   for ac_exec_ext in '' $ac_executable_extensions; do
1894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895     ac_cv_prog_AWK="$ac_prog"
1896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897     break 2
1898   fi
1899 done
1900 done
1901
1902 fi
1903 fi
1904 AWK=$ac_cv_prog_AWK
1905 if test -n "$AWK"; then
1906   echo "$as_me:$LINENO: result: $AWK" >&5
1907 echo "${ECHO_T}$AWK" >&6
1908 else
1909   echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1911 fi
1912
1913   test -n "$AWK" && break
1914 done
1915
1916 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1917 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1918 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1919 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1920   echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922   cat >conftest.make <<\_ACEOF
1923 all:
1924         @echo 'ac_maketemp="$(MAKE)"'
1925 _ACEOF
1926 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1927 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1928 if test -n "$ac_maketemp"; then
1929   eval ac_cv_prog_make_${ac_make}_set=yes
1930 else
1931   eval ac_cv_prog_make_${ac_make}_set=no
1932 fi
1933 rm -f conftest.make
1934 fi
1935 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1936   echo "$as_me:$LINENO: result: yes" >&5
1937 echo "${ECHO_T}yes" >&6
1938   SET_MAKE=
1939 else
1940   echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942   SET_MAKE="MAKE=${MAKE-make}"
1943 fi
1944
1945 rm -rf .tst 2>/dev/null
1946 mkdir .tst 2>/dev/null
1947 if test -d .tst; then
1948   am__leading_dot=.
1949 else
1950   am__leading_dot=_
1951 fi
1952 rmdir .tst 2>/dev/null
1953
1954 # test to see if srcdir already configured
1955 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1956    test -f $srcdir/config.status; then
1957   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1958 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961
1962 # test whether we have cygpath
1963 if test -z "$CYGPATH_W"; then
1964   if (cygpath --version) >/dev/null 2>/dev/null; then
1965     CYGPATH_W='cygpath -w'
1966   else
1967     CYGPATH_W=echo
1968   fi
1969 fi
1970
1971
1972 # Define the identity of the package.
1973  PACKAGE=$OL_PACKAGE
1974  VERSION=$OL_VERSION
1975
1976
1977 # Some tools Automake needs.
1978
1979 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1980
1981
1982 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1983
1984
1985 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1986
1987
1988 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1989
1990
1991 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1992
1993 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1994
1995 # Installed binaries are usually stripped using `strip' when the user
1996 # run `make install-strip'.  However `strip' might not be the right
1997 # tool to use in cross-compilation environments, therefore Automake
1998 # will honor the `STRIP' environment variable to overrule this program.
1999 if test "$cross_compiling" != no; then
2000   if test -n "$ac_tool_prefix"; then
2001   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2002 set dummy ${ac_tool_prefix}strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_STRIP+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$STRIP"; then
2009   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024
2025 fi
2026 fi
2027 STRIP=$ac_cv_prog_STRIP
2028 if test -n "$STRIP"; then
2029   echo "$as_me:$LINENO: result: $STRIP" >&5
2030 echo "${ECHO_T}$STRIP" >&6
2031 else
2032   echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2034 fi
2035
2036 fi
2037 if test -z "$ac_cv_prog_STRIP"; then
2038   ac_ct_STRIP=$STRIP
2039   # Extract the first word of "strip", so it can be a program name with args.
2040 set dummy strip; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   if test -n "$ac_ct_STRIP"; then
2047   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052   IFS=$as_save_IFS
2053   test -z "$as_dir" && as_dir=.
2054   for ac_exec_ext in '' $ac_executable_extensions; do
2055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056     ac_cv_prog_ac_ct_STRIP="strip"
2057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058     break 2
2059   fi
2060 done
2061 done
2062
2063   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2064 fi
2065 fi
2066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2067 if test -n "$ac_ct_STRIP"; then
2068   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2069 echo "${ECHO_T}$ac_ct_STRIP" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075   STRIP=$ac_ct_STRIP
2076 else
2077   STRIP="$ac_cv_prog_STRIP"
2078 fi
2079
2080 fi
2081 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2082
2083 # We need awk for the "check" target.  The system "awk" is bad on
2084 # some platforms.
2085 # Always define AMTAR for backward compatibility.
2086
2087 AMTAR=${AMTAR-"${am_missing_run}tar"}
2088
2089 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2090
2091
2092
2093
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define OPENLDAP_PACKAGE "$PACKAGE"
2097 _ACEOF
2098
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define OPENLDAP_VERSION "$VERSION"
2102 _ACEOF
2103
2104
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define LDAP_VENDOR_VERSION $OL_API_INC
2108 _ACEOF
2109
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2113 _ACEOF
2114
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2118 _ACEOF
2119
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2123 _ACEOF
2124
2125
2126 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2127
2128 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2129
2130 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2131
2132
2133
2134
2135
2136
2137
2138           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2139
2140           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2141
2142           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2143
2144
2145 echo "$as_me:$LINENO: checking configure arguments" >&5
2146 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2147
2148
2149 top_builddir=`pwd`
2150
2151 ldap_subdir="/openldap"
2152
2153
2154 # Check whether --with-subdir or --without-subdir was given.
2155 if test "${with_subdir+set}" = set; then
2156   withval="$with_subdir"
2157   case "$withval" in
2158         no) ldap_subdir=""
2159                 ;;
2160         yes)
2161                 ;;
2162         /*|\\*)
2163                 ldap_subdir="$withval"
2164                 ;;
2165         *)
2166                 ldap_subdir="/$withval"
2167                 ;;
2168 esac
2169
2170 fi;
2171
2172 # OpenLDAP --enable-debug
2173
2174         # Check whether --enable-debug or --disable-debug was given.
2175 if test "${enable_debug+set}" = set; then
2176   enableval="$enable_debug"
2177
2178         ol_arg=invalid
2179         for ol_val in no yes traditional ; do
2180                 if test "$enableval" = "$ol_val" ; then
2181                         ol_arg="$ol_val"
2182                 fi
2183         done
2184         if test "$ol_arg" = "invalid" ; then
2185                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2186 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2187    { (exit 1); exit 1; }; }
2188         fi
2189         ol_enable_debug="$ol_arg"
2190
2191 else
2192         ol_enable_debug=yes
2193 fi;
2194 # end --enable-debug
2195 # OpenLDAP --enable-dynamic
2196
2197         # Check whether --enable-dynamic or --disable-dynamic was given.
2198 if test "${enable_dynamic+set}" = set; then
2199   enableval="$enable_dynamic"
2200
2201         ol_arg=invalid
2202         for ol_val in auto yes no ; do
2203                 if test "$enableval" = "$ol_val" ; then
2204                         ol_arg="$ol_val"
2205                 fi
2206         done
2207         if test "$ol_arg" = "invalid" ; then
2208                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2209 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2210    { (exit 1); exit 1; }; }
2211         fi
2212         ol_enable_dynamic="$ol_arg"
2213
2214 else
2215         ol_enable_dynamic=no
2216 fi;
2217 # end --enable-dynamic
2218 # OpenLDAP --enable-syslog
2219
2220         # Check whether --enable-syslog or --disable-syslog was given.
2221 if test "${enable_syslog+set}" = set; then
2222   enableval="$enable_syslog"
2223
2224         ol_arg=invalid
2225         for ol_val in auto yes no ; do
2226                 if test "$enableval" = "$ol_val" ; then
2227                         ol_arg="$ol_val"
2228                 fi
2229         done
2230         if test "$ol_arg" = "invalid" ; then
2231                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2232 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2233    { (exit 1); exit 1; }; }
2234         fi
2235         ol_enable_syslog="$ol_arg"
2236
2237 else
2238         ol_enable_syslog=auto
2239 fi;
2240 # end --enable-syslog
2241 # OpenLDAP --enable-proctitle
2242
2243         # Check whether --enable-proctitle or --disable-proctitle was given.
2244 if test "${enable_proctitle+set}" = set; then
2245   enableval="$enable_proctitle"
2246
2247         ol_arg=invalid
2248         for ol_val in auto yes no ; do
2249                 if test "$enableval" = "$ol_val" ; then
2250                         ol_arg="$ol_val"
2251                 fi
2252         done
2253         if test "$ol_arg" = "invalid" ; then
2254                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2255 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2256    { (exit 1); exit 1; }; }
2257         fi
2258         ol_enable_proctitle="$ol_arg"
2259
2260 else
2261         ol_enable_proctitle=yes
2262 fi;
2263 # end --enable-proctitle
2264 ol_enable_referrals=${ol_enable_referrals-no}
2265 ol_enable_kbind=${ol_enable_kbind-no}
2266 # OpenLDAP --enable-ipv6
2267
2268         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2269 if test "${enable_ipv6+set}" = set; then
2270   enableval="$enable_ipv6"
2271
2272         ol_arg=invalid
2273         for ol_val in auto yes no ; do
2274                 if test "$enableval" = "$ol_val" ; then
2275                         ol_arg="$ol_val"
2276                 fi
2277         done
2278         if test "$ol_arg" = "invalid" ; then
2279                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2280 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2281    { (exit 1); exit 1; }; }
2282         fi
2283         ol_enable_ipv6="$ol_arg"
2284
2285 else
2286         ol_enable_ipv6=auto
2287 fi;
2288 # end --enable-ipv6
2289 # OpenLDAP --enable-local
2290
2291         # Check whether --enable-local or --disable-local was given.
2292 if test "${enable_local+set}" = set; then
2293   enableval="$enable_local"
2294
2295         ol_arg=invalid
2296         for ol_val in auto yes no ; do
2297                 if test "$enableval" = "$ol_val" ; then
2298                         ol_arg="$ol_val"
2299                 fi
2300         done
2301         if test "$ol_arg" = "invalid" ; then
2302                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2303 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2304    { (exit 1); exit 1; }; }
2305         fi
2306         ol_enable_local="$ol_arg"
2307
2308 else
2309         ol_enable_local=auto
2310 fi;
2311 # end --enable-local
2312
2313 # OpenLDAP --with-cyrus_sasl
2314
2315 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2316 if test "${with_cyrus_sasl+set}" = set; then
2317   withval="$with_cyrus_sasl"
2318
2319         ol_arg=invalid
2320         for ol_val in auto yes no  ; do
2321                 if test "$withval" = "$ol_val" ; then
2322                         ol_arg="$ol_val"
2323                 fi
2324         done
2325         if test "$ol_arg" = "invalid" ; then
2326                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2327 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2328    { (exit 1); exit 1; }; }
2329         fi
2330         ol_with_cyrus_sasl="$ol_arg"
2331
2332 else
2333         ol_with_cyrus_sasl="auto"
2334 fi; # end --with-cyrus_sasl
2335
2336 # OpenLDAP --with-fetch
2337
2338 # Check whether --with-fetch or --without-fetch was given.
2339 if test "${with_fetch+set}" = set; then
2340   withval="$with_fetch"
2341
2342         ol_arg=invalid
2343         for ol_val in auto yes no  ; do
2344                 if test "$withval" = "$ol_val" ; then
2345                         ol_arg="$ol_val"
2346                 fi
2347         done
2348         if test "$ol_arg" = "invalid" ; then
2349                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2350 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2351    { (exit 1); exit 1; }; }
2352         fi
2353         ol_with_fetch="$ol_arg"
2354
2355 else
2356         ol_with_fetch="auto"
2357 fi; # end --with-fetch
2358
2359 ol_with_kerberos=${ol_with_kerberos-auto}
2360 # OpenLDAP --with-threads
2361
2362 # Check whether --with-threads or --without-threads was given.
2363 if test "${with_threads+set}" = set; then
2364   withval="$with_threads"
2365
2366         ol_arg=invalid
2367         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2368                 if test "$withval" = "$ol_val" ; then
2369                         ol_arg="$ol_val"
2370                 fi
2371         done
2372         if test "$ol_arg" = "invalid" ; then
2373                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2374 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2375    { (exit 1); exit 1; }; }
2376         fi
2377         ol_with_threads="$ol_arg"
2378
2379 else
2380         ol_with_threads="auto"
2381 fi; # end --with-threads
2382
2383 # OpenLDAP --with-tls
2384
2385 # Check whether --with-tls or --without-tls was given.
2386 if test "${with_tls+set}" = set; then
2387   withval="$with_tls"
2388
2389         ol_arg=invalid
2390         for ol_val in auto openssl yes no  ; do
2391                 if test "$withval" = "$ol_val" ; then
2392                         ol_arg="$ol_val"
2393                 fi
2394         done
2395         if test "$ol_arg" = "invalid" ; then
2396                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2397 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2398    { (exit 1); exit 1; }; }
2399         fi
2400         ol_with_tls="$ol_arg"
2401
2402 else
2403         ol_with_tls="auto"
2404 fi; # end --with-tls
2405
2406 # OpenLDAP --with-yielding_select
2407
2408 # Check whether --with-yielding_select or --without-yielding_select was given.
2409 if test "${with_yielding_select+set}" = set; then
2410   withval="$with_yielding_select"
2411
2412         ol_arg=invalid
2413         for ol_val in auto yes no manual  ; do
2414                 if test "$withval" = "$ol_val" ; then
2415                         ol_arg="$ol_val"
2416                 fi
2417         done
2418         if test "$ol_arg" = "invalid" ; then
2419                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2420 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2421    { (exit 1); exit 1; }; }
2422         fi
2423         ol_with_yielding_select="$ol_arg"
2424
2425 else
2426         ol_with_yielding_select="auto"
2427 fi; # end --with-yielding_select
2428
2429 # OpenLDAP --with-mp
2430
2431 # Check whether --with-mp or --without-mp was given.
2432 if test "${with_mp+set}" = set; then
2433   withval="$with_mp"
2434
2435         ol_arg=invalid
2436         for ol_val in auto longlong long bignum gmp yes no ; do
2437                 if test "$withval" = "$ol_val" ; then
2438                         ol_arg="$ol_val"
2439                 fi
2440         done
2441         if test "$ol_arg" = "invalid" ; then
2442                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2443 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2444    { (exit 1); exit 1; }; }
2445         fi
2446         ol_with_mp="$ol_arg"
2447
2448 else
2449         ol_with_mp="auto"
2450 fi; # end --with-mp
2451
2452
2453
2454 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2455 if test "${enable_xxslapdoptions+set}" = set; then
2456   enableval="$enable_xxslapdoptions"
2457
2458 fi;
2459 # OpenLDAP --enable-slapd
2460
2461         # Check whether --enable-slapd or --disable-slapd was given.
2462 if test "${enable_slapd+set}" = set; then
2463   enableval="$enable_slapd"
2464
2465         ol_arg=invalid
2466         for ol_val in auto yes no ; do
2467                 if test "$enableval" = "$ol_val" ; then
2468                         ol_arg="$ol_val"
2469                 fi
2470         done
2471         if test "$ol_arg" = "invalid" ; then
2472                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2473 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2474    { (exit 1); exit 1; }; }
2475         fi
2476         ol_enable_slapd="$ol_arg"
2477
2478 else
2479         ol_enable_slapd=yes
2480 fi;
2481 # end --enable-slapd
2482 # OpenLDAP --enable-dynacl
2483
2484         # Check whether --enable-dynacl or --disable-dynacl was given.
2485 if test "${enable_dynacl+set}" = set; then
2486   enableval="$enable_dynacl"
2487
2488         ol_arg=invalid
2489         for ol_val in auto yes no ; do
2490                 if test "$enableval" = "$ol_val" ; then
2491                         ol_arg="$ol_val"
2492                 fi
2493         done
2494         if test "$ol_arg" = "invalid" ; then
2495                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2496 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2497    { (exit 1); exit 1; }; }
2498         fi
2499         ol_enable_dynacl="$ol_arg"
2500
2501 else
2502         ol_enable_dynacl=no
2503 fi;
2504 # end --enable-dynacl
2505 # OpenLDAP --enable-aci
2506
2507         # Check whether --enable-aci or --disable-aci was given.
2508 if test "${enable_aci+set}" = set; then
2509   enableval="$enable_aci"
2510
2511         ol_arg=invalid
2512         for ol_val in no yes mod ; do
2513                 if test "$enableval" = "$ol_val" ; then
2514                         ol_arg="$ol_val"
2515                 fi
2516         done
2517         if test "$ol_arg" = "invalid" ; then
2518                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2519 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2520    { (exit 1); exit 1; }; }
2521         fi
2522         ol_enable_aci="$ol_arg"
2523
2524 else
2525         ol_enable_aci=no
2526 fi;
2527 # end --enable-aci
2528 # OpenLDAP --enable-cleartext
2529
2530         # Check whether --enable-cleartext or --disable-cleartext was given.
2531 if test "${enable_cleartext+set}" = set; then
2532   enableval="$enable_cleartext"
2533
2534         ol_arg=invalid
2535         for ol_val in auto yes no ; do
2536                 if test "$enableval" = "$ol_val" ; then
2537                         ol_arg="$ol_val"
2538                 fi
2539         done
2540         if test "$ol_arg" = "invalid" ; then
2541                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2542 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2543    { (exit 1); exit 1; }; }
2544         fi
2545         ol_enable_cleartext="$ol_arg"
2546
2547 else
2548         ol_enable_cleartext=yes
2549 fi;
2550 # end --enable-cleartext
2551 # OpenLDAP --enable-crypt
2552
2553         # Check whether --enable-crypt or --disable-crypt was given.
2554 if test "${enable_crypt+set}" = set; then
2555   enableval="$enable_crypt"
2556
2557         ol_arg=invalid
2558         for ol_val in auto yes no ; do
2559                 if test "$enableval" = "$ol_val" ; then
2560                         ol_arg="$ol_val"
2561                 fi
2562         done
2563         if test "$ol_arg" = "invalid" ; then
2564                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2565 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2566    { (exit 1); exit 1; }; }
2567         fi
2568         ol_enable_crypt="$ol_arg"
2569
2570 else
2571         ol_enable_crypt=no
2572 fi;
2573 # end --enable-crypt
2574 # OpenLDAP --enable-lmpasswd
2575
2576         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2577 if test "${enable_lmpasswd+set}" = set; then
2578   enableval="$enable_lmpasswd"
2579
2580         ol_arg=invalid
2581         for ol_val in auto yes no ; do
2582                 if test "$enableval" = "$ol_val" ; then
2583                         ol_arg="$ol_val"
2584                 fi
2585         done
2586         if test "$ol_arg" = "invalid" ; then
2587                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2588 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2589    { (exit 1); exit 1; }; }
2590         fi
2591         ol_enable_lmpasswd="$ol_arg"
2592
2593 else
2594         ol_enable_lmpasswd=no
2595 fi;
2596 # end --enable-lmpasswd
2597 # OpenLDAP --enable-spasswd
2598
2599         # Check whether --enable-spasswd or --disable-spasswd was given.
2600 if test "${enable_spasswd+set}" = set; then
2601   enableval="$enable_spasswd"
2602
2603         ol_arg=invalid
2604         for ol_val in auto yes no ; do
2605                 if test "$enableval" = "$ol_val" ; then
2606                         ol_arg="$ol_val"
2607                 fi
2608         done
2609         if test "$ol_arg" = "invalid" ; then
2610                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2611 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2612    { (exit 1); exit 1; }; }
2613         fi
2614         ol_enable_spasswd="$ol_arg"
2615
2616 else
2617         ol_enable_spasswd=no
2618 fi;
2619 # end --enable-spasswd
2620 # OpenLDAP --enable-modules
2621
2622         # Check whether --enable-modules or --disable-modules was given.
2623 if test "${enable_modules+set}" = set; then
2624   enableval="$enable_modules"
2625
2626         ol_arg=invalid
2627         for ol_val in auto yes no ; do
2628                 if test "$enableval" = "$ol_val" ; then
2629                         ol_arg="$ol_val"
2630                 fi
2631         done
2632         if test "$ol_arg" = "invalid" ; then
2633                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2634 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2635    { (exit 1); exit 1; }; }
2636         fi
2637         ol_enable_modules="$ol_arg"
2638
2639 else
2640         ol_enable_modules=no
2641 fi;
2642 # end --enable-modules
2643 # OpenLDAP --enable-rewrite
2644
2645         # Check whether --enable-rewrite or --disable-rewrite was given.
2646 if test "${enable_rewrite+set}" = set; then
2647   enableval="$enable_rewrite"
2648
2649         ol_arg=invalid
2650         for ol_val in auto yes no ; do
2651                 if test "$enableval" = "$ol_val" ; then
2652                         ol_arg="$ol_val"
2653                 fi
2654         done
2655         if test "$ol_arg" = "invalid" ; then
2656                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2657 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2658    { (exit 1); exit 1; }; }
2659         fi
2660         ol_enable_rewrite="$ol_arg"
2661
2662 else
2663         ol_enable_rewrite=auto
2664 fi;
2665 # end --enable-rewrite
2666 # OpenLDAP --enable-rlookups
2667
2668         # Check whether --enable-rlookups or --disable-rlookups was given.
2669 if test "${enable_rlookups+set}" = set; then
2670   enableval="$enable_rlookups"
2671
2672         ol_arg=invalid
2673         for ol_val in auto yes no ; do
2674                 if test "$enableval" = "$ol_val" ; then
2675                         ol_arg="$ol_val"
2676                 fi
2677         done
2678         if test "$ol_arg" = "invalid" ; then
2679                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2680 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2681    { (exit 1); exit 1; }; }
2682         fi
2683         ol_enable_rlookups="$ol_arg"
2684
2685 else
2686         ol_enable_rlookups=no
2687 fi;
2688 # end --enable-rlookups
2689 # OpenLDAP --enable-slapi
2690
2691         # Check whether --enable-slapi or --disable-slapi was given.
2692 if test "${enable_slapi+set}" = set; then
2693   enableval="$enable_slapi"
2694
2695         ol_arg=invalid
2696         for ol_val in auto yes no ; do
2697                 if test "$enableval" = "$ol_val" ; then
2698                         ol_arg="$ol_val"
2699                 fi
2700         done
2701         if test "$ol_arg" = "invalid" ; then
2702                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2703 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2704    { (exit 1); exit 1; }; }
2705         fi
2706         ol_enable_slapi="$ol_arg"
2707
2708 else
2709         ol_enable_slapi=no
2710 fi;
2711 # end --enable-slapi
2712 # OpenLDAP --enable-slp
2713
2714         # Check whether --enable-slp or --disable-slp was given.
2715 if test "${enable_slp+set}" = set; then
2716   enableval="$enable_slp"
2717
2718         ol_arg=invalid
2719         for ol_val in auto yes no ; do
2720                 if test "$enableval" = "$ol_val" ; then
2721                         ol_arg="$ol_val"
2722                 fi
2723         done
2724         if test "$ol_arg" = "invalid" ; then
2725                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2726 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2727    { (exit 1); exit 1; }; }
2728         fi
2729         ol_enable_slp="$ol_arg"
2730
2731 else
2732         ol_enable_slp=no
2733 fi;
2734 # end --enable-slp
2735 # OpenLDAP --enable-wrappers
2736
2737         # Check whether --enable-wrappers or --disable-wrappers was given.
2738 if test "${enable_wrappers+set}" = set; then
2739   enableval="$enable_wrappers"
2740
2741         ol_arg=invalid
2742         for ol_val in auto yes no ; do
2743                 if test "$enableval" = "$ol_val" ; then
2744                         ol_arg="$ol_val"
2745                 fi
2746         done
2747         if test "$ol_arg" = "invalid" ; then
2748                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2749 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2750    { (exit 1); exit 1; }; }
2751         fi
2752         ol_enable_wrappers="$ol_arg"
2753
2754 else
2755         ol_enable_wrappers=no
2756 fi;
2757 # end --enable-wrappers
2758
2759 Backends="bdb \
2760         dnssrv \
2761         hdb \
2762         ldap \
2763         meta \
2764         monitor \
2765         null \
2766         passwd \
2767         perl \
2768         relay \
2769         shell \
2770         sql"
2771
2772 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2773 if test "${enable_xxslapbackends+set}" = set; then
2774   enableval="$enable_xxslapbackends"
2775
2776 fi;
2777
2778 # OpenLDAP --enable-backends
2779
2780         # Check whether --enable-backends or --disable-backends was given.
2781 if test "${enable_backends+set}" = set; then
2782   enableval="$enable_backends"
2783
2784         ol_arg=invalid
2785         for ol_val in no yes mod ; do
2786                 if test "$enableval" = "$ol_val" ; then
2787                         ol_arg="$ol_val"
2788                 fi
2789         done
2790         if test "$ol_arg" = "invalid" ; then
2791                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2792 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2793    { (exit 1); exit 1; }; }
2794         fi
2795         ol_enable_backends="$ol_arg"
2796
2797 fi;
2798 # end --enable-backends
2799 # OpenLDAP --enable-bdb
2800
2801         # Check whether --enable-bdb or --disable-bdb was given.
2802 if test "${enable_bdb+set}" = set; then
2803   enableval="$enable_bdb"
2804
2805         ol_arg=invalid
2806         for ol_val in no yes mod ; do
2807                 if test "$enableval" = "$ol_val" ; then
2808                         ol_arg="$ol_val"
2809                 fi
2810         done
2811         if test "$ol_arg" = "invalid" ; then
2812                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2813 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2814    { (exit 1); exit 1; }; }
2815         fi
2816         ol_enable_bdb="$ol_arg"
2817
2818 else
2819         ol_enable_bdb=${ol_enable_backends:-yes}
2820 fi;
2821 # end --enable-bdb
2822 # OpenLDAP --enable-dnssrv
2823
2824         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2825 if test "${enable_dnssrv+set}" = set; then
2826   enableval="$enable_dnssrv"
2827
2828         ol_arg=invalid
2829         for ol_val in no yes mod ; do
2830                 if test "$enableval" = "$ol_val" ; then
2831                         ol_arg="$ol_val"
2832                 fi
2833         done
2834         if test "$ol_arg" = "invalid" ; then
2835                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2836 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2837    { (exit 1); exit 1; }; }
2838         fi
2839         ol_enable_dnssrv="$ol_arg"
2840
2841 else
2842         ol_enable_dnssrv=${ol_enable_backends:-no}
2843 fi;
2844 # end --enable-dnssrv
2845 # OpenLDAP --enable-hdb
2846
2847         # Check whether --enable-hdb or --disable-hdb was given.
2848 if test "${enable_hdb+set}" = set; then
2849   enableval="$enable_hdb"
2850
2851         ol_arg=invalid
2852         for ol_val in no yes mod ; do
2853                 if test "$enableval" = "$ol_val" ; then
2854                         ol_arg="$ol_val"
2855                 fi
2856         done
2857         if test "$ol_arg" = "invalid" ; then
2858                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2859 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2860    { (exit 1); exit 1; }; }
2861         fi
2862         ol_enable_hdb="$ol_arg"
2863
2864 else
2865         ol_enable_hdb=${ol_enable_backends:-yes}
2866 fi;
2867 # end --enable-hdb
2868 # OpenLDAP --enable-ldap
2869
2870         # Check whether --enable-ldap or --disable-ldap was given.
2871 if test "${enable_ldap+set}" = set; then
2872   enableval="$enable_ldap"
2873
2874         ol_arg=invalid
2875         for ol_val in no yes mod ; do
2876                 if test "$enableval" = "$ol_val" ; then
2877                         ol_arg="$ol_val"
2878                 fi
2879         done
2880         if test "$ol_arg" = "invalid" ; then
2881                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2882 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2883    { (exit 1); exit 1; }; }
2884         fi
2885         ol_enable_ldap="$ol_arg"
2886
2887 else
2888         ol_enable_ldap=${ol_enable_backends:-no}
2889 fi;
2890 # end --enable-ldap
2891 # OpenLDAP --enable-meta
2892
2893         # Check whether --enable-meta or --disable-meta was given.
2894 if test "${enable_meta+set}" = set; then
2895   enableval="$enable_meta"
2896
2897         ol_arg=invalid
2898         for ol_val in no yes mod ; do
2899                 if test "$enableval" = "$ol_val" ; then
2900                         ol_arg="$ol_val"
2901                 fi
2902         done
2903         if test "$ol_arg" = "invalid" ; then
2904                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2905 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2906    { (exit 1); exit 1; }; }
2907         fi
2908         ol_enable_meta="$ol_arg"
2909
2910 else
2911         ol_enable_meta=${ol_enable_backends:-no}
2912 fi;
2913 # end --enable-meta
2914 # OpenLDAP --enable-monitor
2915
2916         # Check whether --enable-monitor or --disable-monitor was given.
2917 if test "${enable_monitor+set}" = set; then
2918   enableval="$enable_monitor"
2919
2920         ol_arg=invalid
2921         for ol_val in no yes mod ; do
2922                 if test "$enableval" = "$ol_val" ; then
2923                         ol_arg="$ol_val"
2924                 fi
2925         done
2926         if test "$ol_arg" = "invalid" ; then
2927                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2928 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2929    { (exit 1); exit 1; }; }
2930         fi
2931         ol_enable_monitor="$ol_arg"
2932
2933 else
2934         ol_enable_monitor=${ol_enable_backends:-yes}
2935 fi;
2936 # end --enable-monitor
2937 # OpenLDAP --enable-null
2938
2939         # Check whether --enable-null or --disable-null was given.
2940 if test "${enable_null+set}" = set; then
2941   enableval="$enable_null"
2942
2943         ol_arg=invalid
2944         for ol_val in no yes mod ; do
2945                 if test "$enableval" = "$ol_val" ; then
2946                         ol_arg="$ol_val"
2947                 fi
2948         done
2949         if test "$ol_arg" = "invalid" ; then
2950                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2951 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2952    { (exit 1); exit 1; }; }
2953         fi
2954         ol_enable_null="$ol_arg"
2955
2956 else
2957         ol_enable_null=${ol_enable_backends:-no}
2958 fi;
2959 # end --enable-null
2960 # OpenLDAP --enable-passwd
2961
2962         # Check whether --enable-passwd or --disable-passwd was given.
2963 if test "${enable_passwd+set}" = set; then
2964   enableval="$enable_passwd"
2965
2966         ol_arg=invalid
2967         for ol_val in no yes mod ; do
2968                 if test "$enableval" = "$ol_val" ; then
2969                         ol_arg="$ol_val"
2970                 fi
2971         done
2972         if test "$ol_arg" = "invalid" ; then
2973                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2974 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2975    { (exit 1); exit 1; }; }
2976         fi
2977         ol_enable_passwd="$ol_arg"
2978
2979 else
2980         ol_enable_passwd=${ol_enable_backends:-no}
2981 fi;
2982 # end --enable-passwd
2983 # OpenLDAP --enable-perl
2984
2985         # Check whether --enable-perl or --disable-perl was given.
2986 if test "${enable_perl+set}" = set; then
2987   enableval="$enable_perl"
2988
2989         ol_arg=invalid
2990         for ol_val in no yes mod ; do
2991                 if test "$enableval" = "$ol_val" ; then
2992                         ol_arg="$ol_val"
2993                 fi
2994         done
2995         if test "$ol_arg" = "invalid" ; then
2996                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
2997 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
2998    { (exit 1); exit 1; }; }
2999         fi
3000         ol_enable_perl="$ol_arg"
3001
3002 else
3003         ol_enable_perl=${ol_enable_backends:-no}
3004 fi;
3005 # end --enable-perl
3006 # OpenLDAP --enable-relay
3007
3008         # Check whether --enable-relay or --disable-relay was given.
3009 if test "${enable_relay+set}" = set; then
3010   enableval="$enable_relay"
3011
3012         ol_arg=invalid
3013         for ol_val in no yes mod ; do
3014                 if test "$enableval" = "$ol_val" ; then
3015                         ol_arg="$ol_val"
3016                 fi
3017         done
3018         if test "$ol_arg" = "invalid" ; then
3019                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3020 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3021    { (exit 1); exit 1; }; }
3022         fi
3023         ol_enable_relay="$ol_arg"
3024
3025 else
3026         ol_enable_relay=${ol_enable_backends:-yes}
3027 fi;
3028 # end --enable-relay
3029 # OpenLDAP --enable-shell
3030
3031         # Check whether --enable-shell or --disable-shell was given.
3032 if test "${enable_shell+set}" = set; then
3033   enableval="$enable_shell"
3034
3035         ol_arg=invalid
3036         for ol_val in no yes mod ; do
3037                 if test "$enableval" = "$ol_val" ; then
3038                         ol_arg="$ol_val"
3039                 fi
3040         done
3041         if test "$ol_arg" = "invalid" ; then
3042                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3043 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3044    { (exit 1); exit 1; }; }
3045         fi
3046         ol_enable_shell="$ol_arg"
3047
3048 else
3049         ol_enable_shell=${ol_enable_backends:-no}
3050 fi;
3051 # end --enable-shell
3052 # OpenLDAP --enable-sql
3053
3054         # Check whether --enable-sql or --disable-sql was given.
3055 if test "${enable_sql+set}" = set; then
3056   enableval="$enable_sql"
3057
3058         ol_arg=invalid
3059         for ol_val in no yes mod ; do
3060                 if test "$enableval" = "$ol_val" ; then
3061                         ol_arg="$ol_val"
3062                 fi
3063         done
3064         if test "$ol_arg" = "invalid" ; then
3065                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3066 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3067    { (exit 1); exit 1; }; }
3068         fi
3069         ol_enable_sql="$ol_arg"
3070
3071 else
3072         ol_enable_sql=${ol_enable_backends:-no}
3073 fi;
3074 # end --enable-sql
3075
3076 Overlays="accesslog \
3077         auditlog \
3078         constraint \
3079         dds \
3080         denyop \
3081         dyngroup \
3082         dynlist \
3083         lastmod \
3084         ppolicy \
3085         proxycache \
3086         refint \
3087         retcode \
3088         rwm \
3089         seqmod \
3090         syncprov \
3091         translucent \
3092         unique \
3093         valsort"
3094
3095 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3096 if test "${enable_xxslapoverlays+set}" = set; then
3097   enableval="$enable_xxslapoverlays"
3098
3099 fi;
3100
3101 # OpenLDAP --enable-overlays
3102
3103         # Check whether --enable-overlays or --disable-overlays was given.
3104 if test "${enable_overlays+set}" = set; then
3105   enableval="$enable_overlays"
3106
3107         ol_arg=invalid
3108         for ol_val in no yes mod ; do
3109                 if test "$enableval" = "$ol_val" ; then
3110                         ol_arg="$ol_val"
3111                 fi
3112         done
3113         if test "$ol_arg" = "invalid" ; then
3114                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3115 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3116    { (exit 1); exit 1; }; }
3117         fi
3118         ol_enable_overlays="$ol_arg"
3119
3120 fi;
3121 # end --enable-overlays
3122 # OpenLDAP --enable-accesslog
3123
3124         # Check whether --enable-accesslog or --disable-accesslog was given.
3125 if test "${enable_accesslog+set}" = set; then
3126   enableval="$enable_accesslog"
3127
3128         ol_arg=invalid
3129         for ol_val in no yes mod ; do
3130                 if test "$enableval" = "$ol_val" ; then
3131                         ol_arg="$ol_val"
3132                 fi
3133         done
3134         if test "$ol_arg" = "invalid" ; then
3135                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3136 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3137    { (exit 1); exit 1; }; }
3138         fi
3139         ol_enable_accesslog="$ol_arg"
3140
3141 else
3142         ol_enable_accesslog=${ol_enable_overlays:-no}
3143 fi;
3144 # end --enable-accesslog
3145
3146 # OpenLDAP --enable-auditlog
3147
3148         # Check whether --enable-auditlog or --disable-auditlog was given.
3149 if test "${enable_auditlog+set}" = set; then
3150   enableval="$enable_auditlog"
3151
3152         ol_arg=invalid
3153         for ol_val in no yes mod ; do
3154                 if test "$enableval" = "$ol_val" ; then
3155                         ol_arg="$ol_val"
3156                 fi
3157         done
3158         if test "$ol_arg" = "invalid" ; then
3159                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3161    { (exit 1); exit 1; }; }
3162         fi
3163         ol_enable_auditlog="$ol_arg"
3164
3165 else
3166         ol_enable_auditlog=${ol_enable_overlays:-no}
3167 fi;
3168 # end --enable-auditlog
3169
3170 # OpenLDAP --enable-constraint
3171
3172         # Check whether --enable-constraint or --disable-constraint was given.
3173 if test "${enable_constraint+set}" = set; then
3174   enableval="$enable_constraint"
3175
3176         ol_arg=invalid
3177         for ol_val in no yes mod ; do
3178                 if test "$enableval" = "$ol_val" ; then
3179                         ol_arg="$ol_val"
3180                 fi
3181         done
3182         if test "$ol_arg" = "invalid" ; then
3183                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3184 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3185    { (exit 1); exit 1; }; }
3186         fi
3187         ol_enable_constraint="$ol_arg"
3188
3189 else
3190         ol_enable_constraint=${ol_enable_overlays:-no}
3191 fi;
3192 # end --enable-constraint
3193
3194 # OpenLDAP --enable-dds
3195
3196         # Check whether --enable-dds or --disable-dds was given.
3197 if test "${enable_dds+set}" = set; then
3198   enableval="$enable_dds"
3199
3200         ol_arg=invalid
3201         for ol_val in no yes mod ; do
3202                 if test "$enableval" = "$ol_val" ; then
3203                         ol_arg="$ol_val"
3204                 fi
3205         done
3206         if test "$ol_arg" = "invalid" ; then
3207                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3208 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3209    { (exit 1); exit 1; }; }
3210         fi
3211         ol_enable_dds="$ol_arg"
3212
3213 else
3214         ol_enable_dds=${ol_enable_overlays:-no}
3215 fi;
3216 # end --enable-dds
3217
3218 # OpenLDAP --enable-denyop
3219
3220         # Check whether --enable-denyop or --disable-denyop was given.
3221 if test "${enable_denyop+set}" = set; then
3222   enableval="$enable_denyop"
3223
3224         ol_arg=invalid
3225         for ol_val in no yes mod ; do
3226                 if test "$enableval" = "$ol_val" ; then
3227                         ol_arg="$ol_val"
3228                 fi
3229         done
3230         if test "$ol_arg" = "invalid" ; then
3231                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3232 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3233    { (exit 1); exit 1; }; }
3234         fi
3235         ol_enable_denyop="$ol_arg"
3236
3237 else
3238         ol_enable_denyop=${ol_enable_overlays:-no}
3239 fi;
3240 # end --enable-denyop
3241
3242 # OpenLDAP --enable-dyngroup
3243
3244         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3245 if test "${enable_dyngroup+set}" = set; then
3246   enableval="$enable_dyngroup"
3247
3248         ol_arg=invalid
3249         for ol_val in no yes mod ; do
3250                 if test "$enableval" = "$ol_val" ; then
3251                         ol_arg="$ol_val"
3252                 fi
3253         done
3254         if test "$ol_arg" = "invalid" ; then
3255                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3256 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3257    { (exit 1); exit 1; }; }
3258         fi
3259         ol_enable_dyngroup="$ol_arg"
3260
3261 else
3262         ol_enable_dyngroup=${ol_enable_overlays:-no}
3263 fi;
3264 # end --enable-dyngroup
3265
3266 # OpenLDAP --enable-dynlist
3267
3268         # Check whether --enable-dynlist or --disable-dynlist was given.
3269 if test "${enable_dynlist+set}" = set; then
3270   enableval="$enable_dynlist"
3271
3272         ol_arg=invalid
3273         for ol_val in no yes mod ; do
3274                 if test "$enableval" = "$ol_val" ; then
3275                         ol_arg="$ol_val"
3276                 fi
3277         done
3278         if test "$ol_arg" = "invalid" ; then
3279                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3280 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3281    { (exit 1); exit 1; }; }
3282         fi
3283         ol_enable_dynlist="$ol_arg"
3284
3285 else
3286         ol_enable_dynlist=${ol_enable_overlays:-no}
3287 fi;
3288 # end --enable-dynlist
3289
3290 # OpenLDAP --enable-lastmod
3291
3292         # Check whether --enable-lastmod or --disable-lastmod was given.
3293 if test "${enable_lastmod+set}" = set; then
3294   enableval="$enable_lastmod"
3295
3296         ol_arg=invalid
3297         for ol_val in no yes mod ; do
3298                 if test "$enableval" = "$ol_val" ; then
3299                         ol_arg="$ol_val"
3300                 fi
3301         done
3302         if test "$ol_arg" = "invalid" ; then
3303                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3304 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3305    { (exit 1); exit 1; }; }
3306         fi
3307         ol_enable_lastmod="$ol_arg"
3308
3309 else
3310         ol_enable_lastmod=${ol_enable_overlays:-no}
3311 fi;
3312 # end --enable-lastmod
3313
3314 # OpenLDAP --enable-ppolicy
3315
3316         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3317 if test "${enable_ppolicy+set}" = set; then
3318   enableval="$enable_ppolicy"
3319
3320         ol_arg=invalid
3321         for ol_val in no yes mod ; do
3322                 if test "$enableval" = "$ol_val" ; then
3323                         ol_arg="$ol_val"
3324                 fi
3325         done
3326         if test "$ol_arg" = "invalid" ; then
3327                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3328 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3329    { (exit 1); exit 1; }; }
3330         fi
3331         ol_enable_ppolicy="$ol_arg"
3332
3333 else
3334         ol_enable_ppolicy=${ol_enable_overlays:-no}
3335 fi;
3336 # end --enable-ppolicy
3337
3338 # OpenLDAP --enable-proxycache
3339
3340         # Check whether --enable-proxycache or --disable-proxycache was given.
3341 if test "${enable_proxycache+set}" = set; then
3342   enableval="$enable_proxycache"
3343
3344         ol_arg=invalid
3345         for ol_val in no yes mod ; do
3346                 if test "$enableval" = "$ol_val" ; then
3347                         ol_arg="$ol_val"
3348                 fi
3349         done
3350         if test "$ol_arg" = "invalid" ; then
3351                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3352 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3353    { (exit 1); exit 1; }; }
3354         fi
3355         ol_enable_proxycache="$ol_arg"
3356
3357 else
3358         ol_enable_proxycache=${ol_enable_overlays:-no}
3359 fi;
3360 # end --enable-proxycache
3361
3362 # OpenLDAP --enable-refint
3363
3364         # Check whether --enable-refint or --disable-refint was given.
3365 if test "${enable_refint+set}" = set; then
3366   enableval="$enable_refint"
3367
3368         ol_arg=invalid
3369         for ol_val in no yes mod ; do
3370                 if test "$enableval" = "$ol_val" ; then
3371                         ol_arg="$ol_val"
3372                 fi
3373         done
3374         if test "$ol_arg" = "invalid" ; then
3375                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3376 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3377    { (exit 1); exit 1; }; }
3378         fi
3379         ol_enable_refint="$ol_arg"
3380
3381 else
3382         ol_enable_refint=${ol_enable_overlays:-no}
3383 fi;
3384 # end --enable-refint
3385
3386 # OpenLDAP --enable-retcode
3387
3388         # Check whether --enable-retcode or --disable-retcode was given.
3389 if test "${enable_retcode+set}" = set; then
3390   enableval="$enable_retcode"
3391
3392         ol_arg=invalid
3393         for ol_val in no yes mod ; do
3394                 if test "$enableval" = "$ol_val" ; then
3395                         ol_arg="$ol_val"
3396                 fi
3397         done
3398         if test "$ol_arg" = "invalid" ; then
3399                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3400 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3401    { (exit 1); exit 1; }; }
3402         fi
3403         ol_enable_retcode="$ol_arg"
3404
3405 else
3406         ol_enable_retcode=${ol_enable_overlays:-no}
3407 fi;
3408 # end --enable-retcode
3409
3410 # OpenLDAP --enable-rwm
3411
3412         # Check whether --enable-rwm or --disable-rwm was given.
3413 if test "${enable_rwm+set}" = set; then
3414   enableval="$enable_rwm"
3415
3416         ol_arg=invalid
3417         for ol_val in no yes mod ; do
3418                 if test "$enableval" = "$ol_val" ; then
3419                         ol_arg="$ol_val"
3420                 fi
3421         done
3422         if test "$ol_arg" = "invalid" ; then
3423                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3424 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3425    { (exit 1); exit 1; }; }
3426         fi
3427         ol_enable_rwm="$ol_arg"
3428
3429 else
3430         ol_enable_rwm=${ol_enable_overlays:-no}
3431 fi;
3432 # end --enable-rwm
3433
3434 # OpenLDAP --enable-seqmod
3435
3436         # Check whether --enable-seqmod or --disable-seqmod was given.
3437 if test "${enable_seqmod+set}" = set; then
3438   enableval="$enable_seqmod"
3439
3440         ol_arg=invalid
3441         for ol_val in no yes mod ; do
3442                 if test "$enableval" = "$ol_val" ; then
3443                         ol_arg="$ol_val"
3444                 fi
3445         done
3446         if test "$ol_arg" = "invalid" ; then
3447                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3448 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3449    { (exit 1); exit 1; }; }
3450         fi
3451         ol_enable_seqmod="$ol_arg"
3452
3453 else
3454         ol_enable_seqmod=${ol_enable_overlays:-yes}
3455 fi;
3456 # end --enable-seqmod
3457
3458 # OpenLDAP --enable-syncprov
3459
3460         # Check whether --enable-syncprov or --disable-syncprov was given.
3461 if test "${enable_syncprov+set}" = set; then
3462   enableval="$enable_syncprov"
3463
3464         ol_arg=invalid
3465         for ol_val in no yes mod ; do
3466                 if test "$enableval" = "$ol_val" ; then
3467                         ol_arg="$ol_val"
3468                 fi
3469         done
3470         if test "$ol_arg" = "invalid" ; then
3471                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3472 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3473    { (exit 1); exit 1; }; }
3474         fi
3475         ol_enable_syncprov="$ol_arg"
3476
3477 else
3478         ol_enable_syncprov=${ol_enable_overlays:-yes}
3479 fi;
3480 # end --enable-syncprov
3481
3482 # OpenLDAP --enable-translucent
3483
3484         # Check whether --enable-translucent or --disable-translucent was given.
3485 if test "${enable_translucent+set}" = set; then
3486   enableval="$enable_translucent"
3487
3488         ol_arg=invalid
3489         for ol_val in no yes mod ; do
3490                 if test "$enableval" = "$ol_val" ; then
3491                         ol_arg="$ol_val"
3492                 fi
3493         done
3494         if test "$ol_arg" = "invalid" ; then
3495                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3496 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3497    { (exit 1); exit 1; }; }
3498         fi
3499         ol_enable_translucent="$ol_arg"
3500
3501 else
3502         ol_enable_translucent=${ol_enable_overlays:-no}
3503 fi;
3504 # end --enable-translucent
3505
3506 # OpenLDAP --enable-unique
3507
3508         # Check whether --enable-unique or --disable-unique was given.
3509 if test "${enable_unique+set}" = set; then
3510   enableval="$enable_unique"
3511
3512         ol_arg=invalid
3513         for ol_val in no yes mod ; do
3514                 if test "$enableval" = "$ol_val" ; then
3515                         ol_arg="$ol_val"
3516                 fi
3517         done
3518         if test "$ol_arg" = "invalid" ; then
3519                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3520 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3521    { (exit 1); exit 1; }; }
3522         fi
3523         ol_enable_unique="$ol_arg"
3524
3525 else
3526         ol_enable_unique=${ol_enable_overlays:-no}
3527 fi;
3528 # end --enable-unique
3529
3530 # OpenLDAP --enable-valsort
3531
3532         # Check whether --enable-valsort or --disable-valsort was given.
3533 if test "${enable_valsort+set}" = set; then
3534   enableval="$enable_valsort"
3535
3536         ol_arg=invalid
3537         for ol_val in no yes mod ; do
3538                 if test "$enableval" = "$ol_val" ; then
3539                         ol_arg="$ol_val"
3540                 fi
3541         done
3542         if test "$ol_arg" = "invalid" ; then
3543                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3544 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3545    { (exit 1); exit 1; }; }
3546         fi
3547         ol_enable_valsort="$ol_arg"
3548
3549 else
3550         ol_enable_valsort=${ol_enable_overlays:-no}
3551 fi;
3552 # end --enable-valsort
3553
3554
3555 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3556 if test "${enable_xxslurpdoptions+set}" = set; then
3557   enableval="$enable_xxslurpdoptions"
3558
3559 fi;
3560 # OpenLDAP --enable-slurpd
3561
3562         # Check whether --enable-slurpd or --disable-slurpd was given.
3563 if test "${enable_slurpd+set}" = set; then
3564   enableval="$enable_slurpd"
3565
3566         ol_arg=invalid
3567         for ol_val in auto yes no ; do
3568                 if test "$enableval" = "$ol_val" ; then
3569                         ol_arg="$ol_val"
3570                 fi
3571         done
3572         if test "$ol_arg" = "invalid" ; then
3573                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3574 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3575    { (exit 1); exit 1; }; }
3576         fi
3577         ol_enable_slurpd="$ol_arg"
3578
3579 else
3580         ol_enable_slurpd=auto
3581 fi;
3582 # end --enable-slurpd
3583
3584 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3585 if test "${enable_xxliboptions+set}" = set; then
3586   enableval="$enable_xxliboptions"
3587
3588 fi;
3589 # Check whether --enable-static or --disable-static was given.
3590 if test "${enable_static+set}" = set; then
3591   enableval="$enable_static"
3592   p=${PACKAGE-default}
3593     case $enableval in
3594     yes) enable_static=yes ;;
3595     no) enable_static=no ;;
3596     *)
3597      enable_static=no
3598       # Look at the argument we got.  We use all the common list separators.
3599       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3600       for pkg in $enableval; do
3601         IFS="$lt_save_ifs"
3602         if test "X$pkg" = "X$p"; then
3603           enable_static=yes
3604         fi
3605       done
3606       IFS="$lt_save_ifs"
3607       ;;
3608     esac
3609 else
3610   enable_static=yes
3611 fi;
3612
3613 # Check whether --enable-shared or --disable-shared was given.
3614 if test "${enable_shared+set}" = set; then
3615   enableval="$enable_shared"
3616   p=${PACKAGE-default}
3617     case $enableval in
3618     yes) enable_shared=yes ;;
3619     no) enable_shared=no ;;
3620     *)
3621       enable_shared=no
3622       # Look at the argument we got.  We use all the common list separators.
3623       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3624       for pkg in $enableval; do
3625         IFS="$lt_save_ifs"
3626         if test "X$pkg" = "X$p"; then
3627           enable_shared=yes
3628         fi
3629       done
3630       IFS="$lt_save_ifs"
3631       ;;
3632     esac
3633 else
3634   enable_shared=yes
3635 fi;
3636
3637
3638
3639 # validate options
3640 if test $ol_enable_slapd = no ; then
3641                 if test $ol_enable_slapi = yes ; then
3642                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3643 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3644         fi
3645         case "$ol_enable_backends" in yes | mod)
3646                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3647 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3648         esac
3649         for i in $Backends; do
3650                 eval "ol_tmp=\$ol_enable_$i"
3651                 if test $ol_tmp != no ; then
3652                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3653 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3654                         eval "ol_enable_$i=no"
3655                 fi
3656         done
3657         if test $ol_enable_modules = yes ; then
3658                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3659 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3660         fi
3661         if test $ol_enable_wrappers = yes ; then
3662                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3663 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3664         fi
3665         if test $ol_enable_rlookups = yes ; then
3666                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3667 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3668         fi
3669         if test $ol_enable_dynacl = yes ; then
3670                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3671 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3672         fi
3673         if test $ol_enable_aci != no ; then
3674                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3675 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3676         fi
3677         if test $ol_enable_slurpd = yes ; then
3678                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3679 echo "$as_me: error: slurpd requires slapd" >&2;}
3680    { (exit 1); exit 1; }; }
3681         fi
3682         if test $ol_enable_rewrite = yes ; then
3683                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3684 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3685         fi
3686                 case "$ol_enable_overlays" in yes | mod)
3687                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3688 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3689         esac
3690         for i in $Overlays; do
3691                 eval "ol_tmp=\$ol_enable_$i"
3692                 if test $ol_tmp != no ; then
3693                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3694 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3695                         eval "ol_enable_$i=no"
3696                 fi
3697         done
3698
3699         # force settings to no
3700         ol_enable_slapi=no
3701
3702         ol_enable_backends=
3703         ol_enable_overlays=
3704         ol_enable_modules=no
3705         ol_enable_rlookups=no
3706         ol_enable_dynacl=no
3707         ol_enable_aci=no
3708         ol_enable_wrappers=no
3709
3710         ol_enable_slurpd=no
3711
3712         ol_enable_rewrite=no
3713
3714 elif test $ol_enable_modules != yes &&
3715         test $ol_enable_bdb = no &&
3716         test $ol_enable_dnssrv = no &&
3717         test $ol_enable_hdb = no &&
3718         test $ol_enable_ldap = no &&
3719         test $ol_enable_meta = no &&
3720         test $ol_enable_monitor = no &&
3721         test $ol_enable_null = no &&
3722         test $ol_enable_passwd = no &&
3723         test $ol_enable_perl = no &&
3724         test $ol_enable_relay = no &&
3725         test $ol_enable_shell = no &&
3726         test $ol_enable_sql = no ; then
3727
3728         if test $ol_enable_slapd = yes ; then
3729                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3730 echo "$as_me: error: slapd requires a backend" >&2;}
3731    { (exit 1); exit 1; }; }
3732         else
3733                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3734 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3735                 ol_enable_slapd=no
3736         fi
3737 fi
3738
3739 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3740         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3741 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3742    { (exit 1); exit 1; }; }
3743 fi
3744
3745 if test $ol_enable_slurpd = yes ; then
3746                 if test $ol_with_threads = no ; then
3747                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3748 echo "$as_me: error: slurpd requires threads" >&2;}
3749    { (exit 1); exit 1; }; }
3750         fi
3751 fi
3752
3753 if test $ol_enable_lmpasswd = yes ; then
3754         if test $ol_with_tls = no ; then
3755                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3756 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3757    { (exit 1); exit 1; }; }
3758         fi
3759 fi
3760
3761 if test $ol_enable_kbind = yes ; then
3762         if test $ol_with_kerberos = no ; then
3763                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3764 echo "$as_me: error: options require --with-kerberos" >&2;}
3765    { (exit 1); exit 1; }; }
3766         elif test $ol_with_kerberos = auto ; then
3767                 ol_with_kerberos=yes
3768         fi
3769
3770 elif test $ol_enable_kbind = no ; then
3771         if test $ol_with_kerberos = auto ; then
3772                 ol_with_kerberos=no
3773         elif test $ol_with_kerberos != no ; then
3774                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3775 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3776                 ol_with_kerberos=no
3777         fi
3778 fi
3779
3780 if test $ol_enable_spasswd = yes ; then
3781         if test $ol_with_cyrus_sasl = no ; then
3782                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3783 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3784    { (exit 1); exit 1; }; }
3785         fi
3786         ol_with_cyrus_sasl=yes
3787 fi
3788
3789 echo "$as_me:$LINENO: result: done" >&5
3790 echo "${ECHO_T}done" >&6
3791
3792 LDAP_LIBS=
3793 BDB_LIBS=
3794 LTHREAD_LIBS=
3795 LUTIL_LIBS=
3796
3797 SLAPD_LIBS=
3798 SLURPD_LIBS=
3799
3800 BUILD_SLAPD=no
3801 BUILD_SLURPD=no
3802
3803 BUILD_THREAD=no
3804
3805 BUILD_SLAPI=no
3806 SLAPD_SLAPI_DEPEND=
3807
3808 BUILD_BDB=no
3809 BUILD_DNSSRV=no
3810 BUILD_HDB=no
3811 BUILD_LDAP=no
3812 BUILD_META=no
3813 BUILD_MONITOR=no
3814 BUILD_NULL=no
3815 BUILD_PASSWD=no
3816 BUILD_PERL=no
3817 BUILD_RELAY=no
3818 BUILD_SHELL=no
3819 BUILD_SQL=no
3820
3821 BUILD_ACCESSLOG=no
3822 BUILD_AUDITLOG=no
3823 BUILD_CONSTRAINT=no
3824 BUILD_DDS=no
3825 BUILD_DENYOP=no
3826 BUILD_DYNGROUP=no
3827 BUILD_DYNLIST=no
3828 BUILD_LASTMOD=no
3829 BUILD_PPOLICY=no
3830 BUILD_PROXYCACHE=no
3831 BUILD_REFINT=no
3832 BUILD_RETCODE=no
3833 BUILD_RWM=no
3834 BUILD_SEQMOD=no
3835 BUILD_SYNCPROV=no
3836 BUILD_TRANSLUCENT=no
3837 BUILD_UNIQUE=no
3838 BUILD_VALSORT=no
3839
3840 SLAPD_STATIC_OVERLAYS=
3841 SLAPD_DYNAMIC_OVERLAYS=
3842
3843 SLAPD_MODULES_LDFLAGS=
3844 SLAPD_MODULES_CPPFLAGS=
3845
3846 SLAPD_STATIC_BACKENDS=back-ldif
3847 SLAPD_DYNAMIC_BACKENDS=
3848
3849 SLAPD_PERL_LDFLAGS=
3850 MOD_PERL_LDFLAGS=
3851 PERL_CPPFLAGS=
3852
3853 SLAPD_SQL_LDFLAGS=
3854 SLAPD_SQL_LIBS=
3855 SLAPD_SQL_INCLUDES=
3856
3857 KRB4_LIBS=
3858 KRB5_LIBS=
3859 SASL_LIBS=
3860 TLS_LIBS=
3861 MODULES_LIBS=
3862 SLAPI_LIBS=
3863 LIBSLAPI=
3864 LIBSLAPITOOLS=
3865 AUTH_LIBS=
3866 ICU_LIBS=
3867
3868 SLAPD_SLP_LIBS=
3869 SLAPD_GMP_LIBS=
3870
3871
3872
3873 cat >>confdefs.h <<\_ACEOF
3874 #define HAVE_MKVERSION 1
3875 _ACEOF
3876
3877
3878
3879
3880 ol_aix_threads=no
3881 case "$target" in
3882 *-*-aix*)       if test -z "$CC" ; then
3883                 case "$ol_with_threads" in
3884                 auto | yes |  posix) ol_aix_threads=yes ;;
3885                 esac
3886         fi
3887 ;;
3888 esac
3889
3890 if test $ol_aix_threads = yes ; then
3891         if test -z "${CC}" ; then
3892                 for ac_prog in cc_r xlc_r cc
3893 do
3894   # Extract the first word of "$ac_prog", so it can be a program name with args.
3895 set dummy $ac_prog; ac_word=$2
3896 echo "$as_me:$LINENO: checking for $ac_word" >&5
3897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898 if test "${ac_cv_prog_CC+set}" = set; then
3899   echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901   if test -n "$CC"; then
3902   ac_cv_prog_CC="$CC" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907   IFS=$as_save_IFS
3908   test -z "$as_dir" && as_dir=.
3909   for ac_exec_ext in '' $ac_executable_extensions; do
3910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911     ac_cv_prog_CC="$ac_prog"
3912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913     break 2
3914   fi
3915 done
3916 done
3917
3918 fi
3919 fi
3920 CC=$ac_cv_prog_CC
3921 if test -n "$CC"; then
3922   echo "$as_me:$LINENO: result: $CC" >&5
3923 echo "${ECHO_T}$CC" >&6
3924 else
3925   echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3927 fi
3928
3929   test -n "$CC" && break
3930 done
3931
3932
3933                 if test "$CC" = cc ; then
3934                                                 if test $ol_with_threads != auto ; then
3935                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3936 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3937    { (exit 1); exit 1; }; }
3938                         else
3939                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3940 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3941                         fi
3942                         ol_with_threads=no
3943                 fi
3944         fi
3945
3946         case ${CC} in cc_r | xlc_r)
3947                 ol_with_threads=posix
3948                 ol_cv_pthread_create=yes
3949                 ;;
3950         esac
3951 fi
3952
3953 if test -z "${CC}"; then
3954         for ac_prog in cc gcc
3955 do
3956   # Extract the first word of "$ac_prog", so it can be a program name with args.
3957 set dummy $ac_prog; ac_word=$2
3958 echo "$as_me:$LINENO: checking for $ac_word" >&5
3959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3960 if test "${ac_cv_prog_CC+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   if test -n "$CC"; then
3964   ac_cv_prog_CC="$CC" # Let the user override the test.
3965 else
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH
3968 do
3969   IFS=$as_save_IFS
3970   test -z "$as_dir" && as_dir=.
3971   for ac_exec_ext in '' $ac_executable_extensions; do
3972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973     ac_cv_prog_CC="$ac_prog"
3974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975     break 2
3976   fi
3977 done
3978 done
3979
3980 fi
3981 fi
3982 CC=$ac_cv_prog_CC
3983 if test -n "$CC"; then
3984   echo "$as_me:$LINENO: result: $CC" >&5
3985 echo "${ECHO_T}$CC" >&6
3986 else
3987   echo "$as_me:$LINENO: result: no" >&5
3988 echo "${ECHO_T}no" >&6
3989 fi
3990
3991   test -n "$CC" && break
3992 done
3993 test -n "$CC" || CC="missing"
3994
3995
3996         if test "${CC}" = "missing" ; then
3997                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3998 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3999    { (exit 1); exit 1; }; }
4000         fi
4001 fi
4002
4003 if test -z "${AR}"; then
4004         for ac_prog in ar gar
4005 do
4006   # Extract the first word of "$ac_prog", so it can be a program name with args.
4007 set dummy $ac_prog; ac_word=$2
4008 echo "$as_me:$LINENO: checking for $ac_word" >&5
4009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4010 if test "${ac_cv_prog_AR+set}" = set; then
4011   echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013   if test -n "$AR"; then
4014   ac_cv_prog_AR="$AR" # Let the user override the test.
4015 else
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH
4018 do
4019   IFS=$as_save_IFS
4020   test -z "$as_dir" && as_dir=.
4021   for ac_exec_ext in '' $ac_executable_extensions; do
4022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023     ac_cv_prog_AR="$ac_prog"
4024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4025     break 2
4026   fi
4027 done
4028 done
4029
4030 fi
4031 fi
4032 AR=$ac_cv_prog_AR
4033 if test -n "$AR"; then
4034   echo "$as_me:$LINENO: result: $AR" >&5
4035 echo "${ECHO_T}$AR" >&6
4036 else
4037   echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4039 fi
4040
4041   test -n "$AR" && break
4042 done
4043 test -n "$AR" || AR="missing"
4044
4045
4046         if test "${AR}" = "missing" ; then
4047                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4048 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4049    { (exit 1); exit 1; }; }
4050         fi
4051 fi
4052
4053
4054
4055
4056
4057 # Check whether --enable-fast-install or --disable-fast-install was given.
4058 if test "${enable_fast_install+set}" = set; then
4059   enableval="$enable_fast_install"
4060   p=${PACKAGE-default}
4061     case $enableval in
4062     yes) enable_fast_install=yes ;;
4063     no) enable_fast_install=no ;;
4064     *)
4065       enable_fast_install=no
4066       # Look at the argument we got.  We use all the common list separators.
4067       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4068       for pkg in $enableval; do
4069         IFS="$lt_save_ifs"
4070         if test "X$pkg" = "X$p"; then
4071           enable_fast_install=yes
4072         fi
4073       done
4074       IFS="$lt_save_ifs"
4075       ;;
4076     esac
4077 else
4078   enable_fast_install=yes
4079 fi;
4080
4081 DEPDIR="${am__leading_dot}deps"
4082
4083           ac_config_commands="$ac_config_commands depfiles"
4084
4085
4086 am_make=${MAKE-make}
4087 cat > confinc << 'END'
4088 am__doit:
4089         @echo done
4090 .PHONY: am__doit
4091 END
4092 # If we don't find an include directive, just comment out the code.
4093 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4094 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4095 am__include="#"
4096 am__quote=
4097 _am_result=none
4098 # First try GNU make style include.
4099 echo "include confinc" > confmf
4100 # We grep out `Entering directory' and `Leaving directory'
4101 # messages which can occur if `w' ends up in MAKEFLAGS.
4102 # In particular we don't look at `^make:' because GNU make might
4103 # be invoked under some other name (usually "gmake"), in which
4104 # case it prints its new name instead of `make'.
4105 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4106    am__include=include
4107    am__quote=
4108    _am_result=GNU
4109 fi
4110 # Now try BSD make style include.
4111 if test "$am__include" = "#"; then
4112    echo '.include "confinc"' > confmf
4113    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4114       am__include=.include
4115       am__quote="\""
4116       _am_result=BSD
4117    fi
4118 fi
4119
4120
4121 echo "$as_me:$LINENO: result: $_am_result" >&5
4122 echo "${ECHO_T}$_am_result" >&6
4123 rm -f confinc confmf
4124
4125 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4126 if test "${enable_dependency_tracking+set}" = set; then
4127   enableval="$enable_dependency_tracking"
4128
4129 fi;
4130 if test "x$enable_dependency_tracking" != xno; then
4131   am_depcomp="$ac_aux_dir/depcomp"
4132   AMDEPBACKSLASH='\'
4133 fi
4134
4135
4136 if test "x$enable_dependency_tracking" != xno; then
4137   AMDEP_TRUE=
4138   AMDEP_FALSE='#'
4139 else
4140   AMDEP_TRUE='#'
4141   AMDEP_FALSE=
4142 fi
4143
4144
4145
4146 ac_ext=c
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151 if test -n "$ac_tool_prefix"; then
4152   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4153 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4154 echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_CC+set}" = set; then
4157   echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159   if test -n "$CC"; then
4160   ac_cv_prog_CC="$CC" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4164 do
4165   IFS=$as_save_IFS
4166   test -z "$as_dir" && as_dir=.
4167   for ac_exec_ext in '' $ac_executable_extensions; do
4168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171     break 2
4172   fi
4173 done
4174 done
4175
4176 fi
4177 fi
4178 CC=$ac_cv_prog_CC
4179 if test -n "$CC"; then
4180   echo "$as_me:$LINENO: result: $CC" >&5
4181 echo "${ECHO_T}$CC" >&6
4182 else
4183   echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4185 fi
4186
4187 fi
4188 if test -z "$ac_cv_prog_CC"; then
4189   ac_ct_CC=$CC
4190   # Extract the first word of "gcc", so it can be a program name with args.
4191 set dummy gcc; ac_word=$2
4192 echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   if test -n "$ac_ct_CC"; then
4198   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4202 do
4203   IFS=$as_save_IFS
4204   test -z "$as_dir" && as_dir=.
4205   for ac_exec_ext in '' $ac_executable_extensions; do
4206   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207     ac_cv_prog_ac_ct_CC="gcc"
4208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209     break 2
4210   fi
4211 done
4212 done
4213
4214 fi
4215 fi
4216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4217 if test -n "$ac_ct_CC"; then
4218   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4219 echo "${ECHO_T}$ac_ct_CC" >&6
4220 else
4221   echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4223 fi
4224
4225   CC=$ac_ct_CC
4226 else
4227   CC="$ac_cv_prog_CC"
4228 fi
4229
4230 if test -z "$CC"; then
4231   if test -n "$ac_tool_prefix"; then
4232   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4233 set dummy ${ac_tool_prefix}cc; ac_word=$2
4234 echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4236 if test "${ac_cv_prog_CC+set}" = set; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   if test -n "$CC"; then
4240   ac_cv_prog_CC="$CC" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4244 do
4245   IFS=$as_save_IFS
4246   test -z "$as_dir" && as_dir=.
4247   for ac_exec_ext in '' $ac_executable_extensions; do
4248   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249     ac_cv_prog_CC="${ac_tool_prefix}cc"
4250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251     break 2
4252   fi
4253 done
4254 done
4255
4256 fi
4257 fi
4258 CC=$ac_cv_prog_CC
4259 if test -n "$CC"; then
4260   echo "$as_me:$LINENO: result: $CC" >&5
4261 echo "${ECHO_T}$CC" >&6
4262 else
4263   echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6
4265 fi
4266
4267 fi
4268 if test -z "$ac_cv_prog_CC"; then
4269   ac_ct_CC=$CC
4270   # Extract the first word of "cc", so it can be a program name with args.
4271 set dummy cc; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   if test -n "$ac_ct_CC"; then
4278   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283   IFS=$as_save_IFS
4284   test -z "$as_dir" && as_dir=.
4285   for ac_exec_ext in '' $ac_executable_extensions; do
4286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287     ac_cv_prog_ac_ct_CC="cc"
4288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4289     break 2
4290   fi
4291 done
4292 done
4293
4294 fi
4295 fi
4296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4297 if test -n "$ac_ct_CC"; then
4298   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4299 echo "${ECHO_T}$ac_ct_CC" >&6
4300 else
4301   echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4303 fi
4304
4305   CC=$ac_ct_CC
4306 else
4307   CC="$ac_cv_prog_CC"
4308 fi
4309
4310 fi
4311 if test -z "$CC"; then
4312   # Extract the first word of "cc", so it can be a program name with args.
4313 set dummy cc; ac_word=$2
4314 echo "$as_me:$LINENO: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316 if test "${ac_cv_prog_CC+set}" = set; then
4317   echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319   if test -n "$CC"; then
4320   ac_cv_prog_CC="$CC" # Let the user override the test.
4321 else
4322   ac_prog_rejected=no
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH
4325 do
4326   IFS=$as_save_IFS
4327   test -z "$as_dir" && as_dir=.
4328   for ac_exec_ext in '' $ac_executable_extensions; do
4329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4330     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4331        ac_prog_rejected=yes
4332        continue
4333      fi
4334     ac_cv_prog_CC="cc"
4335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336     break 2
4337   fi
4338 done
4339 done
4340
4341 if test $ac_prog_rejected = yes; then
4342   # We found a bogon in the path, so make sure we never use it.
4343   set dummy $ac_cv_prog_CC
4344   shift
4345   if test $# != 0; then
4346     # We chose a different compiler from the bogus one.
4347     # However, it has the same basename, so the bogon will be chosen
4348     # first if we set CC to just the basename; use the full file name.
4349     shift
4350     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4351   fi
4352 fi
4353 fi
4354 fi
4355 CC=$ac_cv_prog_CC
4356 if test -n "$CC"; then
4357   echo "$as_me:$LINENO: result: $CC" >&5
4358 echo "${ECHO_T}$CC" >&6
4359 else
4360   echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6
4362 fi
4363
4364 fi
4365 if test -z "$CC"; then
4366   if test -n "$ac_tool_prefix"; then
4367   for ac_prog in cl
4368   do
4369     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4371 echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4373 if test "${ac_cv_prog_CC+set}" = set; then
4374   echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376   if test -n "$CC"; then
4377   ac_cv_prog_CC="$CC" # Let the user override the test.
4378 else
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4381 do
4382   IFS=$as_save_IFS
4383   test -z "$as_dir" && as_dir=.
4384   for ac_exec_ext in '' $ac_executable_extensions; do
4385   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4386     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388     break 2
4389   fi
4390 done
4391 done
4392
4393 fi
4394 fi
4395 CC=$ac_cv_prog_CC
4396 if test -n "$CC"; then
4397   echo "$as_me:$LINENO: result: $CC" >&5
4398 echo "${ECHO_T}$CC" >&6
4399 else
4400   echo "$as_me:$LINENO: result: no" >&5
4401 echo "${ECHO_T}no" >&6
4402 fi
4403
4404     test -n "$CC" && break
4405   done
4406 fi
4407 if test -z "$CC"; then
4408   ac_ct_CC=$CC
4409   for ac_prog in cl
4410 do
4411   # Extract the first word of "$ac_prog", so it can be a program name with args.
4412 set dummy $ac_prog; ac_word=$2
4413 echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4415 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4416   echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418   if test -n "$ac_ct_CC"; then
4419   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424   IFS=$as_save_IFS
4425   test -z "$as_dir" && as_dir=.
4426   for ac_exec_ext in '' $ac_executable_extensions; do
4427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428     ac_cv_prog_ac_ct_CC="$ac_prog"
4429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430     break 2
4431   fi
4432 done
4433 done
4434
4435 fi
4436 fi
4437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4438 if test -n "$ac_ct_CC"; then
4439   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4440 echo "${ECHO_T}$ac_ct_CC" >&6
4441 else
4442   echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6
4444 fi
4445
4446   test -n "$ac_ct_CC" && break
4447 done
4448
4449   CC=$ac_ct_CC
4450 fi
4451
4452 fi
4453
4454
4455 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4456 See \`config.log' for more details." >&5
4457 echo "$as_me: error: no acceptable C compiler found in \$PATH
4458 See \`config.log' for more details." >&2;}
4459    { (exit 1); exit 1; }; }
4460
4461 # Provide some information about the compiler.
4462 echo "$as_me:$LINENO:" \
4463      "checking for C compiler version" >&5
4464 ac_compiler=`set X $ac_compile; echo $2`
4465 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4466   (eval $ac_compiler --version </dev/null >&5) 2>&5
4467   ac_status=$?
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); }
4470 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4471   (eval $ac_compiler -v </dev/null >&5) 2>&5
4472   ac_status=$?
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); }
4475 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4476   (eval $ac_compiler -V </dev/null >&5) 2>&5
4477   ac_status=$?
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); }
4480
4481 cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h.  */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h.  */
4487
4488 int
4489 main ()
4490 {
4491
4492   ;
4493   return 0;
4494 }
4495 _ACEOF
4496 ac_clean_files_save=$ac_clean_files
4497 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4498 # Try to create an executable without -o first, disregard a.out.
4499 # It will help us diagnose broken compilers, and finding out an intuition
4500 # of exeext.
4501 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4502 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4503 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4504 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4505   (eval $ac_link_default) 2>&5
4506   ac_status=$?
4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508   (exit $ac_status); }; then
4509   # Find the output, starting from the most likely.  This scheme is
4510 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4511 # resort.
4512
4513 # Be careful to initialize this variable, since it used to be cached.
4514 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4515 ac_cv_exeext=
4516 # b.out is created by i960 compilers.
4517 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4518 do
4519   test -f "$ac_file" || continue
4520   case $ac_file in
4521     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4522         ;;
4523     conftest.$ac_ext )
4524         # This is the source file.
4525         ;;
4526     [ab].out )
4527         # We found the default executable, but exeext='' is most
4528         # certainly right.
4529         break;;
4530     *.* )
4531         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4532         # FIXME: I believe we export ac_cv_exeext for Libtool,
4533         # but it would be cool to find out if it's true.  Does anybody
4534         # maintain Libtool? --akim.
4535         export ac_cv_exeext
4536         break;;
4537     * )
4538         break;;
4539   esac
4540 done
4541 else
4542   echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4546 See \`config.log' for more details." >&5
4547 echo "$as_me: error: C compiler cannot create executables
4548 See \`config.log' for more details." >&2;}
4549    { (exit 77); exit 77; }; }
4550 fi
4551
4552 ac_exeext=$ac_cv_exeext
4553 echo "$as_me:$LINENO: result: $ac_file" >&5
4554 echo "${ECHO_T}$ac_file" >&6
4555
4556 # Check the compiler produces executables we can run.  If not, either
4557 # the compiler is broken, or we cross compile.
4558 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4559 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4560 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4561 # If not cross compiling, check that we can run a simple program.
4562 if test "$cross_compiling" != yes; then
4563   if { ac_try='./$ac_file'
4564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565   (eval $ac_try) 2>&5
4566   ac_status=$?
4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); }; }; then
4569     cross_compiling=no
4570   else
4571     if test "$cross_compiling" = maybe; then
4572         cross_compiling=yes
4573     else
4574         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4575 If you meant to cross compile, use \`--host'.
4576 See \`config.log' for more details." >&5
4577 echo "$as_me: error: cannot run C compiled programs.
4578 If you meant to cross compile, use \`--host'.
4579 See \`config.log' for more details." >&2;}
4580    { (exit 1); exit 1; }; }
4581     fi
4582   fi
4583 fi
4584 echo "$as_me:$LINENO: result: yes" >&5
4585 echo "${ECHO_T}yes" >&6
4586
4587 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4588 ac_clean_files=$ac_clean_files_save
4589 # Check the compiler produces executables we can run.  If not, either
4590 # the compiler is broken, or we cross compile.
4591 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4592 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4593 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4594 echo "${ECHO_T}$cross_compiling" >&6
4595
4596 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4597 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4599   (eval $ac_link) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; then
4603   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4604 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4605 # work properly (i.e., refer to `conftest.exe'), while it won't with
4606 # `rm'.
4607 for ac_file in conftest.exe conftest conftest.*; do
4608   test -f "$ac_file" || continue
4609   case $ac_file in
4610     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4611     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4612           export ac_cv_exeext
4613           break;;
4614     * ) break;;
4615   esac
4616 done
4617 else
4618   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4619 See \`config.log' for more details." >&5
4620 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4621 See \`config.log' for more details." >&2;}
4622    { (exit 1); exit 1; }; }
4623 fi
4624
4625 rm -f conftest$ac_cv_exeext
4626 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4627 echo "${ECHO_T}$ac_cv_exeext" >&6
4628
4629 rm -f conftest.$ac_ext
4630 EXEEXT=$ac_cv_exeext
4631 ac_exeext=$EXEEXT
4632 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4633 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4634 if test "${ac_cv_objext+set}" = set; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637   cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643
4644 int
4645 main ()
4646 {
4647
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 rm -f conftest.o conftest.obj
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654   (eval $ac_compile) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }; then
4658   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4659   case $ac_file in
4660     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4661     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4662        break;;
4663   esac
4664 done
4665 else
4666   echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4670 See \`config.log' for more details." >&5
4671 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4672 See \`config.log' for more details." >&2;}
4673    { (exit 1); exit 1; }; }
4674 fi
4675
4676 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4677 fi
4678 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4679 echo "${ECHO_T}$ac_cv_objext" >&6
4680 OBJEXT=$ac_cv_objext
4681 ac_objext=$OBJEXT
4682 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4683 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4684 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4685   echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687   cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h.  */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h.  */
4693
4694 int
4695 main ()
4696 {
4697 #ifndef __GNUC__
4698        choke me
4699 #endif
4700
4701   ;
4702   return 0;
4703 }
4704 _ACEOF
4705 rm -f conftest.$ac_objext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707   (eval $ac_compile) 2>conftest.er1
4708   ac_status=$?
4709   grep -v '^ *+' conftest.er1 >conftest.err
4710   rm -f conftest.er1
4711   cat conftest.err >&5
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); } &&
4714          { ac_try='test -z "$ac_c_werror_flag"
4715                          || test ! -s conftest.err'
4716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717   (eval $ac_try) 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }; } &&
4721          { ac_try='test -s conftest.$ac_objext'
4722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723   (eval $ac_try) 2>&5
4724   ac_status=$?
4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); }; }; then
4727   ac_compiler_gnu=yes
4728 else
4729   echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732 ac_compiler_gnu=no
4733 fi
4734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4736
4737 fi
4738 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4739 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4740 GCC=`test $ac_compiler_gnu = yes && echo yes`
4741 ac_test_CFLAGS=${CFLAGS+set}
4742 ac_save_CFLAGS=$CFLAGS
4743 CFLAGS="-g"
4744 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4745 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4746 if test "${ac_cv_prog_cc_g+set}" = set; then
4747   echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749   cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h.  */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h.  */
4755
4756 int
4757 main ()
4758 {
4759
4760   ;
4761   return 0;
4762 }
4763 _ACEOF
4764 rm -f conftest.$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766   (eval $ac_compile) 2>conftest.er1
4767   ac_status=$?
4768   grep -v '^ *+' conftest.er1 >conftest.err
4769   rm -f conftest.er1
4770   cat conftest.err >&5
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); } &&
4773          { ac_try='test -z "$ac_c_werror_flag"
4774                          || test ! -s conftest.err'
4775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776   (eval $ac_try) 2>&5
4777   ac_status=$?
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); }; } &&
4780          { ac_try='test -s conftest.$ac_objext'
4781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782   (eval $ac_try) 2>&5
4783   ac_status=$?
4784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); }; }; then
4786   ac_cv_prog_cc_g=yes
4787 else
4788   echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791 ac_cv_prog_cc_g=no
4792 fi
4793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4794 fi
4795 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4796 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4797 if test "$ac_test_CFLAGS" = set; then
4798   CFLAGS=$ac_save_CFLAGS
4799 elif test $ac_cv_prog_cc_g = yes; then
4800   if test "$GCC" = yes; then
4801     CFLAGS="-g -O2"
4802   else
4803     CFLAGS="-g"
4804   fi
4805 else
4806   if test "$GCC" = yes; then
4807     CFLAGS="-O2"
4808   else
4809     CFLAGS=
4810   fi
4811 fi
4812 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4813 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4814 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   ac_cv_prog_cc_stdc=no
4818 ac_save_CC=$CC
4819 cat >conftest.$ac_ext <<_ACEOF
4820 /* confdefs.h.  */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h.  */
4825 #include <stdarg.h>
4826 #include <stdio.h>
4827 #include <sys/types.h>
4828 #include <sys/stat.h>
4829 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4830 struct buf { int x; };
4831 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4832 static char *e (p, i)
4833      char **p;
4834      int i;
4835 {
4836   return p[i];
4837 }
4838 static char *f (char * (*g) (char **, int), char **p, ...)
4839 {
4840   char *s;
4841   va_list v;
4842   va_start (v,p);
4843   s = g (p, va_arg (v,int));
4844   va_end (v);
4845   return s;
4846 }
4847
4848 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4849    function prototypes and stuff, but not '\xHH' hex character constants.
4850    These don't provoke an error unfortunately, instead are silently treated
4851    as 'x'.  The following induces an error, until -std1 is added to get
4852    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4853    array size at least.  It's necessary to write '\x00'==0 to get something
4854    that's true only with -std1.  */
4855 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4856
4857 int test (int i, double x);
4858 struct s1 {int (*f) (int a);};
4859 struct s2 {int (*f) (double a);};
4860 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4861 int argc;
4862 char **argv;
4863 int
4864 main ()
4865 {
4866 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4867   ;
4868   return 0;
4869 }
4870 _ACEOF
4871 # Don't try gcc -ansi; that turns off useful extensions and
4872 # breaks some systems' header files.
4873 # AIX                   -qlanglvl=ansi
4874 # Ultrix and OSF/1      -std1
4875 # HP-UX 10.20 and later -Ae
4876 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4877 # SVR4                  -Xc -D__EXTENSIONS__
4878 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4879 do
4880   CC="$ac_save_CC $ac_arg"
4881   rm -f conftest.$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883   (eval $ac_compile) 2>conftest.er1
4884   ac_status=$?
4885   grep -v '^ *+' conftest.er1 >conftest.err
4886   rm -f conftest.er1
4887   cat conftest.err >&5
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); } &&
4890          { ac_try='test -z "$ac_c_werror_flag"
4891                          || test ! -s conftest.err'
4892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893   (eval $ac_try) 2>&5
4894   ac_status=$?
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); }; } &&
4897          { ac_try='test -s conftest.$ac_objext'
4898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899   (eval $ac_try) 2>&5
4900   ac_status=$?
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); }; }; then
4903   ac_cv_prog_cc_stdc=$ac_arg
4904 break
4905 else
4906   echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4908
4909 fi
4910 rm -f conftest.err conftest.$ac_objext
4911 done
4912 rm -f conftest.$ac_ext conftest.$ac_objext
4913 CC=$ac_save_CC
4914
4915 fi
4916
4917 case "x$ac_cv_prog_cc_stdc" in
4918   x|xno)
4919     echo "$as_me:$LINENO: result: none needed" >&5
4920 echo "${ECHO_T}none needed" >&6 ;;
4921   *)
4922     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4923 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4924     CC="$CC $ac_cv_prog_cc_stdc" ;;
4925 esac
4926
4927 # Some people use a C++ compiler to compile C.  Since we use `exit',
4928 # in C++ we need to declare it.  In case someone uses the same compiler
4929 # for both compiling C and C++ we need to have the C++ compiler decide
4930 # the declaration of exit, since it's the most demanding environment.
4931 cat >conftest.$ac_ext <<_ACEOF
4932 #ifndef __cplusplus
4933   choke me
4934 #endif
4935 _ACEOF
4936 rm -f conftest.$ac_objext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938   (eval $ac_compile) 2>conftest.er1
4939   ac_status=$?
4940   grep -v '^ *+' conftest.er1 >conftest.err
4941   rm -f conftest.er1
4942   cat conftest.err >&5
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); } &&
4945          { ac_try='test -z "$ac_c_werror_flag"
4946                          || test ! -s conftest.err'
4947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948   (eval $ac_try) 2>&5
4949   ac_status=$?
4950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951   (exit $ac_status); }; } &&
4952          { ac_try='test -s conftest.$ac_objext'
4953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954   (eval $ac_try) 2>&5
4955   ac_status=$?
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); }; }; then
4958   for ac_declaration in \
4959    '' \
4960    'extern "C" void std::exit (int) throw (); using std::exit;' \
4961    'extern "C" void std::exit (int); using std::exit;' \
4962    'extern "C" void exit (int) throw ();' \
4963    'extern "C" void exit (int);' \
4964    'void exit (int);'
4965 do
4966   cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h.  */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h.  */
4972 $ac_declaration
4973 #include <stdlib.h>
4974 int
4975 main ()
4976 {
4977 exit (42);
4978   ;
4979   return 0;
4980 }
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984   (eval $ac_compile) 2>conftest.er1
4985   ac_status=$?
4986   grep -v '^ *+' conftest.er1 >conftest.err
4987   rm -f conftest.er1
4988   cat conftest.err >&5
4989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); } &&
4991          { ac_try='test -z "$ac_c_werror_flag"
4992                          || test ! -s conftest.err'
4993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994   (eval $ac_try) 2>&5
4995   ac_status=$?
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); }; } &&
4998          { ac_try='test -s conftest.$ac_objext'
4999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000   (eval $ac_try) 2>&5
5001   ac_status=$?
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); }; }; then
5004   :
5005 else
5006   echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5008
5009 continue
5010 fi
5011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5012   cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h.  */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h.  */
5018 $ac_declaration
5019 int
5020 main ()
5021 {
5022 exit (42);
5023   ;
5024   return 0;
5025 }
5026 _ACEOF
5027 rm -f conftest.$ac_objext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029   (eval $ac_compile) 2>conftest.er1
5030   ac_status=$?
5031   grep -v '^ *+' conftest.er1 >conftest.err
5032   rm -f conftest.er1
5033   cat conftest.err >&5
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); } &&
5036          { ac_try='test -z "$ac_c_werror_flag"
5037                          || test ! -s conftest.err'
5038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039   (eval $ac_try) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); }; } &&
5043          { ac_try='test -s conftest.$ac_objext'
5044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045   (eval $ac_try) 2>&5
5046   ac_status=$?
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); }; }; then
5049   break
5050 else
5051   echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 fi
5055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5056 done
5057 rm -f conftest*
5058 if test -n "$ac_declaration"; then
5059   echo '#ifdef __cplusplus' >>confdefs.h
5060   echo $ac_declaration      >>confdefs.h
5061   echo '#endif'             >>confdefs.h
5062 fi
5063
5064 else
5065   echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 fi
5069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5070 ac_ext=c
5071 ac_cpp='$CPP $CPPFLAGS'
5072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5075
5076 depcc="$CC"   am_compiler_list=
5077
5078 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5079 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5080 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5084   # We make a subdir and do the tests there.  Otherwise we can end up
5085   # making bogus files that we don't know about and never remove.  For
5086   # instance it was reported that on HP-UX the gcc test will end up
5087   # making a dummy file named `D' -- because `-MD' means `put the output
5088   # in D'.
5089   mkdir conftest.dir
5090   # Copy depcomp to subdir because otherwise we won't find it if we're
5091   # using a relative directory.
5092   cp "$am_depcomp" conftest.dir
5093   cd conftest.dir
5094   # We will build objects and dependencies in a subdirectory because
5095   # it helps to detect inapplicable dependency modes.  For instance
5096   # both Tru64's cc and ICC support -MD to output dependencies as a
5097   # side effect of compilation, but ICC will put the dependencies in
5098   # the current directory while Tru64 will put them in the object
5099   # directory.
5100   mkdir sub
5101
5102   am_cv_CC_dependencies_compiler_type=none
5103   if test "$am_compiler_list" = ""; then
5104      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5105   fi
5106   for depmode in $am_compiler_list; do
5107     # Setup a source with many dependencies, because some compilers
5108     # like to wrap large dependency lists on column 80 (with \), and
5109     # we should not choose a depcomp mode which is confused by this.
5110     #
5111     # We need to recreate these files for each test, as the compiler may
5112     # overwrite some of them when testing with obscure command lines.
5113     # This happens at least with the AIX C compiler.
5114     : > sub/conftest.c
5115     for i in 1 2 3 4 5 6; do
5116       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5117       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5118       # Solaris 8's {/usr,}/bin/sh.
5119       touch sub/conftst$i.h
5120     done
5121     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5122
5123     case $depmode in
5124     nosideeffect)
5125       # after this tag, mechanisms are not by side-effect, so they'll
5126       # only be used when explicitly requested
5127       if test "x$enable_dependency_tracking" = xyes; then
5128         continue
5129       else
5130         break
5131       fi
5132       ;;
5133     none) break ;;
5134     esac
5135     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5136     # mode.  It turns out that the SunPro C++ compiler does not properly
5137     # handle `-M -o', and we need to detect this.
5138     if depmode=$depmode \
5139        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5140        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5141        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5142          >/dev/null 2>conftest.err &&
5143        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5144        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5145        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5146       # icc doesn't choke on unknown options, it will just issue warnings
5147       # or remarks (even with -Werror).  So we grep stderr for any message
5148       # that says an option was ignored or not supported.
5149       # When given -MP, icc 7.0 and 7.1 complain thusly:
5150       #   icc: Command line warning: ignoring option '-M'; no argument required
5151       # The diagnosis changed in icc 8.0:
5152       #   icc: Command line remark: option '-MP' not supported
5153       if (grep 'ignoring option' conftest.err ||
5154           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5155         am_cv_CC_dependencies_compiler_type=$depmode
5156         break
5157       fi
5158     fi
5159   done
5160
5161   cd ..
5162   rm -rf conftest.dir
5163 else
5164   am_cv_CC_dependencies_compiler_type=none
5165 fi
5166
5167 fi
5168 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5169 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5170 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5171
5172
5173
5174 if
5175   test "x$enable_dependency_tracking" != xno \
5176   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5177   am__fastdepCC_TRUE=
5178   am__fastdepCC_FALSE='#'
5179 else
5180   am__fastdepCC_TRUE='#'
5181   am__fastdepCC_FALSE=
5182 fi
5183
5184
5185 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5186 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5187 if test "${lt_cv_path_SED+set}" = set; then
5188   echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190   # Loop through the user's path and test for sed and gsed.
5191 # Then use that list of sed's as ones to test for truncation.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197   for lt_ac_prog in sed gsed; do
5198     for ac_exec_ext in '' $ac_executable_extensions; do
5199       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5200         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5201       fi
5202     done
5203   done
5204 done
5205 lt_ac_max=0
5206 lt_ac_count=0
5207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5208 # along with /bin/sed that truncates output.
5209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5210   test ! -f $lt_ac_sed && continue
5211   cat /dev/null > conftest.in
5212   lt_ac_count=0
5213   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5214   # Check for GNU sed and select it if it is found.
5215   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5216     lt_cv_path_SED=$lt_ac_sed
5217     break
5218   fi
5219   while true; do
5220     cat conftest.in conftest.in >conftest.tmp
5221     mv conftest.tmp conftest.in
5222     cp conftest.in conftest.nl
5223     echo >>conftest.nl
5224     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5225     cmp -s conftest.out conftest.nl || break
5226     # 10000 chars as input seems more than enough
5227     test $lt_ac_count -gt 10 && break
5228     lt_ac_count=`expr $lt_ac_count + 1`
5229     if test $lt_ac_count -gt $lt_ac_max; then
5230       lt_ac_max=$lt_ac_count
5231       lt_cv_path_SED=$lt_ac_sed
5232     fi
5233   done
5234 done
5235
5236 fi
5237
5238 SED=$lt_cv_path_SED
5239 echo "$as_me:$LINENO: result: $SED" >&5
5240 echo "${ECHO_T}$SED" >&6
5241
5242 echo "$as_me:$LINENO: checking for egrep" >&5
5243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5244 if test "${ac_cv_prog_egrep+set}" = set; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5248     then ac_cv_prog_egrep='grep -E'
5249     else ac_cv_prog_egrep='egrep'
5250     fi
5251 fi
5252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5254  EGREP=$ac_cv_prog_egrep
5255
5256
5257
5258 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5259 if test "${with_gnu_ld+set}" = set; then
5260   withval="$with_gnu_ld"
5261   test "$withval" = no || with_gnu_ld=yes
5262 else
5263   with_gnu_ld=no
5264 fi;
5265 ac_prog=ld
5266 if test "$GCC" = yes; then
5267   # Check if gcc -print-prog-name=ld gives a path.
5268   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5269 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5270   case $host in
5271   *-*-mingw*)
5272     # gcc leaves a trailing carriage return which upsets mingw
5273     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5274   *)
5275     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5276   esac
5277   case $ac_prog in
5278     # Accept absolute paths.
5279     [\\/]* | ?:[\\/]*)
5280       re_direlt='/[^/][^/]*/\.\./'
5281       # Canonicalize the pathname of ld
5282       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5283       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5284         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5285       done
5286       test -z "$LD" && LD="$ac_prog"
5287       ;;
5288   "")
5289     # If it fails, then pretend we aren't using GCC.
5290     ac_prog=ld
5291     ;;
5292   *)
5293     # If it is relative, then search for the first ld in PATH.
5294     with_gnu_ld=unknown
5295     ;;
5296   esac
5297 elif test "$with_gnu_ld" = yes; then
5298   echo "$as_me:$LINENO: checking for GNU ld" >&5
5299 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5300 else
5301   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5302 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5303 fi
5304 if test "${lt_cv_path_LD+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   if test -z "$LD"; then
5308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5309   for ac_dir in $PATH; do
5310     IFS="$lt_save_ifs"
5311     test -z "$ac_dir" && ac_dir=.
5312     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5313       lt_cv_path_LD="$ac_dir/$ac_prog"
5314       # Check to see if the program is GNU ld.  I'd rather use --version,
5315       # but apparently some variants of GNU ld only accept -v.
5316       # Break only if it was the GNU/non-GNU ld that we prefer.
5317       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5318       *GNU* | *'with BFD'*)
5319         test "$with_gnu_ld" != no && break
5320         ;;
5321       *)
5322         test "$with_gnu_ld" != yes && break
5323         ;;
5324       esac
5325     fi
5326   done
5327   IFS="$lt_save_ifs"
5328 else
5329   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5330 fi
5331 fi
5332
5333 LD="$lt_cv_path_LD"
5334 if test -n "$LD"; then
5335   echo "$as_me:$LINENO: result: $LD" >&5
5336 echo "${ECHO_T}$LD" >&6
5337 else
5338   echo "$as_me:$LINENO: result: no" >&5
5339 echo "${ECHO_T}no" >&6
5340 fi
5341 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5342 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5343    { (exit 1); exit 1; }; }
5344 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5345 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5346 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5350 case `$LD -v 2>&1 </dev/null` in
5351 *GNU* | *'with BFD'*)
5352   lt_cv_prog_gnu_ld=yes
5353   ;;
5354 *)
5355   lt_cv_prog_gnu_ld=no
5356   ;;
5357 esac
5358 fi
5359 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5360 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5361 with_gnu_ld=$lt_cv_prog_gnu_ld
5362
5363
5364 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5365 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5366 if test "${lt_cv_ld_reload_flag+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   lt_cv_ld_reload_flag='-r'
5370 fi
5371 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5372 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5373 reload_flag=$lt_cv_ld_reload_flag
5374 case $reload_flag in
5375 "" | " "*) ;;
5376 *) reload_flag=" $reload_flag" ;;
5377 esac
5378 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5379 case $host_os in
5380   darwin*)
5381     if test "$GCC" = yes; then
5382       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5383     else
5384       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5385     fi
5386     ;;
5387 esac
5388
5389 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5390 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5391 if test "${lt_cv_path_NM+set}" = set; then
5392   echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394   if test -n "$NM"; then
5395   # Let the user override the test.
5396   lt_cv_path_NM="$NM"
5397 else
5398   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5399   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5400     IFS="$lt_save_ifs"
5401     test -z "$ac_dir" && ac_dir=.
5402     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5403     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5404       # Check to see if the nm accepts a BSD-compat flag.
5405       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5406       #   nm: unknown option "B" ignored
5407       # Tru64's nm complains that /dev/null is an invalid object file
5408       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5409       */dev/null* | *'Invalid file or object type'*)
5410         lt_cv_path_NM="$tmp_nm -B"
5411         break
5412         ;;
5413       *)
5414         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5415         */dev/null*)
5416           lt_cv_path_NM="$tmp_nm -p"
5417           break
5418           ;;
5419         *)
5420           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5421           continue # so that we can try to find one that supports BSD flags
5422           ;;
5423         esac
5424       esac
5425     fi
5426   done
5427   IFS="$lt_save_ifs"
5428   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5429 fi
5430 fi
5431 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5432 echo "${ECHO_T}$lt_cv_path_NM" >&6
5433 NM="$lt_cv_path_NM"
5434
5435 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5436 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5437 LN_S=$as_ln_s
5438 if test "$LN_S" = "ln -s"; then
5439   echo "$as_me:$LINENO: result: yes" >&5
5440 echo "${ECHO_T}yes" >&6
5441 else
5442   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5443 echo "${ECHO_T}no, using $LN_S" >&6
5444 fi
5445
5446 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5447 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5448 if test "${lt_cv_deplibs_check_method+set}" = set; then
5449   echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451   lt_cv_file_magic_cmd='$MAGIC_CMD'
5452 lt_cv_file_magic_test_file=
5453 lt_cv_deplibs_check_method='unknown'
5454 # Need to set the preceding variable on all platforms that support
5455 # interlibrary dependencies.
5456 # 'none' -- dependencies not supported.
5457 # `unknown' -- same as none, but documents that we really don't know.
5458 # 'pass_all' -- all dependencies passed with no checks.
5459 # 'test_compile' -- check by making test program.
5460 # 'file_magic [[regex]]' -- check by looking for files in library path
5461 # which responds to the $file_magic_cmd with a given extended regex.
5462 # If you have `file' or equivalent on your system and you're not sure
5463 # whether `pass_all' will *always* work, you probably want this one.
5464
5465 case $host_os in
5466 aix4* | aix5*)
5467   lt_cv_deplibs_check_method=pass_all
5468   ;;
5469
5470 beos*)
5471   lt_cv_deplibs_check_method=pass_all
5472   ;;
5473
5474 bsdi[45]*)
5475   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5476   lt_cv_file_magic_cmd='/usr/bin/file -L'
5477   lt_cv_file_magic_test_file=/shlib/libc.so
5478   ;;
5479
5480 cygwin*)
5481   # func_win32_libid is a shell function defined in ltmain.sh
5482   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5483   lt_cv_file_magic_cmd='func_win32_libid'
5484   ;;
5485
5486 mingw* | pw32*)
5487   # Base MSYS/MinGW do not provide the 'file' command needed by
5488   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5489   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5490   lt_cv_file_magic_cmd='$OBJDUMP -f'
5491   ;;
5492
5493 darwin* | rhapsody*)
5494   lt_cv_deplibs_check_method=pass_all
5495   ;;
5496
5497 freebsd* | kfreebsd*-gnu | dragonfly*)
5498   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5499     case $host_cpu in
5500     i*86 )
5501       # Not sure whether the presence of OpenBSD here was a mistake.
5502       # Let's accept both of them until this is cleared up.
5503       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5504       lt_cv_file_magic_cmd=/usr/bin/file
5505       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5506       ;;
5507     esac
5508   else
5509     lt_cv_deplibs_check_method=pass_all
5510   fi
5511   ;;
5512
5513 gnu*)
5514   lt_cv_deplibs_check_method=pass_all
5515   ;;
5516
5517 hpux10.20* | hpux11*)
5518   lt_cv_file_magic_cmd=/usr/bin/file
5519   case $host_cpu in
5520   ia64*)
5521     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5522     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5523     ;;
5524   hppa*64*)
5525     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]'
5526     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5527     ;;
5528   *)
5529     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5530     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5531     ;;
5532   esac
5533   ;;
5534
5535 irix5* | irix6* | nonstopux*)
5536   case $LD in
5537   *-32|*"-32 ") libmagic=32-bit;;
5538   *-n32|*"-n32 ") libmagic=N32;;
5539   *-64|*"-64 ") libmagic=64-bit;;
5540   *) libmagic=never-match;;
5541   esac
5542   lt_cv_deplibs_check_method=pass_all
5543   ;;
5544
5545 # This must be Linux ELF.
5546 linux*)
5547   lt_cv_deplibs_check_method=pass_all
5548   ;;
5549
5550 netbsd*)
5551   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5552     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5553   else
5554     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5555   fi
5556   ;;
5557
5558 newos6*)
5559   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5560   lt_cv_file_magic_cmd=/usr/bin/file
5561   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5562   ;;
5563
5564 nto-qnx*)
5565   lt_cv_deplibs_check_method=unknown
5566   ;;
5567
5568 openbsd*)
5569   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5570     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5571   else
5572     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5573   fi
5574   ;;
5575
5576 osf3* | osf4* | osf5*)
5577   lt_cv_deplibs_check_method=pass_all
5578   ;;
5579
5580 sco3.2v5*)
5581   lt_cv_deplibs_check_method=pass_all
5582   ;;
5583
5584 solaris*)
5585   lt_cv_deplibs_check_method=pass_all
5586   ;;
5587
5588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5589   case $host_vendor in
5590   motorola)
5591     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]'
5592     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5593     ;;
5594   ncr)
5595     lt_cv_deplibs_check_method=pass_all
5596     ;;
5597   sequent)
5598     lt_cv_file_magic_cmd='/bin/file'
5599     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5600     ;;
5601   sni)
5602     lt_cv_file_magic_cmd='/bin/file'
5603     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5604     lt_cv_file_magic_test_file=/lib/libc.so
5605     ;;
5606   siemens)
5607     lt_cv_deplibs_check_method=pass_all
5608     ;;
5609   esac
5610   ;;
5611
5612 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5613   lt_cv_deplibs_check_method=pass_all
5614   ;;
5615 esac
5616
5617 fi
5618 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5619 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5620 file_magic_cmd=$lt_cv_file_magic_cmd
5621 deplibs_check_method=$lt_cv_deplibs_check_method
5622 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5623
5624
5625
5626
5627 # If no C compiler was specified, use CC.
5628 LTCC=${LTCC-"$CC"}
5629
5630 # Allow CC to be a program name with arguments.
5631 compiler=$CC
5632
5633
5634 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5635 if test "${enable_libtool_lock+set}" = set; then
5636   enableval="$enable_libtool_lock"
5637
5638 fi;
5639 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5640
5641 # Some flags need to be propagated to the compiler or linker for good
5642 # libtool support.
5643 case $host in
5644 ia64-*-hpux*)
5645   # Find out which ABI we are using.
5646   echo 'int i;' > conftest.$ac_ext
5647   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648   (eval $ac_compile) 2>&5
5649   ac_status=$?
5650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651   (exit $ac_status); }; then
5652     case `/usr/bin/file conftest.$ac_objext` in
5653     *ELF-32*)
5654       HPUX_IA64_MODE="32"
5655       ;;
5656     *ELF-64*)
5657       HPUX_IA64_MODE="64"
5658       ;;
5659     esac
5660   fi
5661   rm -rf conftest*
5662   ;;
5663 *-*-irix6*)
5664   # Find out which ABI we are using.
5665   echo '#line 5665 "configure"' > conftest.$ac_ext
5666   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667   (eval $ac_compile) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); }; then
5671    if test "$lt_cv_prog_gnu_ld" = yes; then
5672     case `/usr/bin/file conftest.$ac_objext` in
5673     *32-bit*)
5674       LD="${LD-ld} -melf32bsmip"
5675       ;;
5676     *N32*)
5677       LD="${LD-ld} -melf32bmipn32"
5678       ;;
5679     *64-bit*)
5680       LD="${LD-ld} -melf64bmip"
5681       ;;
5682     esac
5683    else
5684     case `/usr/bin/file conftest.$ac_objext` in
5685     *32-bit*)
5686       LD="${LD-ld} -32"
5687       ;;
5688     *N32*)
5689       LD="${LD-ld} -n32"
5690       ;;
5691     *64-bit*)
5692       LD="${LD-ld} -64"
5693       ;;
5694     esac
5695    fi
5696   fi
5697   rm -rf conftest*
5698   ;;
5699
5700 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5701   # Find out which ABI we are using.
5702   echo 'int i;' > conftest.$ac_ext
5703   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5704   (eval $ac_compile) 2>&5
5705   ac_status=$?
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); }; then
5708     case `/usr/bin/file conftest.o` in
5709     *32-bit*)
5710       case $host in
5711         x86_64-*linux*)
5712           LD="${LD-ld} -m elf_i386"
5713           ;;
5714         ppc64-*linux*|powerpc64-*linux*)
5715           LD="${LD-ld} -m elf32ppclinux"
5716           ;;
5717         s390x-*linux*)
5718           LD="${LD-ld} -m elf_s390"
5719           ;;
5720         sparc64-*linux*)
5721           LD="${LD-ld} -m elf32_sparc"
5722           ;;
5723       esac
5724       ;;
5725     *64-bit*)
5726       case $host in
5727         x86_64-*linux*)
5728           LD="${LD-ld} -m elf_x86_64"
5729           ;;
5730         ppc*-*linux*|powerpc*-*linux*)
5731           LD="${LD-ld} -m elf64ppc"
5732           ;;
5733         s390*-*linux*)
5734           LD="${LD-ld} -m elf64_s390"
5735           ;;
5736         sparc*-*linux*)
5737           LD="${LD-ld} -m elf64_sparc"
5738           ;;
5739       esac
5740       ;;
5741     esac
5742   fi
5743   rm -rf conftest*
5744   ;;
5745
5746 *-*-sco3.2v5*)
5747   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5748   SAVE_CFLAGS="$CFLAGS"
5749   CFLAGS="$CFLAGS -belf"
5750   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5751 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5752 if test "${lt_cv_cc_needs_belf+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   ac_ext=c
5756 ac_cpp='$CPP $CPPFLAGS'
5757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5760
5761      cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h.  */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h.  */
5767
5768 int
5769 main ()
5770 {
5771
5772   ;
5773   return 0;
5774 }
5775 _ACEOF
5776 rm -f conftest.$ac_objext conftest$ac_exeext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5778   (eval $ac_link) 2>conftest.er1
5779   ac_status=$?
5780   grep -v '^ *+' conftest.er1 >conftest.err
5781   rm -f conftest.er1
5782   cat conftest.err >&5
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); } &&
5785          { ac_try='test -z "$ac_c_werror_flag"
5786                          || test ! -s conftest.err'
5787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788   (eval $ac_try) 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }; } &&
5792          { ac_try='test -s conftest$ac_exeext'
5793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794   (eval $ac_try) 2>&5
5795   ac_status=$?
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); }; }; then
5798   lt_cv_cc_needs_belf=yes
5799 else
5800   echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5802
5803 lt_cv_cc_needs_belf=no
5804 fi
5805 rm -f conftest.err conftest.$ac_objext \
5806       conftest$ac_exeext conftest.$ac_ext
5807      ac_ext=c
5808 ac_cpp='$CPP $CPPFLAGS'
5809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5812
5813 fi
5814 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5815 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5816   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5817     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5818     CFLAGS="$SAVE_CFLAGS"
5819   fi
5820   ;;
5821 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5822   if test -n "$ac_tool_prefix"; then
5823   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5824 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5825 echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5827 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5828   echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830   if test -n "$DLLTOOL"; then
5831   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5832 else
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5835 do
5836   IFS=$as_save_IFS
5837   test -z "$as_dir" && as_dir=.
5838   for ac_exec_ext in '' $ac_executable_extensions; do
5839   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5842     break 2
5843   fi
5844 done
5845 done
5846
5847 fi
5848 fi
5849 DLLTOOL=$ac_cv_prog_DLLTOOL
5850 if test -n "$DLLTOOL"; then
5851   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5852 echo "${ECHO_T}$DLLTOOL" >&6
5853 else
5854   echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6
5856 fi
5857
5858 fi
5859 if test -z "$ac_cv_prog_DLLTOOL"; then
5860   ac_ct_DLLTOOL=$DLLTOOL
5861   # Extract the first word of "dlltool", so it can be a program name with args.
5862 set dummy dlltool; ac_word=$2
5863 echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5865 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868   if test -n "$ac_ct_DLLTOOL"; then
5869   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874   IFS=$as_save_IFS
5875   test -z "$as_dir" && as_dir=.
5876   for ac_exec_ext in '' $ac_executable_extensions; do
5877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880     break 2
5881   fi
5882 done
5883 done
5884
5885   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5886 fi
5887 fi
5888 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5889 if test -n "$ac_ct_DLLTOOL"; then
5890   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5891 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5892 else
5893   echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6
5895 fi
5896
5897   DLLTOOL=$ac_ct_DLLTOOL
5898 else
5899   DLLTOOL="$ac_cv_prog_DLLTOOL"
5900 fi
5901
5902   if test -n "$ac_tool_prefix"; then
5903   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5904 set dummy ${ac_tool_prefix}as; ac_word=$2
5905 echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5907 if test "${ac_cv_prog_AS+set}" = set; then
5908   echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910   if test -n "$AS"; then
5911   ac_cv_prog_AS="$AS" # Let the user override the test.
5912 else
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916   IFS=$as_save_IFS
5917   test -z "$as_dir" && as_dir=.
5918   for ac_exec_ext in '' $ac_executable_extensions; do
5919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5920     ac_cv_prog_AS="${ac_tool_prefix}as"
5921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922     break 2
5923   fi
5924 done
5925 done
5926
5927 fi
5928 fi
5929 AS=$ac_cv_prog_AS
5930 if test -n "$AS"; then
5931   echo "$as_me:$LINENO: result: $AS" >&5
5932 echo "${ECHO_T}$AS" >&6
5933 else
5934   echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6
5936 fi
5937
5938 fi
5939 if test -z "$ac_cv_prog_AS"; then
5940   ac_ct_AS=$AS
5941   # Extract the first word of "as", so it can be a program name with args.
5942 set dummy as; ac_word=$2
5943 echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5945 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   if test -n "$ac_ct_AS"; then
5949   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954   IFS=$as_save_IFS
5955   test -z "$as_dir" && as_dir=.
5956   for ac_exec_ext in '' $ac_executable_extensions; do
5957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958     ac_cv_prog_ac_ct_AS="as"
5959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960     break 2
5961   fi
5962 done
5963 done
5964
5965   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5966 fi
5967 fi
5968 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5969 if test -n "$ac_ct_AS"; then
5970   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5971 echo "${ECHO_T}$ac_ct_AS" >&6
5972 else
5973   echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6
5975 fi
5976
5977   AS=$ac_ct_AS
5978 else
5979   AS="$ac_cv_prog_AS"
5980 fi
5981
5982   if test -n "$ac_tool_prefix"; then
5983   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5984 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5985 echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5987 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   if test -n "$OBJDUMP"; then
5991   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
5996   IFS=$as_save_IFS
5997   test -z "$as_dir" && as_dir=.
5998   for ac_exec_ext in '' $ac_executable_extensions; do
5999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002     break 2
6003   fi
6004 done
6005 done
6006
6007 fi
6008 fi
6009 OBJDUMP=$ac_cv_prog_OBJDUMP
6010 if test -n "$OBJDUMP"; then
6011   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6012 echo "${ECHO_T}$OBJDUMP" >&6
6013 else
6014   echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6016 fi
6017
6018 fi
6019 if test -z "$ac_cv_prog_OBJDUMP"; then
6020   ac_ct_OBJDUMP=$OBJDUMP
6021   # Extract the first word of "objdump", so it can be a program name with args.
6022 set dummy objdump; ac_word=$2
6023 echo "$as_me:$LINENO: checking for $ac_word" >&5
6024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6025 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6026   echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028   if test -n "$ac_ct_OBJDUMP"; then
6029   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6030 else
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH
6033 do
6034   IFS=$as_save_IFS
6035   test -z "$as_dir" && as_dir=.
6036   for ac_exec_ext in '' $ac_executable_extensions; do
6037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6038     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6040     break 2
6041   fi
6042 done
6043 done
6044
6045   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6046 fi
6047 fi
6048 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6049 if test -n "$ac_ct_OBJDUMP"; then
6050   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6051 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6052 else
6053   echo "$as_me:$LINENO: result: no" >&5
6054 echo "${ECHO_T}no" >&6
6055 fi
6056
6057   OBJDUMP=$ac_ct_OBJDUMP
6058 else
6059   OBJDUMP="$ac_cv_prog_OBJDUMP"
6060 fi
6061
6062   ;;
6063
6064 esac
6065
6066 need_locks="$enable_libtool_lock"
6067
6068
6069 ac_ext=c
6070 ac_cpp='$CPP $CPPFLAGS'
6071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6074 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6075 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6076 # On Suns, sometimes $CPP names a directory.
6077 if test -n "$CPP" && test -d "$CPP"; then
6078   CPP=
6079 fi
6080 if test -z "$CPP"; then
6081   if test "${ac_cv_prog_CPP+set}" = set; then
6082   echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084       # Double quotes because CPP needs to be expanded
6085     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6086     do
6087       ac_preproc_ok=false
6088 for ac_c_preproc_warn_flag in '' yes
6089 do
6090   # Use a header file that comes with gcc, so configuring glibc
6091   # with a fresh cross-compiler works.
6092   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6093   # <limits.h> exists even on freestanding compilers.
6094   # On the NeXT, cc -E runs the code through the compiler's parser,
6095   # not just through cpp. "Syntax error" is here to catch this case.
6096   cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h.  */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h.  */
6102 #ifdef __STDC__
6103 # include <limits.h>
6104 #else
6105 # include <assert.h>
6106 #endif
6107                      Syntax error
6108 _ACEOF
6109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6111   ac_status=$?
6112   grep -v '^ *+' conftest.er1 >conftest.err
6113   rm -f conftest.er1
6114   cat conftest.err >&5
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); } >/dev/null; then
6117   if test -s conftest.err; then
6118     ac_cpp_err=$ac_c_preproc_warn_flag
6119     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6120   else
6121     ac_cpp_err=
6122   fi
6123 else
6124   ac_cpp_err=yes
6125 fi
6126 if test -z "$ac_cpp_err"; then
6127   :
6128 else
6129   echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132   # Broken: fails on valid input.
6133 continue
6134 fi
6135 rm -f conftest.err conftest.$ac_ext
6136
6137   # OK, works on sane cases.  Now check whether non-existent headers
6138   # can be detected and how.
6139   cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h.  */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h.  */
6145 #include <ac_nonexistent.h>
6146 _ACEOF
6147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6148   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6149   ac_status=$?
6150   grep -v '^ *+' conftest.er1 >conftest.err
6151   rm -f conftest.er1
6152   cat conftest.err >&5
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); } >/dev/null; then
6155   if test -s conftest.err; then
6156     ac_cpp_err=$ac_c_preproc_warn_flag
6157     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6158   else
6159     ac_cpp_err=
6160   fi
6161 else
6162   ac_cpp_err=yes
6163 fi
6164 if test -z "$ac_cpp_err"; then
6165   # Broken: success on invalid input.
6166 continue
6167 else
6168   echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6170
6171   # Passes both tests.
6172 ac_preproc_ok=:
6173 break
6174 fi
6175 rm -f conftest.err conftest.$ac_ext
6176
6177 done
6178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6179 rm -f conftest.err conftest.$ac_ext
6180 if $ac_preproc_ok; then
6181   break
6182 fi
6183
6184     done
6185     ac_cv_prog_CPP=$CPP
6186
6187 fi
6188   CPP=$ac_cv_prog_CPP
6189 else
6190   ac_cv_prog_CPP=$CPP
6191 fi
6192 echo "$as_me:$LINENO: result: $CPP" >&5
6193 echo "${ECHO_T}$CPP" >&6
6194 ac_preproc_ok=false
6195 for ac_c_preproc_warn_flag in '' yes
6196 do
6197   # Use a header file that comes with gcc, so configuring glibc
6198   # with a fresh cross-compiler works.
6199   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6200   # <limits.h> exists even on freestanding compilers.
6201   # On the NeXT, cc -E runs the code through the compiler's parser,
6202   # not just through cpp. "Syntax error" is here to catch this case.
6203   cat >conftest.$ac_ext <<_ACEOF
6204 /* confdefs.h.  */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h.  */
6209 #ifdef __STDC__
6210 # include <limits.h>
6211 #else
6212 # include <assert.h>
6213 #endif
6214                      Syntax error
6215 _ACEOF
6216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6218   ac_status=$?
6219   grep -v '^ *+' conftest.er1 >conftest.err
6220   rm -f conftest.er1
6221   cat conftest.err >&5
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); } >/dev/null; then
6224   if test -s conftest.err; then
6225     ac_cpp_err=$ac_c_preproc_warn_flag
6226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6227   else
6228     ac_cpp_err=
6229   fi
6230 else
6231   ac_cpp_err=yes
6232 fi
6233 if test -z "$ac_cpp_err"; then
6234   :
6235 else
6236   echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239   # Broken: fails on valid input.
6240 continue
6241 fi
6242 rm -f conftest.err conftest.$ac_ext
6243
6244   # OK, works on sane cases.  Now check whether non-existent headers
6245   # can be detected and how.
6246   cat >conftest.$ac_ext <<_ACEOF
6247 /* confdefs.h.  */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h.  */
6252 #include <ac_nonexistent.h>
6253 _ACEOF
6254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6256   ac_status=$?
6257   grep -v '^ *+' conftest.er1 >conftest.err
6258   rm -f conftest.er1
6259   cat conftest.err >&5
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); } >/dev/null; then
6262   if test -s conftest.err; then
6263     ac_cpp_err=$ac_c_preproc_warn_flag
6264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6265   else
6266     ac_cpp_err=
6267   fi
6268 else
6269   ac_cpp_err=yes
6270 fi
6271 if test -z "$ac_cpp_err"; then
6272   # Broken: success on invalid input.
6273 continue
6274 else
6275   echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278   # Passes both tests.
6279 ac_preproc_ok=:
6280 break
6281 fi
6282 rm -f conftest.err conftest.$ac_ext
6283
6284 done
6285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6286 rm -f conftest.err conftest.$ac_ext
6287 if $ac_preproc_ok; then
6288   :
6289 else
6290   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6291 See \`config.log' for more details." >&5
6292 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6293 See \`config.log' for more details." >&2;}
6294    { (exit 1); exit 1; }; }
6295 fi
6296
6297 ac_ext=c
6298 ac_cpp='$CPP $CPPFLAGS'
6299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6302
6303
6304 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6305 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6306 if test "${ac_cv_header_stdc+set}" = set; then
6307   echo $ECHO_N "(cached) $ECHO_C" >&6
6308 else
6309   cat >conftest.$ac_ext <<_ACEOF
6310 /* confdefs.h.  */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h.  */
6315 #include <stdlib.h>
6316 #include <stdarg.h>
6317 #include <string.h>
6318 #include <float.h>
6319
6320 int
6321 main ()
6322 {
6323
6324   ;
6325   return 0;
6326 }
6327 _ACEOF
6328 rm -f conftest.$ac_objext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6330   (eval $ac_compile) 2>conftest.er1
6331   ac_status=$?
6332   grep -v '^ *+' conftest.er1 >conftest.err
6333   rm -f conftest.er1
6334   cat conftest.err >&5
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); } &&
6337          { ac_try='test -z "$ac_c_werror_flag"
6338                          || test ! -s conftest.err'
6339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340   (eval $ac_try) 2>&5
6341   ac_status=$?
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); }; } &&
6344          { ac_try='test -s conftest.$ac_objext'
6345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346   (eval $ac_try) 2>&5
6347   ac_status=$?
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); }; }; then
6350   ac_cv_header_stdc=yes
6351 else
6352   echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6354
6355 ac_cv_header_stdc=no
6356 fi
6357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6358
6359 if test $ac_cv_header_stdc = yes; then
6360   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6361   cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h.  */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h.  */
6367 #include <string.h>
6368
6369 _ACEOF
6370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6371   $EGREP "memchr" >/dev/null 2>&1; then
6372   :
6373 else
6374   ac_cv_header_stdc=no
6375 fi
6376 rm -f conftest*
6377
6378 fi
6379
6380 if test $ac_cv_header_stdc = yes; then
6381   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6382   cat >conftest.$ac_ext <<_ACEOF
6383 /* confdefs.h.  */
6384 _ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h.  */
6388 #include <stdlib.h>
6389
6390 _ACEOF
6391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6392   $EGREP "free" >/dev/null 2>&1; then
6393   :
6394 else
6395   ac_cv_header_stdc=no
6396 fi
6397 rm -f conftest*
6398
6399 fi
6400
6401 if test $ac_cv_header_stdc = yes; then
6402   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6403   if test "$cross_compiling" = yes; then
6404   :
6405 else
6406   cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h.  */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h.  */
6412 #include <ctype.h>
6413 #if ((' ' & 0x0FF) == 0x020)
6414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6416 #else
6417 # define ISLOWER(c) \
6418                    (('a' <= (c) && (c) <= 'i') \
6419                      || ('j' <= (c) && (c) <= 'r') \
6420                      || ('s' <= (c) && (c) <= 'z'))
6421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6422 #endif
6423
6424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6425 int
6426 main ()
6427 {
6428   int i;
6429   for (i = 0; i < 256; i++)
6430     if (XOR (islower (i), ISLOWER (i))
6431         || toupper (i) != TOUPPER (i))
6432       exit(2);
6433   exit (0);
6434 }
6435 _ACEOF
6436 rm -f conftest$ac_exeext
6437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6438   (eval $ac_link) 2>&5
6439   ac_status=$?
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443   (eval $ac_try) 2>&5
6444   ac_status=$?
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); }; }; then
6447   :
6448 else
6449   echo "$as_me: program exited with status $ac_status" >&5
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6452
6453 ( exit $ac_status )
6454 ac_cv_header_stdc=no
6455 fi
6456 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6457 fi
6458 fi
6459 fi
6460 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6461 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6462 if test $ac_cv_header_stdc = yes; then
6463
6464 cat >>confdefs.h <<\_ACEOF
6465 #define STDC_HEADERS 1
6466 _ACEOF
6467
6468 fi
6469
6470 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6481                   inttypes.h stdint.h unistd.h
6482 do
6483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6484 echo "$as_me:$LINENO: checking for $ac_header" >&5
6485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   cat >conftest.$ac_ext <<_ACEOF
6490 /* confdefs.h.  */
6491 _ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h.  */
6495 $ac_includes_default
6496
6497 #include <$ac_header>
6498 _ACEOF
6499 rm -f conftest.$ac_objext
6500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501   (eval $ac_compile) 2>conftest.er1
6502   ac_status=$?
6503   grep -v '^ *+' conftest.er1 >conftest.err
6504   rm -f conftest.er1
6505   cat conftest.err >&5
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); } &&
6508          { ac_try='test -z "$ac_c_werror_flag"
6509                          || test ! -s conftest.err'
6510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511   (eval $ac_try) 2>&5
6512   ac_status=$?
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); }; } &&
6515          { ac_try='test -s conftest.$ac_objext'
6516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517   (eval $ac_try) 2>&5
6518   ac_status=$?
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); }; }; then
6521   eval "$as_ac_Header=yes"
6522 else
6523   echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6525
6526 eval "$as_ac_Header=no"
6527 fi
6528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6529 fi
6530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6533   cat >>confdefs.h <<_ACEOF
6534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6535 _ACEOF
6536
6537 fi
6538
6539 done
6540
6541
6542
6543 for ac_header in dlfcn.h
6544 do
6545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6547   echo "$as_me:$LINENO: checking for $ac_header" >&5
6548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6550   echo $ECHO_N "(cached) $ECHO_C" >&6
6551 fi
6552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6554 else
6555   # Is the header compilable?
6556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6558 cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h.  */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h.  */
6564 $ac_includes_default
6565 #include <$ac_header>
6566 _ACEOF
6567 rm -f conftest.$ac_objext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6569   (eval $ac_compile) 2>conftest.er1
6570   ac_status=$?
6571   grep -v '^ *+' conftest.er1 >conftest.err
6572   rm -f conftest.er1
6573   cat conftest.err >&5
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); } &&
6576          { ac_try='test -z "$ac_c_werror_flag"
6577                          || test ! -s conftest.err'
6578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579   (eval $ac_try) 2>&5
6580   ac_status=$?
6581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582   (exit $ac_status); }; } &&
6583          { ac_try='test -s conftest.$ac_objext'
6584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585   (eval $ac_try) 2>&5
6586   ac_status=$?
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); }; }; then
6589   ac_header_compiler=yes
6590 else
6591   echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 ac_header_compiler=no
6595 fi
6596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6598 echo "${ECHO_T}$ac_header_compiler" >&6
6599
6600 # Is the header present?
6601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6603 cat >conftest.$ac_ext <<_ACEOF
6604 /* confdefs.h.  */
6605 _ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h.  */
6609 #include <$ac_header>
6610 _ACEOF
6611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6612   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6613   ac_status=$?
6614   grep -v '^ *+' conftest.er1 >conftest.err
6615   rm -f conftest.er1
6616   cat conftest.err >&5
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); } >/dev/null; then
6619   if test -s conftest.err; then
6620     ac_cpp_err=$ac_c_preproc_warn_flag
6621     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6622   else
6623     ac_cpp_err=
6624   fi
6625 else
6626   ac_cpp_err=yes
6627 fi
6628 if test -z "$ac_cpp_err"; then
6629   ac_header_preproc=yes
6630 else
6631   echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6633
6634   ac_header_preproc=no
6635 fi
6636 rm -f conftest.err conftest.$ac_ext
6637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6638 echo "${ECHO_T}$ac_header_preproc" >&6
6639
6640 # So?  What about this header?
6641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6642   yes:no: )
6643     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6647     ac_header_preproc=yes
6648     ;;
6649   no:yes:* )
6650     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6652     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6653 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6654     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6656     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6657 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6658     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6660     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6662     (
6663       cat <<\_ASBOX
6664 ## --------------------------------------------- ##
6665 ## Report this to <http://www.openldap.org/its/> ##
6666 ## --------------------------------------------- ##
6667 _ASBOX
6668     ) |
6669       sed "s/^/$as_me: WARNING:     /" >&2
6670     ;;
6671 esac
6672 echo "$as_me:$LINENO: checking for $ac_header" >&5
6673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6675   echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677   eval "$as_ac_Header=\$ac_header_preproc"
6678 fi
6679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6681
6682 fi
6683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6684   cat >>confdefs.h <<_ACEOF
6685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6686 _ACEOF
6687
6688 fi
6689
6690 done
6691
6692
6693 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6694
6695 # find the maximum length of command line arguments
6696 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6697 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6698 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701     i=0
6702   teststring="ABCD"
6703
6704   case $build_os in
6705   msdosdjgpp*)
6706     # On DJGPP, this test can blow up pretty badly due to problems in libc
6707     # (any single argument exceeding 2000 bytes causes a buffer overrun
6708     # during glob expansion).  Even if it were fixed, the result of this
6709     # check would be larger than it should be.
6710     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6711     ;;
6712
6713   gnu*)
6714     # Under GNU Hurd, this test is not required because there is
6715     # no limit to the length of command line arguments.
6716     # Libtool will interpret -1 as no limit whatsoever
6717     lt_cv_sys_max_cmd_len=-1;
6718     ;;
6719
6720   cygwin* | mingw*)
6721     # On Win9x/ME, this test blows up -- it succeeds, but takes
6722     # about 5 minutes as the teststring grows exponentially.
6723     # Worse, since 9x/ME are not pre-emptively multitasking,
6724     # you end up with a "frozen" computer, even though with patience
6725     # the test eventually succeeds (with a max line length of 256k).
6726     # Instead, let's just punt: use the minimum linelength reported by
6727     # all of the supported platforms: 8192 (on NT/2K/XP).
6728     lt_cv_sys_max_cmd_len=8192;
6729     ;;
6730
6731   amigaos*)
6732     # On AmigaOS with pdksh, this test takes hours, literally.
6733     # So we just punt and use a minimum line length of 8192.
6734     lt_cv_sys_max_cmd_len=8192;
6735     ;;
6736
6737   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6738     # This has been around since 386BSD, at least.  Likely further.
6739     if test -x /sbin/sysctl; then
6740       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6741     elif test -x /usr/sbin/sysctl; then
6742       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6743     else
6744       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6745     fi
6746     # And add a safety zone
6747     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6748     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6749     ;;
6750   osf*)
6751     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6752     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6753     # nice to cause kernel panics so lets avoid the loop below.
6754     # First set a reasonable default.
6755     lt_cv_sys_max_cmd_len=16384
6756     #
6757     if test -x /sbin/sysconfig; then
6758       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6759         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6760       esac
6761     fi
6762     ;;
6763   *)
6764     # If test is not a shell built-in, we'll probably end up computing a
6765     # maximum length that is only half of the actual maximum length, but
6766     # we can't tell.
6767     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6768     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6769                = "XX$teststring") >/dev/null 2>&1 &&
6770             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6771             lt_cv_sys_max_cmd_len=$new_result &&
6772             test $i != 17 # 1/2 MB should be enough
6773     do
6774       i=`expr $i + 1`
6775       teststring=$teststring$teststring
6776     done
6777     teststring=
6778     # Add a significant safety factor because C++ compilers can tack on massive
6779     # amounts of additional arguments before passing them to the linker.
6780     # It appears as though 1/2 is a usable value.
6781     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6782     ;;
6783   esac
6784
6785 fi
6786
6787 if test -n $lt_cv_sys_max_cmd_len ; then
6788   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6789 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6790 else
6791   echo "$as_me:$LINENO: result: none" >&5
6792 echo "${ECHO_T}none" >&6
6793 fi
6794
6795
6796
6797
6798 # Check for command to grab the raw symbol name followed by C symbol from nm.
6799 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6800 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6801 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6802   echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804
6805 # These are sane defaults that work on at least a few old systems.
6806 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6807
6808 # Character class describing NM global symbol codes.
6809 symcode='[BCDEGRST]'
6810
6811 # Regexp to match symbols that can be accessed directly from C.
6812 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6813
6814 # Transform an extracted symbol line into a proper C declaration
6815 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6816
6817 # Transform an extracted symbol line into symbol name and symbol address
6818 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'"
6819
6820 # Define system-specific variables.
6821 case $host_os in
6822 aix*)
6823   symcode='[BCDT]'
6824   ;;
6825 cygwin* | mingw* | pw32*)
6826   symcode='[ABCDGISTW]'
6827   ;;
6828 hpux*) # Its linker distinguishes data from code symbols
6829   if test "$host_cpu" = ia64; then
6830     symcode='[ABCDEGRST]'
6831   fi
6832   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6833   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'"
6834   ;;
6835 linux*)
6836   if test "$host_cpu" = ia64; then
6837     symcode='[ABCDGIRSTW]'
6838     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6839     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'"
6840   fi
6841   ;;
6842 irix* | nonstopux*)
6843   symcode='[BCDEGRST]'
6844   ;;
6845 osf*)
6846   symcode='[BCDEGQRST]'
6847   ;;
6848 solaris* | sysv5*)
6849   symcode='[BDRT]'
6850   ;;
6851 sysv4)
6852   symcode='[DFNSTU]'
6853   ;;
6854 esac
6855
6856 # Handle CRLF in mingw tool chain
6857 opt_cr=
6858 case $build_os in
6859 mingw*)
6860   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6861   ;;
6862 esac
6863
6864 # If we're using GNU nm, then use its standard symbol codes.
6865 case `$NM -V 2>&1` in
6866 *GNU* | *'with BFD'*)
6867   symcode='[ABCDGIRSTW]' ;;
6868 esac
6869
6870 # Try without a prefix undercore, then with it.
6871 for ac_symprfx in "" "_"; do
6872
6873   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6874   symxfrm="\\1 $ac_symprfx\\2 \\2"
6875
6876   # Write the raw and C identifiers.
6877   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6878
6879   # Check to see that the pipe works correctly.
6880   pipe_works=no
6881
6882   rm -f conftest*
6883   cat > conftest.$ac_ext <<EOF
6884 #ifdef __cplusplus
6885 extern "C" {
6886 #endif
6887 char nm_test_var;
6888 void nm_test_func(){}
6889 #ifdef __cplusplus
6890 }
6891 #endif
6892 int main(){nm_test_var='a';nm_test_func();return(0);}
6893 EOF
6894
6895   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896   (eval $ac_compile) 2>&5
6897   ac_status=$?
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); }; then
6900     # Now try to grab the symbols.
6901     nlist=conftest.nm
6902     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6903   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6904   ac_status=$?
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); } && test -s "$nlist"; then
6907       # Try sorting and uniquifying the output.
6908       if sort "$nlist" | uniq > "$nlist"T; then
6909         mv -f "$nlist"T "$nlist"
6910       else
6911         rm -f "$nlist"T
6912       fi
6913
6914       # Make sure that we snagged all the symbols we need.
6915       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6916         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6917           cat <<EOF > conftest.$ac_ext
6918 #ifdef __cplusplus
6919 extern "C" {
6920 #endif
6921
6922 EOF
6923           # Now generate the symbol file.
6924           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6925
6926           cat <<EOF >> conftest.$ac_ext
6927 #if defined (__STDC__) && __STDC__
6928 # define lt_ptr_t void *
6929 #else
6930 # define lt_ptr_t char *
6931 # define const
6932 #endif
6933
6934 /* The mapping between symbol names and symbols. */
6935 const struct {
6936   const char *name;
6937   lt_ptr_t address;
6938 }
6939 lt_preloaded_symbols[] =
6940 {
6941 EOF
6942           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6943           cat <<\EOF >> conftest.$ac_ext
6944   {0, (lt_ptr_t) 0}
6945 };
6946
6947 #ifdef __cplusplus
6948 }
6949 #endif
6950 EOF
6951           # Now try linking the two files.
6952           mv conftest.$ac_objext conftstm.$ac_objext
6953           lt_save_LIBS="$LIBS"
6954           lt_save_CFLAGS="$CFLAGS"
6955           LIBS="conftstm.$ac_objext"
6956           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6957           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958   (eval $ac_link) 2>&5
6959   ac_status=$?
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6962             pipe_works=yes
6963           fi
6964           LIBS="$lt_save_LIBS"
6965           CFLAGS="$lt_save_CFLAGS"
6966         else
6967           echo "cannot find nm_test_func in $nlist" >&5
6968         fi
6969       else
6970         echo "cannot find nm_test_var in $nlist" >&5
6971       fi
6972     else
6973       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6974     fi
6975   else
6976     echo "$progname: failed program was:" >&5
6977     cat conftest.$ac_ext >&5
6978   fi
6979   rm -f conftest* conftst*
6980
6981   # Do not use the global_symbol_pipe unless it works.
6982   if test "$pipe_works" = yes; then
6983     break
6984   else
6985     lt_cv_sys_global_symbol_pipe=
6986   fi
6987 done
6988
6989 fi
6990
6991 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6992   lt_cv_sys_global_symbol_to_cdecl=
6993 fi
6994 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6995   echo "$as_me:$LINENO: result: failed" >&5
6996 echo "${ECHO_T}failed" >&6
6997 else
6998   echo "$as_me:$LINENO: result: ok" >&5
6999 echo "${ECHO_T}ok" >&6
7000 fi
7001
7002 echo "$as_me:$LINENO: checking for objdir" >&5
7003 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7004 if test "${lt_cv_objdir+set}" = set; then
7005   echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007   rm -f .libs 2>/dev/null
7008 mkdir .libs 2>/dev/null
7009 if test -d .libs; then
7010   lt_cv_objdir=.libs
7011 else
7012   # MS-DOS does not allow filenames that begin with a dot.
7013   lt_cv_objdir=_libs
7014 fi
7015 rmdir .libs 2>/dev/null
7016 fi
7017 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7018 echo "${ECHO_T}$lt_cv_objdir" >&6
7019 objdir=$lt_cv_objdir
7020
7021
7022
7023
7024
7025 case $host_os in
7026 aix3*)
7027   # AIX sometimes has problems with the GCC collect2 program.  For some
7028   # reason, if we set the COLLECT_NAMES environment variable, the problems
7029   # vanish in a puff of smoke.
7030   if test "X${COLLECT_NAMES+set}" != Xset; then
7031     COLLECT_NAMES=
7032     export COLLECT_NAMES
7033   fi
7034   ;;
7035 esac
7036
7037 # Sed substitution that helps us do robust quoting.  It backslashifies
7038 # metacharacters that are still active within double-quoted strings.
7039 Xsed='sed -e 1s/^X//'
7040 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7041
7042 # Same as above, but do not quote variable references.
7043 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7044
7045 # Sed substitution to delay expansion of an escaped shell variable in a
7046 # double_quote_subst'ed string.
7047 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7048
7049 # Sed substitution to avoid accidental globbing in evaled expressions
7050 no_glob_subst='s/\*/\\\*/g'
7051
7052 # Constants:
7053 rm="rm -f"
7054
7055 # Global variables:
7056 default_ofile=libtool
7057 can_build_shared=yes
7058
7059 # All known linkers require a `.a' archive for static linking (except MSVC,
7060 # which needs '.lib').
7061 libext=a
7062 ltmain="$ac_aux_dir/ltmain.sh"
7063 ofile="$default_ofile"
7064 with_gnu_ld="$lt_cv_prog_gnu_ld"
7065
7066 if test -n "$ac_tool_prefix"; then
7067   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7068 set dummy ${ac_tool_prefix}ar; ac_word=$2
7069 echo "$as_me:$LINENO: checking for $ac_word" >&5
7070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7071 if test "${ac_cv_prog_AR+set}" = set; then
7072   echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074   if test -n "$AR"; then
7075   ac_cv_prog_AR="$AR" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080   IFS=$as_save_IFS
7081   test -z "$as_dir" && as_dir=.
7082   for ac_exec_ext in '' $ac_executable_extensions; do
7083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084     ac_cv_prog_AR="${ac_tool_prefix}ar"
7085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086     break 2
7087   fi
7088 done
7089 done
7090
7091 fi
7092 fi
7093 AR=$ac_cv_prog_AR
7094 if test -n "$AR"; then
7095   echo "$as_me:$LINENO: result: $AR" >&5
7096 echo "${ECHO_T}$AR" >&6
7097 else
7098   echo "$as_me:$LINENO: result: no" >&5
7099 echo "${ECHO_T}no" >&6
7100 fi
7101
7102 fi
7103 if test -z "$ac_cv_prog_AR"; then
7104   ac_ct_AR=$AR
7105   # Extract the first word of "ar", so it can be a program name with args.
7106 set dummy ar; ac_word=$2
7107 echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7109 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7110   echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112   if test -n "$ac_ct_AR"; then
7113   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7114 else
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118   IFS=$as_save_IFS
7119   test -z "$as_dir" && as_dir=.
7120   for ac_exec_ext in '' $ac_executable_extensions; do
7121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122     ac_cv_prog_ac_ct_AR="ar"
7123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124     break 2
7125   fi
7126 done
7127 done
7128
7129   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7130 fi
7131 fi
7132 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7133 if test -n "$ac_ct_AR"; then
7134   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7135 echo "${ECHO_T}$ac_ct_AR" >&6
7136 else
7137   echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6
7139 fi
7140
7141   AR=$ac_ct_AR
7142 else
7143   AR="$ac_cv_prog_AR"
7144 fi
7145
7146 if test -n "$ac_tool_prefix"; then
7147   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7149 echo "$as_me:$LINENO: checking for $ac_word" >&5
7150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7151 if test "${ac_cv_prog_RANLIB+set}" = set; then
7152   echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154   if test -n "$RANLIB"; then
7155   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7156 else
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160   IFS=$as_save_IFS
7161   test -z "$as_dir" && as_dir=.
7162   for ac_exec_ext in '' $ac_executable_extensions; do
7163   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166     break 2
7167   fi
7168 done
7169 done
7170
7171 fi
7172 fi
7173 RANLIB=$ac_cv_prog_RANLIB
7174 if test -n "$RANLIB"; then
7175   echo "$as_me:$LINENO: result: $RANLIB" >&5
7176 echo "${ECHO_T}$RANLIB" >&6
7177 else
7178   echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6
7180 fi
7181
7182 fi
7183 if test -z "$ac_cv_prog_RANLIB"; then
7184   ac_ct_RANLIB=$RANLIB
7185   # Extract the first word of "ranlib", so it can be a program name with args.
7186 set dummy ranlib; ac_word=$2
7187 echo "$as_me:$LINENO: checking for $ac_word" >&5
7188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7189 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7190   echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192   if test -n "$ac_ct_RANLIB"; then
7193   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7194 else
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7197 do
7198   IFS=$as_save_IFS
7199   test -z "$as_dir" && as_dir=.
7200   for ac_exec_ext in '' $ac_executable_extensions; do
7201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202     ac_cv_prog_ac_ct_RANLIB="ranlib"
7203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204     break 2
7205   fi
7206 done
7207 done
7208
7209   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7210 fi
7211 fi
7212 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7213 if test -n "$ac_ct_RANLIB"; then
7214   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7215 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7216 else
7217   echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6
7219 fi
7220
7221   RANLIB=$ac_ct_RANLIB
7222 else
7223   RANLIB="$ac_cv_prog_RANLIB"
7224 fi
7225
7226 if test -n "$ac_tool_prefix"; then
7227   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7228 set dummy ${ac_tool_prefix}strip; ac_word=$2
7229 echo "$as_me:$LINENO: checking for $ac_word" >&5
7230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7231 if test "${ac_cv_prog_STRIP+set}" = set; then
7232   echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234   if test -n "$STRIP"; then
7235   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242   for ac_exec_ext in '' $ac_executable_extensions; do
7243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249 done
7250
7251 fi
7252 fi
7253 STRIP=$ac_cv_prog_STRIP
7254 if test -n "$STRIP"; then
7255   echo "$as_me:$LINENO: result: $STRIP" >&5
7256 echo "${ECHO_T}$STRIP" >&6
7257 else
7258   echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6
7260 fi
7261
7262 fi
7263 if test -z "$ac_cv_prog_STRIP"; then
7264   ac_ct_STRIP=$STRIP
7265   # Extract the first word of "strip", so it can be a program name with args.
7266 set dummy strip; ac_word=$2
7267 echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7269 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7270   echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272   if test -n "$ac_ct_STRIP"; then
7273   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7274 else
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278   IFS=$as_save_IFS
7279   test -z "$as_dir" && as_dir=.
7280   for ac_exec_ext in '' $ac_executable_extensions; do
7281   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7282     ac_cv_prog_ac_ct_STRIP="strip"
7283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7284     break 2
7285   fi
7286 done
7287 done
7288
7289   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7290 fi
7291 fi
7292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7293 if test -n "$ac_ct_STRIP"; then
7294   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7295 echo "${ECHO_T}$ac_ct_STRIP" >&6
7296 else
7297   echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6
7299 fi
7300
7301   STRIP=$ac_ct_STRIP
7302 else
7303   STRIP="$ac_cv_prog_STRIP"
7304 fi
7305
7306
7307 old_CC="$CC"
7308 old_CFLAGS="$CFLAGS"
7309
7310 # Set sane defaults for various variables
7311 test -z "$AR" && AR=ar
7312 test -z "$AR_FLAGS" && AR_FLAGS=cru
7313 test -z "$AS" && AS=as
7314 test -z "$CC" && CC=cc
7315 test -z "$LTCC" && LTCC=$CC
7316 test -z "$DLLTOOL" && DLLTOOL=dlltool
7317 test -z "$LD" && LD=ld
7318 test -z "$LN_S" && LN_S="ln -s"
7319 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7320 test -z "$NM" && NM=nm
7321 test -z "$SED" && SED=sed
7322 test -z "$OBJDUMP" && OBJDUMP=objdump
7323 test -z "$RANLIB" && RANLIB=:
7324 test -z "$STRIP" && STRIP=:
7325 test -z "$ac_objext" && ac_objext=o
7326
7327 # Determine commands to create old-style static archives.
7328 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7329 old_postinstall_cmds='chmod 644 $oldlib'
7330 old_postuninstall_cmds=
7331
7332 if test -n "$RANLIB"; then
7333   case $host_os in
7334   openbsd*)
7335     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7336     ;;
7337   *)
7338     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7339     ;;
7340   esac
7341   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7342 fi
7343
7344 for cc_temp in $compiler""; do
7345   case $cc_temp in
7346     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7347     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7348     \-*) ;;
7349     *) break;;
7350   esac
7351 done
7352 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7353
7354
7355 # Only perform the check for file, if the check method requires it
7356 case $deplibs_check_method in
7357 file_magic*)
7358   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7359     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7360 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7361 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7362   echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364   case $MAGIC_CMD in
7365 [\\/*] |  ?:[\\/]*)
7366   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7367   ;;
7368 *)
7369   lt_save_MAGIC_CMD="$MAGIC_CMD"
7370   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7371   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7372   for ac_dir in $ac_dummy; do
7373     IFS="$lt_save_ifs"
7374     test -z "$ac_dir" && ac_dir=.
7375     if test -f $ac_dir/${ac_tool_prefix}file; then
7376       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7377       if test -n "$file_magic_test_file"; then
7378         case $deplibs_check_method in
7379         "file_magic "*)
7380           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7381           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7382           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7383             $EGREP "$file_magic_regex" > /dev/null; then
7384             :
7385           else
7386             cat <<EOF 1>&2
7387
7388 *** Warning: the command libtool uses to detect shared libraries,
7389 *** $file_magic_cmd, produces output that libtool cannot recognize.
7390 *** The result is that libtool may fail to recognize shared libraries
7391 *** as such.  This will affect the creation of libtool libraries that
7392 *** depend on shared libraries, but programs linked with such libtool
7393 *** libraries will work regardless of this problem.  Nevertheless, you
7394 *** may want to report the problem to your system manager and/or to
7395 *** bug-libtool@gnu.org
7396
7397 EOF
7398           fi ;;
7399         esac
7400       fi
7401       break
7402     fi
7403   done
7404   IFS="$lt_save_ifs"
7405   MAGIC_CMD="$lt_save_MAGIC_CMD"
7406   ;;
7407 esac
7408 fi
7409
7410 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7411 if test -n "$MAGIC_CMD"; then
7412   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7413 echo "${ECHO_T}$MAGIC_CMD" >&6
7414 else
7415   echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6
7417 fi
7418
7419 if test -z "$lt_cv_path_MAGIC_CMD"; then
7420   if test -n "$ac_tool_prefix"; then
7421     echo "$as_me:$LINENO: checking for file" >&5
7422 echo $ECHO_N "checking for file... $ECHO_C" >&6
7423 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7424   echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426   case $MAGIC_CMD in
7427 [\\/*] |  ?:[\\/]*)
7428   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7429   ;;
7430 *)
7431   lt_save_MAGIC_CMD="$MAGIC_CMD"
7432   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7433   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7434   for ac_dir in $ac_dummy; do
7435     IFS="$lt_save_ifs"
7436     test -z "$ac_dir" && ac_dir=.
7437     if test -f $ac_dir/file; then
7438       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7439       if test -n "$file_magic_test_file"; then
7440         case $deplibs_check_method in
7441         "file_magic "*)
7442           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7443           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7444           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7445             $EGREP "$file_magic_regex" > /dev/null; then
7446             :
7447           else
7448             cat <<EOF 1>&2
7449
7450 *** Warning: the command libtool uses to detect shared libraries,
7451 *** $file_magic_cmd, produces output that libtool cannot recognize.
7452 *** The result is that libtool may fail to recognize shared libraries
7453 *** as such.  This will affect the creation of libtool libraries that
7454 *** depend on shared libraries, but programs linked with such libtool
7455 *** libraries will work regardless of this problem.  Nevertheless, you
7456 *** may want to report the problem to your system manager and/or to
7457 *** bug-libtool@gnu.org
7458
7459 EOF
7460           fi ;;
7461         esac
7462       fi
7463       break
7464     fi
7465   done
7466   IFS="$lt_save_ifs"
7467   MAGIC_CMD="$lt_save_MAGIC_CMD"
7468   ;;
7469 esac
7470 fi
7471
7472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7473 if test -n "$MAGIC_CMD"; then
7474   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7475 echo "${ECHO_T}$MAGIC_CMD" >&6
7476 else
7477   echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6
7479 fi
7480
7481   else
7482     MAGIC_CMD=:
7483   fi
7484 fi
7485
7486   fi
7487   ;;
7488 esac
7489
7490 enable_dlopen=yes
7491 enable_win32_dll=yes
7492
7493 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7494 if test "${enable_libtool_lock+set}" = set; then
7495   enableval="$enable_libtool_lock"
7496
7497 fi;
7498 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7499
7500
7501 # Check whether --with-pic or --without-pic was given.
7502 if test "${with_pic+set}" = set; then
7503   withval="$with_pic"
7504   pic_mode="$withval"
7505 else
7506   pic_mode=default
7507 fi;
7508 test -z "$pic_mode" && pic_mode=default
7509
7510 # Use C for the default configuration in the libtool script
7511 tagname=
7512 lt_save_CC="$CC"
7513 ac_ext=c
7514 ac_cpp='$CPP $CPPFLAGS'
7515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7518
7519
7520 # Source file extension for C test sources.
7521 ac_ext=c
7522
7523 # Object file extension for compiled C test sources.
7524 objext=o
7525 objext=$objext
7526
7527 # Code to be used in simple compile tests
7528 lt_simple_compile_test_code="int some_variable = 0;\n"
7529
7530 # Code to be used in simple link tests
7531 lt_simple_link_test_code='int main(){return(0);}\n'
7532
7533
7534 # If no C compiler was specified, use CC.
7535 LTCC=${LTCC-"$CC"}
7536
7537 # Allow CC to be a program name with arguments.
7538 compiler=$CC
7539
7540
7541 # save warnings/boilerplate of simple test code
7542 ac_outfile=conftest.$ac_objext
7543 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7544 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7545 _lt_compiler_boilerplate=`cat conftest.err`
7546 $rm conftest*
7547
7548 ac_outfile=conftest.$ac_objext
7549 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7550 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7551 _lt_linker_boilerplate=`cat conftest.err`
7552 $rm conftest*
7553
7554
7555 #
7556 # Check for any special shared library compilation flags.
7557 #
7558 lt_prog_cc_shlib=
7559 if test "$GCC" = no; then
7560   case $host_os in
7561   sco3.2v5*)
7562     lt_prog_cc_shlib='-belf'
7563     ;;
7564   esac
7565 fi
7566 if test -n "$lt_prog_cc_shlib"; then
7567   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7568 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7569   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7570   else
7571     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7572 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7573     lt_cv_prog_cc_can_build_shared=no
7574   fi
7575 fi
7576
7577
7578 #
7579 # Check to make sure the static flag actually works.
7580 #
7581 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7582 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7583 if test "${lt_prog_compiler_static_works+set}" = set; then
7584   echo $ECHO_N "(cached) $ECHO_C" >&6
7585 else
7586   lt_prog_compiler_static_works=no
7587    save_LDFLAGS="$LDFLAGS"
7588    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7589    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7590    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7591      # The linker can only warn and ignore the option if not recognized
7592      # So say no if there are warnings
7593      if test -s conftest.err; then
7594        # Append any errors to the config.log.
7595        cat conftest.err 1>&5
7596        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7597        $SED '/^$/d' conftest.err >conftest.er2
7598        if diff conftest.exp conftest.er2 >/dev/null; then
7599          lt_prog_compiler_static_works=yes
7600        fi
7601      else
7602        lt_prog_compiler_static_works=yes
7603      fi
7604    fi
7605    $rm conftest*
7606    LDFLAGS="$save_LDFLAGS"
7607
7608 fi
7609 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7610 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7611
7612 if test x"$lt_prog_compiler_static_works" = xyes; then
7613     :
7614 else
7615     lt_prog_compiler_static=
7616 fi
7617
7618
7619
7620
7621 lt_prog_compiler_no_builtin_flag=
7622
7623 if test "$GCC" = yes; then
7624   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7625
7626
7627 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7628 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7629 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632   lt_cv_prog_compiler_rtti_exceptions=no
7633   ac_outfile=conftest.$ac_objext
7634    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7635    lt_compiler_flag="-fno-rtti -fno-exceptions"
7636    # Insert the option either (1) after the last *FLAGS variable, or
7637    # (2) before a word containing "conftest.", or (3) at the end.
7638    # Note that $ac_compile itself does not contain backslashes and begins
7639    # with a dollar sign (not a hyphen), so the echo should work correctly.
7640    # The option is referenced via a variable to avoid confusing sed.
7641    lt_compile=`echo "$ac_compile" | $SED \
7642    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7643    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7644    -e 's:$: $lt_compiler_flag:'`
7645    (eval echo "\"\$as_me:7645: $lt_compile\"" >&5)
7646    (eval "$lt_compile" 2>conftest.err)
7647    ac_status=$?
7648    cat conftest.err >&5
7649    echo "$as_me:7649: \$? = $ac_status" >&5
7650    if (exit $ac_status) && test -s "$ac_outfile"; then
7651      # The compiler can only warn and ignore the option if not recognized
7652      # So say no if there are warnings other than the usual output.
7653      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7654      $SED '/^$/d' conftest.err >conftest.er2
7655      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7656        lt_cv_prog_compiler_rtti_exceptions=yes
7657      fi
7658    fi
7659    $rm conftest*
7660
7661 fi
7662 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7663 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7664
7665 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7666     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7667 else
7668     :
7669 fi
7670
7671 fi
7672
7673 lt_prog_compiler_wl=
7674 lt_prog_compiler_pic=
7675 lt_prog_compiler_static=
7676
7677 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7678 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7679
7680   if test "$GCC" = yes; then
7681     lt_prog_compiler_wl='-Wl,'
7682     lt_prog_compiler_static='-static'
7683
7684     case $host_os in
7685       aix*)
7686       # All AIX code is PIC.
7687       if test "$host_cpu" = ia64; then
7688         # AIX 5 now supports IA64 processor
7689         lt_prog_compiler_static='-Bstatic'
7690       fi
7691       ;;
7692
7693     amigaos*)
7694       # FIXME: we need at least 68020 code to build shared libraries, but
7695       # adding the `-m68020' flag to GCC prevents building anything better,
7696       # like `-m68040'.
7697       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7698       ;;
7699
7700     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7701       # PIC is the default for these OSes.
7702       ;;
7703
7704     mingw* | pw32* | os2*)
7705       # This hack is so that the source file can tell whether it is being
7706       # built for inclusion in a dll (and should export symbols for example).
7707       lt_prog_compiler_pic='-DDLL_EXPORT'
7708       ;;
7709
7710     darwin* | rhapsody*)
7711       # PIC is the default on this platform
7712       # Common symbols not allowed in MH_DYLIB files
7713       lt_prog_compiler_pic='-fno-common'
7714       ;;
7715
7716     msdosdjgpp*)
7717       # Just because we use GCC doesn't mean we suddenly get shared libraries
7718       # on systems that don't support them.
7719       lt_prog_compiler_can_build_shared=no
7720       enable_shared=no
7721       ;;
7722
7723     sysv4*MP*)
7724       if test -d /usr/nec; then
7725         lt_prog_compiler_pic=-Kconform_pic
7726       fi
7727       ;;
7728
7729     hpux*)
7730       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7731       # not for PA HP-UX.
7732       case $host_cpu in
7733       hppa*64*|ia64*)
7734         # +Z the default
7735         ;;
7736       *)
7737         lt_prog_compiler_pic='-fPIC'
7738         ;;
7739       esac
7740       ;;
7741
7742     *)
7743       lt_prog_compiler_pic='-fPIC'
7744       ;;
7745     esac
7746   else
7747     # PORTME Check for flag to pass linker flags through the system compiler.
7748     case $host_os in
7749     aix*)
7750       lt_prog_compiler_wl='-Wl,'
7751       if test "$host_cpu" = ia64; then
7752         # AIX 5 now supports IA64 processor
7753         lt_prog_compiler_static='-Bstatic'
7754       else
7755         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7756       fi
7757       ;;
7758       darwin*)
7759         # PIC is the default on this platform
7760         # Common symbols not allowed in MH_DYLIB files
7761        case $cc_basename in
7762          xlc*)
7763          lt_prog_compiler_pic='-qnocommon'
7764          lt_prog_compiler_wl='-Wl,'
7765          ;;
7766        esac
7767        ;;
7768
7769     mingw* | pw32* | os2*)
7770       # This hack is so that the source file can tell whether it is being
7771       # built for inclusion in a dll (and should export symbols for example).
7772       lt_prog_compiler_pic='-DDLL_EXPORT'
7773       ;;
7774
7775     hpux9* | hpux10* | hpux11*)
7776       lt_prog_compiler_wl='-Wl,'
7777       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7778       # not for PA HP-UX.
7779       case $host_cpu in
7780       hppa*64*|ia64*)
7781         # +Z the default
7782         ;;
7783       *)
7784         lt_prog_compiler_pic='+Z'
7785         ;;
7786       esac
7787       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7788       lt_prog_compiler_static='${wl}-a ${wl}archive'
7789       ;;
7790
7791     irix5* | irix6* | nonstopux*)
7792       lt_prog_compiler_wl='-Wl,'
7793       # PIC (with -KPIC) is the default.
7794       lt_prog_compiler_static='-non_shared'
7795       ;;
7796
7797     newsos6)
7798       lt_prog_compiler_pic='-KPIC'
7799       lt_prog_compiler_static='-Bstatic'
7800       ;;
7801
7802     linux*)
7803       case $cc_basename in
7804       icc* | ecc*)
7805         lt_prog_compiler_wl='-Wl,'
7806         lt_prog_compiler_pic='-KPIC'
7807         lt_prog_compiler_static='-static'
7808         ;;
7809       pgcc* | pgf77* | pgf90* | pgf95*)
7810         # Portland Group compilers (*not* the Pentium gcc compiler,
7811         # which looks to be a dead project)
7812         lt_prog_compiler_wl='-Wl,'
7813         lt_prog_compiler_pic='-fpic'
7814         lt_prog_compiler_static='-Bstatic'
7815         ;;
7816       ccc*)
7817         lt_prog_compiler_wl='-Wl,'
7818         # All Alpha code is PIC.
7819         lt_prog_compiler_static='-non_shared'
7820         ;;
7821       esac
7822       ;;
7823
7824     osf3* | osf4* | osf5*)
7825       lt_prog_compiler_wl='-Wl,'
7826       # All OSF/1 code is PIC.
7827       lt_prog_compiler_static='-non_shared'
7828       ;;
7829
7830     sco3.2v5*)
7831       lt_prog_compiler_pic='-Kpic'
7832       lt_prog_compiler_static='-dn'
7833       ;;
7834
7835     solaris*)
7836       lt_prog_compiler_pic='-KPIC'
7837       lt_prog_compiler_static='-Bstatic'
7838       case $cc_basename in
7839       f77* | f90* | f95*)
7840         lt_prog_compiler_wl='-Qoption ld ';;
7841       *)
7842         lt_prog_compiler_wl='-Wl,';;
7843       esac
7844       ;;
7845
7846     sunos4*)
7847       lt_prog_compiler_wl='-Qoption ld '
7848       lt_prog_compiler_pic='-PIC'
7849       lt_prog_compiler_static='-Bstatic'
7850       ;;
7851
7852     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7853       lt_prog_compiler_wl='-Wl,'
7854       lt_prog_compiler_pic='-KPIC'
7855       lt_prog_compiler_static='-Bstatic'
7856       ;;
7857
7858     sysv4*MP*)
7859       if test -d /usr/nec ;then
7860         lt_prog_compiler_pic='-Kconform_pic'
7861         lt_prog_compiler_static='-Bstatic'
7862       fi
7863       ;;
7864
7865     unicos*)
7866       lt_prog_compiler_wl='-Wl,'
7867       lt_prog_compiler_can_build_shared=no
7868       ;;
7869
7870     uts4*)
7871       lt_prog_compiler_pic='-pic'
7872       lt_prog_compiler_static='-Bstatic'
7873       ;;
7874
7875     *)
7876       lt_prog_compiler_can_build_shared=no
7877       ;;
7878     esac
7879   fi
7880
7881 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7882 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7883
7884 #
7885 # Check to make sure the PIC flag actually works.
7886 #
7887 if test -n "$lt_prog_compiler_pic"; then
7888
7889 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7890 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7891 if test "${lt_prog_compiler_pic_works+set}" = set; then
7892   echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894   lt_prog_compiler_pic_works=no
7895   ac_outfile=conftest.$ac_objext
7896    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7897    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7898    # Insert the option either (1) after the last *FLAGS variable, or
7899    # (2) before a word containing "conftest.", or (3) at the end.
7900    # Note that $ac_compile itself does not contain backslashes and begins
7901    # with a dollar sign (not a hyphen), so the echo should work correctly.
7902    # The option is referenced via a variable to avoid confusing sed.
7903    lt_compile=`echo "$ac_compile" | $SED \
7904    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7905    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7906    -e 's:$: $lt_compiler_flag:'`
7907    (eval echo "\"\$as_me:7907: $lt_compile\"" >&5)
7908    (eval "$lt_compile" 2>conftest.err)
7909    ac_status=$?
7910    cat conftest.err >&5
7911    echo "$as_me:7911: \$? = $ac_status" >&5
7912    if (exit $ac_status) && test -s "$ac_outfile"; then
7913      # The compiler can only warn and ignore the option if not recognized
7914      # So say no if there are warnings other than the usual output.
7915      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7916      $SED '/^$/d' conftest.err >conftest.er2
7917      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7918        lt_prog_compiler_pic_works=yes
7919      fi
7920    fi
7921    $rm conftest*
7922
7923 fi
7924 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7925 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7926
7927 if test x"$lt_prog_compiler_pic_works" = xyes; then
7928     case $lt_prog_compiler_pic in
7929      "" | " "*) ;;
7930      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7931      esac
7932 else
7933     lt_prog_compiler_pic=
7934      lt_prog_compiler_can_build_shared=no
7935 fi
7936
7937 fi
7938 case $host_os in
7939   # For platforms which do not support PIC, -DPIC is meaningless:
7940   *djgpp*)
7941     lt_prog_compiler_pic=
7942     ;;
7943   *)
7944     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7945     ;;
7946 esac
7947
7948 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7949 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7950 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7951   echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953   lt_cv_prog_compiler_c_o=no
7954    $rm -r conftest 2>/dev/null
7955    mkdir conftest
7956    cd conftest
7957    mkdir out
7958    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7959
7960    lt_compiler_flag="-o out/conftest2.$ac_objext"
7961    # Insert the option either (1) after the last *FLAGS variable, or
7962    # (2) before a word containing "conftest.", or (3) at the end.
7963    # Note that $ac_compile itself does not contain backslashes and begins
7964    # with a dollar sign (not a hyphen), so the echo should work correctly.
7965    lt_compile=`echo "$ac_compile" | $SED \
7966    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7967    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7968    -e 's:$: $lt_compiler_flag:'`
7969    (eval echo "\"\$as_me:7969: $lt_compile\"" >&5)
7970    (eval "$lt_compile" 2>out/conftest.err)
7971    ac_status=$?
7972    cat out/conftest.err >&5
7973    echo "$as_me:7973: \$? = $ac_status" >&5
7974    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7975    then
7976      # The compiler can only warn and ignore the option if not recognized
7977      # So say no if there are warnings
7978      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7979      $SED '/^$/d' out/conftest.err >out/conftest.er2
7980      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7981        lt_cv_prog_compiler_c_o=yes
7982      fi
7983    fi
7984    chmod u+w . 2>&5
7985    $rm conftest*
7986    # SGI C++ compiler will create directory out/ii_files/ for
7987    # template instantiation
7988    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7989    $rm out/* && rmdir out
7990    cd ..
7991    rmdir conftest
7992    $rm conftest*
7993
7994 fi
7995 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7996 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7997
7998
7999 hard_links="nottested"
8000 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8001   # do not overwrite the value of need_locks provided by the user
8002   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8003 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8004   hard_links=yes
8005   $rm conftest*
8006   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8007   touch conftest.a
8008   ln conftest.a conftest.b 2>&5 || hard_links=no
8009   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8010   echo "$as_me:$LINENO: result: $hard_links" >&5
8011 echo "${ECHO_T}$hard_links" >&6
8012   if test "$hard_links" = no; then
8013     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8014 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8015     need_locks=warn
8016   fi
8017 else
8018   need_locks=no
8019 fi
8020
8021 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8022 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8023
8024   runpath_var=
8025   allow_undefined_flag=
8026   enable_shared_with_static_runtimes=no
8027   archive_cmds=
8028   archive_expsym_cmds=
8029   old_archive_From_new_cmds=
8030   old_archive_from_expsyms_cmds=
8031   export_dynamic_flag_spec=
8032   whole_archive_flag_spec=
8033   thread_safe_flag_spec=
8034   hardcode_libdir_flag_spec=
8035   hardcode_libdir_flag_spec_ld=
8036   hardcode_libdir_separator=
8037   hardcode_direct=no
8038   hardcode_minus_L=no
8039   hardcode_shlibpath_var=unsupported
8040   link_all_deplibs=unknown
8041   hardcode_automatic=no
8042   module_cmds=
8043   module_expsym_cmds=
8044   always_export_symbols=no
8045   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8046   # include_expsyms should be a list of space-separated symbols to be *always*
8047   # included in the symbol list
8048   include_expsyms=
8049   # exclude_expsyms can be an extended regexp of symbols to exclude
8050   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8051   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8052   # as well as any symbol that contains `d'.
8053   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8054   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8055   # platforms (ab)use it in PIC code, but their linkers get confused if
8056   # the symbol is explicitly referenced.  Since portable code cannot
8057   # rely on this symbol name, it's probably fine to never include it in
8058   # preloaded symbol tables.
8059   extract_expsyms_cmds=
8060   # Just being paranoid about ensuring that cc_basename is set.
8061   for cc_temp in $compiler""; do
8062   case $cc_temp in
8063     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8064     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8065     \-*) ;;
8066     *) break;;
8067   esac
8068 done
8069 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8070
8071   case $host_os in
8072   cygwin* | mingw* | pw32*)
8073     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8074     # When not using gcc, we currently assume that we are using
8075     # Microsoft Visual C++.
8076     if test "$GCC" != yes; then
8077       with_gnu_ld=no
8078     fi
8079     ;;
8080   openbsd*)
8081     with_gnu_ld=no
8082     ;;
8083   esac
8084
8085   ld_shlibs=yes
8086   if test "$with_gnu_ld" = yes; then
8087     # If archive_cmds runs LD, not CC, wlarc should be empty
8088     wlarc='${wl}'
8089
8090     # Set some defaults for GNU ld with shared library support. These
8091     # are reset later if shared libraries are not supported. Putting them
8092     # here allows them to be overridden if necessary.
8093     runpath_var=LD_RUN_PATH
8094     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8095     export_dynamic_flag_spec='${wl}--export-dynamic'
8096     # ancient GNU ld didn't support --whole-archive et. al.
8097     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8098         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8099       else
8100         whole_archive_flag_spec=
8101     fi
8102     supports_anon_versioning=no
8103     case `$LD -v 2>/dev/null` in
8104       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8105       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8106       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8107       *\ 2.11.*) ;; # other 2.11 versions
8108       *) supports_anon_versioning=yes ;;
8109     esac
8110
8111     # See if GNU ld supports shared libraries.
8112     case $host_os in
8113     aix3* | aix4* | aix5*)
8114       # On AIX/PPC, the GNU linker is very broken
8115       if test "$host_cpu" != ia64; then
8116         ld_shlibs=no
8117         cat <<EOF 1>&2
8118
8119 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8120 *** to be unable to reliably create shared libraries on AIX.
8121 *** Therefore, libtool is disabling shared libraries support.  If you
8122 *** really care for shared libraries, you may want to modify your PATH
8123 *** so that a non-GNU linker is found, and then restart.
8124
8125 EOF
8126       fi
8127       ;;
8128
8129     amigaos*)
8130       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)'
8131       hardcode_libdir_flag_spec='-L$libdir'
8132       hardcode_minus_L=yes
8133
8134       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8135       # that the semantics of dynamic libraries on AmigaOS, at least up
8136       # to version 4, is to share data among multiple programs linked
8137       # with the same dynamic library.  Since this doesn't match the
8138       # behavior of shared libraries on other platforms, we can't use
8139       # them.
8140       ld_shlibs=no
8141       ;;
8142
8143     beos*)
8144       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8145         allow_undefined_flag=unsupported
8146         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8147         # support --undefined.  This deserves some investigation.  FIXME
8148         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8149       else
8150         ld_shlibs=no
8151       fi
8152       ;;
8153
8154     cygwin* | mingw* | pw32*)
8155       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8156       # as there is no search path for DLLs.
8157       hardcode_libdir_flag_spec='-L$libdir'
8158       allow_undefined_flag=unsupported
8159       always_export_symbols=no
8160       enable_shared_with_static_runtimes=yes
8161       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8162
8163       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8164         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8165         # If the export-symbols file already is a .def file (1st line
8166         # is EXPORTS), use it as is; otherwise, prepend...
8167         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8168           cp $export_symbols $output_objdir/$soname.def;
8169         else
8170           echo EXPORTS > $output_objdir/$soname.def;
8171           cat $export_symbols >> $output_objdir/$soname.def;
8172         fi~
8173         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8174       else
8175         ld_shlibs=no
8176       fi
8177       ;;
8178
8179     linux*)
8180       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8181         tmp_addflag=
8182         case $cc_basename,$host_cpu in
8183         pgcc*)                          # Portland Group C compiler
8184           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'
8185           tmp_addflag=' $pic_flag'
8186           ;;
8187         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8188           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'
8189           tmp_addflag=' $pic_flag -Mnomain' ;;
8190         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8191           tmp_addflag=' -i_dynamic' ;;
8192         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8193           tmp_addflag=' -i_dynamic -nofor_main' ;;
8194         ifc* | ifort*)                  # Intel Fortran compiler
8195           tmp_addflag=' -nofor_main' ;;
8196         esac
8197         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8198
8199         if test $supports_anon_versioning = yes; then
8200           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8201   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8202   $echo "local: *; };" >> $output_objdir/$libname.ver~
8203           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8204         fi
8205       else
8206         ld_shlibs=no
8207       fi
8208       ;;
8209
8210     netbsd*)
8211       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8212         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8213         wlarc=
8214       else
8215         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8216         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8217       fi
8218       ;;
8219
8220     solaris* | sysv5*)
8221       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8222         ld_shlibs=no
8223         cat <<EOF 1>&2
8224
8225 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8226 *** create shared libraries on Solaris systems.  Therefore, libtool
8227 *** is disabling shared libraries support.  We urge you to upgrade GNU
8228 *** binutils to release 2.9.1 or newer.  Another option is to modify
8229 *** your PATH or compiler configuration so that the native linker is
8230 *** used, and then restart.
8231
8232 EOF
8233       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8234         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8235         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8236       else
8237         ld_shlibs=no
8238       fi
8239       ;;
8240
8241     sunos4*)
8242       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8243       wlarc=
8244       hardcode_direct=yes
8245       hardcode_shlibpath_var=no
8246       ;;
8247
8248     *)
8249       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8250         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8251         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8252       else
8253         ld_shlibs=no
8254       fi
8255       ;;
8256     esac
8257
8258     if test "$ld_shlibs" = no; then
8259       runpath_var=
8260       hardcode_libdir_flag_spec=
8261       export_dynamic_flag_spec=
8262       whole_archive_flag_spec=
8263     fi
8264   else
8265     # PORTME fill in a description of your system's linker (not GNU ld)
8266     case $host_os in
8267     aix3*)
8268       allow_undefined_flag=unsupported
8269       always_export_symbols=yes
8270       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'
8271       # Note: this linker hardcodes the directories in LIBPATH if there
8272       # are no directories specified by -L.
8273       hardcode_minus_L=yes
8274       if test "$GCC" = yes && test -z "$link_static_flag"; then
8275         # Neither direct hardcoding nor static linking is supported with a
8276         # broken collect2.
8277         hardcode_direct=unsupported
8278       fi
8279       ;;
8280
8281     aix4* | aix5*)
8282       if test "$host_cpu" = ia64; then
8283         # On IA64, the linker does run time linking by default, so we don't
8284         # have to do anything special.
8285         aix_use_runtimelinking=no
8286         exp_sym_flag='-Bexport'
8287         no_entry_flag=""
8288       else
8289         # If we're using GNU nm, then we don't want the "-C" option.
8290         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8291         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8292           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'
8293         else
8294           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'
8295         fi
8296         aix_use_runtimelinking=no
8297
8298         # Test if we are trying to use run time linking or normal
8299         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8300         # need to do runtime linking.
8301         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8302           for ld_flag in $LDFLAGS; do
8303           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8304             aix_use_runtimelinking=yes
8305             break
8306           fi
8307           done
8308         esac
8309
8310         exp_sym_flag='-bexport'
8311         no_entry_flag='-bnoentry'
8312       fi
8313
8314       # When large executables or shared objects are built, AIX ld can
8315       # have problems creating the table of contents.  If linking a library
8316       # or program results in "error TOC overflow" add -mminimal-toc to
8317       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8318       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8319
8320       archive_cmds=''
8321       hardcode_direct=yes
8322       hardcode_libdir_separator=':'
8323       link_all_deplibs=yes
8324
8325       if test "$GCC" = yes; then
8326         case $host_os in aix4.[012]|aix4.[012].*)
8327         # We only want to do this on AIX 4.2 and lower, the check
8328         # below for broken collect2 doesn't work under 4.3+
8329           collect2name=`${CC} -print-prog-name=collect2`
8330           if test -f "$collect2name" && \
8331            strings "$collect2name" | grep resolve_lib_name >/dev/null
8332           then
8333           # We have reworked collect2
8334           hardcode_direct=yes
8335           else
8336           # We have old collect2
8337           hardcode_direct=unsupported
8338           # It fails to find uninstalled libraries when the uninstalled
8339           # path is not listed in the libpath.  Setting hardcode_minus_L
8340           # to unsupported forces relinking
8341           hardcode_minus_L=yes
8342           hardcode_libdir_flag_spec='-L$libdir'
8343           hardcode_libdir_separator=
8344           fi
8345         esac
8346         shared_flag='-shared'
8347         if test "$aix_use_runtimelinking" = yes; then
8348           shared_flag="$shared_flag "'${wl}-G'
8349         fi
8350       else
8351         # not using gcc
8352         if test "$host_cpu" = ia64; then
8353         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8354         # chokes on -Wl,-G. The following line is correct:
8355           shared_flag='-G'
8356         else
8357         if test "$aix_use_runtimelinking" = yes; then
8358             shared_flag='${wl}-G'
8359           else
8360             shared_flag='${wl}-bM:SRE'
8361         fi
8362         fi
8363       fi
8364
8365       # It seems that -bexpall does not export symbols beginning with
8366       # underscore (_), so it is better to generate a list of symbols to export.
8367       always_export_symbols=yes
8368       if test "$aix_use_runtimelinking" = yes; then
8369         # Warning - without using the other runtime loading flags (-brtl),
8370         # -berok will link without error, but may produce a broken library.
8371         allow_undefined_flag='-berok'
8372        # Determine the default libpath from the value encoded in an empty executable.
8373        cat >conftest.$ac_ext <<_ACEOF
8374 /* confdefs.h.  */
8375 _ACEOF
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h.  */
8379
8380 int
8381 main ()
8382 {
8383
8384   ;
8385   return 0;
8386 }
8387 _ACEOF
8388 rm -f conftest.$ac_objext conftest$ac_exeext
8389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8390   (eval $ac_link) 2>conftest.er1
8391   ac_status=$?
8392   grep -v '^ *+' conftest.er1 >conftest.err
8393   rm -f conftest.er1
8394   cat conftest.err >&5
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); } &&
8397          { ac_try='test -z "$ac_c_werror_flag"
8398                          || test ! -s conftest.err'
8399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400   (eval $ac_try) 2>&5
8401   ac_status=$?
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); }; } &&
8404          { ac_try='test -s conftest$ac_exeext'
8405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406   (eval $ac_try) 2>&5
8407   ac_status=$?
8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); }; }; then
8410
8411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8412 }'`
8413 # Check for a 64-bit object if we didn't find anything.
8414 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; }
8415 }'`; fi
8416 else
8417   echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8419
8420 fi
8421 rm -f conftest.err conftest.$ac_objext \
8422       conftest$ac_exeext conftest.$ac_ext
8423 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8424
8425        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8426         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"
8427        else
8428         if test "$host_cpu" = ia64; then
8429           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8430           allow_undefined_flag="-z nodefs"
8431           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"
8432         else
8433          # Determine the default libpath from the value encoded in an empty executable.
8434          cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h.  */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h.  */
8440
8441 int
8442 main ()
8443 {
8444
8445   ;
8446   return 0;
8447 }
8448 _ACEOF
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8451   (eval $ac_link) 2>conftest.er1
8452   ac_status=$?
8453   grep -v '^ *+' conftest.er1 >conftest.err
8454   rm -f conftest.er1
8455   cat conftest.err >&5
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } &&
8458          { ac_try='test -z "$ac_c_werror_flag"
8459                          || test ! -s conftest.err'
8460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461   (eval $ac_try) 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); }; } &&
8465          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8471
8472 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8473 }'`
8474 # Check for a 64-bit object if we didn't find anything.
8475 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; }
8476 }'`; fi
8477 else
8478   echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8480
8481 fi
8482 rm -f conftest.err conftest.$ac_objext \
8483       conftest$ac_exeext conftest.$ac_ext
8484 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8485
8486          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8487           # Warning - without using the other run time loading flags,
8488           # -berok will link without error, but may produce a broken library.
8489           no_undefined_flag=' ${wl}-bernotok'
8490           allow_undefined_flag=' ${wl}-berok'
8491           # -bexpall does not export symbols beginning with underscore (_)
8492           always_export_symbols=yes
8493           # Exported symbols can be pulled into shared objects from archives
8494           whole_archive_flag_spec=' '
8495           archive_cmds_need_lc=yes
8496           # This is similar to how AIX traditionally builds its shared libraries.
8497           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'
8498         fi
8499       fi
8500       ;;
8501
8502     amigaos*)
8503       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)'
8504       hardcode_libdir_flag_spec='-L$libdir'
8505       hardcode_minus_L=yes
8506       # see comment about different semantics on the GNU ld section
8507       ld_shlibs=no
8508       ;;
8509
8510     bsdi[45]*)
8511       export_dynamic_flag_spec=-rdynamic
8512       ;;
8513
8514     cygwin* | mingw* | pw32*)
8515       # When not using gcc, we currently assume that we are using
8516       # Microsoft Visual C++.
8517       # hardcode_libdir_flag_spec is actually meaningless, as there is
8518       # no search path for DLLs.
8519       hardcode_libdir_flag_spec=' '
8520       allow_undefined_flag=unsupported
8521       # Tell ltmain to make .lib files, not .a files.
8522       libext=lib
8523       # Tell ltmain to make .dll files, not .so files.
8524       shrext_cmds=".dll"
8525       # FIXME: Setting linknames here is a bad hack.
8526       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8527       # The linker will automatically build a .lib file if we build a DLL.
8528       old_archive_From_new_cmds='true'
8529       # FIXME: Should let the user specify the lib program.
8530       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8531       fix_srcfile_path='`cygpath -w "$srcfile"`'
8532       enable_shared_with_static_runtimes=yes
8533       ;;
8534
8535     darwin* | rhapsody*)
8536       case $host_os in
8537         rhapsody* | darwin1.[012])
8538          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8539          ;;
8540        *) # Darwin 1.3 on
8541          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8542            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8543          else
8544            case ${MACOSX_DEPLOYMENT_TARGET} in
8545              10.[012])
8546                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8547                ;;
8548              10.*)
8549                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8550                ;;
8551            esac
8552          fi
8553          ;;
8554       esac
8555       archive_cmds_need_lc=no
8556       hardcode_direct=no
8557       hardcode_automatic=yes
8558       hardcode_shlibpath_var=unsupported
8559       whole_archive_flag_spec=''
8560       link_all_deplibs=yes
8561     if test "$GCC" = yes ; then
8562         output_verbose_link_cmd='echo'
8563         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8564       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8565       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8566       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}'
8567       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}'
8568     else
8569       case $cc_basename in
8570         xlc*)
8571          output_verbose_link_cmd='echo'
8572          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8573          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8574           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8575          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}'
8576           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}'
8577           ;;
8578        *)
8579          ld_shlibs=no
8580           ;;
8581       esac
8582     fi
8583       ;;
8584
8585     dgux*)
8586       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8587       hardcode_libdir_flag_spec='-L$libdir'
8588       hardcode_shlibpath_var=no
8589       ;;
8590
8591     freebsd1*)
8592       ld_shlibs=no
8593       ;;
8594
8595     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8596     # support.  Future versions do this automatically, but an explicit c++rt0.o
8597     # does not break anything, and helps significantly (at the cost of a little
8598     # extra space).
8599     freebsd2.2*)
8600       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8601       hardcode_libdir_flag_spec='-R$libdir'
8602       hardcode_direct=yes
8603       hardcode_shlibpath_var=no
8604       ;;
8605
8606     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8607     freebsd2*)
8608       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8609       hardcode_direct=yes
8610       hardcode_minus_L=yes
8611       hardcode_shlibpath_var=no
8612       ;;
8613
8614     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8615     freebsd* | kfreebsd*-gnu | dragonfly*)
8616       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8617       hardcode_libdir_flag_spec='-R$libdir'
8618       hardcode_direct=yes
8619       hardcode_shlibpath_var=no
8620       ;;
8621
8622     hpux9*)
8623       if test "$GCC" = yes; then
8624         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'
8625       else
8626         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'
8627       fi
8628       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8629       hardcode_libdir_separator=:
8630       hardcode_direct=yes
8631
8632       # hardcode_minus_L: Not really in the search PATH,
8633       # but as the default location of the library.
8634       hardcode_minus_L=yes
8635       export_dynamic_flag_spec='${wl}-E'
8636       ;;
8637
8638     hpux10* | hpux11*)
8639       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8640         case $host_cpu in
8641         hppa*64*|ia64*)
8642           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8643           ;;
8644         *)
8645           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8646           ;;
8647         esac
8648       else
8649         case $host_cpu in
8650         hppa*64*|ia64*)
8651           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8652           ;;
8653         *)
8654           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8655           ;;
8656         esac
8657       fi
8658       if test "$with_gnu_ld" = no; then
8659         case $host_cpu in
8660         hppa*64*)
8661           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8662           hardcode_libdir_flag_spec_ld='+b $libdir'
8663           hardcode_libdir_separator=:
8664           hardcode_direct=no
8665           hardcode_shlibpath_var=no
8666           ;;
8667         ia64*)
8668           hardcode_libdir_flag_spec='-L$libdir'
8669           hardcode_direct=no
8670           hardcode_shlibpath_var=no
8671
8672           # hardcode_minus_L: Not really in the search PATH,
8673           # but as the default location of the library.
8674           hardcode_minus_L=yes
8675           ;;
8676         *)
8677           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8678           hardcode_libdir_separator=:
8679           hardcode_direct=yes
8680           export_dynamic_flag_spec='${wl}-E'
8681
8682           # hardcode_minus_L: Not really in the search PATH,
8683           # but as the default location of the library.
8684           hardcode_minus_L=yes
8685           ;;
8686         esac
8687       fi
8688       ;;
8689
8690     irix5* | irix6* | nonstopux*)
8691       if test "$GCC" = yes; then
8692         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'
8693       else
8694         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'
8695         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8696       fi
8697       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8698       hardcode_libdir_separator=:
8699       link_all_deplibs=yes
8700       ;;
8701
8702     netbsd*)
8703       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8704         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8705       else
8706         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8707       fi
8708       hardcode_libdir_flag_spec='-R$libdir'
8709       hardcode_direct=yes
8710       hardcode_shlibpath_var=no
8711       ;;
8712
8713     newsos6)
8714       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8715       hardcode_direct=yes
8716       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8717       hardcode_libdir_separator=:
8718       hardcode_shlibpath_var=no
8719       ;;
8720
8721     openbsd*)
8722       hardcode_direct=yes
8723       hardcode_shlibpath_var=no
8724       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8725         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8726         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8727         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8728         export_dynamic_flag_spec='${wl}-E'
8729       else
8730        case $host_os in
8731          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8732            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8733            hardcode_libdir_flag_spec='-R$libdir'
8734            ;;
8735          *)
8736            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8737            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8738            ;;
8739        esac
8740       fi
8741       ;;
8742
8743     os2*)
8744       hardcode_libdir_flag_spec='-L$libdir'
8745       hardcode_minus_L=yes
8746       allow_undefined_flag=unsupported
8747       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'
8748       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8749       ;;
8750
8751     osf3*)
8752       if test "$GCC" = yes; then
8753         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8754         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'
8755       else
8756         allow_undefined_flag=' -expect_unresolved \*'
8757         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'
8758       fi
8759       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8760       hardcode_libdir_separator=:
8761       ;;
8762
8763     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8764       if test "$GCC" = yes; then
8765         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8766         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'
8767         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768       else
8769         allow_undefined_flag=' -expect_unresolved \*'
8770         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'
8771         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8772         $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'
8773
8774         # Both c and cxx compiler support -rpath directly
8775         hardcode_libdir_flag_spec='-rpath $libdir'
8776       fi
8777       hardcode_libdir_separator=:
8778       ;;
8779
8780     sco3.2v5*)
8781       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782       hardcode_shlibpath_var=no
8783       export_dynamic_flag_spec='${wl}-Bexport'
8784       runpath_var=LD_RUN_PATH
8785       hardcode_runpath_var=yes
8786       ;;
8787
8788     solaris*)
8789       no_undefined_flag=' -z text'
8790       if test "$GCC" = yes; then
8791         wlarc='${wl}'
8792         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8793         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8794           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8795       else
8796         wlarc=''
8797         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8799         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8800       fi
8801       hardcode_libdir_flag_spec='-R$libdir'
8802       hardcode_shlibpath_var=no
8803       case $host_os in
8804       solaris2.[0-5] | solaris2.[0-5].*) ;;
8805       *)
8806         # The compiler driver will combine linker options so we
8807         # cannot just pass the convience library names through
8808         # without $wl, iff we do not link with $LD.
8809         # Luckily, gcc supports the same syntax we need for Sun Studio.
8810         # Supported since Solaris 2.6 (maybe 2.5.1?)
8811         case $wlarc in
8812         '')
8813           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8814         *)
8815           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' ;;
8816         esac ;;
8817       esac
8818       link_all_deplibs=yes
8819       ;;
8820
8821     sunos4*)
8822       if test "x$host_vendor" = xsequent; then
8823         # Use $CC to link under sequent, because it throws in some extra .o
8824         # files that make .init and .fini sections work.
8825         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8826       else
8827         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8828       fi
8829       hardcode_libdir_flag_spec='-L$libdir'
8830       hardcode_direct=yes
8831       hardcode_minus_L=yes
8832       hardcode_shlibpath_var=no
8833       ;;
8834
8835     sysv4)
8836       case $host_vendor in
8837         sni)
8838           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8839           hardcode_direct=yes # is this really true???
8840         ;;
8841         siemens)
8842           ## LD is ld it makes a PLAMLIB
8843           ## CC just makes a GrossModule.
8844           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8845           reload_cmds='$CC -r -o $output$reload_objs'
8846           hardcode_direct=no
8847         ;;
8848         motorola)
8849           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8850           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8851         ;;
8852       esac
8853       runpath_var='LD_RUN_PATH'
8854       hardcode_shlibpath_var=no
8855       ;;
8856
8857     sysv4.3*)
8858       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8859       hardcode_shlibpath_var=no
8860       export_dynamic_flag_spec='-Bexport'
8861       ;;
8862
8863     sysv4*MP*)
8864       if test -d /usr/nec; then
8865         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8866         hardcode_shlibpath_var=no
8867         runpath_var=LD_RUN_PATH
8868         hardcode_runpath_var=yes
8869         ld_shlibs=yes
8870       fi
8871       ;;
8872
8873     sysv4.2uw2*)
8874       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8875       hardcode_direct=yes
8876       hardcode_minus_L=no
8877       hardcode_shlibpath_var=no
8878       hardcode_runpath_var=yes
8879       runpath_var=LD_RUN_PATH
8880       ;;
8881
8882    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8883       no_undefined_flag='${wl}-z ${wl}text'
8884       if test "$GCC" = yes; then
8885         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8886       else
8887         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8888       fi
8889       runpath_var='LD_RUN_PATH'
8890       hardcode_shlibpath_var=no
8891       ;;
8892
8893     sysv5*)
8894       no_undefined_flag=' -z text'
8895       # $CC -shared without GNU ld will not create a library from C++
8896       # object files and a static libstdc++, better avoid it by now
8897       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8899                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8900       hardcode_libdir_flag_spec=
8901       hardcode_shlibpath_var=no
8902       runpath_var='LD_RUN_PATH'
8903       ;;
8904
8905     uts4*)
8906       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8907       hardcode_libdir_flag_spec='-L$libdir'
8908       hardcode_shlibpath_var=no
8909       ;;
8910
8911     *)
8912       ld_shlibs=no
8913       ;;
8914     esac
8915   fi
8916
8917 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8918 echo "${ECHO_T}$ld_shlibs" >&6
8919 test "$ld_shlibs" = no && can_build_shared=no
8920
8921 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8922 if test "$GCC" = yes; then
8923   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8924 fi
8925
8926 #
8927 # Do we need to explicitly link libc?
8928 #
8929 case "x$archive_cmds_need_lc" in
8930 x|xyes)
8931   # Assume -lc should be added
8932   archive_cmds_need_lc=yes
8933
8934   if test "$enable_shared" = yes && test "$GCC" = yes; then
8935     case $archive_cmds in
8936     *'~'*)
8937       # FIXME: we may have to deal with multi-command sequences.
8938       ;;
8939     '$CC '*)
8940       # Test whether the compiler implicitly links with -lc since on some
8941       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8942       # to ld, don't add -lc before -lgcc.
8943       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8944 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8945       $rm conftest*
8946       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8947
8948       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8949   (eval $ac_compile) 2>&5
8950   ac_status=$?
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); } 2>conftest.err; then
8953         soname=conftest
8954         lib=conftest
8955         libobjs=conftest.$ac_objext
8956         deplibs=
8957         wl=$lt_prog_compiler_wl
8958         compiler_flags=-v
8959         linker_flags=-v
8960         verstring=
8961         output_objdir=.
8962         libname=conftest
8963         lt_save_allow_undefined_flag=$allow_undefined_flag
8964         allow_undefined_flag=
8965         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8966   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8967   ac_status=$?
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); }
8970         then
8971           archive_cmds_need_lc=no
8972         else
8973           archive_cmds_need_lc=yes
8974         fi
8975         allow_undefined_flag=$lt_save_allow_undefined_flag
8976       else
8977         cat conftest.err 1>&5
8978       fi
8979       $rm conftest*
8980       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8981 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8982       ;;
8983     esac
8984   fi
8985   ;;
8986 esac
8987
8988 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8989 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8990 library_names_spec=
8991 libname_spec='lib$name'
8992 soname_spec=
8993 shrext_cmds=".so"
8994 postinstall_cmds=
8995 postuninstall_cmds=
8996 finish_cmds=
8997 finish_eval=
8998 shlibpath_var=
8999 shlibpath_overrides_runpath=unknown
9000 version_type=none
9001 dynamic_linker="$host_os ld.so"
9002 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9003 if test "$GCC" = yes; then
9004   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9005   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9006     # if the path contains ";" then we assume it to be the separator
9007     # otherwise default to the standard path separator (i.e. ":") - it is
9008     # assumed that no part of a normal pathname contains ";" but that should
9009     # okay in the real world where ";" in dirpaths is itself problematic.
9010     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9011   else
9012     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9013   fi
9014 else
9015   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9016 fi
9017 need_lib_prefix=unknown
9018 hardcode_into_libs=no
9019
9020 # when you set need_version to no, make sure it does not cause -set_version
9021 # flags to be left without arguments
9022 need_version=unknown
9023
9024 case $host_os in
9025 aix3*)
9026   version_type=linux
9027   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9028   shlibpath_var=LIBPATH
9029
9030   # AIX 3 has no versioning support, so we append a major version to the name.
9031   soname_spec='${libname}${release}${shared_ext}$major'
9032   ;;
9033
9034 aix4* | aix5*)
9035   version_type=linux
9036   need_lib_prefix=no
9037   need_version=no
9038   hardcode_into_libs=yes
9039   if test "$host_cpu" = ia64; then
9040     # AIX 5 supports IA64
9041     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9042     shlibpath_var=LD_LIBRARY_PATH
9043   else
9044     # With GCC up to 2.95.x, collect2 would create an import file
9045     # for dependence libraries.  The import file would start with
9046     # the line `#! .'.  This would cause the generated library to
9047     # depend on `.', always an invalid library.  This was fixed in
9048     # development snapshots of GCC prior to 3.0.
9049     case $host_os in
9050       aix4 | aix4.[01] | aix4.[01].*)
9051       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9052            echo ' yes '
9053            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9054         :
9055       else
9056         can_build_shared=no
9057       fi
9058       ;;
9059     esac
9060     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9061     # soname into executable. Probably we can add versioning support to
9062     # collect2, so additional links can be useful in future.
9063     if test "$aix_use_runtimelinking" = yes; then
9064       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9065       # instead of lib<name>.a to let people know that these are not
9066       # typical AIX shared libraries.
9067       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068     else
9069       # We preserve .a as extension for shared libraries through AIX4.2
9070       # and later when we are not doing run time linking.
9071       library_names_spec='${libname}${release}.a $libname.a'
9072       soname_spec='${libname}${release}${shared_ext}$major'
9073     fi
9074     shlibpath_var=LIBPATH
9075   fi
9076   ;;
9077
9078 amigaos*)
9079   library_names_spec='$libname.ixlibrary $libname.a'
9080   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9081   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'
9082   ;;
9083
9084 beos*)
9085   library_names_spec='${libname}${shared_ext}'
9086   dynamic_linker="$host_os ld.so"
9087   shlibpath_var=LIBRARY_PATH
9088   ;;
9089
9090 bsdi[45]*)
9091   version_type=linux
9092   need_version=no
9093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094   soname_spec='${libname}${release}${shared_ext}$major'
9095   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9096   shlibpath_var=LD_LIBRARY_PATH
9097   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9098   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9099   # the default ld.so.conf also contains /usr/contrib/lib and
9100   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9101   # libtool to hard-code these into programs
9102   ;;
9103
9104 cygwin* | mingw* | pw32*)
9105   version_type=windows
9106   shrext_cmds=".dll"
9107   need_version=no
9108   need_lib_prefix=no
9109
9110   case $GCC,$host_os in
9111   yes,cygwin* | yes,mingw* | yes,pw32*)
9112     library_names_spec='$libname.dll.a'
9113     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9114     postinstall_cmds='base_file=`basename \${file}`~
9115       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9116       dldir=$destdir/`dirname \$dlpath`~
9117       test -d \$dldir || mkdir -p \$dldir~
9118       $install_prog $dir/$dlname \$dldir/$dlname~
9119       chmod a+x \$dldir/$dlname'
9120     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9121       dlpath=$dir/\$dldll~
9122        $rm \$dlpath'
9123     shlibpath_overrides_runpath=yes
9124
9125     case $host_os in
9126     cygwin*)
9127       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9128       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9129       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9130       ;;
9131     mingw*)
9132       # MinGW DLLs use traditional 'lib' prefix
9133       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9134       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9135       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9136         # It is most probably a Windows format PATH printed by
9137         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9138         # path with ; separators, and with drive letters. We can handle the
9139         # drive letters (cygwin fileutils understands them), so leave them,
9140         # especially as we might pass files found there to a mingw objdump,
9141         # which wouldn't understand a cygwinified path. Ahh.
9142         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9143       else
9144         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9145       fi
9146       ;;
9147     pw32*)
9148       # pw32 DLLs use 'pw' prefix rather than 'lib'
9149       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9150       ;;
9151     esac
9152     ;;
9153
9154   *)
9155     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9156     ;;
9157   esac
9158   dynamic_linker='Win32 ld.exe'
9159   # FIXME: first we should search . and the directory the executable is in
9160   shlibpath_var=PATH
9161   ;;
9162
9163 darwin* | rhapsody*)
9164   dynamic_linker="$host_os dyld"
9165   version_type=darwin
9166   need_lib_prefix=no
9167   need_version=no
9168   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9169   soname_spec='${libname}${release}${major}$shared_ext'
9170   shlibpath_overrides_runpath=yes
9171   shlibpath_var=DYLD_LIBRARY_PATH
9172   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9173   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9174   if test "$GCC" = yes; then
9175     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"`
9176   else
9177     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9178   fi
9179   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9180   ;;
9181
9182 dgux*)
9183   version_type=linux
9184   need_lib_prefix=no
9185   need_version=no
9186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9187   soname_spec='${libname}${release}${shared_ext}$major'
9188   shlibpath_var=LD_LIBRARY_PATH
9189   ;;
9190
9191 freebsd1*)
9192   dynamic_linker=no
9193   ;;
9194
9195 kfreebsd*-gnu)
9196   version_type=linux
9197   need_lib_prefix=no
9198   need_version=no
9199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9200   soname_spec='${libname}${release}${shared_ext}$major'
9201   shlibpath_var=LD_LIBRARY_PATH
9202   shlibpath_overrides_runpath=no
9203   hardcode_into_libs=yes
9204   dynamic_linker='GNU ld.so'
9205   ;;
9206
9207 freebsd* | dragonfly*)
9208   # DragonFly does not have aout.  When/if they implement a new
9209   # versioning mechanism, adjust this.
9210   if test -x /usr/bin/objformat; then
9211     objformat=`/usr/bin/objformat`
9212   else
9213     case $host_os in
9214     freebsd[123]*) objformat=aout ;;
9215     *) objformat=elf ;;
9216     esac
9217   fi
9218   version_type=freebsd-$objformat
9219   case $version_type in
9220     freebsd-elf*)
9221       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9222       need_version=no
9223       need_lib_prefix=no
9224       ;;
9225     freebsd-*)
9226       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9227       need_version=yes
9228       ;;
9229   esac
9230   shlibpath_var=LD_LIBRARY_PATH
9231   case $host_os in
9232   freebsd2*)
9233     shlibpath_overrides_runpath=yes
9234     ;;
9235   freebsd3.[01]* | freebsdelf3.[01]*)
9236     shlibpath_overrides_runpath=yes
9237     hardcode_into_libs=yes
9238     ;;
9239   *) # from 3.2 on
9240     shlibpath_overrides_runpath=no
9241     hardcode_into_libs=yes
9242     ;;
9243   esac
9244   ;;
9245
9246 gnu*)
9247   version_type=linux
9248   need_lib_prefix=no
9249   need_version=no
9250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9251   soname_spec='${libname}${release}${shared_ext}$major'
9252   shlibpath_var=LD_LIBRARY_PATH
9253   hardcode_into_libs=yes
9254   ;;
9255
9256 hpux9* | hpux10* | hpux11*)
9257   # Give a soname corresponding to the major version so that dld.sl refuses to
9258   # link against other versions.
9259   version_type=sunos
9260   need_lib_prefix=no
9261   need_version=no
9262   case $host_cpu in
9263   ia64*)
9264     shrext_cmds='.so'
9265     hardcode_into_libs=yes
9266     dynamic_linker="$host_os dld.so"
9267     shlibpath_var=LD_LIBRARY_PATH
9268     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9269     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270     soname_spec='${libname}${release}${shared_ext}$major'
9271     if test "X$HPUX_IA64_MODE" = X32; then
9272       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9273     else
9274       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9275     fi
9276     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9277     ;;
9278    hppa*64*)
9279      shrext_cmds='.sl'
9280      hardcode_into_libs=yes
9281      dynamic_linker="$host_os dld.sl"
9282      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9283      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9284      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285      soname_spec='${libname}${release}${shared_ext}$major'
9286      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9287      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9288      ;;
9289    *)
9290     shrext_cmds='.sl'
9291     dynamic_linker="$host_os dld.sl"
9292     shlibpath_var=SHLIB_PATH
9293     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295     soname_spec='${libname}${release}${shared_ext}$major'
9296     ;;
9297   esac
9298   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9299   postinstall_cmds='chmod 555 $lib'
9300   ;;
9301
9302 irix5* | irix6* | nonstopux*)
9303   case $host_os in
9304     nonstopux*) version_type=nonstopux ;;
9305     *)
9306         if test "$lt_cv_prog_gnu_ld" = yes; then
9307                 version_type=linux
9308         else
9309                 version_type=irix
9310         fi ;;
9311   esac
9312   need_lib_prefix=no
9313   need_version=no
9314   soname_spec='${libname}${release}${shared_ext}$major'
9315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9316   case $host_os in
9317   irix5* | nonstopux*)
9318     libsuff= shlibsuff=
9319     ;;
9320   *)
9321     case $LD in # libtool.m4 will add one of these switches to LD
9322     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9323       libsuff= shlibsuff= libmagic=32-bit;;
9324     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9325       libsuff=32 shlibsuff=N32 libmagic=N32;;
9326     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9327       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9328     *) libsuff= shlibsuff= libmagic=never-match;;
9329     esac
9330     ;;
9331   esac
9332   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9333   shlibpath_overrides_runpath=no
9334   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9335   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9336   hardcode_into_libs=yes
9337   ;;
9338
9339 # No shared lib support for Linux oldld, aout, or coff.
9340 linux*oldld* | linux*aout* | linux*coff*)
9341   dynamic_linker=no
9342   ;;
9343
9344 # This must be Linux ELF.
9345 linux*)
9346   version_type=linux
9347   need_lib_prefix=no
9348   need_version=no
9349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350   soname_spec='${libname}${release}${shared_ext}$major'
9351   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9352   shlibpath_var=LD_LIBRARY_PATH
9353   shlibpath_overrides_runpath=no
9354   # This implies no fast_install, which is unacceptable.
9355   # Some rework will be needed to allow for fast_install
9356   # before this can be enabled.
9357   hardcode_into_libs=yes
9358
9359   # Append ld.so.conf contents to the search path
9360   if test -f /etc/ld.so.conf; then
9361     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' ' '`
9362     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9363   fi
9364
9365   # We used to test for /lib/ld.so.1 and disable shared libraries on
9366   # powerpc, because MkLinux only supported shared libraries with the
9367   # GNU dynamic linker.  Since this was broken with cross compilers,
9368   # most powerpc-linux boxes support dynamic linking these days and
9369   # people can always --disable-shared, the test was removed, and we
9370   # assume the GNU/Linux dynamic linker is in use.
9371   dynamic_linker='GNU/Linux ld.so'
9372   ;;
9373
9374 knetbsd*-gnu)
9375   version_type=linux
9376   need_lib_prefix=no
9377   need_version=no
9378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9379   soname_spec='${libname}${release}${shared_ext}$major'
9380   shlibpath_var=LD_LIBRARY_PATH
9381   shlibpath_overrides_runpath=no
9382   hardcode_into_libs=yes
9383   dynamic_linker='GNU ld.so'
9384   ;;
9385
9386 netbsd*)
9387   version_type=sunos
9388   need_lib_prefix=no
9389   need_version=no
9390   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9391     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9392     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9393     dynamic_linker='NetBSD (a.out) ld.so'
9394   else
9395     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9396     soname_spec='${libname}${release}${shared_ext}$major'
9397     dynamic_linker='NetBSD ld.elf_so'
9398   fi
9399   shlibpath_var=LD_LIBRARY_PATH
9400   shlibpath_overrides_runpath=yes
9401   hardcode_into_libs=yes
9402   ;;
9403
9404 newsos6)
9405   version_type=linux
9406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9407   shlibpath_var=LD_LIBRARY_PATH
9408   shlibpath_overrides_runpath=yes
9409   ;;
9410
9411 nto-qnx*)
9412   version_type=linux
9413   need_lib_prefix=no
9414   need_version=no
9415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9416   soname_spec='${libname}${release}${shared_ext}$major'
9417   shlibpath_var=LD_LIBRARY_PATH
9418   shlibpath_overrides_runpath=yes
9419   ;;
9420
9421 openbsd*)
9422   version_type=sunos
9423   need_lib_prefix=no
9424   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9425   case $host_os in
9426     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9427     *)                         need_version=no  ;;
9428   esac
9429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9430   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9431   shlibpath_var=LD_LIBRARY_PATH
9432   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9433     case $host_os in
9434       openbsd2.[89] | openbsd2.[89].*)
9435         shlibpath_overrides_runpath=no
9436         ;;
9437       *)
9438         shlibpath_overrides_runpath=yes
9439         ;;
9440       esac
9441   else
9442     shlibpath_overrides_runpath=yes
9443   fi
9444   ;;
9445
9446 os2*)
9447   libname_spec='$name'
9448   shrext_cmds=".dll"
9449   need_lib_prefix=no
9450   library_names_spec='$libname${shared_ext} $libname.a'
9451   dynamic_linker='OS/2 ld.exe'
9452   shlibpath_var=LIBPATH
9453   ;;
9454
9455 osf3* | osf4* | osf5*)
9456   version_type=osf
9457   need_lib_prefix=no
9458   need_version=no
9459   soname_spec='${libname}${release}${shared_ext}$major'
9460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461   shlibpath_var=LD_LIBRARY_PATH
9462   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9463   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9464   ;;
9465
9466 sco3.2v5*)
9467   version_type=osf
9468   soname_spec='${libname}${release}${shared_ext}$major'
9469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470   shlibpath_var=LD_LIBRARY_PATH
9471   ;;
9472
9473 solaris*)
9474   version_type=linux
9475   need_lib_prefix=no
9476   need_version=no
9477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478   soname_spec='${libname}${release}${shared_ext}$major'
9479   shlibpath_var=LD_LIBRARY_PATH
9480   shlibpath_overrides_runpath=yes
9481   hardcode_into_libs=yes
9482   # ldd complains unless libraries are executable
9483   postinstall_cmds='chmod +x $lib'
9484   ;;
9485
9486 sunos4*)
9487   version_type=sunos
9488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9489   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9490   shlibpath_var=LD_LIBRARY_PATH
9491   shlibpath_overrides_runpath=yes
9492   if test "$with_gnu_ld" = yes; then
9493     need_lib_prefix=no
9494   fi
9495   need_version=yes
9496   ;;
9497
9498 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9499   version_type=linux
9500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9501   soname_spec='${libname}${release}${shared_ext}$major'
9502   shlibpath_var=LD_LIBRARY_PATH
9503   case $host_vendor in
9504     sni)
9505       shlibpath_overrides_runpath=no
9506       need_lib_prefix=no
9507       export_dynamic_flag_spec='${wl}-Blargedynsym'
9508       runpath_var=LD_RUN_PATH
9509       ;;
9510     siemens)
9511       need_lib_prefix=no
9512       ;;
9513     motorola)
9514       need_lib_prefix=no
9515       need_version=no
9516       shlibpath_overrides_runpath=no
9517       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9518       ;;
9519   esac
9520   ;;
9521
9522 sysv4*MP*)
9523   if test -d /usr/nec ;then
9524     version_type=linux
9525     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9526     soname_spec='$libname${shared_ext}.$major'
9527     shlibpath_var=LD_LIBRARY_PATH
9528   fi
9529   ;;
9530
9531 uts4*)
9532   version_type=linux
9533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534   soname_spec='${libname}${release}${shared_ext}$major'
9535   shlibpath_var=LD_LIBRARY_PATH
9536   ;;
9537
9538 *)
9539   dynamic_linker=no
9540   ;;
9541 esac
9542 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9543 echo "${ECHO_T}$dynamic_linker" >&6
9544 test "$dynamic_linker" = no && can_build_shared=no
9545
9546 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9547 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9548 hardcode_action=
9549 if test -n "$hardcode_libdir_flag_spec" || \
9550    test -n "$runpath_var" || \
9551    test "X$hardcode_automatic" = "Xyes" ; then
9552
9553   # We can hardcode non-existant directories.
9554   if test "$hardcode_direct" != no &&
9555      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9556      # have to relink, otherwise we might link with an installed library
9557      # when we should be linking with a yet-to-be-installed one
9558      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9559      test "$hardcode_minus_L" != no; then
9560     # Linking always hardcodes the temporary library directory.
9561     hardcode_action=relink
9562   else
9563     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9564     hardcode_action=immediate
9565   fi
9566 else
9567   # We cannot hardcode anything, or else we can only hardcode existing
9568   # directories.
9569   hardcode_action=unsupported
9570 fi
9571 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9572 echo "${ECHO_T}$hardcode_action" >&6
9573
9574 if test "$hardcode_action" = relink; then
9575   # Fast installation is not supported
9576   enable_fast_install=no
9577 elif test "$shlibpath_overrides_runpath" = yes ||
9578      test "$enable_shared" = no; then
9579   # Fast installation is not necessary
9580   enable_fast_install=needless
9581 fi
9582
9583 striplib=
9584 old_striplib=
9585 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9586 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9587 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9588   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9589   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9590   echo "$as_me:$LINENO: result: yes" >&5
9591 echo "${ECHO_T}yes" >&6
9592 else
9593 # FIXME - insert some real tests, host_os isn't really good enough
9594   case $host_os in
9595    darwin*)
9596        if test -n "$STRIP" ; then
9597          striplib="$STRIP -x"
9598          echo "$as_me:$LINENO: result: yes" >&5
9599 echo "${ECHO_T}yes" >&6
9600        else
9601   echo "$as_me:$LINENO: result: no" >&5
9602 echo "${ECHO_T}no" >&6
9603 fi
9604        ;;
9605    *)
9606   echo "$as_me:$LINENO: result: no" >&5
9607 echo "${ECHO_T}no" >&6
9608     ;;
9609   esac
9610 fi
9611
9612 if test "x$enable_dlopen" != xyes; then
9613   enable_dlopen=unknown
9614   enable_dlopen_self=unknown
9615   enable_dlopen_self_static=unknown
9616 else
9617   lt_cv_dlopen=no
9618   lt_cv_dlopen_libs=
9619
9620   case $host_os in
9621   beos*)
9622     lt_cv_dlopen="load_add_on"
9623     lt_cv_dlopen_libs=
9624     lt_cv_dlopen_self=yes
9625     ;;
9626
9627   mingw* | pw32*)
9628     lt_cv_dlopen="LoadLibrary"
9629     lt_cv_dlopen_libs=
9630    ;;
9631
9632   cygwin*)
9633     lt_cv_dlopen="dlopen"
9634     lt_cv_dlopen_libs=
9635    ;;
9636
9637   darwin*)
9638   # if libdl is installed we need to link against it
9639     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9640 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9641 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9642   echo $ECHO_N "(cached) $ECHO_C" >&6
9643 else
9644   ac_check_lib_save_LIBS=$LIBS
9645 LIBS="-ldl  $LIBS"
9646 cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h.  */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h.  */
9652
9653 /* Override any gcc2 internal prototype to avoid an error.  */
9654 #ifdef __cplusplus
9655 extern "C"
9656 #endif
9657 /* We use char because int might match the return type of a gcc2
9658    builtin and then its argument prototype would still apply.  */
9659 char dlopen ();
9660 int
9661 main ()
9662 {
9663 dlopen ();
9664   ;
9665   return 0;
9666 }
9667 _ACEOF
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670   (eval $ac_link) 2>conftest.er1
9671   ac_status=$?
9672   grep -v '^ *+' conftest.er1 >conftest.err
9673   rm -f conftest.er1
9674   cat conftest.err >&5
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); } &&
9677          { ac_try='test -z "$ac_c_werror_flag"
9678                          || test ! -s conftest.err'
9679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680   (eval $ac_try) 2>&5
9681   ac_status=$?
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); }; } &&
9684          { ac_try='test -s conftest$ac_exeext'
9685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686   (eval $ac_try) 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); }; }; then
9690   ac_cv_lib_dl_dlopen=yes
9691 else
9692   echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9694
9695 ac_cv_lib_dl_dlopen=no
9696 fi
9697 rm -f conftest.err conftest.$ac_objext \
9698       conftest$ac_exeext conftest.$ac_ext
9699 LIBS=$ac_check_lib_save_LIBS
9700 fi
9701 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9702 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9703 if test $ac_cv_lib_dl_dlopen = yes; then
9704   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9705 else
9706
9707     lt_cv_dlopen="dyld"
9708     lt_cv_dlopen_libs=
9709     lt_cv_dlopen_self=yes
9710
9711 fi
9712
9713    ;;
9714
9715   *)
9716     echo "$as_me:$LINENO: checking for shl_load" >&5
9717 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9718 if test "${ac_cv_func_shl_load+set}" = set; then
9719   echo $ECHO_N "(cached) $ECHO_C" >&6
9720 else
9721   cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9729 #define shl_load innocuous_shl_load
9730
9731 /* System header to define __stub macros and hopefully few prototypes,
9732     which can conflict with char shl_load (); below.
9733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9734     <limits.h> exists even on freestanding compilers.  */
9735
9736 #ifdef __STDC__
9737 # include <limits.h>
9738 #else
9739 # include <assert.h>
9740 #endif
9741
9742 #undef shl_load
9743
9744 /* Override any gcc2 internal prototype to avoid an error.  */
9745 #ifdef __cplusplus
9746 extern "C"
9747 {
9748 #endif
9749 /* We use char because int might match the return type of a gcc2
9750    builtin and then its argument prototype would still apply.  */
9751 char shl_load ();
9752 /* The GNU C library defines this for functions which it implements
9753     to always fail with ENOSYS.  Some functions are actually named
9754     something starting with __ and the normal name is an alias.  */
9755 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9756 choke me
9757 #else
9758 char (*f) () = shl_load;
9759 #endif
9760 #ifdef __cplusplus
9761 }
9762 #endif
9763
9764 int
9765 main ()
9766 {
9767 return f != shl_load;
9768   ;
9769   return 0;
9770 }
9771 _ACEOF
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9774   (eval $ac_link) 2>conftest.er1
9775   ac_status=$?
9776   grep -v '^ *+' conftest.er1 >conftest.err
9777   rm -f conftest.er1
9778   cat conftest.err >&5
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); } &&
9781          { ac_try='test -z "$ac_c_werror_flag"
9782                          || test ! -s conftest.err'
9783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784   (eval $ac_try) 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); }; } &&
9788          { ac_try='test -s conftest$ac_exeext'
9789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790   (eval $ac_try) 2>&5
9791   ac_status=$?
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); }; }; then
9794   ac_cv_func_shl_load=yes
9795 else
9796   echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9798
9799 ac_cv_func_shl_load=no
9800 fi
9801 rm -f conftest.err conftest.$ac_objext \
9802       conftest$ac_exeext conftest.$ac_ext
9803 fi
9804 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9805 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9806 if test $ac_cv_func_shl_load = yes; then
9807   lt_cv_dlopen="shl_load"
9808 else
9809   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9810 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9811 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9812   echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814   ac_check_lib_save_LIBS=$LIBS
9815 LIBS="-ldld  $LIBS"
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h.  */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h.  */
9822
9823 /* Override any gcc2 internal prototype to avoid an error.  */
9824 #ifdef __cplusplus
9825 extern "C"
9826 #endif
9827 /* We use char because int might match the return type of a gcc2
9828    builtin and then its argument prototype would still apply.  */
9829 char shl_load ();
9830 int
9831 main ()
9832 {
9833 shl_load ();
9834   ;
9835   return 0;
9836 }
9837 _ACEOF
9838 rm -f conftest.$ac_objext conftest$ac_exeext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9840   (eval $ac_link) 2>conftest.er1
9841   ac_status=$?
9842   grep -v '^ *+' conftest.er1 >conftest.err
9843   rm -f conftest.er1
9844   cat conftest.err >&5
9845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); } &&
9847          { ac_try='test -z "$ac_c_werror_flag"
9848                          || test ! -s conftest.err'
9849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850   (eval $ac_try) 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); }; } &&
9854          { ac_try='test -s conftest$ac_exeext'
9855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856   (eval $ac_try) 2>&5
9857   ac_status=$?
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); }; }; then
9860   ac_cv_lib_dld_shl_load=yes
9861 else
9862   echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9864
9865 ac_cv_lib_dld_shl_load=no
9866 fi
9867 rm -f conftest.err conftest.$ac_objext \
9868       conftest$ac_exeext conftest.$ac_ext
9869 LIBS=$ac_check_lib_save_LIBS
9870 fi
9871 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9872 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9873 if test $ac_cv_lib_dld_shl_load = yes; then
9874   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9875 else
9876   echo "$as_me:$LINENO: checking for dlopen" >&5
9877 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9878 if test "${ac_cv_func_dlopen+set}" = set; then
9879   echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881   cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h.  */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h.  */
9887 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9889 #define dlopen innocuous_dlopen
9890
9891 /* System header to define __stub macros and hopefully few prototypes,
9892     which can conflict with char dlopen (); below.
9893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9894     <limits.h> exists even on freestanding compilers.  */
9895
9896 #ifdef __STDC__
9897 # include <limits.h>
9898 #else
9899 # include <assert.h>
9900 #endif
9901
9902 #undef dlopen
9903
9904 /* Override any gcc2 internal prototype to avoid an error.  */
9905 #ifdef __cplusplus
9906 extern "C"
9907 {
9908 #endif
9909 /* We use char because int might match the return type of a gcc2
9910    builtin and then its argument prototype would still apply.  */
9911 char dlopen ();
9912 /* The GNU C library defines this for functions which it implements
9913     to always fail with ENOSYS.  Some functions are actually named
9914     something starting with __ and the normal name is an alias.  */
9915 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9916 choke me
9917 #else
9918 char (*f) () = dlopen;
9919 #endif
9920 #ifdef __cplusplus
9921 }
9922 #endif
9923
9924 int
9925 main ()
9926 {
9927 return f != dlopen;
9928   ;
9929   return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934   (eval $ac_link) 2>conftest.er1
9935   ac_status=$?
9936   grep -v '^ *+' conftest.er1 >conftest.err
9937   rm -f conftest.er1
9938   cat conftest.err >&5
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } &&
9941          { ac_try='test -z "$ac_c_werror_flag"
9942                          || test ! -s conftest.err'
9943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944   (eval $ac_try) 2>&5
9945   ac_status=$?
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); }; } &&
9948          { ac_try='test -s conftest$ac_exeext'
9949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950   (eval $ac_try) 2>&5
9951   ac_status=$?
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); }; }; then
9954   ac_cv_func_dlopen=yes
9955 else
9956   echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9958
9959 ac_cv_func_dlopen=no
9960 fi
9961 rm -f conftest.err conftest.$ac_objext \
9962       conftest$ac_exeext conftest.$ac_ext
9963 fi
9964 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9965 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9966 if test $ac_cv_func_dlopen = yes; then
9967   lt_cv_dlopen="dlopen"
9968 else
9969   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9970 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9972   echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974   ac_check_lib_save_LIBS=$LIBS
9975 LIBS="-ldl  $LIBS"
9976 cat >conftest.$ac_ext <<_ACEOF
9977 /* confdefs.h.  */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h.  */
9982
9983 /* Override any gcc2 internal prototype to avoid an error.  */
9984 #ifdef __cplusplus
9985 extern "C"
9986 #endif
9987 /* We use char because int might match the return type of a gcc2
9988    builtin and then its argument prototype would still apply.  */
9989 char dlopen ();
9990 int
9991 main ()
9992 {
9993 dlopen ();
9994   ;
9995   return 0;
9996 }
9997 _ACEOF
9998 rm -f conftest.$ac_objext conftest$ac_exeext
9999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000   (eval $ac_link) 2>conftest.er1
10001   ac_status=$?
10002   grep -v '^ *+' conftest.er1 >conftest.err
10003   rm -f conftest.er1
10004   cat conftest.err >&5
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); } &&
10007          { ac_try='test -z "$ac_c_werror_flag"
10008                          || test ! -s conftest.err'
10009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010   (eval $ac_try) 2>&5
10011   ac_status=$?
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); }; } &&
10014          { ac_try='test -s conftest$ac_exeext'
10015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016   (eval $ac_try) 2>&5
10017   ac_status=$?
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); }; }; then
10020   ac_cv_lib_dl_dlopen=yes
10021 else
10022   echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10024
10025 ac_cv_lib_dl_dlopen=no
10026 fi
10027 rm -f conftest.err conftest.$ac_objext \
10028       conftest$ac_exeext conftest.$ac_ext
10029 LIBS=$ac_check_lib_save_LIBS
10030 fi
10031 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10032 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10033 if test $ac_cv_lib_dl_dlopen = yes; then
10034   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10035 else
10036   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10037 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10038 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10039   echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041   ac_check_lib_save_LIBS=$LIBS
10042 LIBS="-lsvld  $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_svld_dlopen=yes
10088 else
10089   echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10091
10092 ac_cv_lib_svld_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_svld_dlopen" >&5
10099 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10100 if test $ac_cv_lib_svld_dlopen = yes; then
10101   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10102 else
10103   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10104 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10105 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10106   echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108   ac_check_lib_save_LIBS=$LIBS
10109 LIBS="-ldld  $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 dld_link ();
10124 int
10125 main ()
10126 {
10127 dld_link ();
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_dld_dld_link=yes
10155 else
10156   echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
10166 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10167 if test $ac_cv_lib_dld_dld_link = yes; then
10168   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10169 fi
10170
10171
10172 fi
10173
10174
10175 fi
10176
10177
10178 fi
10179
10180
10181 fi
10182
10183
10184 fi
10185
10186     ;;
10187   esac
10188
10189   if test "x$lt_cv_dlopen" != xno; then
10190     enable_dlopen=yes
10191   else
10192     enable_dlopen=no
10193   fi
10194
10195   case $lt_cv_dlopen in
10196   dlopen)
10197     save_CPPFLAGS="$CPPFLAGS"
10198     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10199
10200     save_LDFLAGS="$LDFLAGS"
10201     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10202
10203     save_LIBS="$LIBS"
10204     LIBS="$lt_cv_dlopen_libs $LIBS"
10205
10206     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10207 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10208 if test "${lt_cv_dlopen_self+set}" = set; then
10209   echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211           if test "$cross_compiling" = yes; then :
10212   lt_cv_dlopen_self=cross
10213 else
10214   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10215   lt_status=$lt_dlunknown
10216   cat > conftest.$ac_ext <<EOF
10217 #line 10217 "configure"
10218 #include "confdefs.h"
10219
10220 #if HAVE_DLFCN_H
10221 #include <dlfcn.h>
10222 #endif
10223
10224 #include <stdio.h>
10225
10226 #ifdef RTLD_GLOBAL
10227 #  define LT_DLGLOBAL           RTLD_GLOBAL
10228 #else
10229 #  ifdef DL_GLOBAL
10230 #    define LT_DLGLOBAL         DL_GLOBAL
10231 #  else
10232 #    define LT_DLGLOBAL         0
10233 #  endif
10234 #endif
10235
10236 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10237    find out it does not work in some platform. */
10238 #ifndef LT_DLLAZY_OR_NOW
10239 #  ifdef RTLD_LAZY
10240 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10241 #  else
10242 #    ifdef DL_LAZY
10243 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10244 #    else
10245 #      ifdef RTLD_NOW
10246 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10247 #      else
10248 #        ifdef DL_NOW
10249 #          define LT_DLLAZY_OR_NOW      DL_NOW
10250 #        else
10251 #          define LT_DLLAZY_OR_NOW      0
10252 #        endif
10253 #      endif
10254 #    endif
10255 #  endif
10256 #endif
10257
10258 #ifdef __cplusplus
10259 extern "C" void exit (int);
10260 #endif
10261
10262 void fnord() { int i=42;}
10263 int main ()
10264 {
10265   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10266   int status = $lt_dlunknown;
10267
10268   if (self)
10269     {
10270       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10271       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10272       /* dlclose (self); */
10273     }
10274
10275     exit (status);
10276 }
10277 EOF
10278   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10279   (eval $ac_link) 2>&5
10280   ac_status=$?
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10283     (./conftest; exit; ) >&5 2>/dev/null
10284     lt_status=$?
10285     case x$lt_status in
10286       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10287       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10288       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10289     esac
10290   else :
10291     # compilation failed
10292     lt_cv_dlopen_self=no
10293   fi
10294 fi
10295 rm -fr conftest*
10296
10297
10298 fi
10299 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10300 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10301
10302     if test "x$lt_cv_dlopen_self" = xyes; then
10303       LDFLAGS="$LDFLAGS $link_static_flag"
10304       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10305 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10306 if test "${lt_cv_dlopen_self_static+set}" = set; then
10307   echo $ECHO_N "(cached) $ECHO_C" >&6
10308 else
10309           if test "$cross_compiling" = yes; then :
10310   lt_cv_dlopen_self_static=cross
10311 else
10312   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10313   lt_status=$lt_dlunknown
10314   cat > conftest.$ac_ext <<EOF
10315 #line 10315 "configure"
10316 #include "confdefs.h"
10317
10318 #if HAVE_DLFCN_H
10319 #include <dlfcn.h>
10320 #endif
10321
10322 #include <stdio.h>
10323
10324 #ifdef RTLD_GLOBAL
10325 #  define LT_DLGLOBAL           RTLD_GLOBAL
10326 #else
10327 #  ifdef DL_GLOBAL
10328 #    define LT_DLGLOBAL         DL_GLOBAL
10329 #  else
10330 #    define LT_DLGLOBAL         0
10331 #  endif
10332 #endif
10333
10334 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10335    find out it does not work in some platform. */
10336 #ifndef LT_DLLAZY_OR_NOW
10337 #  ifdef RTLD_LAZY
10338 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10339 #  else
10340 #    ifdef DL_LAZY
10341 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10342 #    else
10343 #      ifdef RTLD_NOW
10344 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10345 #      else
10346 #        ifdef DL_NOW
10347 #          define LT_DLLAZY_OR_NOW      DL_NOW
10348 #        else
10349 #          define LT_DLLAZY_OR_NOW      0
10350 #        endif
10351 #      endif
10352 #    endif
10353 #  endif
10354 #endif
10355
10356 #ifdef __cplusplus
10357 extern "C" void exit (int);
10358 #endif
10359
10360 void fnord() { int i=42;}
10361 int main ()
10362 {
10363   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10364   int status = $lt_dlunknown;
10365
10366   if (self)
10367     {
10368       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10369       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10370       /* dlclose (self); */
10371     }
10372
10373     exit (status);
10374 }
10375 EOF
10376   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10377   (eval $ac_link) 2>&5
10378   ac_status=$?
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10381     (./conftest; exit; ) >&5 2>/dev/null
10382     lt_status=$?
10383     case x$lt_status in
10384       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10385       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10386       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10387     esac
10388   else :
10389     # compilation failed
10390     lt_cv_dlopen_self_static=no
10391   fi
10392 fi
10393 rm -fr conftest*
10394
10395
10396 fi
10397 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10398 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10399     fi
10400
10401     CPPFLAGS="$save_CPPFLAGS"
10402     LDFLAGS="$save_LDFLAGS"
10403     LIBS="$save_LIBS"
10404     ;;
10405   esac
10406
10407   case $lt_cv_dlopen_self in
10408   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10409   *) enable_dlopen_self=unknown ;;
10410   esac
10411
10412   case $lt_cv_dlopen_self_static in
10413   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10414   *) enable_dlopen_self_static=unknown ;;
10415   esac
10416 fi
10417
10418
10419 # Report which librarie types wil actually be built
10420 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10421 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10422 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10423 echo "${ECHO_T}$can_build_shared" >&6
10424
10425 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10426 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10427 test "$can_build_shared" = "no" && enable_shared=no
10428
10429 # On AIX, shared libraries and static libraries use the same namespace, and
10430 # are all built from PIC.
10431 case $host_os in
10432 aix3*)
10433   test "$enable_shared" = yes && enable_static=no
10434   if test -n "$RANLIB"; then
10435     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10436     postinstall_cmds='$RANLIB $lib'
10437   fi
10438   ;;
10439
10440 aix4* | aix5*)
10441   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10442     test "$enable_shared" = yes && enable_static=no
10443   fi
10444     ;;
10445 esac
10446 echo "$as_me:$LINENO: result: $enable_shared" >&5
10447 echo "${ECHO_T}$enable_shared" >&6
10448
10449 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10450 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10451 # Make sure either enable_shared or enable_static is yes.
10452 test "$enable_shared" = yes || enable_static=yes
10453 echo "$as_me:$LINENO: result: $enable_static" >&5
10454 echo "${ECHO_T}$enable_static" >&6
10455
10456 # The else clause should only fire when bootstrapping the
10457 # libtool distribution, otherwise you forgot to ship ltmain.sh
10458 # with your package, and you will get complaints that there are
10459 # no rules to generate ltmain.sh.
10460 if test -f "$ltmain"; then
10461   # See if we are running on zsh, and set the options which allow our commands through
10462   # without removal of \ escapes.
10463   if test -n "${ZSH_VERSION+set}" ; then
10464     setopt NO_GLOB_SUBST
10465   fi
10466   # Now quote all the things that may contain metacharacters while being
10467   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10468   # variables and quote the copies for generation of the libtool script.
10469   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10470     SED SHELL STRIP \
10471     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10472     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10473     deplibs_check_method reload_flag reload_cmds need_locks \
10474     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10475     lt_cv_sys_global_symbol_to_c_name_address \
10476     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10477     old_postinstall_cmds old_postuninstall_cmds \
10478     compiler \
10479     CC \
10480     LD \
10481     lt_prog_compiler_wl \
10482     lt_prog_compiler_pic \
10483     lt_prog_compiler_static \
10484     lt_prog_compiler_no_builtin_flag \
10485     export_dynamic_flag_spec \
10486     thread_safe_flag_spec \
10487     whole_archive_flag_spec \
10488     enable_shared_with_static_runtimes \
10489     old_archive_cmds \
10490     old_archive_from_new_cmds \
10491     predep_objects \
10492     postdep_objects \
10493     predeps \
10494     postdeps \
10495     compiler_lib_search_path \
10496     archive_cmds \
10497     archive_expsym_cmds \
10498     postinstall_cmds \
10499     postuninstall_cmds \
10500     old_archive_from_expsyms_cmds \
10501     allow_undefined_flag \
10502     no_undefined_flag \
10503     export_symbols_cmds \
10504     hardcode_libdir_flag_spec \
10505     hardcode_libdir_flag_spec_ld \
10506     hardcode_libdir_separator \
10507     hardcode_automatic \
10508     module_cmds \
10509     module_expsym_cmds \
10510     lt_cv_prog_compiler_c_o \
10511     exclude_expsyms \
10512     include_expsyms; do
10513
10514     case $var in
10515     old_archive_cmds | \
10516     old_archive_from_new_cmds | \
10517     archive_cmds | \
10518     archive_expsym_cmds | \
10519     module_cmds | \
10520     module_expsym_cmds | \
10521     old_archive_from_expsyms_cmds | \
10522     export_symbols_cmds | \
10523     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10524     postinstall_cmds | postuninstall_cmds | \
10525     old_postinstall_cmds | old_postuninstall_cmds | \
10526     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10527       # Double-quote double-evaled strings.
10528       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10529       ;;
10530     *)
10531       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10532       ;;
10533     esac
10534   done
10535
10536   case $lt_echo in
10537   *'\$0 --fallback-echo"')
10538     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10539     ;;
10540   esac
10541
10542 cfgfile="${ofile}T"
10543   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10544   $rm -f "$cfgfile"
10545   { echo "$as_me:$LINENO: creating $ofile" >&5
10546 echo "$as_me: creating $ofile" >&6;}
10547
10548   cat <<__EOF__ >> "$cfgfile"
10549 #! $SHELL
10550
10551 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10552 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10553 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10554 #
10555 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10556 # Free Software Foundation, Inc.
10557 #
10558 # This file is part of GNU Libtool:
10559 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10560 #
10561 # This program is free software; you can redistribute it and/or modify
10562 # it under the terms of the GNU General Public License as published by
10563 # the Free Software Foundation; either version 2 of the License, or
10564 # (at your option) any later version.
10565 #
10566 # This program is distributed in the hope that it will be useful, but
10567 # WITHOUT ANY WARRANTY; without even the implied warranty of
10568 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10569 # General Public License for more details.
10570 #
10571 # You should have received a copy of the GNU General Public License
10572 # along with this program; if not, write to the Free Software
10573 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10574 #
10575 # As a special exception to the GNU General Public License, if you
10576 # distribute this file as part of a program that contains a
10577 # configuration script generated by Autoconf, you may include it under
10578 # the same distribution terms that you use for the rest of that program.
10579
10580 # A sed program that does not truncate output.
10581 SED=$lt_SED
10582
10583 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10584 Xsed="$SED -e 1s/^X//"
10585
10586 # The HP-UX ksh and POSIX shell print the target directory to stdout
10587 # if CDPATH is set.
10588 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10589
10590 # The names of the tagged configurations supported by this script.
10591 available_tags=
10592
10593 # ### BEGIN LIBTOOL CONFIG
10594
10595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10596
10597 # Shell to use when invoking shell scripts.
10598 SHELL=$lt_SHELL
10599
10600 # Whether or not to build shared libraries.
10601 build_libtool_libs=$enable_shared
10602
10603 # Whether or not to build static libraries.
10604 build_old_libs=$enable_static
10605
10606 # Whether or not to add -lc for building shared libraries.
10607 build_libtool_need_lc=$archive_cmds_need_lc
10608
10609 # Whether or not to disallow shared libs when runtime libs are static
10610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10611
10612 # Whether or not to optimize for fast installation.
10613 fast_install=$enable_fast_install
10614
10615 # The host system.
10616 host_alias=$host_alias
10617 host=$host
10618 host_os=$host_os
10619
10620 # The build system.
10621 build_alias=$build_alias
10622 build=$build
10623 build_os=$build_os
10624
10625 # An echo program that does not interpret backslashes.
10626 echo=$lt_echo
10627
10628 # The archiver.
10629 AR=$lt_AR
10630 AR_FLAGS=$lt_AR_FLAGS
10631
10632 # A C compiler.
10633 LTCC=$lt_LTCC
10634
10635 # A language-specific compiler.
10636 CC=$lt_compiler
10637
10638 # Is the compiler the GNU C compiler?
10639 with_gcc=$GCC
10640
10641 # An ERE matcher.
10642 EGREP=$lt_EGREP
10643
10644 # The linker used to build libraries.
10645 LD=$lt_LD
10646
10647 # Whether we need hard or soft links.
10648 LN_S=$lt_LN_S
10649
10650 # A BSD-compatible nm program.
10651 NM=$lt_NM
10652
10653 # A symbol stripping program
10654 STRIP=$lt_STRIP
10655
10656 # Used to examine libraries when file_magic_cmd begins "file"
10657 MAGIC_CMD=$MAGIC_CMD
10658
10659 # Used on cygwin: DLL creation program.
10660 DLLTOOL="$DLLTOOL"
10661
10662 # Used on cygwin: object dumper.
10663 OBJDUMP="$OBJDUMP"
10664
10665 # Used on cygwin: assembler.
10666 AS="$AS"
10667
10668 # The name of the directory that contains temporary libtool files.
10669 objdir=$objdir
10670
10671 # How to create reloadable object files.
10672 reload_flag=$lt_reload_flag
10673 reload_cmds=$lt_reload_cmds
10674
10675 # How to pass a linker flag through the compiler.
10676 wl=$lt_lt_prog_compiler_wl
10677
10678 # Object file suffix (normally "o").
10679 objext="$ac_objext"
10680
10681 # Old archive suffix (normally "a").
10682 libext="$libext"
10683
10684 # Shared library suffix (normally ".so").
10685 shrext_cmds='$shrext_cmds'
10686
10687 # Executable file suffix (normally "").
10688 exeext="$exeext"
10689
10690 # Additional compiler flags for building library objects.
10691 pic_flag=$lt_lt_prog_compiler_pic
10692 pic_mode=$pic_mode
10693
10694 # What is the maximum length of a command?
10695 max_cmd_len=$lt_cv_sys_max_cmd_len
10696
10697 # Does compiler simultaneously support -c and -o options?
10698 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10699
10700 # Must we lock files when doing compilation?
10701 need_locks=$lt_need_locks
10702
10703 # Do we need the lib prefix for modules?
10704 need_lib_prefix=$need_lib_prefix
10705
10706 # Do we need a version for libraries?
10707 need_version=$need_version
10708
10709 # Whether dlopen is supported.
10710 dlopen_support=$enable_dlopen
10711
10712 # Whether dlopen of programs is supported.
10713 dlopen_self=$enable_dlopen_self
10714
10715 # Whether dlopen of statically linked programs is supported.
10716 dlopen_self_static=$enable_dlopen_self_static
10717
10718 # Compiler flag to prevent dynamic linking.
10719 link_static_flag=$lt_lt_prog_compiler_static
10720
10721 # Compiler flag to turn off builtin functions.
10722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10723
10724 # Compiler flag to allow reflexive dlopens.
10725 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10726
10727 # Compiler flag to generate shared objects directly from archives.
10728 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10729
10730 # Compiler flag to generate thread-safe objects.
10731 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10732
10733 # Library versioning type.
10734 version_type=$version_type
10735
10736 # Format of library name prefix.
10737 libname_spec=$lt_libname_spec
10738
10739 # List of archive names.  First name is the real one, the rest are links.
10740 # The last name is the one that the linker finds with -lNAME.
10741 library_names_spec=$lt_library_names_spec
10742
10743 # The coded name of the library, if different from the real name.
10744 soname_spec=$lt_soname_spec
10745
10746 # Commands used to build and install an old-style archive.
10747 RANLIB=$lt_RANLIB
10748 old_archive_cmds=$lt_old_archive_cmds
10749 old_postinstall_cmds=$lt_old_postinstall_cmds
10750 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10751
10752 # Create an old-style archive from a shared archive.
10753 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10754
10755 # Create a temporary old-style archive to link instead of a shared archive.
10756 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10757
10758 # Commands used to build and install a shared archive.
10759 archive_cmds=$lt_archive_cmds
10760 archive_expsym_cmds=$lt_archive_expsym_cmds
10761 postinstall_cmds=$lt_postinstall_cmds
10762 postuninstall_cmds=$lt_postuninstall_cmds
10763
10764 # Commands used to build a loadable module (assumed same as above if empty)
10765 module_cmds=$lt_module_cmds
10766 module_expsym_cmds=$lt_module_expsym_cmds
10767
10768 # Commands to strip libraries.
10769 old_striplib=$lt_old_striplib
10770 striplib=$lt_striplib
10771
10772 # Dependencies to place before the objects being linked to create a
10773 # shared library.
10774 predep_objects=$lt_predep_objects
10775
10776 # Dependencies to place after the objects being linked to create a
10777 # shared library.
10778 postdep_objects=$lt_postdep_objects
10779
10780 # Dependencies to place before the objects being linked to create a
10781 # shared library.
10782 predeps=$lt_predeps
10783
10784 # Dependencies to place after the objects being linked to create a
10785 # shared library.
10786 postdeps=$lt_postdeps
10787
10788 # The library search path used internally by the compiler when linking
10789 # a shared library.
10790 compiler_lib_search_path=$lt_compiler_lib_search_path
10791
10792 # Method to check whether dependent libraries are shared objects.
10793 deplibs_check_method=$lt_deplibs_check_method
10794
10795 # Command to use when deplibs_check_method == file_magic.
10796 file_magic_cmd=$lt_file_magic_cmd
10797
10798 # Flag that allows shared libraries with undefined symbols to be built.
10799 allow_undefined_flag=$lt_allow_undefined_flag
10800
10801 # Flag that forces no undefined symbols.
10802 no_undefined_flag=$lt_no_undefined_flag
10803
10804 # Commands used to finish a libtool library installation in a directory.
10805 finish_cmds=$lt_finish_cmds
10806
10807 # Same as above, but a single script fragment to be evaled but not shown.
10808 finish_eval=$lt_finish_eval
10809
10810 # Take the output of nm and produce a listing of raw symbols and C names.
10811 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10812
10813 # Transform the output of nm in a proper C declaration
10814 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10815
10816 # Transform the output of nm in a C name address pair
10817 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10818
10819 # This is the shared library runtime path variable.
10820 runpath_var=$runpath_var
10821
10822 # This is the shared library path variable.
10823 shlibpath_var=$shlibpath_var
10824
10825 # Is shlibpath searched before the hard-coded library search path?
10826 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10827
10828 # How to hardcode a shared library path into an executable.
10829 hardcode_action=$hardcode_action
10830
10831 # Whether we should hardcode library paths into libraries.
10832 hardcode_into_libs=$hardcode_into_libs
10833
10834 # Flag to hardcode \$libdir into a binary during linking.
10835 # This must work even if \$libdir does not exist.
10836 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10837
10838 # If ld is used when linking, flag to hardcode \$libdir into
10839 # a binary during linking. This must work even if \$libdir does
10840 # not exist.
10841 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10842
10843 # Whether we need a single -rpath flag with a separated argument.
10844 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10845
10846 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10847 # resulting binary.
10848 hardcode_direct=$hardcode_direct
10849
10850 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10851 # resulting binary.
10852 hardcode_minus_L=$hardcode_minus_L
10853
10854 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10855 # the resulting binary.
10856 hardcode_shlibpath_var=$hardcode_shlibpath_var
10857
10858 # Set to yes if building a shared library automatically hardcodes DIR into the library
10859 # and all subsequent libraries and executables linked against it.
10860 hardcode_automatic=$hardcode_automatic
10861
10862 # Variables whose values should be saved in libtool wrapper scripts and
10863 # restored at relink time.
10864 variables_saved_for_relink="$variables_saved_for_relink"
10865
10866 # Whether libtool must link a program against all its dependency libraries.
10867 link_all_deplibs=$link_all_deplibs
10868
10869 # Compile-time system search path for libraries
10870 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10871
10872 # Run-time system search path for libraries
10873 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10874
10875 # Fix the shell variable \$srcfile for the compiler.
10876 fix_srcfile_path="$fix_srcfile_path"
10877
10878 # Set to yes if exported symbols are required.
10879 always_export_symbols=$always_export_symbols
10880
10881 # The commands to list exported symbols.
10882 export_symbols_cmds=$lt_export_symbols_cmds
10883
10884 # The commands to extract the exported symbol list from a shared archive.
10885 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10886
10887 # Symbols that should not be listed in the preloaded symbols.
10888 exclude_expsyms=$lt_exclude_expsyms
10889
10890 # Symbols that must always be exported.
10891 include_expsyms=$lt_include_expsyms
10892
10893 # ### END LIBTOOL CONFIG
10894
10895 __EOF__
10896
10897
10898   case $host_os in
10899   aix3*)
10900     cat <<\EOF >> "$cfgfile"
10901
10902 # AIX sometimes has problems with the GCC collect2 program.  For some
10903 # reason, if we set the COLLECT_NAMES environment variable, the problems
10904 # vanish in a puff of smoke.
10905 if test "X${COLLECT_NAMES+set}" != Xset; then
10906   COLLECT_NAMES=
10907   export COLLECT_NAMES
10908 fi
10909 EOF
10910     ;;
10911   esac
10912
10913   # We use sed instead of cat because bash on DJGPP gets confused if
10914   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10915   # text mode, it properly converts lines to CR/LF.  This bash problem
10916   # is reportedly fixed, but why not run on old versions too?
10917   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10918
10919   mv -f "$cfgfile" "$ofile" || \
10920     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10921   chmod +x "$ofile"
10922
10923 else
10924   # If there is no Makefile yet, we rely on a make rule to execute
10925   # `config.status --recheck' to rerun these tests and create the
10926   # libtool script then.
10927   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10928   if test -f "$ltmain_in"; then
10929     test -f Makefile && make "$ltmain"
10930   fi
10931 fi
10932
10933
10934 ac_ext=c
10935 ac_cpp='$CPP $CPPFLAGS'
10936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10939
10940 CC="$lt_save_CC"
10941
10942
10943 # Check whether --with-tags or --without-tags was given.
10944 if test "${with_tags+set}" = set; then
10945   withval="$with_tags"
10946   tagnames="$withval"
10947 fi;
10948
10949 if test -f "$ltmain" && test -n "$tagnames"; then
10950   if test ! -f "${ofile}"; then
10951     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10952 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10953   fi
10954
10955   if test -z "$LTCC"; then
10956     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10957     if test -z "$LTCC"; then
10958       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10959 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10960     else
10961       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10962 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10963     fi
10964   fi
10965
10966   # Extract list of available tagged configurations in $ofile.
10967   # Note that this assumes the entire list is on one line.
10968   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10969
10970   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10971   for tagname in $tagnames; do
10972     IFS="$lt_save_ifs"
10973     # Check whether tagname contains only valid characters
10974     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10975     "") ;;
10976     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10977 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10978    { (exit 1); exit 1; }; }
10979         ;;
10980     esac
10981
10982     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10983     then
10984       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10985 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10986    { (exit 1); exit 1; }; }
10987     fi
10988
10989     # Update the list of available tags.
10990     if test -n "$tagname"; then
10991       echo appending configuration tag \"$tagname\" to $ofile
10992
10993       case $tagname in
10994       CXX)
10995         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10996             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10997             (test "X$CXX" != "Xg++"))) ; then
10998           :
10999         else
11000           tagname=""
11001         fi
11002         ;;
11003
11004       F77)
11005         if test -n "$F77" && test "X$F77" != "Xno"; then
11006           :
11007         else
11008           tagname=""
11009         fi
11010         ;;
11011
11012       GCJ)
11013         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11014           :
11015         else
11016           tagname=""
11017         fi
11018         ;;
11019
11020       RC)
11021
11022
11023
11024 # Source file extension for RC test sources.
11025 ac_ext=rc
11026
11027 # Object file extension for compiled RC test sources.
11028 objext=o
11029 objext_RC=$objext
11030
11031 # Code to be used in simple compile tests
11032 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11033
11034 # Code to be used in simple link tests
11035 lt_simple_link_test_code="$lt_simple_compile_test_code"
11036
11037 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11038
11039 # If no C compiler was specified, use CC.
11040 LTCC=${LTCC-"$CC"}
11041
11042 # Allow CC to be a program name with arguments.
11043 compiler=$CC
11044
11045
11046 # save warnings/boilerplate of simple test code
11047 ac_outfile=conftest.$ac_objext
11048 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11049 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11050 _lt_compiler_boilerplate=`cat conftest.err`
11051 $rm conftest*
11052
11053 ac_outfile=conftest.$ac_objext
11054 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11055 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11056 _lt_linker_boilerplate=`cat conftest.err`
11057 $rm conftest*
11058
11059
11060 # Allow CC to be a program name with arguments.
11061 lt_save_CC="$CC"
11062 CC=${RC-"windres"}
11063 compiler=$CC
11064 compiler_RC=$CC
11065 for cc_temp in $compiler""; do
11066   case $cc_temp in
11067     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11068     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11069     \-*) ;;
11070     *) break;;
11071   esac
11072 done
11073 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11074
11075 lt_cv_prog_compiler_c_o_RC=yes
11076
11077 # The else clause should only fire when bootstrapping the
11078 # libtool distribution, otherwise you forgot to ship ltmain.sh
11079 # with your package, and you will get complaints that there are
11080 # no rules to generate ltmain.sh.
11081 if test -f "$ltmain"; then
11082   # See if we are running on zsh, and set the options which allow our commands through
11083   # without removal of \ escapes.
11084   if test -n "${ZSH_VERSION+set}" ; then
11085     setopt NO_GLOB_SUBST
11086   fi
11087   # Now quote all the things that may contain metacharacters while being
11088   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11089   # variables and quote the copies for generation of the libtool script.
11090   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11091     SED SHELL STRIP \
11092     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11093     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11094     deplibs_check_method reload_flag reload_cmds need_locks \
11095     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11096     lt_cv_sys_global_symbol_to_c_name_address \
11097     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11098     old_postinstall_cmds old_postuninstall_cmds \
11099     compiler_RC \
11100     CC_RC \
11101     LD_RC \
11102     lt_prog_compiler_wl_RC \
11103     lt_prog_compiler_pic_RC \
11104     lt_prog_compiler_static_RC \
11105     lt_prog_compiler_no_builtin_flag_RC \
11106     export_dynamic_flag_spec_RC \
11107     thread_safe_flag_spec_RC \
11108     whole_archive_flag_spec_RC \
11109     enable_shared_with_static_runtimes_RC \
11110     old_archive_cmds_RC \
11111     old_archive_from_new_cmds_RC \
11112     predep_objects_RC \
11113     postdep_objects_RC \
11114     predeps_RC \
11115     postdeps_RC \
11116     compiler_lib_search_path_RC \
11117     archive_cmds_RC \
11118     archive_expsym_cmds_RC \
11119     postinstall_cmds_RC \
11120     postuninstall_cmds_RC \
11121     old_archive_from_expsyms_cmds_RC \
11122     allow_undefined_flag_RC \
11123     no_undefined_flag_RC \
11124     export_symbols_cmds_RC \
11125     hardcode_libdir_flag_spec_RC \
11126     hardcode_libdir_flag_spec_ld_RC \
11127     hardcode_libdir_separator_RC \
11128     hardcode_automatic_RC \
11129     module_cmds_RC \
11130     module_expsym_cmds_RC \
11131     lt_cv_prog_compiler_c_o_RC \
11132     exclude_expsyms_RC \
11133     include_expsyms_RC; do
11134
11135     case $var in
11136     old_archive_cmds_RC | \
11137     old_archive_from_new_cmds_RC | \
11138     archive_cmds_RC | \
11139     archive_expsym_cmds_RC | \
11140     module_cmds_RC | \
11141     module_expsym_cmds_RC | \
11142     old_archive_from_expsyms_cmds_RC | \
11143     export_symbols_cmds_RC | \
11144     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11145     postinstall_cmds | postuninstall_cmds | \
11146     old_postinstall_cmds | old_postuninstall_cmds | \
11147     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11148       # Double-quote double-evaled strings.
11149       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11150       ;;
11151     *)
11152       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11153       ;;
11154     esac
11155   done
11156
11157   case $lt_echo in
11158   *'\$0 --fallback-echo"')
11159     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11160     ;;
11161   esac
11162
11163 cfgfile="$ofile"
11164
11165   cat <<__EOF__ >> "$cfgfile"
11166 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11167
11168 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11169
11170 # Shell to use when invoking shell scripts.
11171 SHELL=$lt_SHELL
11172
11173 # Whether or not to build shared libraries.
11174 build_libtool_libs=$enable_shared
11175
11176 # Whether or not to build static libraries.
11177 build_old_libs=$enable_static
11178
11179 # Whether or not to add -lc for building shared libraries.
11180 build_libtool_need_lc=$archive_cmds_need_lc_RC
11181
11182 # Whether or not to disallow shared libs when runtime libs are static
11183 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11184
11185 # Whether or not to optimize for fast installation.
11186 fast_install=$enable_fast_install
11187
11188 # The host system.
11189 host_alias=$host_alias
11190 host=$host
11191 host_os=$host_os
11192
11193 # The build system.
11194 build_alias=$build_alias
11195 build=$build
11196 build_os=$build_os
11197
11198 # An echo program that does not interpret backslashes.
11199 echo=$lt_echo
11200
11201 # The archiver.
11202 AR=$lt_AR
11203 AR_FLAGS=$lt_AR_FLAGS
11204
11205 # A C compiler.
11206 LTCC=$lt_LTCC
11207
11208 # A language-specific compiler.
11209 CC=$lt_compiler_RC
11210
11211 # Is the compiler the GNU C compiler?
11212 with_gcc=$GCC_RC
11213
11214 # An ERE matcher.
11215 EGREP=$lt_EGREP
11216
11217 # The linker used to build libraries.
11218 LD=$lt_LD_RC
11219
11220 # Whether we need hard or soft links.
11221 LN_S=$lt_LN_S
11222
11223 # A BSD-compatible nm program.
11224 NM=$lt_NM
11225
11226 # A symbol stripping program
11227 STRIP=$lt_STRIP
11228
11229 # Used to examine libraries when file_magic_cmd begins "file"
11230 MAGIC_CMD=$MAGIC_CMD
11231
11232 # Used on cygwin: DLL creation program.
11233 DLLTOOL="$DLLTOOL"
11234
11235 # Used on cygwin: object dumper.
11236 OBJDUMP="$OBJDUMP"
11237
11238 # Used on cygwin: assembler.
11239 AS="$AS"
11240
11241 # The name of the directory that contains temporary libtool files.
11242 objdir=$objdir
11243
11244 # How to create reloadable object files.
11245 reload_flag=$lt_reload_flag
11246 reload_cmds=$lt_reload_cmds
11247
11248 # How to pass a linker flag through the compiler.
11249 wl=$lt_lt_prog_compiler_wl_RC
11250
11251 # Object file suffix (normally "o").
11252 objext="$ac_objext"
11253
11254 # Old archive suffix (normally "a").
11255 libext="$libext"
11256
11257 # Shared library suffix (normally ".so").
11258 shrext_cmds='$shrext_cmds'
11259
11260 # Executable file suffix (normally "").
11261 exeext="$exeext"
11262
11263 # Additional compiler flags for building library objects.
11264 pic_flag=$lt_lt_prog_compiler_pic_RC
11265 pic_mode=$pic_mode
11266
11267 # What is the maximum length of a command?
11268 max_cmd_len=$lt_cv_sys_max_cmd_len
11269
11270 # Does compiler simultaneously support -c and -o options?
11271 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11272
11273 # Must we lock files when doing compilation?
11274 need_locks=$lt_need_locks
11275
11276 # Do we need the lib prefix for modules?
11277 need_lib_prefix=$need_lib_prefix
11278
11279 # Do we need a version for libraries?
11280 need_version=$need_version
11281
11282 # Whether dlopen is supported.
11283 dlopen_support=$enable_dlopen
11284
11285 # Whether dlopen of programs is supported.
11286 dlopen_self=$enable_dlopen_self
11287
11288 # Whether dlopen of statically linked programs is supported.
11289 dlopen_self_static=$enable_dlopen_self_static
11290
11291 # Compiler flag to prevent dynamic linking.
11292 link_static_flag=$lt_lt_prog_compiler_static_RC
11293
11294 # Compiler flag to turn off builtin functions.
11295 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11296
11297 # Compiler flag to allow reflexive dlopens.
11298 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11299
11300 # Compiler flag to generate shared objects directly from archives.
11301 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11302
11303 # Compiler flag to generate thread-safe objects.
11304 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11305
11306 # Library versioning type.
11307 version_type=$version_type
11308
11309 # Format of library name prefix.
11310 libname_spec=$lt_libname_spec
11311
11312 # List of archive names.  First name is the real one, the rest are links.
11313 # The last name is the one that the linker finds with -lNAME.
11314 library_names_spec=$lt_library_names_spec
11315
11316 # The coded name of the library, if different from the real name.
11317 soname_spec=$lt_soname_spec
11318
11319 # Commands used to build and install an old-style archive.
11320 RANLIB=$lt_RANLIB
11321 old_archive_cmds=$lt_old_archive_cmds_RC
11322 old_postinstall_cmds=$lt_old_postinstall_cmds
11323 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11324
11325 # Create an old-style archive from a shared archive.
11326 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11327
11328 # Create a temporary old-style archive to link instead of a shared archive.
11329 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11330
11331 # Commands used to build and install a shared archive.
11332 archive_cmds=$lt_archive_cmds_RC
11333 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11334 postinstall_cmds=$lt_postinstall_cmds
11335 postuninstall_cmds=$lt_postuninstall_cmds
11336
11337 # Commands used to build a loadable module (assumed same as above if empty)
11338 module_cmds=$lt_module_cmds_RC
11339 module_expsym_cmds=$lt_module_expsym_cmds_RC
11340
11341 # Commands to strip libraries.
11342 old_striplib=$lt_old_striplib
11343 striplib=$lt_striplib
11344
11345 # Dependencies to place before the objects being linked to create a
11346 # shared library.
11347 predep_objects=$lt_predep_objects_RC
11348
11349 # Dependencies to place after the objects being linked to create a
11350 # shared library.
11351 postdep_objects=$lt_postdep_objects_RC
11352
11353 # Dependencies to place before the objects being linked to create a
11354 # shared library.
11355 predeps=$lt_predeps_RC
11356
11357 # Dependencies to place after the objects being linked to create a
11358 # shared library.
11359 postdeps=$lt_postdeps_RC
11360
11361 # The library search path used internally by the compiler when linking
11362 # a shared library.
11363 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11364
11365 # Method to check whether dependent libraries are shared objects.
11366 deplibs_check_method=$lt_deplibs_check_method
11367
11368 # Command to use when deplibs_check_method == file_magic.
11369 file_magic_cmd=$lt_file_magic_cmd
11370
11371 # Flag that allows shared libraries with undefined symbols to be built.
11372 allow_undefined_flag=$lt_allow_undefined_flag_RC
11373
11374 # Flag that forces no undefined symbols.
11375 no_undefined_flag=$lt_no_undefined_flag_RC
11376
11377 # Commands used to finish a libtool library installation in a directory.
11378 finish_cmds=$lt_finish_cmds
11379
11380 # Same as above, but a single script fragment to be evaled but not shown.
11381 finish_eval=$lt_finish_eval
11382
11383 # Take the output of nm and produce a listing of raw symbols and C names.
11384 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11385
11386 # Transform the output of nm in a proper C declaration
11387 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11388
11389 # Transform the output of nm in a C name address pair
11390 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11391
11392 # This is the shared library runtime path variable.
11393 runpath_var=$runpath_var
11394
11395 # This is the shared library path variable.
11396 shlibpath_var=$shlibpath_var
11397
11398 # Is shlibpath searched before the hard-coded library search path?
11399 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11400
11401 # How to hardcode a shared library path into an executable.
11402 hardcode_action=$hardcode_action_RC
11403
11404 # Whether we should hardcode library paths into libraries.
11405 hardcode_into_libs=$hardcode_into_libs
11406
11407 # Flag to hardcode \$libdir into a binary during linking.
11408 # This must work even if \$libdir does not exist.
11409 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11410
11411 # If ld is used when linking, flag to hardcode \$libdir into
11412 # a binary during linking. This must work even if \$libdir does
11413 # not exist.
11414 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11415
11416 # Whether we need a single -rpath flag with a separated argument.
11417 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11418
11419 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11420 # resulting binary.
11421 hardcode_direct=$hardcode_direct_RC
11422
11423 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11424 # resulting binary.
11425 hardcode_minus_L=$hardcode_minus_L_RC
11426
11427 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11428 # the resulting binary.
11429 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11430
11431 # Set to yes if building a shared library automatically hardcodes DIR into the library
11432 # and all subsequent libraries and executables linked against it.
11433 hardcode_automatic=$hardcode_automatic_RC
11434
11435 # Variables whose values should be saved in libtool wrapper scripts and
11436 # restored at relink time.
11437 variables_saved_for_relink="$variables_saved_for_relink"
11438
11439 # Whether libtool must link a program against all its dependency libraries.
11440 link_all_deplibs=$link_all_deplibs_RC
11441
11442 # Compile-time system search path for libraries
11443 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11444
11445 # Run-time system search path for libraries
11446 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11447
11448 # Fix the shell variable \$srcfile for the compiler.
11449 fix_srcfile_path="$fix_srcfile_path_RC"
11450
11451 # Set to yes if exported symbols are required.
11452 always_export_symbols=$always_export_symbols_RC
11453
11454 # The commands to list exported symbols.
11455 export_symbols_cmds=$lt_export_symbols_cmds_RC
11456
11457 # The commands to extract the exported symbol list from a shared archive.
11458 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11459
11460 # Symbols that should not be listed in the preloaded symbols.
11461 exclude_expsyms=$lt_exclude_expsyms_RC
11462
11463 # Symbols that must always be exported.
11464 include_expsyms=$lt_include_expsyms_RC
11465
11466 # ### END LIBTOOL TAG CONFIG: $tagname
11467
11468 __EOF__
11469
11470
11471 else
11472   # If there is no Makefile yet, we rely on a make rule to execute
11473   # `config.status --recheck' to rerun these tests and create the
11474   # libtool script then.
11475   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11476   if test -f "$ltmain_in"; then
11477     test -f Makefile && make "$ltmain"
11478   fi
11479 fi
11480
11481
11482 ac_ext=c
11483 ac_cpp='$CPP $CPPFLAGS'
11484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11487
11488 CC="$lt_save_CC"
11489
11490         ;;
11491
11492       *)
11493         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11494 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11495    { (exit 1); exit 1; }; }
11496         ;;
11497       esac
11498
11499       # Append the new tag name to the list of available tags.
11500       if test -n "$tagname" ; then
11501       available_tags="$available_tags $tagname"
11502     fi
11503     fi
11504   done
11505   IFS="$lt_save_ifs"
11506
11507   # Now substitute the updated list of available tags.
11508   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11509     mv "${ofile}T" "$ofile"
11510     chmod +x "$ofile"
11511   else
11512     rm -f "${ofile}T"
11513     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11514 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11515    { (exit 1); exit 1; }; }
11516   fi
11517 fi
11518
11519
11520
11521 # This can be used to rebuild libtool when needed
11522 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11523
11524 # Always use our own libtool.
11525 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11526
11527 # Prevent multiple expansion
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538 ol_link_perl=no
11539 if test $ol_enable_perl != no ; then
11540         # Extract the first word of "perl", so it can be a program name with args.
11541 set dummy perl; ac_word=$2
11542 echo "$as_me:$LINENO: checking for $ac_word" >&5
11543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11544 if test "${ac_cv_path_PERLBIN+set}" = set; then
11545   echo $ECHO_N "(cached) $ECHO_C" >&6
11546 else
11547   case $PERLBIN in
11548   [\\/]* | ?:[\\/]*)
11549   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11550   ;;
11551   *)
11552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11553 for as_dir in $PATH
11554 do
11555   IFS=$as_save_IFS
11556   test -z "$as_dir" && as_dir=.
11557   for ac_exec_ext in '' $ac_executable_extensions; do
11558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11559     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11561     break 2
11562   fi
11563 done
11564 done
11565
11566   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11567   ;;
11568 esac
11569 fi
11570 PERLBIN=$ac_cv_path_PERLBIN
11571
11572 if test -n "$PERLBIN"; then
11573   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11574 echo "${ECHO_T}$PERLBIN" >&6
11575 else
11576   echo "$as_me:$LINENO: result: no" >&5
11577 echo "${ECHO_T}no" >&6
11578 fi
11579
11580
11581         if test "no$PERLBIN" = "no" ; then
11582                 if test $ol_enable_perl = yes ; then
11583                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11584 echo "$as_me: error: could not locate perl" >&2;}
11585    { (exit 1); exit 1; }; }
11586                 fi
11587
11588         else
11589                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11590                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11591
11592                 if test x"$ol_enable_perl" = "xyes" ; then
11593                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11594                 else
11595                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11596                 fi
11597                                 ol_link_perl=yes
11598         fi
11599 fi
11600
11601 ac_ext=c
11602 ac_cpp='$CPP $CPPFLAGS'
11603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11606 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11607 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11608 # On Suns, sometimes $CPP names a directory.
11609 if test -n "$CPP" && test -d "$CPP"; then
11610   CPP=
11611 fi
11612 if test -z "$CPP"; then
11613   if test "${ac_cv_prog_CPP+set}" = set; then
11614   echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616       # Double quotes because CPP needs to be expanded
11617     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11618     do
11619       ac_preproc_ok=false
11620 for ac_c_preproc_warn_flag in '' yes
11621 do
11622   # Use a header file that comes with gcc, so configuring glibc
11623   # with a fresh cross-compiler works.
11624   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11625   # <limits.h> exists even on freestanding compilers.
11626   # On the NeXT, cc -E runs the code through the compiler's parser,
11627   # not just through cpp. "Syntax error" is here to catch this case.
11628   cat >conftest.$ac_ext <<_ACEOF
11629 /* confdefs.h.  */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h.  */
11634 #ifdef __STDC__
11635 # include <limits.h>
11636 #else
11637 # include <assert.h>
11638 #endif
11639                      Syntax error
11640 _ACEOF
11641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11642   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11643   ac_status=$?
11644   grep -v '^ *+' conftest.er1 >conftest.err
11645   rm -f conftest.er1
11646   cat conftest.err >&5
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); } >/dev/null; then
11649   if test -s conftest.err; then
11650     ac_cpp_err=$ac_c_preproc_warn_flag
11651     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11652   else
11653     ac_cpp_err=
11654   fi
11655 else
11656   ac_cpp_err=yes
11657 fi
11658 if test -z "$ac_cpp_err"; then
11659   :
11660 else
11661   echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11663
11664   # Broken: fails on valid input.
11665 continue
11666 fi
11667 rm -f conftest.err conftest.$ac_ext
11668
11669   # OK, works on sane cases.  Now check whether non-existent headers
11670   # can be detected and how.
11671   cat >conftest.$ac_ext <<_ACEOF
11672 /* confdefs.h.  */
11673 _ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h.  */
11677 #include <ac_nonexistent.h>
11678 _ACEOF
11679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11680   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11681   ac_status=$?
11682   grep -v '^ *+' conftest.er1 >conftest.err
11683   rm -f conftest.er1
11684   cat conftest.err >&5
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); } >/dev/null; then
11687   if test -s conftest.err; then
11688     ac_cpp_err=$ac_c_preproc_warn_flag
11689     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11690   else
11691     ac_cpp_err=
11692   fi
11693 else
11694   ac_cpp_err=yes
11695 fi
11696 if test -z "$ac_cpp_err"; then
11697   # Broken: success on invalid input.
11698 continue
11699 else
11700   echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11702
11703   # Passes both tests.
11704 ac_preproc_ok=:
11705 break
11706 fi
11707 rm -f conftest.err conftest.$ac_ext
11708
11709 done
11710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11711 rm -f conftest.err conftest.$ac_ext
11712 if $ac_preproc_ok; then
11713   break
11714 fi
11715
11716     done
11717     ac_cv_prog_CPP=$CPP
11718
11719 fi
11720   CPP=$ac_cv_prog_CPP
11721 else
11722   ac_cv_prog_CPP=$CPP
11723 fi
11724 echo "$as_me:$LINENO: result: $CPP" >&5
11725 echo "${ECHO_T}$CPP" >&6
11726 ac_preproc_ok=false
11727 for ac_c_preproc_warn_flag in '' yes
11728 do
11729   # Use a header file that comes with gcc, so configuring glibc
11730   # with a fresh cross-compiler works.
11731   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11732   # <limits.h> exists even on freestanding compilers.
11733   # On the NeXT, cc -E runs the code through the compiler's parser,
11734   # not just through cpp. "Syntax error" is here to catch this case.
11735   cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h.  */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h.  */
11741 #ifdef __STDC__
11742 # include <limits.h>
11743 #else
11744 # include <assert.h>
11745 #endif
11746                      Syntax error
11747 _ACEOF
11748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11750   ac_status=$?
11751   grep -v '^ *+' conftest.er1 >conftest.err
11752   rm -f conftest.er1
11753   cat conftest.err >&5
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); } >/dev/null; then
11756   if test -s conftest.err; then
11757     ac_cpp_err=$ac_c_preproc_warn_flag
11758     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11759   else
11760     ac_cpp_err=
11761   fi
11762 else
11763   ac_cpp_err=yes
11764 fi
11765 if test -z "$ac_cpp_err"; then
11766   :
11767 else
11768   echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771   # Broken: fails on valid input.
11772 continue
11773 fi
11774 rm -f conftest.err conftest.$ac_ext
11775
11776   # OK, works on sane cases.  Now check whether non-existent headers
11777   # can be detected and how.
11778   cat >conftest.$ac_ext <<_ACEOF
11779 /* confdefs.h.  */
11780 _ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h.  */
11784 #include <ac_nonexistent.h>
11785 _ACEOF
11786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11787   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11788   ac_status=$?
11789   grep -v '^ *+' conftest.er1 >conftest.err
11790   rm -f conftest.er1
11791   cat conftest.err >&5
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); } >/dev/null; then
11794   if test -s conftest.err; then
11795     ac_cpp_err=$ac_c_preproc_warn_flag
11796     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11797   else
11798     ac_cpp_err=
11799   fi
11800 else
11801   ac_cpp_err=yes
11802 fi
11803 if test -z "$ac_cpp_err"; then
11804   # Broken: success on invalid input.
11805 continue
11806 else
11807   echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11809
11810   # Passes both tests.
11811 ac_preproc_ok=:
11812 break
11813 fi
11814 rm -f conftest.err conftest.$ac_ext
11815
11816 done
11817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11818 rm -f conftest.err conftest.$ac_ext
11819 if $ac_preproc_ok; then
11820   :
11821 else
11822   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11823 See \`config.log' for more details." >&5
11824 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11825 See \`config.log' for more details." >&2;}
11826    { (exit 1); exit 1; }; }
11827 fi
11828
11829 ac_ext=c
11830 ac_cpp='$CPP $CPPFLAGS'
11831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11834
11835
11836 case $host_os in
11837   *mingw32* ) ac_cv_mingw32=yes ;;
11838   *cygwin* ) ac_cv_cygwin=yes ;;
11839 esac
11840
11841
11842
11843
11844 cat >>confdefs.h <<_ACEOF
11845 #define EXEEXT "${EXEEXT}"
11846 _ACEOF
11847
11848
11849 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11850 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11851 if test "${ac_cv_lib_be_be_app+set}" = set; then
11852   echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854   ac_check_lib_save_LIBS=$LIBS
11855 LIBS="-lbe -lroot -lnet $LIBS"
11856 cat >conftest.$ac_ext <<_ACEOF
11857 /* confdefs.h.  */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h.  */
11862
11863 /* Override any gcc2 internal prototype to avoid an error.  */
11864 #ifdef __cplusplus
11865 extern "C"
11866 #endif
11867 /* We use char because int might match the return type of a gcc2
11868    builtin and then its argument prototype would still apply.  */
11869 char be_app ();
11870 int
11871 main ()
11872 {
11873 be_app ();
11874   ;
11875   return 0;
11876 }
11877 _ACEOF
11878 rm -f conftest.$ac_objext conftest$ac_exeext
11879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11880   (eval $ac_link) 2>conftest.er1
11881   ac_status=$?
11882   grep -v '^ *+' conftest.er1 >conftest.err
11883   rm -f conftest.er1
11884   cat conftest.err >&5
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); } &&
11887          { ac_try='test -z "$ac_c_werror_flag"
11888                          || test ! -s conftest.err'
11889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890   (eval $ac_try) 2>&5
11891   ac_status=$?
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); }; } &&
11894          { ac_try='test -s conftest$ac_exeext'
11895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896   (eval $ac_try) 2>&5
11897   ac_status=$?
11898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); }; }; then
11900   ac_cv_lib_be_be_app=yes
11901 else
11902   echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11904
11905 ac_cv_lib_be_be_app=no
11906 fi
11907 rm -f conftest.err conftest.$ac_objext \
11908       conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11910 fi
11911 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11912 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11913 if test $ac_cv_lib_be_be_app = yes; then
11914   LIBS="$LIBS -lbe -lroot -lnet"
11915 else
11916   :
11917 fi
11918
11919
11920 ac_ext=c
11921 ac_cpp='$CPP $CPPFLAGS'
11922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11925 if test -n "$ac_tool_prefix"; then
11926   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11927 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11928 echo "$as_me:$LINENO: checking for $ac_word" >&5
11929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11930 if test "${ac_cv_prog_CC+set}" = set; then
11931   echo $ECHO_N "(cached) $ECHO_C" >&6
11932 else
11933   if test -n "$CC"; then
11934   ac_cv_prog_CC="$CC" # Let the user override the test.
11935 else
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH
11938 do
11939   IFS=$as_save_IFS
11940   test -z "$as_dir" && as_dir=.
11941   for ac_exec_ext in '' $ac_executable_extensions; do
11942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11945     break 2
11946   fi
11947 done
11948 done
11949
11950 fi
11951 fi
11952 CC=$ac_cv_prog_CC
11953 if test -n "$CC"; then
11954   echo "$as_me:$LINENO: result: $CC" >&5
11955 echo "${ECHO_T}$CC" >&6
11956 else
11957   echo "$as_me:$LINENO: result: no" >&5
11958 echo "${ECHO_T}no" >&6
11959 fi
11960
11961 fi
11962 if test -z "$ac_cv_prog_CC"; then
11963   ac_ct_CC=$CC
11964   # Extract the first word of "gcc", so it can be a program name with args.
11965 set dummy gcc; ac_word=$2
11966 echo "$as_me:$LINENO: checking for $ac_word" >&5
11967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11968 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11969   echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971   if test -n "$ac_ct_CC"; then
11972   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11973 else
11974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975 for as_dir in $PATH
11976 do
11977   IFS=$as_save_IFS
11978   test -z "$as_dir" && as_dir=.
11979   for ac_exec_ext in '' $ac_executable_extensions; do
11980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11981     ac_cv_prog_ac_ct_CC="gcc"
11982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11983     break 2
11984   fi
11985 done
11986 done
11987
11988 fi
11989 fi
11990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11991 if test -n "$ac_ct_CC"; then
11992   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11993 echo "${ECHO_T}$ac_ct_CC" >&6
11994 else
11995   echo "$as_me:$LINENO: result: no" >&5
11996 echo "${ECHO_T}no" >&6
11997 fi
11998
11999   CC=$ac_ct_CC
12000 else
12001   CC="$ac_cv_prog_CC"
12002 fi
12003
12004 if test -z "$CC"; then
12005   if test -n "$ac_tool_prefix"; then
12006   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12007 set dummy ${ac_tool_prefix}cc; ac_word=$2
12008 echo "$as_me:$LINENO: checking for $ac_word" >&5
12009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12010 if test "${ac_cv_prog_CC+set}" = set; then
12011   echo $ECHO_N "(cached) $ECHO_C" >&6
12012 else
12013   if test -n "$CC"; then
12014   ac_cv_prog_CC="$CC" # Let the user override the test.
12015 else
12016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12017 for as_dir in $PATH
12018 do
12019   IFS=$as_save_IFS
12020   test -z "$as_dir" && as_dir=.
12021   for ac_exec_ext in '' $ac_executable_extensions; do
12022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12023     ac_cv_prog_CC="${ac_tool_prefix}cc"
12024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12025     break 2
12026   fi
12027 done
12028 done
12029
12030 fi
12031 fi
12032 CC=$ac_cv_prog_CC
12033 if test -n "$CC"; then
12034   echo "$as_me:$LINENO: result: $CC" >&5
12035 echo "${ECHO_T}$CC" >&6
12036 else
12037   echo "$as_me:$LINENO: result: no" >&5
12038 echo "${ECHO_T}no" >&6
12039 fi
12040
12041 fi
12042 if test -z "$ac_cv_prog_CC"; then
12043   ac_ct_CC=$CC
12044   # Extract the first word of "cc", so it can be a program name with args.
12045 set dummy cc; ac_word=$2
12046 echo "$as_me:$LINENO: checking for $ac_word" >&5
12047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12049   echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12051   if test -n "$ac_ct_CC"; then
12052   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12053 else
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH
12056 do
12057   IFS=$as_save_IFS
12058   test -z "$as_dir" && as_dir=.
12059   for ac_exec_ext in '' $ac_executable_extensions; do
12060   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12061     ac_cv_prog_ac_ct_CC="cc"
12062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12063     break 2
12064   fi
12065 done
12066 done
12067
12068 fi
12069 fi
12070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12071 if test -n "$ac_ct_CC"; then
12072   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12073 echo "${ECHO_T}$ac_ct_CC" >&6
12074 else
12075   echo "$as_me:$LINENO: result: no" >&5
12076 echo "${ECHO_T}no" >&6
12077 fi
12078
12079   CC=$ac_ct_CC
12080 else
12081   CC="$ac_cv_prog_CC"
12082 fi
12083
12084 fi
12085 if test -z "$CC"; then
12086   # Extract the first word of "cc", so it can be a program name with args.
12087 set dummy cc; ac_word=$2
12088 echo "$as_me:$LINENO: checking for $ac_word" >&5
12089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12090 if test "${ac_cv_prog_CC+set}" = set; then
12091   echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12093   if test -n "$CC"; then
12094   ac_cv_prog_CC="$CC" # Let the user override the test.
12095 else
12096   ac_prog_rejected=no
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12099 do
12100   IFS=$as_save_IFS
12101   test -z "$as_dir" && as_dir=.
12102   for ac_exec_ext in '' $ac_executable_extensions; do
12103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12104     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12105        ac_prog_rejected=yes
12106        continue
12107      fi
12108     ac_cv_prog_CC="cc"
12109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12110     break 2
12111   fi
12112 done
12113 done
12114
12115 if test $ac_prog_rejected = yes; then
12116   # We found a bogon in the path, so make sure we never use it.
12117   set dummy $ac_cv_prog_CC
12118   shift
12119   if test $# != 0; then
12120     # We chose a different compiler from the bogus one.
12121     # However, it has the same basename, so the bogon will be chosen
12122     # first if we set CC to just the basename; use the full file name.
12123     shift
12124     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12125   fi
12126 fi
12127 fi
12128 fi
12129 CC=$ac_cv_prog_CC
12130 if test -n "$CC"; then
12131   echo "$as_me:$LINENO: result: $CC" >&5
12132 echo "${ECHO_T}$CC" >&6
12133 else
12134   echo "$as_me:$LINENO: result: no" >&5
12135 echo "${ECHO_T}no" >&6
12136 fi
12137
12138 fi
12139 if test -z "$CC"; then
12140   if test -n "$ac_tool_prefix"; then
12141   for ac_prog in cl
12142   do
12143     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12145 echo "$as_me:$LINENO: checking for $ac_word" >&5
12146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12147 if test "${ac_cv_prog_CC+set}" = set; then
12148   echo $ECHO_N "(cached) $ECHO_C" >&6
12149 else
12150   if test -n "$CC"; then
12151   ac_cv_prog_CC="$CC" # Let the user override the test.
12152 else
12153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154 for as_dir in $PATH
12155 do
12156   IFS=$as_save_IFS
12157   test -z "$as_dir" && as_dir=.
12158   for ac_exec_ext in '' $ac_executable_extensions; do
12159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12160     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12162     break 2
12163   fi
12164 done
12165 done
12166
12167 fi
12168 fi
12169 CC=$ac_cv_prog_CC
12170 if test -n "$CC"; then
12171   echo "$as_me:$LINENO: result: $CC" >&5
12172 echo "${ECHO_T}$CC" >&6
12173 else
12174   echo "$as_me:$LINENO: result: no" >&5
12175 echo "${ECHO_T}no" >&6
12176 fi
12177
12178     test -n "$CC" && break
12179   done
12180 fi
12181 if test -z "$CC"; then
12182   ac_ct_CC=$CC
12183   for ac_prog in cl
12184 do
12185   # Extract the first word of "$ac_prog", so it can be a program name with args.
12186 set dummy $ac_prog; ac_word=$2
12187 echo "$as_me:$LINENO: checking for $ac_word" >&5
12188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12190   echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192   if test -n "$ac_ct_CC"; then
12193   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12194 else
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12197 do
12198   IFS=$as_save_IFS
12199   test -z "$as_dir" && as_dir=.
12200   for ac_exec_ext in '' $ac_executable_extensions; do
12201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12202     ac_cv_prog_ac_ct_CC="$ac_prog"
12203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12204     break 2
12205   fi
12206 done
12207 done
12208
12209 fi
12210 fi
12211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12212 if test -n "$ac_ct_CC"; then
12213   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12214 echo "${ECHO_T}$ac_ct_CC" >&6
12215 else
12216   echo "$as_me:$LINENO: result: no" >&5
12217 echo "${ECHO_T}no" >&6
12218 fi
12219
12220   test -n "$ac_ct_CC" && break
12221 done
12222
12223   CC=$ac_ct_CC
12224 fi
12225
12226 fi
12227
12228
12229 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12230 See \`config.log' for more details." >&5
12231 echo "$as_me: error: no acceptable C compiler found in \$PATH
12232 See \`config.log' for more details." >&2;}
12233    { (exit 1); exit 1; }; }
12234
12235 # Provide some information about the compiler.
12236 echo "$as_me:$LINENO:" \
12237      "checking for C compiler version" >&5
12238 ac_compiler=`set X $ac_compile; echo $2`
12239 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12240   (eval $ac_compiler --version </dev/null >&5) 2>&5
12241   ac_status=$?
12242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243   (exit $ac_status); }
12244 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12245   (eval $ac_compiler -v </dev/null >&5) 2>&5
12246   ac_status=$?
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); }
12249 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12250   (eval $ac_compiler -V </dev/null >&5) 2>&5
12251   ac_status=$?
12252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253   (exit $ac_status); }
12254
12255 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12256 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12257 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12258   echo $ECHO_N "(cached) $ECHO_C" >&6
12259 else
12260   cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h.  */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h.  */
12266
12267 int
12268 main ()
12269 {
12270 #ifndef __GNUC__
12271        choke me
12272 #endif
12273
12274   ;
12275   return 0;
12276 }
12277 _ACEOF
12278 rm -f conftest.$ac_objext
12279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12280   (eval $ac_compile) 2>conftest.er1
12281   ac_status=$?
12282   grep -v '^ *+' conftest.er1 >conftest.err
12283   rm -f conftest.er1
12284   cat conftest.err >&5
12285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286   (exit $ac_status); } &&
12287          { ac_try='test -z "$ac_c_werror_flag"
12288                          || test ! -s conftest.err'
12289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290   (eval $ac_try) 2>&5
12291   ac_status=$?
12292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293   (exit $ac_status); }; } &&
12294          { ac_try='test -s conftest.$ac_objext'
12295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296   (eval $ac_try) 2>&5
12297   ac_status=$?
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); }; }; then
12300   ac_compiler_gnu=yes
12301 else
12302   echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12304
12305 ac_compiler_gnu=no
12306 fi
12307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12308 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12309
12310 fi
12311 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12312 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12313 GCC=`test $ac_compiler_gnu = yes && echo yes`
12314 ac_test_CFLAGS=${CFLAGS+set}
12315 ac_save_CFLAGS=$CFLAGS
12316 CFLAGS="-g"
12317 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12318 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12319 if test "${ac_cv_prog_cc_g+set}" = set; then
12320   echo $ECHO_N "(cached) $ECHO_C" >&6
12321 else
12322   cat >conftest.$ac_ext <<_ACEOF
12323 /* confdefs.h.  */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h.  */
12328
12329 int
12330 main ()
12331 {
12332
12333   ;
12334   return 0;
12335 }
12336 _ACEOF
12337 rm -f conftest.$ac_objext
12338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12339   (eval $ac_compile) 2>conftest.er1
12340   ac_status=$?
12341   grep -v '^ *+' conftest.er1 >conftest.err
12342   rm -f conftest.er1
12343   cat conftest.err >&5
12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); } &&
12346          { ac_try='test -z "$ac_c_werror_flag"
12347                          || test ! -s conftest.err'
12348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349   (eval $ac_try) 2>&5
12350   ac_status=$?
12351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352   (exit $ac_status); }; } &&
12353          { ac_try='test -s conftest.$ac_objext'
12354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355   (eval $ac_try) 2>&5
12356   ac_status=$?
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); }; }; then
12359   ac_cv_prog_cc_g=yes
12360 else
12361   echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12363
12364 ac_cv_prog_cc_g=no
12365 fi
12366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12367 fi
12368 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12369 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12370 if test "$ac_test_CFLAGS" = set; then
12371   CFLAGS=$ac_save_CFLAGS
12372 elif test $ac_cv_prog_cc_g = yes; then
12373   if test "$GCC" = yes; then
12374     CFLAGS="-g -O2"
12375   else
12376     CFLAGS="-g"
12377   fi
12378 else
12379   if test "$GCC" = yes; then
12380     CFLAGS="-O2"
12381   else
12382     CFLAGS=
12383   fi
12384 fi
12385 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12386 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12387 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12388   echo $ECHO_N "(cached) $ECHO_C" >&6
12389 else
12390   ac_cv_prog_cc_stdc=no
12391 ac_save_CC=$CC
12392 cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h.  */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h.  */
12398 #include <stdarg.h>
12399 #include <stdio.h>
12400 #include <sys/types.h>
12401 #include <sys/stat.h>
12402 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12403 struct buf { int x; };
12404 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12405 static char *e (p, i)
12406      char **p;
12407      int i;
12408 {
12409   return p[i];
12410 }
12411 static char *f (char * (*g) (char **, int), char **p, ...)
12412 {
12413   char *s;
12414   va_list v;
12415   va_start (v,p);
12416   s = g (p, va_arg (v,int));
12417   va_end (v);
12418   return s;
12419 }
12420
12421 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12422    function prototypes and stuff, but not '\xHH' hex character constants.
12423    These don't provoke an error unfortunately, instead are silently treated
12424    as 'x'.  The following induces an error, until -std1 is added to get
12425    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12426    array size at least.  It's necessary to write '\x00'==0 to get something
12427    that's true only with -std1.  */
12428 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12429
12430 int test (int i, double x);
12431 struct s1 {int (*f) (int a);};
12432 struct s2 {int (*f) (double a);};
12433 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12434 int argc;
12435 char **argv;
12436 int
12437 main ()
12438 {
12439 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12440   ;
12441   return 0;
12442 }
12443 _ACEOF
12444 # Don't try gcc -ansi; that turns off useful extensions and
12445 # breaks some systems' header files.
12446 # AIX                   -qlanglvl=ansi
12447 # Ultrix and OSF/1      -std1
12448 # HP-UX 10.20 and later -Ae
12449 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12450 # SVR4                  -Xc -D__EXTENSIONS__
12451 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12452 do
12453   CC="$ac_save_CC $ac_arg"
12454   rm -f conftest.$ac_objext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12456   (eval $ac_compile) 2>conftest.er1
12457   ac_status=$?
12458   grep -v '^ *+' conftest.er1 >conftest.err
12459   rm -f conftest.er1
12460   cat conftest.err >&5
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); } &&
12463          { ac_try='test -z "$ac_c_werror_flag"
12464                          || test ! -s conftest.err'
12465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466   (eval $ac_try) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; } &&
12470          { ac_try='test -s conftest.$ac_objext'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; }; then
12476   ac_cv_prog_cc_stdc=$ac_arg
12477 break
12478 else
12479   echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12481
12482 fi
12483 rm -f conftest.err conftest.$ac_objext
12484 done
12485 rm -f conftest.$ac_ext conftest.$ac_objext
12486 CC=$ac_save_CC
12487
12488 fi
12489
12490 case "x$ac_cv_prog_cc_stdc" in
12491   x|xno)
12492     echo "$as_me:$LINENO: result: none needed" >&5
12493 echo "${ECHO_T}none needed" >&6 ;;
12494   *)
12495     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12496 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12497     CC="$CC $ac_cv_prog_cc_stdc" ;;
12498 esac
12499
12500 # Some people use a C++ compiler to compile C.  Since we use `exit',
12501 # in C++ we need to declare it.  In case someone uses the same compiler
12502 # for both compiling C and C++ we need to have the C++ compiler decide
12503 # the declaration of exit, since it's the most demanding environment.
12504 cat >conftest.$ac_ext <<_ACEOF
12505 #ifndef __cplusplus
12506   choke me
12507 #endif
12508 _ACEOF
12509 rm -f conftest.$ac_objext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12511   (eval $ac_compile) 2>conftest.er1
12512   ac_status=$?
12513   grep -v '^ *+' conftest.er1 >conftest.err
12514   rm -f conftest.er1
12515   cat conftest.err >&5
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); } &&
12518          { ac_try='test -z "$ac_c_werror_flag"
12519                          || test ! -s conftest.err'
12520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521   (eval $ac_try) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); }; } &&
12525          { ac_try='test -s conftest.$ac_objext'
12526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527   (eval $ac_try) 2>&5
12528   ac_status=$?
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); }; }; then
12531   for ac_declaration in \
12532    '' \
12533    'extern "C" void std::exit (int) throw (); using std::exit;' \
12534    'extern "C" void std::exit (int); using std::exit;' \
12535    'extern "C" void exit (int) throw ();' \
12536    'extern "C" void exit (int);' \
12537    'void exit (int);'
12538 do
12539   cat >conftest.$ac_ext <<_ACEOF
12540 /* confdefs.h.  */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h.  */
12545 $ac_declaration
12546 #include <stdlib.h>
12547 int
12548 main ()
12549 {
12550 exit (42);
12551   ;
12552   return 0;
12553 }
12554 _ACEOF
12555 rm -f conftest.$ac_objext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12557   (eval $ac_compile) 2>conftest.er1
12558   ac_status=$?
12559   grep -v '^ *+' conftest.er1 >conftest.err
12560   rm -f conftest.er1
12561   cat conftest.err >&5
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); } &&
12564          { ac_try='test -z "$ac_c_werror_flag"
12565                          || test ! -s conftest.err'
12566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567   (eval $ac_try) 2>&5
12568   ac_status=$?
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); }; } &&
12571          { ac_try='test -s conftest.$ac_objext'
12572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573   (eval $ac_try) 2>&5
12574   ac_status=$?
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); }; }; then
12577   :
12578 else
12579   echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12581
12582 continue
12583 fi
12584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12585   cat >conftest.$ac_ext <<_ACEOF
12586 /* confdefs.h.  */
12587 _ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h.  */
12591 $ac_declaration
12592 int
12593 main ()
12594 {
12595 exit (42);
12596   ;
12597   return 0;
12598 }
12599 _ACEOF
12600 rm -f conftest.$ac_objext
12601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602   (eval $ac_compile) 2>conftest.er1
12603   ac_status=$?
12604   grep -v '^ *+' conftest.er1 >conftest.err
12605   rm -f conftest.er1
12606   cat conftest.err >&5
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); } &&
12609          { ac_try='test -z "$ac_c_werror_flag"
12610                          || test ! -s conftest.err'
12611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612   (eval $ac_try) 2>&5
12613   ac_status=$?
12614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); }; } &&
12616          { ac_try='test -s conftest.$ac_objext'
12617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618   (eval $ac_try) 2>&5
12619   ac_status=$?
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); }; }; then
12622   break
12623 else
12624   echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12626
12627 fi
12628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12629 done
12630 rm -f conftest*
12631 if test -n "$ac_declaration"; then
12632   echo '#ifdef __cplusplus' >>confdefs.h
12633   echo $ac_declaration      >>confdefs.h
12634   echo '#endif'             >>confdefs.h
12635 fi
12636
12637 else
12638   echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12640
12641 fi
12642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12643 ac_ext=c
12644 ac_cpp='$CPP $CPPFLAGS'
12645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12648
12649 depcc="$CC"   am_compiler_list=
12650
12651 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12652 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12653 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12654   echo $ECHO_N "(cached) $ECHO_C" >&6
12655 else
12656   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12657   # We make a subdir and do the tests there.  Otherwise we can end up
12658   # making bogus files that we don't know about and never remove.  For
12659   # instance it was reported that on HP-UX the gcc test will end up
12660   # making a dummy file named `D' -- because `-MD' means `put the output
12661   # in D'.
12662   mkdir conftest.dir
12663   # Copy depcomp to subdir because otherwise we won't find it if we're
12664   # using a relative directory.
12665   cp "$am_depcomp" conftest.dir
12666   cd conftest.dir
12667   # We will build objects and dependencies in a subdirectory because
12668   # it helps to detect inapplicable dependency modes.  For instance
12669   # both Tru64's cc and ICC support -MD to output dependencies as a
12670   # side effect of compilation, but ICC will put the dependencies in
12671   # the current directory while Tru64 will put them in the object
12672   # directory.
12673   mkdir sub
12674
12675   am_cv_CC_dependencies_compiler_type=none
12676   if test "$am_compiler_list" = ""; then
12677      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12678   fi
12679   for depmode in $am_compiler_list; do
12680     # Setup a source with many dependencies, because some compilers
12681     # like to wrap large dependency lists on column 80 (with \), and
12682     # we should not choose a depcomp mode which is confused by this.
12683     #
12684     # We need to recreate these files for each test, as the compiler may
12685     # overwrite some of them when testing with obscure command lines.
12686     # This happens at least with the AIX C compiler.
12687     : > sub/conftest.c
12688     for i in 1 2 3 4 5 6; do
12689       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12690       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12691       # Solaris 8's {/usr,}/bin/sh.
12692       touch sub/conftst$i.h
12693     done
12694     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12695
12696     case $depmode in
12697     nosideeffect)
12698       # after this tag, mechanisms are not by side-effect, so they'll
12699       # only be used when explicitly requested
12700       if test "x$enable_dependency_tracking" = xyes; then
12701         continue
12702       else
12703         break
12704       fi
12705       ;;
12706     none) break ;;
12707     esac
12708     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12709     # mode.  It turns out that the SunPro C++ compiler does not properly
12710     # handle `-M -o', and we need to detect this.
12711     if depmode=$depmode \
12712        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12713        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12714        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12715          >/dev/null 2>conftest.err &&
12716        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12717        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12718        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12719       # icc doesn't choke on unknown options, it will just issue warnings
12720       # or remarks (even with -Werror).  So we grep stderr for any message
12721       # that says an option was ignored or not supported.
12722       # When given -MP, icc 7.0 and 7.1 complain thusly:
12723       #   icc: Command line warning: ignoring option '-M'; no argument required
12724       # The diagnosis changed in icc 8.0:
12725       #   icc: Command line remark: option '-MP' not supported
12726       if (grep 'ignoring option' conftest.err ||
12727           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12728         am_cv_CC_dependencies_compiler_type=$depmode
12729         break
12730       fi
12731     fi
12732   done
12733
12734   cd ..
12735   rm -rf conftest.dir
12736 else
12737   am_cv_CC_dependencies_compiler_type=none
12738 fi
12739
12740 fi
12741 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12742 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12743 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12744
12745
12746
12747 if
12748   test "x$enable_dependency_tracking" != xno \
12749   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12750   am__fastdepCC_TRUE=
12751   am__fastdepCC_FALSE='#'
12752 else
12753   am__fastdepCC_TRUE='#'
12754   am__fastdepCC_FALSE=
12755 fi
12756
12757
12758 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12759         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12760 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12761    { (exit 1); exit 1; }; }
12762 fi
12763
12764 # test for make depend flag
12765 OL_MKDEP=
12766 OL_MKDEP_FLAGS=
12767 if test -z "${MKDEP}"; then
12768         OL_MKDEP="${CC-cc}"
12769         if test -z "${MKDEP_FLAGS}"; then
12770                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12771 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12772 if test "${ol_cv_mkdep+set}" = set; then
12773   echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775
12776                         ol_cv_mkdep=no
12777                         for flag in "-M" "-xM"; do
12778                                 cat > conftest.c <<EOF
12779  noCode;
12780 EOF
12781                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783   (eval $ac_try) 2>&5
12784   ac_status=$?
12785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786   (exit $ac_status); }; } \
12787                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12788                                 then
12789                                         if test ! -f conftest."${ac_object}" ; then
12790                                                 ol_cv_mkdep=$flag
12791                                                 OL_MKDEP_FLAGS="$flag"
12792                                                 break
12793                                         fi
12794                                 fi
12795                         done
12796                         rm -f conftest*
12797
12798 fi
12799 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12800 echo "${ECHO_T}$ol_cv_mkdep" >&6
12801         else
12802                 cc_cv_mkdep=yes
12803                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12804         fi
12805 else
12806         cc_cv_mkdep=yes
12807         OL_MKDEP="${MKDEP}"
12808         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12809 fi
12810
12811
12812
12813 if test "${ol_cv_mkdep}" = no ; then
12814         # this will soon become an error
12815         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12816 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12817 fi
12818
12819 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12820 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12821 if test "${ac_cv_lib_s_afopen+set}" = set; then
12822   echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824   ac_check_lib_save_LIBS=$LIBS
12825 LIBS="-ls  $LIBS"
12826 cat >conftest.$ac_ext <<_ACEOF
12827 /* confdefs.h.  */
12828 _ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h.  */
12832
12833 /* Override any gcc2 internal prototype to avoid an error.  */
12834 #ifdef __cplusplus
12835 extern "C"
12836 #endif
12837 /* We use char because int might match the return type of a gcc2
12838    builtin and then its argument prototype would still apply.  */
12839 char afopen ();
12840 int
12841 main ()
12842 {
12843 afopen ();
12844   ;
12845   return 0;
12846 }
12847 _ACEOF
12848 rm -f conftest.$ac_objext conftest$ac_exeext
12849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12850   (eval $ac_link) 2>conftest.er1
12851   ac_status=$?
12852   grep -v '^ *+' conftest.er1 >conftest.err
12853   rm -f conftest.er1
12854   cat conftest.err >&5
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); } &&
12857          { ac_try='test -z "$ac_c_werror_flag"
12858                          || test ! -s conftest.err'
12859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860   (eval $ac_try) 2>&5
12861   ac_status=$?
12862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863   (exit $ac_status); }; } &&
12864          { ac_try='test -s conftest$ac_exeext'
12865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866   (eval $ac_try) 2>&5
12867   ac_status=$?
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); }; }; then
12870   ac_cv_lib_s_afopen=yes
12871 else
12872   echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12874
12875 ac_cv_lib_s_afopen=no
12876 fi
12877 rm -f conftest.err conftest.$ac_objext \
12878       conftest$ac_exeext conftest.$ac_ext
12879 LIBS=$ac_check_lib_save_LIBS
12880 fi
12881 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12882 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12883 if test $ac_cv_lib_s_afopen = yes; then
12884
12885         AUTH_LIBS=-ls
12886
12887 cat >>confdefs.h <<\_ACEOF
12888 #define HAVE_AIX_SECURITY 1
12889 _ACEOF
12890
12891
12892 fi
12893
12894
12895 case "$target" in
12896 *-ibm-openedition)
12897         ac_cv_func_getopt=no
12898
12899 cat >>confdefs.h <<\_ACEOF
12900 #define BOTH_STRINGS_H 1
12901 _ACEOF
12902
12903         ;;
12904 esac
12905
12906 ol_link_modules=no
12907 WITH_MODULES_ENABLED=no
12908 if test $ol_enable_modules != no ; then
12909
12910 for ac_header in ltdl.h
12911 do
12912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12914   echo "$as_me:$LINENO: checking for $ac_header" >&5
12915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12917   echo $ECHO_N "(cached) $ECHO_C" >&6
12918 fi
12919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12921 else
12922   # Is the header compilable?
12923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12925 cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h.  */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h.  */
12931 $ac_includes_default
12932 #include <$ac_header>
12933 _ACEOF
12934 rm -f conftest.$ac_objext
12935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12936   (eval $ac_compile) 2>conftest.er1
12937   ac_status=$?
12938   grep -v '^ *+' conftest.er1 >conftest.err
12939   rm -f conftest.er1
12940   cat conftest.err >&5
12941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942   (exit $ac_status); } &&
12943          { ac_try='test -z "$ac_c_werror_flag"
12944                          || test ! -s conftest.err'
12945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946   (eval $ac_try) 2>&5
12947   ac_status=$?
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); }; } &&
12950          { ac_try='test -s conftest.$ac_objext'
12951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952   (eval $ac_try) 2>&5
12953   ac_status=$?
12954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); }; }; then
12956   ac_header_compiler=yes
12957 else
12958   echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12960
12961 ac_header_compiler=no
12962 fi
12963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12965 echo "${ECHO_T}$ac_header_compiler" >&6
12966
12967 # Is the header present?
12968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12970 cat >conftest.$ac_ext <<_ACEOF
12971 /* confdefs.h.  */
12972 _ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h.  */
12976 #include <$ac_header>
12977 _ACEOF
12978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12979   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12980   ac_status=$?
12981   grep -v '^ *+' conftest.er1 >conftest.err
12982   rm -f conftest.er1
12983   cat conftest.err >&5
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); } >/dev/null; then
12986   if test -s conftest.err; then
12987     ac_cpp_err=$ac_c_preproc_warn_flag
12988     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12989   else
12990     ac_cpp_err=
12991   fi
12992 else
12993   ac_cpp_err=yes
12994 fi
12995 if test -z "$ac_cpp_err"; then
12996   ac_header_preproc=yes
12997 else
12998   echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001   ac_header_preproc=no
13002 fi
13003 rm -f conftest.err conftest.$ac_ext
13004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13005 echo "${ECHO_T}$ac_header_preproc" >&6
13006
13007 # So?  What about this header?
13008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13009   yes:no: )
13010     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13014     ac_header_preproc=yes
13015     ;;
13016   no:yes:* )
13017     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13019     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13020 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13021     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13023     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13024 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13027     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13029     (
13030       cat <<\_ASBOX
13031 ## --------------------------------------------- ##
13032 ## Report this to <http://www.openldap.org/its/> ##
13033 ## --------------------------------------------- ##
13034 _ASBOX
13035     ) |
13036       sed "s/^/$as_me: WARNING:     /" >&2
13037     ;;
13038 esac
13039 echo "$as_me:$LINENO: checking for $ac_header" >&5
13040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13042   echo $ECHO_N "(cached) $ECHO_C" >&6
13043 else
13044   eval "$as_ac_Header=\$ac_header_preproc"
13045 fi
13046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13048
13049 fi
13050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13051   cat >>confdefs.h <<_ACEOF
13052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13053 _ACEOF
13054
13055 fi
13056
13057 done
13058
13059
13060         if test $ac_cv_header_ltdl_h = no ; then
13061                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13062 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13063    { (exit 1); exit 1; }; }
13064         fi
13065
13066         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13067 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13068 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13069   echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071   ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-lltdl  $LIBS"
13073 cat >conftest.$ac_ext <<_ACEOF
13074 /* confdefs.h.  */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h.  */
13079
13080 /* Override any gcc2 internal prototype to avoid an error.  */
13081 #ifdef __cplusplus
13082 extern "C"
13083 #endif
13084 /* We use char because int might match the return type of a gcc2
13085    builtin and then its argument prototype would still apply.  */
13086 char lt_dlinit ();
13087 int
13088 main ()
13089 {
13090 lt_dlinit ();
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 rm -f conftest.$ac_objext conftest$ac_exeext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13097   (eval $ac_link) 2>conftest.er1
13098   ac_status=$?
13099   grep -v '^ *+' conftest.er1 >conftest.err
13100   rm -f conftest.er1
13101   cat conftest.err >&5
13102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103   (exit $ac_status); } &&
13104          { ac_try='test -z "$ac_c_werror_flag"
13105                          || test ! -s conftest.err'
13106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107   (eval $ac_try) 2>&5
13108   ac_status=$?
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); }; } &&
13111          { ac_try='test -s conftest$ac_exeext'
13112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113   (eval $ac_try) 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); }; }; then
13117   ac_cv_lib_ltdl_lt_dlinit=yes
13118 else
13119   echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13121
13122 ac_cv_lib_ltdl_lt_dlinit=no
13123 fi
13124 rm -f conftest.err conftest.$ac_objext \
13125       conftest$ac_exeext conftest.$ac_ext
13126 LIBS=$ac_check_lib_save_LIBS
13127 fi
13128 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13129 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13130 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13131
13132                 MODULES_LIBS=-lltdl
13133
13134 cat >>confdefs.h <<\_ACEOF
13135 #define HAVE_LIBLTDL 1
13136 _ACEOF
13137
13138
13139 fi
13140
13141
13142         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13143                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13144 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13145    { (exit 1); exit 1; }; }
13146         fi
13147         ol_link_modules=yes
13148         WITH_MODULES_ENABLED=yes
13149
13150 else
13151         for i in $Backends; do
13152                 eval "ol_tmp=\$ol_enable_$i"
13153                 if test $ol_tmp = mod ; then
13154                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13155 echo "$as_me: WARNING: building static $i backend" >&2;}
13156                         eval "ol_enable_$i=yes"
13157                 fi
13158         done
13159         for i in $Overlays; do
13160                 eval "ol_tmp=\$ol_enable_$i"
13161                 if test $ol_tmp = mod ; then
13162                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13163 echo "$as_me: WARNING: building static $i overlay" >&2;}
13164                         eval "ol_enable_$i=yes"
13165                 fi
13166         done
13167 fi
13168
13169 # test for EBCDIC
13170 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13171 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13172 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13173   echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175
13176         cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h.  */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h.  */
13182
13183 #if !('M' == 0xd4)
13184 #include <__ASCII__/generate_error.h>
13185 #endif
13186
13187 _ACEOF
13188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13189   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13190   ac_status=$?
13191   grep -v '^ *+' conftest.er1 >conftest.err
13192   rm -f conftest.er1
13193   cat conftest.err >&5
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } >/dev/null; then
13196   if test -s conftest.err; then
13197     ac_cpp_err=$ac_c_preproc_warn_flag
13198     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13199   else
13200     ac_cpp_err=
13201   fi
13202 else
13203   ac_cpp_err=yes
13204 fi
13205 if test -z "$ac_cpp_err"; then
13206   ol_cv_cpp_ebcdic=yes
13207 else
13208   echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13210
13211   ol_cv_cpp_ebcdic=no
13212 fi
13213 rm -f conftest.err conftest.$ac_ext
13214 fi
13215 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13216 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13217 if test $ol_cv_cpp_ebcdic = yes ; then
13218
13219 cat >>confdefs.h <<\_ACEOF
13220 #define HAVE_EBCDIC 1
13221 _ACEOF
13222
13223 fi
13224
13225 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13226 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13227 if test "${ol_cv_header_stdc+set}" = set; then
13228   echo $ECHO_N "(cached) $ECHO_C" >&6
13229 else
13230   cat >conftest.$ac_ext <<_ACEOF
13231 /* confdefs.h.  */
13232 _ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h.  */
13236 #include <stdlib.h>
13237 #include <stdarg.h>
13238 #include <string.h>
13239 #include <float.h>
13240 _ACEOF
13241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13243   ac_status=$?
13244   grep -v '^ *+' conftest.er1 >conftest.err
13245   rm -f conftest.er1
13246   cat conftest.err >&5
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); } >/dev/null; then
13249   if test -s conftest.err; then
13250     ac_cpp_err=$ac_c_preproc_warn_flag
13251     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13252   else
13253     ac_cpp_err=
13254   fi
13255 else
13256   ac_cpp_err=yes
13257 fi
13258 if test -z "$ac_cpp_err"; then
13259   ol_cv_header_stdc=yes
13260 else
13261   echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264   ol_cv_header_stdc=no
13265 fi
13266 rm -f conftest.err conftest.$ac_ext
13267
13268 if test $ol_cv_header_stdc = yes; then
13269   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13270 cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h.  */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h.  */
13276 #include <string.h>
13277
13278 _ACEOF
13279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13280   $EGREP "memchr" >/dev/null 2>&1; then
13281   :
13282 else
13283   ol_cv_header_stdc=no
13284 fi
13285 rm -f conftest*
13286
13287 fi
13288
13289 if test $ol_cv_header_stdc = yes; then
13290   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 #include <stdlib.h>
13298
13299 _ACEOF
13300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13301   $EGREP "free" >/dev/null 2>&1; then
13302   :
13303 else
13304   ol_cv_header_stdc=no
13305 fi
13306 rm -f conftest*
13307
13308 fi
13309
13310 if test $ol_cv_header_stdc = yes; then
13311   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13312 if test "$cross_compiling" = yes; then
13313   :
13314 else
13315   cat >conftest.$ac_ext <<_ACEOF
13316 /* confdefs.h.  */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h.  */
13321 #include <ctype.h>
13322 #ifndef HAVE_EBCDIC
13323 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13324 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13325 #else
13326 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13327                 || ('j' <= (c) && (c) <= 'r') \
13328                 || ('s' <= (c) && (c) <= 'z'))
13329 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13330 #endif
13331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13332 int main () { int i; for (i = 0; i < 256; i++)
13333 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13334 exit (0); }
13335
13336 _ACEOF
13337 rm -f conftest$ac_exeext
13338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13339   (eval $ac_link) 2>&5
13340   ac_status=$?
13341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344   (eval $ac_try) 2>&5
13345   ac_status=$?
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); }; }; then
13348   :
13349 else
13350   echo "$as_me: program exited with status $ac_status" >&5
13351 echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13353
13354 ( exit $ac_status )
13355 ol_cv_header_stdc=no
13356 fi
13357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13358 fi
13359 fi
13360 fi
13361 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13362 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13363 if test $ol_cv_header_stdc = yes; then
13364   cat >>confdefs.h <<\_ACEOF
13365 #define STDC_HEADERS 1
13366 _ACEOF
13367
13368 fi
13369 ac_cv_header_stdc=disable
13370
13371
13372 if test $ol_cv_header_stdc != yes; then
13373         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13374 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13375 fi
13376
13377
13378
13379
13380
13381
13382 ac_header_dirent=no
13383 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13384   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13385 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13386 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13388   echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390   cat >conftest.$ac_ext <<_ACEOF
13391 /* confdefs.h.  */
13392 _ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h.  */
13396 #include <sys/types.h>
13397 #include <$ac_hdr>
13398
13399 int
13400 main ()
13401 {
13402 if ((DIR *) 0)
13403 return 0;
13404   ;
13405   return 0;
13406 }
13407 _ACEOF
13408 rm -f conftest.$ac_objext
13409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13410   (eval $ac_compile) 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } &&
13417          { ac_try='test -z "$ac_c_werror_flag"
13418                          || test ! -s conftest.err'
13419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420   (eval $ac_try) 2>&5
13421   ac_status=$?
13422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423   (exit $ac_status); }; } &&
13424          { ac_try='test -s conftest.$ac_objext'
13425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426   (eval $ac_try) 2>&5
13427   ac_status=$?
13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429   (exit $ac_status); }; }; then
13430   eval "$as_ac_Header=yes"
13431 else
13432   echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13434
13435 eval "$as_ac_Header=no"
13436 fi
13437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13438 fi
13439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13442   cat >>confdefs.h <<_ACEOF
13443 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13444 _ACEOF
13445
13446 ac_header_dirent=$ac_hdr; break
13447 fi
13448
13449 done
13450 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13451 if test $ac_header_dirent = dirent.h; then
13452   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13453 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13454 if test "${ac_cv_search_opendir+set}" = set; then
13455   echo $ECHO_N "(cached) $ECHO_C" >&6
13456 else
13457   ac_func_search_save_LIBS=$LIBS
13458 ac_cv_search_opendir=no
13459 cat >conftest.$ac_ext <<_ACEOF
13460 /* confdefs.h.  */
13461 _ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h.  */
13465
13466 /* Override any gcc2 internal prototype to avoid an error.  */
13467 #ifdef __cplusplus
13468 extern "C"
13469 #endif
13470 /* We use char because int might match the return type of a gcc2
13471    builtin and then its argument prototype would still apply.  */
13472 char opendir ();
13473 int
13474 main ()
13475 {
13476 opendir ();
13477   ;
13478   return 0;
13479 }
13480 _ACEOF
13481 rm -f conftest.$ac_objext conftest$ac_exeext
13482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13483   (eval $ac_link) 2>conftest.er1
13484   ac_status=$?
13485   grep -v '^ *+' conftest.er1 >conftest.err
13486   rm -f conftest.er1
13487   cat conftest.err >&5
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); } &&
13490          { ac_try='test -z "$ac_c_werror_flag"
13491                          || test ! -s conftest.err'
13492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493   (eval $ac_try) 2>&5
13494   ac_status=$?
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); }; } &&
13497          { ac_try='test -s conftest$ac_exeext'
13498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499   (eval $ac_try) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); }; }; then
13503   ac_cv_search_opendir="none required"
13504 else
13505   echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13507
13508 fi
13509 rm -f conftest.err conftest.$ac_objext \
13510       conftest$ac_exeext conftest.$ac_ext
13511 if test "$ac_cv_search_opendir" = no; then
13512   for ac_lib in dir; do
13513     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13514     cat >conftest.$ac_ext <<_ACEOF
13515 /* confdefs.h.  */
13516 _ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h.  */
13520
13521 /* Override any gcc2 internal prototype to avoid an error.  */
13522 #ifdef __cplusplus
13523 extern "C"
13524 #endif
13525 /* We use char because int might match the return type of a gcc2
13526    builtin and then its argument prototype would still apply.  */
13527 char opendir ();
13528 int
13529 main ()
13530 {
13531 opendir ();
13532   ;
13533   return 0;
13534 }
13535 _ACEOF
13536 rm -f conftest.$ac_objext conftest$ac_exeext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13538   (eval $ac_link) 2>conftest.er1
13539   ac_status=$?
13540   grep -v '^ *+' conftest.er1 >conftest.err
13541   rm -f conftest.er1
13542   cat conftest.err >&5
13543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544   (exit $ac_status); } &&
13545          { ac_try='test -z "$ac_c_werror_flag"
13546                          || test ! -s conftest.err'
13547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548   (eval $ac_try) 2>&5
13549   ac_status=$?
13550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551   (exit $ac_status); }; } &&
13552          { ac_try='test -s conftest$ac_exeext'
13553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554   (eval $ac_try) 2>&5
13555   ac_status=$?
13556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557   (exit $ac_status); }; }; then
13558   ac_cv_search_opendir="-l$ac_lib"
13559 break
13560 else
13561   echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13563
13564 fi
13565 rm -f conftest.err conftest.$ac_objext \
13566       conftest$ac_exeext conftest.$ac_ext
13567   done
13568 fi
13569 LIBS=$ac_func_search_save_LIBS
13570 fi
13571 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13572 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13573 if test "$ac_cv_search_opendir" != no; then
13574   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13575
13576 fi
13577
13578 else
13579   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13580 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13581 if test "${ac_cv_search_opendir+set}" = set; then
13582   echo $ECHO_N "(cached) $ECHO_C" >&6
13583 else
13584   ac_func_search_save_LIBS=$LIBS
13585 ac_cv_search_opendir=no
13586 cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h.  */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h.  */
13592
13593 /* Override any gcc2 internal prototype to avoid an error.  */
13594 #ifdef __cplusplus
13595 extern "C"
13596 #endif
13597 /* We use char because int might match the return type of a gcc2
13598    builtin and then its argument prototype would still apply.  */
13599 char opendir ();
13600 int
13601 main ()
13602 {
13603 opendir ();
13604   ;
13605   return 0;
13606 }
13607 _ACEOF
13608 rm -f conftest.$ac_objext conftest$ac_exeext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13610   (eval $ac_link) 2>conftest.er1
13611   ac_status=$?
13612   grep -v '^ *+' conftest.er1 >conftest.err
13613   rm -f conftest.er1
13614   cat conftest.err >&5
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); } &&
13617          { ac_try='test -z "$ac_c_werror_flag"
13618                          || test ! -s conftest.err'
13619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620   (eval $ac_try) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }; } &&
13624          { ac_try='test -s conftest$ac_exeext'
13625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626   (eval $ac_try) 2>&5
13627   ac_status=$?
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); }; }; then
13630   ac_cv_search_opendir="none required"
13631 else
13632   echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13634
13635 fi
13636 rm -f conftest.err conftest.$ac_objext \
13637       conftest$ac_exeext conftest.$ac_ext
13638 if test "$ac_cv_search_opendir" = no; then
13639   for ac_lib in x; do
13640     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13641     cat >conftest.$ac_ext <<_ACEOF
13642 /* confdefs.h.  */
13643 _ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h.  */
13647
13648 /* Override any gcc2 internal prototype to avoid an error.  */
13649 #ifdef __cplusplus
13650 extern "C"
13651 #endif
13652 /* We use char because int might match the return type of a gcc2
13653    builtin and then its argument prototype would still apply.  */
13654 char opendir ();
13655 int
13656 main ()
13657 {
13658 opendir ();
13659   ;
13660   return 0;
13661 }
13662 _ACEOF
13663 rm -f conftest.$ac_objext conftest$ac_exeext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13665   (eval $ac_link) 2>conftest.er1
13666   ac_status=$?
13667   grep -v '^ *+' conftest.er1 >conftest.err
13668   rm -f conftest.er1
13669   cat conftest.err >&5
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); } &&
13672          { ac_try='test -z "$ac_c_werror_flag"
13673                          || test ! -s conftest.err'
13674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675   (eval $ac_try) 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); }; } &&
13679          { ac_try='test -s conftest$ac_exeext'
13680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681   (eval $ac_try) 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); }; }; then
13685   ac_cv_search_opendir="-l$ac_lib"
13686 break
13687 else
13688   echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13690
13691 fi
13692 rm -f conftest.err conftest.$ac_objext \
13693       conftest$ac_exeext conftest.$ac_ext
13694   done
13695 fi
13696 LIBS=$ac_func_search_save_LIBS
13697 fi
13698 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13699 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13700 if test "$ac_cv_search_opendir" != no; then
13701   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13702
13703 fi
13704
13705 fi
13706
13707 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13708 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13709 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13710   echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712   cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h.  */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h.  */
13718 #include <sys/types.h>
13719 #include <sys/wait.h>
13720 #ifndef WEXITSTATUS
13721 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13722 #endif
13723 #ifndef WIFEXITED
13724 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13725 #endif
13726
13727 int
13728 main ()
13729 {
13730   int s;
13731   wait (&s);
13732   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13733   ;
13734   return 0;
13735 }
13736 _ACEOF
13737 rm -f conftest.$ac_objext
13738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13739   (eval $ac_compile) 2>conftest.er1
13740   ac_status=$?
13741   grep -v '^ *+' conftest.er1 >conftest.err
13742   rm -f conftest.er1
13743   cat conftest.err >&5
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); } &&
13746          { ac_try='test -z "$ac_c_werror_flag"
13747                          || test ! -s conftest.err'
13748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749   (eval $ac_try) 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); }; } &&
13753          { ac_try='test -s conftest.$ac_objext'
13754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755   (eval $ac_try) 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); }; }; then
13759   ac_cv_header_sys_wait_h=yes
13760 else
13761   echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13763
13764 ac_cv_header_sys_wait_h=no
13765 fi
13766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13767 fi
13768 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13769 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13770 if test $ac_cv_header_sys_wait_h = yes; then
13771
13772 cat >>confdefs.h <<\_ACEOF
13773 #define HAVE_SYS_WAIT_H 1
13774 _ACEOF
13775
13776 fi
13777
13778 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13779 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13780 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13781   echo $ECHO_N "(cached) $ECHO_C" >&6
13782 else
13783   cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h.  */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h.  */
13789 #include <sys/types.h>
13790 #include <termios.h>
13791 #ifdef TIOCGWINSZ
13792   yes
13793 #endif
13794
13795 _ACEOF
13796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13797   $EGREP "yes" >/dev/null 2>&1; then
13798   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13799 else
13800   ac_cv_sys_tiocgwinsz_in_termios_h=no
13801 fi
13802 rm -f conftest*
13803
13804 fi
13805 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13806 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13807
13808 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13809   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13810 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13811 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13812   echo $ECHO_N "(cached) $ECHO_C" >&6
13813 else
13814   cat >conftest.$ac_ext <<_ACEOF
13815 /* confdefs.h.  */
13816 _ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h.  */
13820 #include <sys/types.h>
13821 #include <sys/ioctl.h>
13822 #ifdef TIOCGWINSZ
13823   yes
13824 #endif
13825
13826 _ACEOF
13827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13828   $EGREP "yes" >/dev/null 2>&1; then
13829   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13830 else
13831   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13832 fi
13833 rm -f conftest*
13834
13835 fi
13836 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13837 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13838
13839   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13840
13841 cat >>confdefs.h <<\_ACEOF
13842 #define GWINSZ_IN_SYS_IOCTL 1
13843 _ACEOF
13844
13845   fi
13846 fi
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893 for ac_header in \
13894         arpa/inet.h             \
13895         arpa/nameser.h  \
13896         assert.h                \
13897         bits/types.h    \
13898         conio.h                 \
13899         crypt.h                 \
13900         direct.h                \
13901         errno.h                 \
13902         fcntl.h                 \
13903         filio.h                 \
13904         getopt.h                \
13905         grp.h                   \
13906         io.h                    \
13907         libutil.h               \
13908         limits.h                \
13909         locale.h                \
13910         malloc.h                \
13911         memory.h                \
13912         psap.h                  \
13913         pwd.h                   \
13914         process.h               \
13915         sgtty.h                 \
13916         shadow.h                \
13917         stddef.h                \
13918         string.h                \
13919         strings.h               \
13920         sysexits.h              \
13921         sys/file.h              \
13922         sys/filio.h             \
13923         sys/errno.h             \
13924         sys/ioctl.h             \
13925         sys/param.h             \
13926         sys/resource.h  \
13927         sys/select.h    \
13928         sys/socket.h    \
13929         sys/stat.h              \
13930         sys/syslog.h    \
13931         sys/time.h              \
13932         sys/types.h             \
13933         sys/uio.h               \
13934         syslog.h                \
13935         termios.h               \
13936         unistd.h                \
13937         utime.h                 \
13938
13939 do
13940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13942   echo "$as_me:$LINENO: checking for $ac_header" >&5
13943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13945   echo $ECHO_N "(cached) $ECHO_C" >&6
13946 fi
13947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13949 else
13950   # Is the header compilable?
13951 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13953 cat >conftest.$ac_ext <<_ACEOF
13954 /* confdefs.h.  */
13955 _ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h.  */
13959 $ac_includes_default
13960 #include <$ac_header>
13961 _ACEOF
13962 rm -f conftest.$ac_objext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964   (eval $ac_compile) 2>conftest.er1
13965   ac_status=$?
13966   grep -v '^ *+' conftest.er1 >conftest.err
13967   rm -f conftest.er1
13968   cat conftest.err >&5
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); } &&
13971          { ac_try='test -z "$ac_c_werror_flag"
13972                          || test ! -s conftest.err'
13973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974   (eval $ac_try) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; } &&
13978          { ac_try='test -s conftest.$ac_objext'
13979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980   (eval $ac_try) 2>&5
13981   ac_status=$?
13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   (exit $ac_status); }; }; then
13984   ac_header_compiler=yes
13985 else
13986   echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13988
13989 ac_header_compiler=no
13990 fi
13991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13993 echo "${ECHO_T}$ac_header_compiler" >&6
13994
13995 # Is the header present?
13996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13998 cat >conftest.$ac_ext <<_ACEOF
13999 /* confdefs.h.  */
14000 _ACEOF
14001 cat confdefs.h >>conftest.$ac_ext
14002 cat >>conftest.$ac_ext <<_ACEOF
14003 /* end confdefs.h.  */
14004 #include <$ac_header>
14005 _ACEOF
14006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14008   ac_status=$?
14009   grep -v '^ *+' conftest.er1 >conftest.err
14010   rm -f conftest.er1
14011   cat conftest.err >&5
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); } >/dev/null; then
14014   if test -s conftest.err; then
14015     ac_cpp_err=$ac_c_preproc_warn_flag
14016     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14017   else
14018     ac_cpp_err=
14019   fi
14020 else
14021   ac_cpp_err=yes
14022 fi
14023 if test -z "$ac_cpp_err"; then
14024   ac_header_preproc=yes
14025 else
14026   echo "$as_me: failed program was:" >&5
14027 sed 's/^/| /' conftest.$ac_ext >&5
14028
14029   ac_header_preproc=no
14030 fi
14031 rm -f conftest.err conftest.$ac_ext
14032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14033 echo "${ECHO_T}$ac_header_preproc" >&6
14034
14035 # So?  What about this header?
14036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14037   yes:no: )
14038     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14042     ac_header_preproc=yes
14043     ;;
14044   no:yes:* )
14045     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14047     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14048 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14049     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14051     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14052 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14055     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14057     (
14058       cat <<\_ASBOX
14059 ## --------------------------------------------- ##
14060 ## Report this to <http://www.openldap.org/its/> ##
14061 ## --------------------------------------------- ##
14062 _ASBOX
14063     ) |
14064       sed "s/^/$as_me: WARNING:     /" >&2
14065     ;;
14066 esac
14067 echo "$as_me:$LINENO: checking for $ac_header" >&5
14068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14070   echo $ECHO_N "(cached) $ECHO_C" >&6
14071 else
14072   eval "$as_ac_Header=\$ac_header_preproc"
14073 fi
14074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14076
14077 fi
14078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14079   cat >>confdefs.h <<_ACEOF
14080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14081 _ACEOF
14082
14083 fi
14084
14085 done
14086
14087
14088 if test "$ac_cv_mingw32" = yes ; then
14089
14090
14091 for ac_header in winsock.h winsock2.h
14092 do
14093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14095   echo "$as_me:$LINENO: checking for $ac_header" >&5
14096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14098   echo $ECHO_N "(cached) $ECHO_C" >&6
14099 fi
14100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14102 else
14103   # Is the header compilable?
14104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14106 cat >conftest.$ac_ext <<_ACEOF
14107 /* confdefs.h.  */
14108 _ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h.  */
14112 $ac_includes_default
14113 #include <$ac_header>
14114 _ACEOF
14115 rm -f conftest.$ac_objext
14116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14117   (eval $ac_compile) 2>conftest.er1
14118   ac_status=$?
14119   grep -v '^ *+' conftest.er1 >conftest.err
14120   rm -f conftest.er1
14121   cat conftest.err >&5
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); } &&
14124          { ac_try='test -z "$ac_c_werror_flag"
14125                          || test ! -s conftest.err'
14126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127   (eval $ac_try) 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); }; } &&
14131          { ac_try='test -s conftest.$ac_objext'
14132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133   (eval $ac_try) 2>&5
14134   ac_status=$?
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); }; }; then
14137   ac_header_compiler=yes
14138 else
14139   echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14141
14142 ac_header_compiler=no
14143 fi
14144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14146 echo "${ECHO_T}$ac_header_compiler" >&6
14147
14148 # Is the header present?
14149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14151 cat >conftest.$ac_ext <<_ACEOF
14152 /* confdefs.h.  */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h.  */
14157 #include <$ac_header>
14158 _ACEOF
14159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14161   ac_status=$?
14162   grep -v '^ *+' conftest.er1 >conftest.err
14163   rm -f conftest.er1
14164   cat conftest.err >&5
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); } >/dev/null; then
14167   if test -s conftest.err; then
14168     ac_cpp_err=$ac_c_preproc_warn_flag
14169     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14170   else
14171     ac_cpp_err=
14172   fi
14173 else
14174   ac_cpp_err=yes
14175 fi
14176 if test -z "$ac_cpp_err"; then
14177   ac_header_preproc=yes
14178 else
14179   echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14181
14182   ac_header_preproc=no
14183 fi
14184 rm -f conftest.err conftest.$ac_ext
14185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14186 echo "${ECHO_T}$ac_header_preproc" >&6
14187
14188 # So?  What about this header?
14189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14190   yes:no: )
14191     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14195     ac_header_preproc=yes
14196     ;;
14197   no:yes:* )
14198     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14200     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14201 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14202     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14204     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14205 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14208     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14210     (
14211       cat <<\_ASBOX
14212 ## --------------------------------------------- ##
14213 ## Report this to <http://www.openldap.org/its/> ##
14214 ## --------------------------------------------- ##
14215 _ASBOX
14216     ) |
14217       sed "s/^/$as_me: WARNING:     /" >&2
14218     ;;
14219 esac
14220 echo "$as_me:$LINENO: checking for $ac_header" >&5
14221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14223   echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225   eval "$as_ac_Header=\$ac_header_preproc"
14226 fi
14227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14229
14230 fi
14231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14232   cat >>confdefs.h <<_ACEOF
14233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14234 _ACEOF
14235
14236 fi
14237
14238 done
14239
14240 fi
14241
14242
14243 for ac_header in resolv.h
14244 do
14245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14246 echo "$as_me:$LINENO: checking for $ac_header" >&5
14247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14249   echo $ECHO_N "(cached) $ECHO_C" >&6
14250 else
14251   cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h.  */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h.  */
14257 $ac_includes_default
14258 #include <netinet/in.h>
14259
14260
14261 #include <$ac_header>
14262 _ACEOF
14263 rm -f conftest.$ac_objext
14264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14265   (eval $ac_compile) 2>conftest.er1
14266   ac_status=$?
14267   grep -v '^ *+' conftest.er1 >conftest.err
14268   rm -f conftest.er1
14269   cat conftest.err >&5
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); } &&
14272          { ac_try='test -z "$ac_c_werror_flag"
14273                          || test ! -s conftest.err'
14274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275   (eval $ac_try) 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); }; } &&
14279          { ac_try='test -s conftest.$ac_objext'
14280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281   (eval $ac_try) 2>&5
14282   ac_status=$?
14283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284   (exit $ac_status); }; }; then
14285   eval "$as_ac_Header=yes"
14286 else
14287   echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14289
14290 eval "$as_ac_Header=no"
14291 fi
14292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14293 fi
14294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14297   cat >>confdefs.h <<_ACEOF
14298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14299 _ACEOF
14300
14301 fi
14302
14303 done
14304
14305
14306
14307 for ac_header in netinet/tcp.h
14308 do
14309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14310 echo "$as_me:$LINENO: checking for $ac_header" >&5
14311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14313   echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315   cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h.  */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h.  */
14321 $ac_includes_default
14322 #include <netinet/in.h>
14323
14324
14325 #include <$ac_header>
14326 _ACEOF
14327 rm -f conftest.$ac_objext
14328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14329   (eval $ac_compile) 2>conftest.er1
14330   ac_status=$?
14331   grep -v '^ *+' conftest.er1 >conftest.err
14332   rm -f conftest.er1
14333   cat conftest.err >&5
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); } &&
14336          { ac_try='test -z "$ac_c_werror_flag"
14337                          || test ! -s conftest.err'
14338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339   (eval $ac_try) 2>&5
14340   ac_status=$?
14341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342   (exit $ac_status); }; } &&
14343          { ac_try='test -s conftest.$ac_objext'
14344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345   (eval $ac_try) 2>&5
14346   ac_status=$?
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); }; }; then
14349   eval "$as_ac_Header=yes"
14350 else
14351   echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14353
14354 eval "$as_ac_Header=no"
14355 fi
14356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14357 fi
14358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14361   cat >>confdefs.h <<_ACEOF
14362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14363 _ACEOF
14364
14365 fi
14366
14367 done
14368
14369
14370
14371 for ac_header in sys/ucred.h
14372 do
14373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14374 echo "$as_me:$LINENO: checking for $ac_header" >&5
14375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14377   echo $ECHO_N "(cached) $ECHO_C" >&6
14378 else
14379   cat >conftest.$ac_ext <<_ACEOF
14380 /* confdefs.h.  */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h.  */
14385 $ac_includes_default
14386 #ifdef HAVE_SYS_PARAM_H
14387 #include <sys/param.h>
14388 #endif
14389
14390
14391 #include <$ac_header>
14392 _ACEOF
14393 rm -f conftest.$ac_objext
14394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14395   (eval $ac_compile) 2>conftest.er1
14396   ac_status=$?
14397   grep -v '^ *+' conftest.er1 >conftest.err
14398   rm -f conftest.er1
14399   cat conftest.err >&5
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); } &&
14402          { ac_try='test -z "$ac_c_werror_flag"
14403                          || test ! -s conftest.err'
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); }; } &&
14409          { ac_try='test -s conftest.$ac_objext'
14410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411   (eval $ac_try) 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); }; }; then
14415   eval "$as_ac_Header=yes"
14416 else
14417   echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14419
14420 eval "$as_ac_Header=no"
14421 fi
14422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14423 fi
14424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14427   cat >>confdefs.h <<_ACEOF
14428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14429 _ACEOF
14430
14431 fi
14432
14433 done
14434
14435
14436
14437
14438
14439 for ac_func in sigaction sigset
14440 do
14441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14442 echo "$as_me:$LINENO: checking for $ac_func" >&5
14443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14444 if eval "test \"\${$as_ac_var+set}\" = set"; then
14445   echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447   cat >conftest.$ac_ext <<_ACEOF
14448 /* confdefs.h.  */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h.  */
14453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14455 #define $ac_func innocuous_$ac_func
14456
14457 /* System header to define __stub macros and hopefully few prototypes,
14458     which can conflict with char $ac_func (); below.
14459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14460     <limits.h> exists even on freestanding compilers.  */
14461
14462 #ifdef __STDC__
14463 # include <limits.h>
14464 #else
14465 # include <assert.h>
14466 #endif
14467
14468 #undef $ac_func
14469
14470 /* Override any gcc2 internal prototype to avoid an error.  */
14471 #ifdef __cplusplus
14472 extern "C"
14473 {
14474 #endif
14475 /* We use char because int might match the return type of a gcc2
14476    builtin and then its argument prototype would still apply.  */
14477 char $ac_func ();
14478 /* The GNU C library defines this for functions which it implements
14479     to always fail with ENOSYS.  Some functions are actually named
14480     something starting with __ and the normal name is an alias.  */
14481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14482 choke me
14483 #else
14484 char (*f) () = $ac_func;
14485 #endif
14486 #ifdef __cplusplus
14487 }
14488 #endif
14489
14490 int
14491 main ()
14492 {
14493 return f != $ac_func;
14494   ;
14495   return 0;
14496 }
14497 _ACEOF
14498 rm -f conftest.$ac_objext conftest$ac_exeext
14499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14500   (eval $ac_link) 2>conftest.er1
14501   ac_status=$?
14502   grep -v '^ *+' conftest.er1 >conftest.err
14503   rm -f conftest.er1
14504   cat conftest.err >&5
14505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); } &&
14507          { ac_try='test -z "$ac_c_werror_flag"
14508                          || test ! -s conftest.err'
14509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510   (eval $ac_try) 2>&5
14511   ac_status=$?
14512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513   (exit $ac_status); }; } &&
14514          { ac_try='test -s conftest$ac_exeext'
14515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516   (eval $ac_try) 2>&5
14517   ac_status=$?
14518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519   (exit $ac_status); }; }; then
14520   eval "$as_ac_var=yes"
14521 else
14522   echo "$as_me: failed program was:" >&5
14523 sed 's/^/| /' conftest.$ac_ext >&5
14524
14525 eval "$as_ac_var=no"
14526 fi
14527 rm -f conftest.err conftest.$ac_objext \
14528       conftest$ac_exeext conftest.$ac_ext
14529 fi
14530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14532 if test `eval echo '${'$as_ac_var'}'` = yes; then
14533   cat >>confdefs.h <<_ACEOF
14534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14535 _ACEOF
14536
14537 fi
14538 done
14539
14540
14541 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14542
14543 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14544 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14545 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14546   echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548   ac_check_lib_save_LIBS=$LIBS
14549 LIBS="-lV3  $LIBS"
14550 cat >conftest.$ac_ext <<_ACEOF
14551 /* confdefs.h.  */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h.  */
14556
14557 /* Override any gcc2 internal prototype to avoid an error.  */
14558 #ifdef __cplusplus
14559 extern "C"
14560 #endif
14561 /* We use char because int might match the return type of a gcc2
14562    builtin and then its argument prototype would still apply.  */
14563 char sigset ();
14564 int
14565 main ()
14566 {
14567 sigset ();
14568   ;
14569   return 0;
14570 }
14571 _ACEOF
14572 rm -f conftest.$ac_objext conftest$ac_exeext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14574   (eval $ac_link) 2>conftest.er1
14575   ac_status=$?
14576   grep -v '^ *+' conftest.er1 >conftest.err
14577   rm -f conftest.er1
14578   cat conftest.err >&5
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); } &&
14581          { ac_try='test -z "$ac_c_werror_flag"
14582                          || test ! -s conftest.err'
14583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584   (eval $ac_try) 2>&5
14585   ac_status=$?
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); }; } &&
14588          { ac_try='test -s conftest$ac_exeext'
14589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590   (eval $ac_try) 2>&5
14591   ac_status=$?
14592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593   (exit $ac_status); }; }; then
14594   ac_cv_lib_V3_sigset=yes
14595 else
14596   echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14598
14599 ac_cv_lib_V3_sigset=no
14600 fi
14601 rm -f conftest.err conftest.$ac_objext \
14602       conftest$ac_exeext conftest.$ac_ext
14603 LIBS=$ac_check_lib_save_LIBS
14604 fi
14605 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14606 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14607 if test $ac_cv_lib_V3_sigset = yes; then
14608   cat >>confdefs.h <<_ACEOF
14609 #define HAVE_LIBV3 1
14610 _ACEOF
14611
14612   LIBS="-lV3 $LIBS"
14613
14614 fi
14615
14616 fi
14617
14618 if test "$ac_cv_header_winsock_h" = yes; then
14619 echo "$as_me:$LINENO: checking for winsock" >&5
14620 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14621 if test "${ol_cv_winsock+set}" = set; then
14622   echo $ECHO_N "(cached) $ECHO_C" >&6
14623 else
14624   save_LIBS="$LIBS"
14625 for curlib in ws2_32 wsock32; do
14626         LIBS="$LIBS -l$curlib"
14627         cat >conftest.$ac_ext <<_ACEOF
14628 /* confdefs.h.  */
14629 _ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h.  */
14633 #include <winsock.h>
14634
14635 int
14636 main ()
14637 {
14638
14639                         socket(0,0,0);
14640                         select(0,NULL,NULL,NULL,NULL);
14641                         closesocket(0);
14642                         gethostname(NULL,0);
14643
14644   ;
14645   return 0;
14646 }
14647 _ACEOF
14648 rm -f conftest.$ac_objext conftest$ac_exeext
14649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14650   (eval $ac_link) 2>conftest.er1
14651   ac_status=$?
14652   grep -v '^ *+' conftest.er1 >conftest.err
14653   rm -f conftest.er1
14654   cat conftest.err >&5
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); } &&
14657          { ac_try='test -z "$ac_c_werror_flag"
14658                          || test ! -s conftest.err'
14659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660   (eval $ac_try) 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); }; } &&
14664          { ac_try='test -s conftest$ac_exeext'
14665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666   (eval $ac_try) 2>&5
14667   ac_status=$?
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); }; }; then
14670   ol_cv_winsock=yes
14671 else
14672   echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14674
14675 ol_cv_winsock=no
14676 fi
14677 rm -f conftest.err conftest.$ac_objext \
14678       conftest$ac_exeext conftest.$ac_ext
14679
14680         if test $ol_cv_winsock = yes; then
14681
14682 cat >>confdefs.h <<\_ACEOF
14683 #define HAVE_WINSOCK 1
14684 _ACEOF
14685
14686                 ac_cv_func_socket=yes
14687                 ac_cv_func_select=yes
14688                 ac_cv_func_closesocket=yes
14689                 ac_cv_func_gethostname=yes
14690                 if test $curlib = ws2_32; then
14691                         ol_cv_winsock=winsock2
14692
14693 cat >>confdefs.h <<\_ACEOF
14694 #define HAVE_WINSOCK2 1
14695 _ACEOF
14696
14697                 fi
14698                 break
14699         fi
14700         LIBS="$save_LIBS"
14701 done
14702 fi
14703 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14704 echo "${ECHO_T}$ol_cv_winsock" >&6
14705 fi
14706
14707
14708 echo "$as_me:$LINENO: checking for socket" >&5
14709 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14710 if test "${ac_cv_func_socket+set}" = set; then
14711   echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713   cat >conftest.$ac_ext <<_ACEOF
14714 /* confdefs.h.  */
14715 _ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h.  */
14719 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14721 #define socket innocuous_socket
14722
14723 /* System header to define __stub macros and hopefully few prototypes,
14724     which can conflict with char socket (); below.
14725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14726     <limits.h> exists even on freestanding compilers.  */
14727
14728 #ifdef __STDC__
14729 # include <limits.h>
14730 #else
14731 # include <assert.h>
14732 #endif
14733
14734 #undef socket
14735
14736 /* Override any gcc2 internal prototype to avoid an error.  */
14737 #ifdef __cplusplus
14738 extern "C"
14739 {
14740 #endif
14741 /* We use char because int might match the return type of a gcc2
14742    builtin and then its argument prototype would still apply.  */
14743 char socket ();
14744 /* The GNU C library defines this for functions which it implements
14745     to always fail with ENOSYS.  Some functions are actually named
14746     something starting with __ and the normal name is an alias.  */
14747 #if defined (__stub_socket) || defined (__stub___socket)
14748 choke me
14749 #else
14750 char (*f) () = socket;
14751 #endif
14752 #ifdef __cplusplus
14753 }
14754 #endif
14755
14756 int
14757 main ()
14758 {
14759 return f != socket;
14760   ;
14761   return 0;
14762 }
14763 _ACEOF
14764 rm -f conftest.$ac_objext conftest$ac_exeext
14765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14766   (eval $ac_link) 2>conftest.er1
14767   ac_status=$?
14768   grep -v '^ *+' conftest.er1 >conftest.err
14769   rm -f conftest.er1
14770   cat conftest.err >&5
14771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772   (exit $ac_status); } &&
14773          { ac_try='test -z "$ac_c_werror_flag"
14774                          || test ! -s conftest.err'
14775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776   (eval $ac_try) 2>&5
14777   ac_status=$?
14778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   (exit $ac_status); }; } &&
14780          { ac_try='test -s conftest$ac_exeext'
14781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782   (eval $ac_try) 2>&5
14783   ac_status=$?
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); }; }; then
14786   ac_cv_func_socket=yes
14787 else
14788   echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14790
14791 ac_cv_func_socket=no
14792 fi
14793 rm -f conftest.err conftest.$ac_objext \
14794       conftest$ac_exeext conftest.$ac_ext
14795 fi
14796 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14797 echo "${ECHO_T}$ac_cv_func_socket" >&6
14798 if test $ac_cv_func_socket = yes; then
14799   :
14800 else
14801
14802
14803 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14804 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14805 if test "${ac_cv_lib_socket_main+set}" = set; then
14806   echo $ECHO_N "(cached) $ECHO_C" >&6
14807 else
14808   ac_check_lib_save_LIBS=$LIBS
14809 LIBS="-lsocket  $LIBS"
14810 cat >conftest.$ac_ext <<_ACEOF
14811 /* confdefs.h.  */
14812 _ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h.  */
14816
14817
14818 int
14819 main ()
14820 {
14821 main ();
14822   ;
14823   return 0;
14824 }
14825 _ACEOF
14826 rm -f conftest.$ac_objext conftest$ac_exeext
14827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14828   (eval $ac_link) 2>conftest.er1
14829   ac_status=$?
14830   grep -v '^ *+' conftest.er1 >conftest.err
14831   rm -f conftest.er1
14832   cat conftest.err >&5
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); } &&
14835          { ac_try='test -z "$ac_c_werror_flag"
14836                          || test ! -s conftest.err'
14837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838   (eval $ac_try) 2>&5
14839   ac_status=$?
14840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); }; } &&
14842          { ac_try='test -s conftest$ac_exeext'
14843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844   (eval $ac_try) 2>&5
14845   ac_status=$?
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); }; }; then
14848   ac_cv_lib_socket_main=yes
14849 else
14850   echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14852
14853 ac_cv_lib_socket_main=no
14854 fi
14855 rm -f conftest.err conftest.$ac_objext \
14856       conftest$ac_exeext conftest.$ac_ext
14857 LIBS=$ac_check_lib_save_LIBS
14858 fi
14859 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14860 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14861 if test $ac_cv_lib_socket_main = yes; then
14862   cat >>confdefs.h <<_ACEOF
14863 #define HAVE_LIBSOCKET 1
14864 _ACEOF
14865
14866   LIBS="-lsocket $LIBS"
14867
14868 fi
14869
14870
14871 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14872 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14873 if test "${ac_cv_lib_net_main+set}" = set; then
14874   echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876   ac_check_lib_save_LIBS=$LIBS
14877 LIBS="-lnet  $LIBS"
14878 cat >conftest.$ac_ext <<_ACEOF
14879 /* confdefs.h.  */
14880 _ACEOF
14881 cat confdefs.h >>conftest.$ac_ext
14882 cat >>conftest.$ac_ext <<_ACEOF
14883 /* end confdefs.h.  */
14884
14885
14886 int
14887 main ()
14888 {
14889 main ();
14890   ;
14891   return 0;
14892 }
14893 _ACEOF
14894 rm -f conftest.$ac_objext conftest$ac_exeext
14895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14896   (eval $ac_link) 2>conftest.er1
14897   ac_status=$?
14898   grep -v '^ *+' conftest.er1 >conftest.err
14899   rm -f conftest.er1
14900   cat conftest.err >&5
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); } &&
14903          { ac_try='test -z "$ac_c_werror_flag"
14904                          || test ! -s conftest.err'
14905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906   (eval $ac_try) 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); }; } &&
14910          { ac_try='test -s conftest$ac_exeext'
14911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912   (eval $ac_try) 2>&5
14913   ac_status=$?
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); }; }; then
14916   ac_cv_lib_net_main=yes
14917 else
14918   echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921 ac_cv_lib_net_main=no
14922 fi
14923 rm -f conftest.err conftest.$ac_objext \
14924       conftest$ac_exeext conftest.$ac_ext
14925 LIBS=$ac_check_lib_save_LIBS
14926 fi
14927 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14928 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14929 if test $ac_cv_lib_net_main = yes; then
14930   cat >>confdefs.h <<_ACEOF
14931 #define HAVE_LIBNET 1
14932 _ACEOF
14933
14934   LIBS="-lnet $LIBS"
14935
14936 fi
14937
14938
14939 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14940 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14941 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14942   echo $ECHO_N "(cached) $ECHO_C" >&6
14943 else
14944   ac_check_lib_save_LIBS=$LIBS
14945 LIBS="-lnsl_s  $LIBS"
14946 cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h.  */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h.  */
14952
14953
14954 int
14955 main ()
14956 {
14957 main ();
14958   ;
14959   return 0;
14960 }
14961 _ACEOF
14962 rm -f conftest.$ac_objext conftest$ac_exeext
14963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14964   (eval $ac_link) 2>conftest.er1
14965   ac_status=$?
14966   grep -v '^ *+' conftest.er1 >conftest.err
14967   rm -f conftest.er1
14968   cat conftest.err >&5
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); } &&
14971          { ac_try='test -z "$ac_c_werror_flag"
14972                          || test ! -s conftest.err'
14973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974   (eval $ac_try) 2>&5
14975   ac_status=$?
14976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977   (exit $ac_status); }; } &&
14978          { ac_try='test -s conftest$ac_exeext'
14979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980   (eval $ac_try) 2>&5
14981   ac_status=$?
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); }; }; then
14984   ac_cv_lib_nsl_s_main=yes
14985 else
14986   echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14988
14989 ac_cv_lib_nsl_s_main=no
14990 fi
14991 rm -f conftest.err conftest.$ac_objext \
14992       conftest$ac_exeext conftest.$ac_ext
14993 LIBS=$ac_check_lib_save_LIBS
14994 fi
14995 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14996 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14997 if test $ac_cv_lib_nsl_s_main = yes; then
14998   cat >>confdefs.h <<_ACEOF
14999 #define HAVE_LIBNSL_S 1
15000 _ACEOF
15001
15002   LIBS="-lnsl_s $LIBS"
15003
15004 fi
15005
15006
15007 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15008 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15009 if test "${ac_cv_lib_nsl_main+set}" = set; then
15010   echo $ECHO_N "(cached) $ECHO_C" >&6
15011 else
15012   ac_check_lib_save_LIBS=$LIBS
15013 LIBS="-lnsl  $LIBS"
15014 cat >conftest.$ac_ext <<_ACEOF
15015 /* confdefs.h.  */
15016 _ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h.  */
15020
15021
15022 int
15023 main ()
15024 {
15025 main ();
15026   ;
15027   return 0;
15028 }
15029 _ACEOF
15030 rm -f conftest.$ac_objext conftest$ac_exeext
15031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15032   (eval $ac_link) 2>conftest.er1
15033   ac_status=$?
15034   grep -v '^ *+' conftest.er1 >conftest.err
15035   rm -f conftest.er1
15036   cat conftest.err >&5
15037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038   (exit $ac_status); } &&
15039          { ac_try='test -z "$ac_c_werror_flag"
15040                          || test ! -s conftest.err'
15041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042   (eval $ac_try) 2>&5
15043   ac_status=$?
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); }; } &&
15046          { ac_try='test -s conftest$ac_exeext'
15047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048   (eval $ac_try) 2>&5
15049   ac_status=$?
15050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051   (exit $ac_status); }; }; then
15052   ac_cv_lib_nsl_main=yes
15053 else
15054   echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15056
15057 ac_cv_lib_nsl_main=no
15058 fi
15059 rm -f conftest.err conftest.$ac_objext \
15060       conftest$ac_exeext conftest.$ac_ext
15061 LIBS=$ac_check_lib_save_LIBS
15062 fi
15063 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15064 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15065 if test $ac_cv_lib_nsl_main = yes; then
15066   cat >>confdefs.h <<_ACEOF
15067 #define HAVE_LIBNSL 1
15068 _ACEOF
15069
15070   LIBS="-lnsl $LIBS"
15071
15072 fi
15073
15074
15075 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15076 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15077 if test "${ac_cv_lib_inet_socket+set}" = set; then
15078   echo $ECHO_N "(cached) $ECHO_C" >&6
15079 else
15080   ac_check_lib_save_LIBS=$LIBS
15081 LIBS="-linet  $LIBS"
15082 cat >conftest.$ac_ext <<_ACEOF
15083 /* confdefs.h.  */
15084 _ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h.  */
15088
15089 /* Override any gcc2 internal prototype to avoid an error.  */
15090 #ifdef __cplusplus
15091 extern "C"
15092 #endif
15093 /* We use char because int might match the return type of a gcc2
15094    builtin and then its argument prototype would still apply.  */
15095 char socket ();
15096 int
15097 main ()
15098 {
15099 socket ();
15100   ;
15101   return 0;
15102 }
15103 _ACEOF
15104 rm -f conftest.$ac_objext conftest$ac_exeext
15105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15106   (eval $ac_link) 2>conftest.er1
15107   ac_status=$?
15108   grep -v '^ *+' conftest.er1 >conftest.err
15109   rm -f conftest.er1
15110   cat conftest.err >&5
15111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112   (exit $ac_status); } &&
15113          { ac_try='test -z "$ac_c_werror_flag"
15114                          || test ! -s conftest.err'
15115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116   (eval $ac_try) 2>&5
15117   ac_status=$?
15118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119   (exit $ac_status); }; } &&
15120          { ac_try='test -s conftest$ac_exeext'
15121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122   (eval $ac_try) 2>&5
15123   ac_status=$?
15124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125   (exit $ac_status); }; }; then
15126   ac_cv_lib_inet_socket=yes
15127 else
15128   echo "$as_me: failed program was:" >&5
15129 sed 's/^/| /' conftest.$ac_ext >&5
15130
15131 ac_cv_lib_inet_socket=no
15132 fi
15133 rm -f conftest.err conftest.$ac_objext \
15134       conftest$ac_exeext conftest.$ac_ext
15135 LIBS=$ac_check_lib_save_LIBS
15136 fi
15137 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15138 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15139 if test $ac_cv_lib_inet_socket = yes; then
15140   cat >>confdefs.h <<_ACEOF
15141 #define HAVE_LIBINET 1
15142 _ACEOF
15143
15144   LIBS="-linet $LIBS"
15145
15146 fi
15147
15148
15149 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15150 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15151 if test "${ac_cv_lib_gen_main+set}" = set; then
15152   echo $ECHO_N "(cached) $ECHO_C" >&6
15153 else
15154   ac_check_lib_save_LIBS=$LIBS
15155 LIBS="-lgen  $LIBS"
15156 cat >conftest.$ac_ext <<_ACEOF
15157 /* confdefs.h.  */
15158 _ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h.  */
15162
15163
15164 int
15165 main ()
15166 {
15167 main ();
15168   ;
15169   return 0;
15170 }
15171 _ACEOF
15172 rm -f conftest.$ac_objext conftest$ac_exeext
15173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15174   (eval $ac_link) 2>conftest.er1
15175   ac_status=$?
15176   grep -v '^ *+' conftest.er1 >conftest.err
15177   rm -f conftest.er1
15178   cat conftest.err >&5
15179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180   (exit $ac_status); } &&
15181          { ac_try='test -z "$ac_c_werror_flag"
15182                          || test ! -s conftest.err'
15183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184   (eval $ac_try) 2>&5
15185   ac_status=$?
15186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); }; } &&
15188          { ac_try='test -s conftest$ac_exeext'
15189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15190   (eval $ac_try) 2>&5
15191   ac_status=$?
15192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193   (exit $ac_status); }; }; then
15194   ac_cv_lib_gen_main=yes
15195 else
15196   echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15198
15199 ac_cv_lib_gen_main=no
15200 fi
15201 rm -f conftest.err conftest.$ac_objext \
15202       conftest$ac_exeext conftest.$ac_ext
15203 LIBS=$ac_check_lib_save_LIBS
15204 fi
15205 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15206 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15207 if test $ac_cv_lib_gen_main = yes; then
15208   cat >>confdefs.h <<_ACEOF
15209 #define HAVE_LIBGEN 1
15210 _ACEOF
15211
15212   LIBS="-lgen $LIBS"
15213
15214 fi
15215
15216
15217 fi
15218
15219
15220 echo "$as_me:$LINENO: checking for select" >&5
15221 echo $ECHO_N "checking for select... $ECHO_C" >&6
15222 if test "${ac_cv_func_select+set}" = set; then
15223   echo $ECHO_N "(cached) $ECHO_C" >&6
15224 else
15225   cat >conftest.$ac_ext <<_ACEOF
15226 /* confdefs.h.  */
15227 _ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h.  */
15231 /* Define select to an innocuous variant, in case <limits.h> declares select.
15232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15233 #define select innocuous_select
15234
15235 /* System header to define __stub macros and hopefully few prototypes,
15236     which can conflict with char select (); below.
15237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15238     <limits.h> exists even on freestanding compilers.  */
15239
15240 #ifdef __STDC__
15241 # include <limits.h>
15242 #else
15243 # include <assert.h>
15244 #endif
15245
15246 #undef select
15247
15248 /* Override any gcc2 internal prototype to avoid an error.  */
15249 #ifdef __cplusplus
15250 extern "C"
15251 {
15252 #endif
15253 /* We use char because int might match the return type of a gcc2
15254    builtin and then its argument prototype would still apply.  */
15255 char select ();
15256 /* The GNU C library defines this for functions which it implements
15257     to always fail with ENOSYS.  Some functions are actually named
15258     something starting with __ and the normal name is an alias.  */
15259 #if defined (__stub_select) || defined (__stub___select)
15260 choke me
15261 #else
15262 char (*f) () = select;
15263 #endif
15264 #ifdef __cplusplus
15265 }
15266 #endif
15267
15268 int
15269 main ()
15270 {
15271 return f != select;
15272   ;
15273   return 0;
15274 }
15275 _ACEOF
15276 rm -f conftest.$ac_objext conftest$ac_exeext
15277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15278   (eval $ac_link) 2>conftest.er1
15279   ac_status=$?
15280   grep -v '^ *+' conftest.er1 >conftest.err
15281   rm -f conftest.er1
15282   cat conftest.err >&5
15283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284   (exit $ac_status); } &&
15285          { ac_try='test -z "$ac_c_werror_flag"
15286                          || test ! -s conftest.err'
15287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288   (eval $ac_try) 2>&5
15289   ac_status=$?
15290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291   (exit $ac_status); }; } &&
15292          { ac_try='test -s conftest$ac_exeext'
15293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294   (eval $ac_try) 2>&5
15295   ac_status=$?
15296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297   (exit $ac_status); }; }; then
15298   ac_cv_func_select=yes
15299 else
15300   echo "$as_me: failed program was:" >&5
15301 sed 's/^/| /' conftest.$ac_ext >&5
15302
15303 ac_cv_func_select=no
15304 fi
15305 rm -f conftest.err conftest.$ac_objext \
15306       conftest$ac_exeext conftest.$ac_ext
15307 fi
15308 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15309 echo "${ECHO_T}$ac_cv_func_select" >&6
15310 if test $ac_cv_func_select = yes; then
15311   :
15312 else
15313   { { echo "$as_me:$LINENO: error: select() required." >&5
15314 echo "$as_me: error: select() required." >&2;}
15315    { (exit 1); exit 1; }; }
15316 fi
15317
15318
15319 if test "${ac_cv_header_winsock_h}" != yes; then
15320
15321
15322 for ac_header in sys/select.h sys/socket.h
15323 do
15324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15326   echo "$as_me:$LINENO: checking for $ac_header" >&5
15327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15329   echo $ECHO_N "(cached) $ECHO_C" >&6
15330 fi
15331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15333 else
15334   # Is the header compilable?
15335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15337 cat >conftest.$ac_ext <<_ACEOF
15338 /* confdefs.h.  */
15339 _ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h.  */
15343 $ac_includes_default
15344 #include <$ac_header>
15345 _ACEOF
15346 rm -f conftest.$ac_objext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15348   (eval $ac_compile) 2>conftest.er1
15349   ac_status=$?
15350   grep -v '^ *+' conftest.er1 >conftest.err
15351   rm -f conftest.er1
15352   cat conftest.err >&5
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); } &&
15355          { ac_try='test -z "$ac_c_werror_flag"
15356                          || test ! -s conftest.err'
15357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358   (eval $ac_try) 2>&5
15359   ac_status=$?
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); }; } &&
15362          { ac_try='test -s conftest.$ac_objext'
15363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364   (eval $ac_try) 2>&5
15365   ac_status=$?
15366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367   (exit $ac_status); }; }; then
15368   ac_header_compiler=yes
15369 else
15370   echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15372
15373 ac_header_compiler=no
15374 fi
15375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15377 echo "${ECHO_T}$ac_header_compiler" >&6
15378
15379 # Is the header present?
15380 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15382 cat >conftest.$ac_ext <<_ACEOF
15383 /* confdefs.h.  */
15384 _ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h.  */
15388 #include <$ac_header>
15389 _ACEOF
15390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15391   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15392   ac_status=$?
15393   grep -v '^ *+' conftest.er1 >conftest.err
15394   rm -f conftest.er1
15395   cat conftest.err >&5
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); } >/dev/null; then
15398   if test -s conftest.err; then
15399     ac_cpp_err=$ac_c_preproc_warn_flag
15400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15401   else
15402     ac_cpp_err=
15403   fi
15404 else
15405   ac_cpp_err=yes
15406 fi
15407 if test -z "$ac_cpp_err"; then
15408   ac_header_preproc=yes
15409 else
15410   echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15412
15413   ac_header_preproc=no
15414 fi
15415 rm -f conftest.err conftest.$ac_ext
15416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15417 echo "${ECHO_T}$ac_header_preproc" >&6
15418
15419 # So?  What about this header?
15420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15421   yes:no: )
15422     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15426     ac_header_preproc=yes
15427     ;;
15428   no:yes:* )
15429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15431     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15432 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15433     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15435     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15436 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15439     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15441     (
15442       cat <<\_ASBOX
15443 ## --------------------------------------------- ##
15444 ## Report this to <http://www.openldap.org/its/> ##
15445 ## --------------------------------------------- ##
15446 _ASBOX
15447     ) |
15448       sed "s/^/$as_me: WARNING:     /" >&2
15449     ;;
15450 esac
15451 echo "$as_me:$LINENO: checking for $ac_header" >&5
15452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15454   echo $ECHO_N "(cached) $ECHO_C" >&6
15455 else
15456   eval "$as_ac_Header=\$ac_header_preproc"
15457 fi
15458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15460
15461 fi
15462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15463   cat >>confdefs.h <<_ACEOF
15464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15465 _ACEOF
15466
15467 fi
15468
15469 done
15470
15471 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15472 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15473 if test "${ac_cv_func_select_args+set}" = set; then
15474   echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15477  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15478   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15479    cat >conftest.$ac_ext <<_ACEOF
15480 /* confdefs.h.  */
15481 _ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h.  */
15485 $ac_includes_default
15486 #if HAVE_SYS_SELECT_H
15487 # include <sys/select.h>
15488 #endif
15489 #if HAVE_SYS_SOCKET_H
15490 # include <sys/socket.h>
15491 #endif
15492
15493 int
15494 main ()
15495 {
15496 extern int select ($ac_arg1,
15497                                             $ac_arg234, $ac_arg234, $ac_arg234,
15498                                             $ac_arg5);
15499   ;
15500   return 0;
15501 }
15502 _ACEOF
15503 rm -f conftest.$ac_objext
15504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15505   (eval $ac_compile) 2>conftest.er1
15506   ac_status=$?
15507   grep -v '^ *+' conftest.er1 >conftest.err
15508   rm -f conftest.er1
15509   cat conftest.err >&5
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); } &&
15512          { ac_try='test -z "$ac_c_werror_flag"
15513                          || test ! -s conftest.err'
15514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515   (eval $ac_try) 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); }; } &&
15519          { ac_try='test -s conftest.$ac_objext'
15520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521   (eval $ac_try) 2>&5
15522   ac_status=$?
15523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524   (exit $ac_status); }; }; then
15525   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15526 else
15527   echo "$as_me: failed program was:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15529
15530 fi
15531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15532   done
15533  done
15534 done
15535 # Provide a safe default value.
15536 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15537
15538 fi
15539 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15540 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15541 ac_save_IFS=$IFS; IFS=','
15542 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15543 IFS=$ac_save_IFS
15544 shift
15545
15546 cat >>confdefs.h <<_ACEOF
15547 #define SELECT_TYPE_ARG1 $1
15548 _ACEOF
15549
15550
15551 cat >>confdefs.h <<_ACEOF
15552 #define SELECT_TYPE_ARG234 ($2)
15553 _ACEOF
15554
15555
15556 cat >>confdefs.h <<_ACEOF
15557 #define SELECT_TYPE_ARG5 ($3)
15558 _ACEOF
15559
15560 rm -f conftest*
15561
15562 fi
15563
15564
15565
15566 for ac_func in poll
15567 do
15568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15569 echo "$as_me:$LINENO: checking for $ac_func" >&5
15570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15571 if eval "test \"\${$as_ac_var+set}\" = set"; then
15572   echo $ECHO_N "(cached) $ECHO_C" >&6
15573 else
15574   cat >conftest.$ac_ext <<_ACEOF
15575 /* confdefs.h.  */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h.  */
15580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15582 #define $ac_func innocuous_$ac_func
15583
15584 /* System header to define __stub macros and hopefully few prototypes,
15585     which can conflict with char $ac_func (); below.
15586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15587     <limits.h> exists even on freestanding compilers.  */
15588
15589 #ifdef __STDC__
15590 # include <limits.h>
15591 #else
15592 # include <assert.h>
15593 #endif
15594
15595 #undef $ac_func
15596
15597 /* Override any gcc2 internal prototype to avoid an error.  */
15598 #ifdef __cplusplus
15599 extern "C"
15600 {
15601 #endif
15602 /* We use char because int might match the return type of a gcc2
15603    builtin and then its argument prototype would still apply.  */
15604 char $ac_func ();
15605 /* The GNU C library defines this for functions which it implements
15606     to always fail with ENOSYS.  Some functions are actually named
15607     something starting with __ and the normal name is an alias.  */
15608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15609 choke me
15610 #else
15611 char (*f) () = $ac_func;
15612 #endif
15613 #ifdef __cplusplus
15614 }
15615 #endif
15616
15617 int
15618 main ()
15619 {
15620 return f != $ac_func;
15621   ;
15622   return 0;
15623 }
15624 _ACEOF
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15627   (eval $ac_link) 2>conftest.er1
15628   ac_status=$?
15629   grep -v '^ *+' conftest.er1 >conftest.err
15630   rm -f conftest.er1
15631   cat conftest.err >&5
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); } &&
15634          { ac_try='test -z "$ac_c_werror_flag"
15635                          || test ! -s conftest.err'
15636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637   (eval $ac_try) 2>&5
15638   ac_status=$?
15639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); }; } &&
15641          { ac_try='test -s conftest$ac_exeext'
15642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643   (eval $ac_try) 2>&5
15644   ac_status=$?
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); }; }; then
15647   eval "$as_ac_var=yes"
15648 else
15649   echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15651
15652 eval "$as_ac_var=no"
15653 fi
15654 rm -f conftest.err conftest.$ac_objext \
15655       conftest$ac_exeext conftest.$ac_ext
15656 fi
15657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15659 if test `eval echo '${'$as_ac_var'}'` = yes; then
15660   cat >>confdefs.h <<_ACEOF
15661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15662 _ACEOF
15663
15664 fi
15665 done
15666
15667
15668 for ac_header in poll.h
15669 do
15670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15672   echo "$as_me:$LINENO: checking for $ac_header" >&5
15673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15675   echo $ECHO_N "(cached) $ECHO_C" >&6
15676 fi
15677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15679 else
15680   # Is the header compilable?
15681 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15683 cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h.  */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h.  */
15689 $ac_includes_default
15690 #include <$ac_header>
15691 _ACEOF
15692 rm -f conftest.$ac_objext
15693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15694   (eval $ac_compile) 2>conftest.er1
15695   ac_status=$?
15696   grep -v '^ *+' conftest.er1 >conftest.err
15697   rm -f conftest.er1
15698   cat conftest.err >&5
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); } &&
15701          { ac_try='test -z "$ac_c_werror_flag"
15702                          || test ! -s conftest.err'
15703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704   (eval $ac_try) 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); }; } &&
15708          { ac_try='test -s conftest.$ac_objext'
15709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710   (eval $ac_try) 2>&5
15711   ac_status=$?
15712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); }; }; then
15714   ac_header_compiler=yes
15715 else
15716   echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15718
15719 ac_header_compiler=no
15720 fi
15721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15723 echo "${ECHO_T}$ac_header_compiler" >&6
15724
15725 # Is the header present?
15726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15728 cat >conftest.$ac_ext <<_ACEOF
15729 /* confdefs.h.  */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h.  */
15734 #include <$ac_header>
15735 _ACEOF
15736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15737   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15738   ac_status=$?
15739   grep -v '^ *+' conftest.er1 >conftest.err
15740   rm -f conftest.er1
15741   cat conftest.err >&5
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); } >/dev/null; then
15744   if test -s conftest.err; then
15745     ac_cpp_err=$ac_c_preproc_warn_flag
15746     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15747   else
15748     ac_cpp_err=
15749   fi
15750 else
15751   ac_cpp_err=yes
15752 fi
15753 if test -z "$ac_cpp_err"; then
15754   ac_header_preproc=yes
15755 else
15756   echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15758
15759   ac_header_preproc=no
15760 fi
15761 rm -f conftest.err conftest.$ac_ext
15762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15763 echo "${ECHO_T}$ac_header_preproc" >&6
15764
15765 # So?  What about this header?
15766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15767   yes:no: )
15768     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15772     ac_header_preproc=yes
15773     ;;
15774   no:yes:* )
15775     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15777     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15778 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15779     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15781     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15782 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15785     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15787     (
15788       cat <<\_ASBOX
15789 ## --------------------------------------------- ##
15790 ## Report this to <http://www.openldap.org/its/> ##
15791 ## --------------------------------------------- ##
15792 _ASBOX
15793     ) |
15794       sed "s/^/$as_me: WARNING:     /" >&2
15795     ;;
15796 esac
15797 echo "$as_me:$LINENO: checking for $ac_header" >&5
15798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15800   echo $ECHO_N "(cached) $ECHO_C" >&6
15801 else
15802   eval "$as_ac_Header=\$ac_header_preproc"
15803 fi
15804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15806
15807 fi
15808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15809   cat >>confdefs.h <<_ACEOF
15810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15811 _ACEOF
15812
15813 fi
15814
15815 done
15816
15817
15818
15819 for ac_header in sys/epoll.h
15820 do
15821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15823   echo "$as_me:$LINENO: checking for $ac_header" >&5
15824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15826   echo $ECHO_N "(cached) $ECHO_C" >&6
15827 fi
15828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15830 else
15831   # Is the header compilable?
15832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15834 cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h.  */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h.  */
15840 $ac_includes_default
15841 #include <$ac_header>
15842 _ACEOF
15843 rm -f conftest.$ac_objext
15844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845   (eval $ac_compile) 2>conftest.er1
15846   ac_status=$?
15847   grep -v '^ *+' conftest.er1 >conftest.err
15848   rm -f conftest.er1
15849   cat conftest.err >&5
15850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851   (exit $ac_status); } &&
15852          { ac_try='test -z "$ac_c_werror_flag"
15853                          || test ! -s conftest.err'
15854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855   (eval $ac_try) 2>&5
15856   ac_status=$?
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); }; } &&
15859          { ac_try='test -s conftest.$ac_objext'
15860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861   (eval $ac_try) 2>&5
15862   ac_status=$?
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); }; }; then
15865   ac_header_compiler=yes
15866 else
15867   echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15869
15870 ac_header_compiler=no
15871 fi
15872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15874 echo "${ECHO_T}$ac_header_compiler" >&6
15875
15876 # Is the header present?
15877 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15879 cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h.  */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h.  */
15885 #include <$ac_header>
15886 _ACEOF
15887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15888   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15889   ac_status=$?
15890   grep -v '^ *+' conftest.er1 >conftest.err
15891   rm -f conftest.er1
15892   cat conftest.err >&5
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); } >/dev/null; then
15895   if test -s conftest.err; then
15896     ac_cpp_err=$ac_c_preproc_warn_flag
15897     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15898   else
15899     ac_cpp_err=
15900   fi
15901 else
15902   ac_cpp_err=yes
15903 fi
15904 if test -z "$ac_cpp_err"; then
15905   ac_header_preproc=yes
15906 else
15907   echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15909
15910   ac_header_preproc=no
15911 fi
15912 rm -f conftest.err conftest.$ac_ext
15913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15914 echo "${ECHO_T}$ac_header_preproc" >&6
15915
15916 # So?  What about this header?
15917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15918   yes:no: )
15919     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15923     ac_header_preproc=yes
15924     ;;
15925   no:yes:* )
15926     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15928     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15929 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15930     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15932     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15933 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15936     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15938     (
15939       cat <<\_ASBOX
15940 ## --------------------------------------------- ##
15941 ## Report this to <http://www.openldap.org/its/> ##
15942 ## --------------------------------------------- ##
15943 _ASBOX
15944     ) |
15945       sed "s/^/$as_me: WARNING:     /" >&2
15946     ;;
15947 esac
15948 echo "$as_me:$LINENO: checking for $ac_header" >&5
15949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15951   echo $ECHO_N "(cached) $ECHO_C" >&6
15952 else
15953   eval "$as_ac_Header=\$ac_header_preproc"
15954 fi
15955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15957
15958 fi
15959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15960   cat >>confdefs.h <<_ACEOF
15961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15962 _ACEOF
15963
15964 fi
15965
15966 done
15967
15968 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15969         echo "$as_me:$LINENO: checking for epoll system call" >&5
15970 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15971         if test "$cross_compiling" = yes; then
15972   echo "$as_me:$LINENO: result: no" >&5
15973 echo "${ECHO_T}no" >&6
15974 else
15975   cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h.  */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h.  */
15981 int main(int argc, char **argv)
15982 {
15983         int epfd = epoll_create(256);
15984         exit (epfd == -1 ? 1 : 0);
15985 }
15986 _ACEOF
15987 rm -f conftest$ac_exeext
15988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15989   (eval $ac_link) 2>&5
15990   ac_status=$?
15991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994   (eval $ac_try) 2>&5
15995   ac_status=$?
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); }; }; then
15998   echo "$as_me:$LINENO: result: yes" >&5
15999 echo "${ECHO_T}yes" >&6
16000
16001 cat >>confdefs.h <<\_ACEOF
16002 #define HAVE_EPOLL 1
16003 _ACEOF
16004
16005 else
16006   echo "$as_me: program exited with status $ac_status" >&5
16007 echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16009
16010 ( exit $ac_status )
16011 echo "$as_me:$LINENO: result: no" >&5
16012 echo "${ECHO_T}no" >&6
16013 fi
16014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16015 fi
16016 fi
16017
16018
16019 for ac_header in sys/devpoll.h
16020 do
16021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16023   echo "$as_me:$LINENO: checking for $ac_header" >&5
16024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16026   echo $ECHO_N "(cached) $ECHO_C" >&6
16027 fi
16028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16030 else
16031   # Is the header compilable?
16032 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16034 cat >conftest.$ac_ext <<_ACEOF
16035 /* confdefs.h.  */
16036 _ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h.  */
16040 $ac_includes_default
16041 #include <$ac_header>
16042 _ACEOF
16043 rm -f conftest.$ac_objext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16045   (eval $ac_compile) 2>conftest.er1
16046   ac_status=$?
16047   grep -v '^ *+' conftest.er1 >conftest.err
16048   rm -f conftest.er1
16049   cat conftest.err >&5
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); } &&
16052          { ac_try='test -z "$ac_c_werror_flag"
16053                          || test ! -s conftest.err'
16054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055   (eval $ac_try) 2>&5
16056   ac_status=$?
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); }; } &&
16059          { ac_try='test -s conftest.$ac_objext'
16060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061   (eval $ac_try) 2>&5
16062   ac_status=$?
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); }; }; then
16065   ac_header_compiler=yes
16066 else
16067   echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070 ac_header_compiler=no
16071 fi
16072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16074 echo "${ECHO_T}$ac_header_compiler" >&6
16075
16076 # Is the header present?
16077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16079 cat >conftest.$ac_ext <<_ACEOF
16080 /* confdefs.h.  */
16081 _ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h.  */
16085 #include <$ac_header>
16086 _ACEOF
16087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16089   ac_status=$?
16090   grep -v '^ *+' conftest.er1 >conftest.err
16091   rm -f conftest.er1
16092   cat conftest.err >&5
16093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094   (exit $ac_status); } >/dev/null; then
16095   if test -s conftest.err; then
16096     ac_cpp_err=$ac_c_preproc_warn_flag
16097     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16098   else
16099     ac_cpp_err=
16100   fi
16101 else
16102   ac_cpp_err=yes
16103 fi
16104 if test -z "$ac_cpp_err"; then
16105   ac_header_preproc=yes
16106 else
16107   echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16109
16110   ac_header_preproc=no
16111 fi
16112 rm -f conftest.err conftest.$ac_ext
16113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114 echo "${ECHO_T}$ac_header_preproc" >&6
16115
16116 # So?  What about this header?
16117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16118   yes:no: )
16119     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16123     ac_header_preproc=yes
16124     ;;
16125   no:yes:* )
16126     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16128     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16129 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16130     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16132     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16133 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16136     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16138     (
16139       cat <<\_ASBOX
16140 ## --------------------------------------------- ##
16141 ## Report this to <http://www.openldap.org/its/> ##
16142 ## --------------------------------------------- ##
16143 _ASBOX
16144     ) |
16145       sed "s/^/$as_me: WARNING:     /" >&2
16146     ;;
16147 esac
16148 echo "$as_me:$LINENO: checking for $ac_header" >&5
16149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16151   echo $ECHO_N "(cached) $ECHO_C" >&6
16152 else
16153   eval "$as_ac_Header=\$ac_header_preproc"
16154 fi
16155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16157
16158 fi
16159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16160   cat >>confdefs.h <<_ACEOF
16161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16162 _ACEOF
16163
16164 fi
16165
16166 done
16167
16168 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16169                 -a "${ac_cv_header_poll_h}" = yes ; \
16170 then
16171         echo "$as_me:$LINENO: checking for /dev/poll" >&5
16172 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16173         if test "$cross_compiling" = yes; then
16174   echo "$as_me:$LINENO: result: no" >&5
16175 echo "${ECHO_T}no" >&6
16176 else
16177   cat >conftest.$ac_ext <<_ACEOF
16178 /* confdefs.h.  */
16179 _ACEOF
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h.  */
16183 int main(int argc, char **argv)
16184 {
16185         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16186         exit (devpollfd == -1 ? 1 : 0);
16187 }
16188 _ACEOF
16189 rm -f conftest$ac_exeext
16190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16191   (eval $ac_link) 2>&5
16192   ac_status=$?
16193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196   (eval $ac_try) 2>&5
16197   ac_status=$?
16198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); }; }; then
16200   echo "$as_me:$LINENO: result: yes" >&5
16201 echo "${ECHO_T}yes" >&6
16202
16203 cat >>confdefs.h <<\_ACEOF
16204 #define HAVE_DEVPOLL 1
16205 _ACEOF
16206
16207 else
16208   echo "$as_me: program exited with status $ac_status" >&5
16209 echo "$as_me: failed program was:" >&5
16210 sed 's/^/| /' conftest.$ac_ext >&5
16211
16212 ( exit $ac_status )
16213 echo "$as_me:$LINENO: result: no" >&5
16214 echo "${ECHO_T}no" >&6
16215 fi
16216 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16217 fi
16218 fi
16219
16220 # strerror checks
16221 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16222 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16223 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16224   echo $ECHO_N "(cached) $ECHO_C" >&6
16225 else
16226
16227         cat >conftest.$ac_ext <<_ACEOF
16228 /* confdefs.h.  */
16229 _ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h.  */
16233
16234 #include <stdio.h>
16235 #include <sys/types.h>
16236 #include <errno.h>
16237 #ifdef _WIN32
16238 #include <stdlib.h>
16239 #endif
16240 int
16241 main ()
16242 {
16243 char *c = (char *) *sys_errlist
16244   ;
16245   return 0;
16246 }
16247 _ACEOF
16248 rm -f conftest.$ac_objext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16250   (eval $ac_compile) 2>conftest.er1
16251   ac_status=$?
16252   grep -v '^ *+' conftest.er1 >conftest.err
16253   rm -f conftest.er1
16254   cat conftest.err >&5
16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); } &&
16257          { ac_try='test -z "$ac_c_werror_flag"
16258                          || test ! -s conftest.err'
16259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260   (eval $ac_try) 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); }; } &&
16264          { ac_try='test -s conftest.$ac_objext'
16265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266   (eval $ac_try) 2>&5
16267   ac_status=$?
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); }; }; then
16270   ol_cv_dcl_sys_errlist=yes
16271         ol_cv_have_sys_errlist=yes
16272 else
16273   echo "$as_me: failed program was:" >&5
16274 sed 's/^/| /' conftest.$ac_ext >&5
16275
16276 ol_cv_dcl_sys_errlist=no
16277 fi
16278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16279 fi
16280 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16281 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16282 #
16283 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16284 if test $ol_cv_dcl_sys_errlist = no ; then
16285
16286 cat >>confdefs.h <<\_ACEOF
16287 #define DECL_SYS_ERRLIST 1
16288 _ACEOF
16289
16290
16291         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16292 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16293 if test "${ol_cv_have_sys_errlist+set}" = set; then
16294   echo $ECHO_N "(cached) $ECHO_C" >&6
16295 else
16296
16297                 cat >conftest.$ac_ext <<_ACEOF
16298 /* confdefs.h.  */
16299 _ACEOF
16300 cat confdefs.h >>conftest.$ac_ext
16301 cat >>conftest.$ac_ext <<_ACEOF
16302 /* end confdefs.h.  */
16303 #include <errno.h>
16304 int
16305 main ()
16306 {
16307 char *c = (char *) *sys_errlist
16308   ;
16309   return 0;
16310 }
16311 _ACEOF
16312 rm -f conftest.$ac_objext conftest$ac_exeext
16313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16314   (eval $ac_link) 2>conftest.er1
16315   ac_status=$?
16316   grep -v '^ *+' conftest.er1 >conftest.err
16317   rm -f conftest.er1
16318   cat conftest.err >&5
16319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320   (exit $ac_status); } &&
16321          { ac_try='test -z "$ac_c_werror_flag"
16322                          || test ! -s conftest.err'
16323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324   (eval $ac_try) 2>&5
16325   ac_status=$?
16326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); }; } &&
16328          { ac_try='test -s conftest$ac_exeext'
16329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330   (eval $ac_try) 2>&5
16331   ac_status=$?
16332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   (exit $ac_status); }; }; then
16334   ol_cv_have_sys_errlist=yes
16335 else
16336   echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16338
16339 ol_cv_have_sys_errlist=no
16340 fi
16341 rm -f conftest.err conftest.$ac_objext \
16342       conftest$ac_exeext conftest.$ac_ext
16343 fi
16344 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16345 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16346 fi
16347 if test $ol_cv_have_sys_errlist = yes ; then
16348
16349 cat >>confdefs.h <<\_ACEOF
16350 #define HAVE_SYS_ERRLIST 1
16351 _ACEOF
16352
16353 fi
16354
16355
16356 for ac_func in strerror strerror_r
16357 do
16358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16359 echo "$as_me:$LINENO: checking for $ac_func" >&5
16360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16361 if eval "test \"\${$as_ac_var+set}\" = set"; then
16362   echo $ECHO_N "(cached) $ECHO_C" >&6
16363 else
16364   cat >conftest.$ac_ext <<_ACEOF
16365 /* confdefs.h.  */
16366 _ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h.  */
16370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16372 #define $ac_func innocuous_$ac_func
16373
16374 /* System header to define __stub macros and hopefully few prototypes,
16375     which can conflict with char $ac_func (); below.
16376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16377     <limits.h> exists even on freestanding compilers.  */
16378
16379 #ifdef __STDC__
16380 # include <limits.h>
16381 #else
16382 # include <assert.h>
16383 #endif
16384
16385 #undef $ac_func
16386
16387 /* Override any gcc2 internal prototype to avoid an error.  */
16388 #ifdef __cplusplus
16389 extern "C"
16390 {
16391 #endif
16392 /* We use char because int might match the return type of a gcc2
16393    builtin and then its argument prototype would still apply.  */
16394 char $ac_func ();
16395 /* The GNU C library defines this for functions which it implements
16396     to always fail with ENOSYS.  Some functions are actually named
16397     something starting with __ and the normal name is an alias.  */
16398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16399 choke me
16400 #else
16401 char (*f) () = $ac_func;
16402 #endif
16403 #ifdef __cplusplus
16404 }
16405 #endif
16406
16407 int
16408 main ()
16409 {
16410 return f != $ac_func;
16411   ;
16412   return 0;
16413 }
16414 _ACEOF
16415 rm -f conftest.$ac_objext conftest$ac_exeext
16416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16417   (eval $ac_link) 2>conftest.er1
16418   ac_status=$?
16419   grep -v '^ *+' conftest.er1 >conftest.err
16420   rm -f conftest.er1
16421   cat conftest.err >&5
16422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423   (exit $ac_status); } &&
16424          { ac_try='test -z "$ac_c_werror_flag"
16425                          || test ! -s conftest.err'
16426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427   (eval $ac_try) 2>&5
16428   ac_status=$?
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); }; } &&
16431          { ac_try='test -s conftest$ac_exeext'
16432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433   (eval $ac_try) 2>&5
16434   ac_status=$?
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   (exit $ac_status); }; }; then
16437   eval "$as_ac_var=yes"
16438 else
16439   echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442 eval "$as_ac_var=no"
16443 fi
16444 rm -f conftest.err conftest.$ac_objext \
16445       conftest$ac_exeext conftest.$ac_ext
16446 fi
16447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16449 if test `eval echo '${'$as_ac_var'}'` = yes; then
16450   cat >>confdefs.h <<_ACEOF
16451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16452 _ACEOF
16453
16454 fi
16455 done
16456
16457 ol_cv_func_strerror_r=no
16458 if test "${ac_cv_func_strerror_r}" = yes ; then
16459         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16460 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16461 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16462   echo $ECHO_N "(cached) $ECHO_C" >&6
16463 else
16464
16465         cat >conftest.$ac_ext <<_ACEOF
16466 /* confdefs.h.  */
16467 _ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h.  */
16471 #include <string.h>
16472 _ACEOF
16473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16474   $EGREP "strerror_r" >/dev/null 2>&1; then
16475   ol_decl_strerror_r=yes
16476 else
16477   ol_decl_strerror_r=no
16478 fi
16479 rm -f conftest*
16480
16481         if test $ol_decl_strerror_r = yes ; then
16482                 cat >conftest.$ac_ext <<_ACEOF
16483 /* confdefs.h.  */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h.  */
16488 #include <string.h>
16489 int
16490 main ()
16491 {
16492    /* from autoconf 2.59 */
16493                                 char buf[100];
16494                                 char x = *strerror_r (0, buf, sizeof buf);
16495                                 char *p = strerror_r (0, buf, sizeof buf);
16496
16497   ;
16498   return 0;
16499 }
16500 _ACEOF
16501 rm -f conftest.$ac_objext
16502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16503   (eval $ac_compile) 2>conftest.er1
16504   ac_status=$?
16505   grep -v '^ *+' conftest.er1 >conftest.err
16506   rm -f conftest.er1
16507   cat conftest.err >&5
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); } &&
16510          { ac_try='test -z "$ac_c_werror_flag"
16511                          || test ! -s conftest.err'
16512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513   (eval $ac_try) 2>&5
16514   ac_status=$?
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); }; } &&
16517          { ac_try='test -s conftest.$ac_objext'
16518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519   (eval $ac_try) 2>&5
16520   ac_status=$?
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); }; }; then
16523   ol_cv_nonposix_strerror_r=yes
16524 else
16525   echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16527
16528 ol_cv_nonposix_strerror_r=no
16529 fi
16530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16531         else
16532                 if test "$cross_compiling" = yes; then
16533   ol_cv_nonposix_strerror=no
16534 else
16535   cat >conftest.$ac_ext <<_ACEOF
16536 /* confdefs.h.  */
16537 _ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h.  */
16541
16542                         main() {
16543                                 char buf[100];
16544                                 buf[0] = 0;
16545                                 strerror_r( 1, buf, sizeof buf );
16546                                 exit( buf[0] == 0 );
16547                         }
16548
16549 _ACEOF
16550 rm -f conftest$ac_exeext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16552   (eval $ac_link) 2>&5
16553   ac_status=$?
16554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557   (eval $ac_try) 2>&5
16558   ac_status=$?
16559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560   (exit $ac_status); }; }; then
16561   ol_cv_nonposix_strerror_r=yes
16562 else
16563   echo "$as_me: program exited with status $ac_status" >&5
16564 echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16566
16567 ( exit $ac_status )
16568 ol_cv_nonposix_strerror=no
16569 fi
16570 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16571 fi
16572         fi
16573
16574 fi
16575 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16576 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16577 if test $ol_cv_nonposix_strerror_r = yes ; then
16578
16579 cat >>confdefs.h <<\_ACEOF
16580 #define HAVE_NONPOSIX_STRERROR_R 1
16581 _ACEOF
16582
16583 fi
16584
16585 elif test "${ac_cv_func_strerror}" = no ; then
16586         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16587 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16588 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16589   echo $ECHO_N "(cached) $ECHO_C" >&6
16590 else
16591
16592         cat >conftest.$ac_ext <<_ACEOF
16593 /* confdefs.h.  */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h.  */
16598
16599 #include <stdio.h>
16600 #include <sys/types.h>
16601 #include <errno.h>
16602 #ifdef _WIN32
16603 #include <stdlib.h>
16604 #endif
16605 int
16606 main ()
16607 {
16608 char *c = (char *) *sys_errlist
16609   ;
16610   return 0;
16611 }
16612 _ACEOF
16613 rm -f conftest.$ac_objext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16615   (eval $ac_compile) 2>conftest.er1
16616   ac_status=$?
16617   grep -v '^ *+' conftest.er1 >conftest.err
16618   rm -f conftest.er1
16619   cat conftest.err >&5
16620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621   (exit $ac_status); } &&
16622          { ac_try='test -z "$ac_c_werror_flag"
16623                          || test ! -s conftest.err'
16624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625   (eval $ac_try) 2>&5
16626   ac_status=$?
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); }; } &&
16629          { ac_try='test -s conftest.$ac_objext'
16630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631   (eval $ac_try) 2>&5
16632   ac_status=$?
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); }; }; then
16635   ol_cv_dcl_sys_errlist=yes
16636         ol_cv_have_sys_errlist=yes
16637 else
16638   echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16640
16641 ol_cv_dcl_sys_errlist=no
16642 fi
16643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16644 fi
16645 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16646 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16647 #
16648 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16649 if test $ol_cv_dcl_sys_errlist = no ; then
16650
16651 cat >>confdefs.h <<\_ACEOF
16652 #define DECL_SYS_ERRLIST 1
16653 _ACEOF
16654
16655
16656         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16657 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16658 if test "${ol_cv_have_sys_errlist+set}" = set; then
16659   echo $ECHO_N "(cached) $ECHO_C" >&6
16660 else
16661
16662                 cat >conftest.$ac_ext <<_ACEOF
16663 /* confdefs.h.  */
16664 _ACEOF
16665 cat confdefs.h >>conftest.$ac_ext
16666 cat >>conftest.$ac_ext <<_ACEOF
16667 /* end confdefs.h.  */
16668 #include <errno.h>
16669 int
16670 main ()
16671 {
16672 char *c = (char *) *sys_errlist
16673   ;
16674   return 0;
16675 }
16676 _ACEOF
16677 rm -f conftest.$ac_objext conftest$ac_exeext
16678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16679   (eval $ac_link) 2>conftest.er1
16680   ac_status=$?
16681   grep -v '^ *+' conftest.er1 >conftest.err
16682   rm -f conftest.er1
16683   cat conftest.err >&5
16684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685   (exit $ac_status); } &&
16686          { ac_try='test -z "$ac_c_werror_flag"
16687                          || test ! -s conftest.err'
16688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16689   (eval $ac_try) 2>&5
16690   ac_status=$?
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); }; } &&
16693          { ac_try='test -s conftest$ac_exeext'
16694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695   (eval $ac_try) 2>&5
16696   ac_status=$?
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); }; }; then
16699   ol_cv_have_sys_errlist=yes
16700 else
16701   echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16703
16704 ol_cv_have_sys_errlist=no
16705 fi
16706 rm -f conftest.err conftest.$ac_objext \
16707       conftest$ac_exeext conftest.$ac_ext
16708 fi
16709 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16710 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16711 fi
16712 if test $ol_cv_have_sys_errlist = yes ; then
16713
16714 cat >>confdefs.h <<\_ACEOF
16715 #define HAVE_SYS_ERRLIST 1
16716 _ACEOF
16717
16718 fi
16719
16720 fi
16721
16722
16723
16724 for ac_header in regex.h
16725 do
16726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16728   echo "$as_me:$LINENO: checking for $ac_header" >&5
16729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16731   echo $ECHO_N "(cached) $ECHO_C" >&6
16732 fi
16733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16735 else
16736   # Is the header compilable?
16737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16739 cat >conftest.$ac_ext <<_ACEOF
16740 /* confdefs.h.  */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h.  */
16745 $ac_includes_default
16746 #include <$ac_header>
16747 _ACEOF
16748 rm -f conftest.$ac_objext
16749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16750   (eval $ac_compile) 2>conftest.er1
16751   ac_status=$?
16752   grep -v '^ *+' conftest.er1 >conftest.err
16753   rm -f conftest.er1
16754   cat conftest.err >&5
16755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756   (exit $ac_status); } &&
16757          { ac_try='test -z "$ac_c_werror_flag"
16758                          || test ! -s conftest.err'
16759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760   (eval $ac_try) 2>&5
16761   ac_status=$?
16762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763   (exit $ac_status); }; } &&
16764          { ac_try='test -s conftest.$ac_objext'
16765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766   (eval $ac_try) 2>&5
16767   ac_status=$?
16768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); }; }; then
16770   ac_header_compiler=yes
16771 else
16772   echo "$as_me: failed program was:" >&5
16773 sed 's/^/| /' conftest.$ac_ext >&5
16774
16775 ac_header_compiler=no
16776 fi
16777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16779 echo "${ECHO_T}$ac_header_compiler" >&6
16780
16781 # Is the header present?
16782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16784 cat >conftest.$ac_ext <<_ACEOF
16785 /* confdefs.h.  */
16786 _ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h.  */
16790 #include <$ac_header>
16791 _ACEOF
16792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16793   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16794   ac_status=$?
16795   grep -v '^ *+' conftest.er1 >conftest.err
16796   rm -f conftest.er1
16797   cat conftest.err >&5
16798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799   (exit $ac_status); } >/dev/null; then
16800   if test -s conftest.err; then
16801     ac_cpp_err=$ac_c_preproc_warn_flag
16802     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16803   else
16804     ac_cpp_err=
16805   fi
16806 else
16807   ac_cpp_err=yes
16808 fi
16809 if test -z "$ac_cpp_err"; then
16810   ac_header_preproc=yes
16811 else
16812   echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16814
16815   ac_header_preproc=no
16816 fi
16817 rm -f conftest.err conftest.$ac_ext
16818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16819 echo "${ECHO_T}$ac_header_preproc" >&6
16820
16821 # So?  What about this header?
16822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16823   yes:no: )
16824     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16828     ac_header_preproc=yes
16829     ;;
16830   no:yes:* )
16831     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16833     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16834 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16835     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16837     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16838 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16841     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16843     (
16844       cat <<\_ASBOX
16845 ## --------------------------------------------- ##
16846 ## Report this to <http://www.openldap.org/its/> ##
16847 ## --------------------------------------------- ##
16848 _ASBOX
16849     ) |
16850       sed "s/^/$as_me: WARNING:     /" >&2
16851     ;;
16852 esac
16853 echo "$as_me:$LINENO: checking for $ac_header" >&5
16854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16856   echo $ECHO_N "(cached) $ECHO_C" >&6
16857 else
16858   eval "$as_ac_Header=\$ac_header_preproc"
16859 fi
16860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16862
16863 fi
16864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16865   cat >>confdefs.h <<_ACEOF
16866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16867 _ACEOF
16868
16869 fi
16870
16871 done
16872
16873 if test "$ac_cv_header_regex_h" != yes ; then
16874         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16875 echo "$as_me: error: POSIX regex.h required." >&2;}
16876    { (exit 1); exit 1; }; }
16877 fi
16878 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16879 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16880 if test "${ac_cv_search_regfree+set}" = set; then
16881   echo $ECHO_N "(cached) $ECHO_C" >&6
16882 else
16883   ac_func_search_save_LIBS=$LIBS
16884 ac_cv_search_regfree=no
16885 cat >conftest.$ac_ext <<_ACEOF
16886 /* confdefs.h.  */
16887 _ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h.  */
16891
16892 /* Override any gcc2 internal prototype to avoid an error.  */
16893 #ifdef __cplusplus
16894 extern "C"
16895 #endif
16896 /* We use char because int might match the return type of a gcc2
16897    builtin and then its argument prototype would still apply.  */
16898 char regfree ();
16899 int
16900 main ()
16901 {
16902 regfree ();
16903   ;
16904   return 0;
16905 }
16906 _ACEOF
16907 rm -f conftest.$ac_objext conftest$ac_exeext
16908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16909   (eval $ac_link) 2>conftest.er1
16910   ac_status=$?
16911   grep -v '^ *+' conftest.er1 >conftest.err
16912   rm -f conftest.er1
16913   cat conftest.err >&5
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); } &&
16916          { ac_try='test -z "$ac_c_werror_flag"
16917                          || test ! -s conftest.err'
16918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919   (eval $ac_try) 2>&5
16920   ac_status=$?
16921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); }; } &&
16923          { ac_try='test -s conftest$ac_exeext'
16924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925   (eval $ac_try) 2>&5
16926   ac_status=$?
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); }; }; then
16929   ac_cv_search_regfree="none required"
16930 else
16931   echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16933
16934 fi
16935 rm -f conftest.err conftest.$ac_objext \
16936       conftest$ac_exeext conftest.$ac_ext
16937 if test "$ac_cv_search_regfree" = no; then
16938   for ac_lib in regex gnuregex; do
16939     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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="-l$ac_lib"
16985 break
16986 else
16987   echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16989
16990 fi
16991 rm -f conftest.err conftest.$ac_objext \
16992       conftest$ac_exeext conftest.$ac_ext
16993   done
16994 fi
16995 LIBS=$ac_func_search_save_LIBS
16996 fi
16997 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16998 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16999 if test "$ac_cv_search_regfree" != no; then
17000   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
17001   :
17002 else
17003   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17004 echo "$as_me: error: POSIX regex required." >&2;}
17005    { (exit 1); exit 1; }; }
17006 fi
17007
17008
17009
17010 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17011 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
17012 if test "${ol_cv_c_posix_regex+set}" = set; then
17013   echo $ECHO_N "(cached) $ECHO_C" >&6
17014 else
17015
17016         if test "$cross_compiling" = yes; then
17017   ol_cv_c_posix_regex=cross
17018 else
17019   cat >conftest.$ac_ext <<_ACEOF
17020 /* confdefs.h.  */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h.  */
17025
17026 #include <sys/types.h>
17027 #include <regex.h>
17028 static char *pattern, *string;
17029 main()
17030 {
17031         int rc;
17032         regex_t re;
17033
17034         pattern = "^A";
17035
17036         if(regcomp(&re, pattern, 0)) {
17037                 return -1;
17038         }
17039
17040         string = "ALL MATCH";
17041
17042         rc = regexec(&re, string, 0, (void*)0, 0);
17043
17044         regfree(&re);
17045
17046         return rc;
17047 }
17048 _ACEOF
17049 rm -f conftest$ac_exeext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17051   (eval $ac_link) 2>&5
17052   ac_status=$?
17053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056   (eval $ac_try) 2>&5
17057   ac_status=$?
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); }; }; then
17060   ol_cv_c_posix_regex=yes
17061 else
17062   echo "$as_me: program exited with status $ac_status" >&5
17063 echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17065
17066 ( exit $ac_status )
17067 ol_cv_c_posix_regex=no
17068 fi
17069 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17070 fi
17071 fi
17072 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17073 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
17074
17075 if test "$ol_cv_c_posix_regex" = no ; then
17076         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17077 echo "$as_me: error: broken POSIX regex!" >&2;}
17078    { (exit 1); exit 1; }; }
17079 fi
17080
17081
17082 have_uuid=no
17083
17084 for ac_header in sys/uuid.h
17085 do
17086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17088   echo "$as_me:$LINENO: checking for $ac_header" >&5
17089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17091   echo $ECHO_N "(cached) $ECHO_C" >&6
17092 fi
17093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17095 else
17096   # Is the header compilable?
17097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17099 cat >conftest.$ac_ext <<_ACEOF
17100 /* confdefs.h.  */
17101 _ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h.  */
17105 $ac_includes_default
17106 #include <$ac_header>
17107 _ACEOF
17108 rm -f conftest.$ac_objext
17109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17110   (eval $ac_compile) 2>conftest.er1
17111   ac_status=$?
17112   grep -v '^ *+' conftest.er1 >conftest.err
17113   rm -f conftest.er1
17114   cat conftest.err >&5
17115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116   (exit $ac_status); } &&
17117          { ac_try='test -z "$ac_c_werror_flag"
17118                          || test ! -s conftest.err'
17119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120   (eval $ac_try) 2>&5
17121   ac_status=$?
17122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123   (exit $ac_status); }; } &&
17124          { ac_try='test -s conftest.$ac_objext'
17125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126   (eval $ac_try) 2>&5
17127   ac_status=$?
17128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); }; }; then
17130   ac_header_compiler=yes
17131 else
17132   echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17134
17135 ac_header_compiler=no
17136 fi
17137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17139 echo "${ECHO_T}$ac_header_compiler" >&6
17140
17141 # Is the header present?
17142 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17144 cat >conftest.$ac_ext <<_ACEOF
17145 /* confdefs.h.  */
17146 _ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h.  */
17150 #include <$ac_header>
17151 _ACEOF
17152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17153   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17154   ac_status=$?
17155   grep -v '^ *+' conftest.er1 >conftest.err
17156   rm -f conftest.er1
17157   cat conftest.err >&5
17158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159   (exit $ac_status); } >/dev/null; then
17160   if test -s conftest.err; then
17161     ac_cpp_err=$ac_c_preproc_warn_flag
17162     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17163   else
17164     ac_cpp_err=
17165   fi
17166 else
17167   ac_cpp_err=yes
17168 fi
17169 if test -z "$ac_cpp_err"; then
17170   ac_header_preproc=yes
17171 else
17172   echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17174
17175   ac_header_preproc=no
17176 fi
17177 rm -f conftest.err conftest.$ac_ext
17178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17179 echo "${ECHO_T}$ac_header_preproc" >&6
17180
17181 # So?  What about this header?
17182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17183   yes:no: )
17184     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17188     ac_header_preproc=yes
17189     ;;
17190   no:yes:* )
17191     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17193     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17194 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17195     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17197     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17198 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17201     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17203     (
17204       cat <<\_ASBOX
17205 ## --------------------------------------------- ##
17206 ## Report this to <http://www.openldap.org/its/> ##
17207 ## --------------------------------------------- ##
17208 _ASBOX
17209     ) |
17210       sed "s/^/$as_me: WARNING:     /" >&2
17211     ;;
17212 esac
17213 echo "$as_me:$LINENO: checking for $ac_header" >&5
17214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17216   echo $ECHO_N "(cached) $ECHO_C" >&6
17217 else
17218   eval "$as_ac_Header=\$ac_header_preproc"
17219 fi
17220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17222
17223 fi
17224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17225   cat >>confdefs.h <<_ACEOF
17226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17227 _ACEOF
17228
17229 fi
17230
17231 done
17232
17233 if test $ac_cv_header_sys_uuid_h = yes ; then
17234         save_LIBS="$LIBS"
17235         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17236 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17237 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17238   echo $ECHO_N "(cached) $ECHO_C" >&6
17239 else
17240   ac_func_search_save_LIBS=$LIBS
17241 ac_cv_search_uuid_to_str=no
17242 cat >conftest.$ac_ext <<_ACEOF
17243 /* confdefs.h.  */
17244 _ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h.  */
17248
17249 /* Override any gcc2 internal prototype to avoid an error.  */
17250 #ifdef __cplusplus
17251 extern "C"
17252 #endif
17253 /* We use char because int might match the return type of a gcc2
17254    builtin and then its argument prototype would still apply.  */
17255 char uuid_to_str ();
17256 int
17257 main ()
17258 {
17259 uuid_to_str ();
17260   ;
17261   return 0;
17262 }
17263 _ACEOF
17264 rm -f conftest.$ac_objext conftest$ac_exeext
17265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17266   (eval $ac_link) 2>conftest.er1
17267   ac_status=$?
17268   grep -v '^ *+' conftest.er1 >conftest.err
17269   rm -f conftest.er1
17270   cat conftest.err >&5
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); } &&
17273          { ac_try='test -z "$ac_c_werror_flag"
17274                          || test ! -s conftest.err'
17275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17276   (eval $ac_try) 2>&5
17277   ac_status=$?
17278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279   (exit $ac_status); }; } &&
17280          { ac_try='test -s conftest$ac_exeext'
17281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282   (eval $ac_try) 2>&5
17283   ac_status=$?
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); }; }; then
17286   ac_cv_search_uuid_to_str="none required"
17287 else
17288   echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17290
17291 fi
17292 rm -f conftest.err conftest.$ac_objext \
17293       conftest$ac_exeext conftest.$ac_ext
17294 if test "$ac_cv_search_uuid_to_str" = no; then
17295   for ac_lib in uuid; do
17296     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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="-l$ac_lib"
17342 break
17343 else
17344   echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17346
17347 fi
17348 rm -f conftest.err conftest.$ac_objext \
17349       conftest$ac_exeext conftest.$ac_ext
17350   done
17351 fi
17352 LIBS=$ac_func_search_save_LIBS
17353 fi
17354 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17355 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17356 if test "$ac_cv_search_uuid_to_str" != no; then
17357   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17358   have_uuid=yes
17359 else
17360   :
17361 fi
17362
17363         LIBS="$save_LIBS"
17364
17365         if test have_uuid = yes ; then
17366
17367 cat >>confdefs.h <<\_ACEOF
17368 #define HAVE_UUID_TO_STR 1
17369 _ACEOF
17370
17371
17372                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17373                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17374         fi
17375 fi
17376
17377 if test $have_uuid = no ; then
17378         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17379 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17380         save_LIBS="$LIBS"
17381         LIBS="$LIBS -lrpcrt4"
17382         cat >conftest.$ac_ext <<_ACEOF
17383 /* confdefs.h.  */
17384 _ACEOF
17385 cat confdefs.h >>conftest.$ac_ext
17386 cat >>conftest.$ac_ext <<_ACEOF
17387 /* end confdefs.h.  */
17388
17389                 int __stdcall UuidCreate(void *);
17390                 int __stdcall UuidToStringA(void *,void **);
17391
17392 int
17393 main ()
17394 {
17395
17396                 UuidCreate(0);
17397                 UuidToStringA(0,0);
17398
17399   ;
17400   return 0;
17401 }
17402 _ACEOF
17403 rm -f conftest.$ac_objext conftest$ac_exeext
17404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17405   (eval $ac_link) 2>conftest.er1
17406   ac_status=$?
17407   grep -v '^ *+' conftest.er1 >conftest.err
17408   rm -f conftest.er1
17409   cat conftest.err >&5
17410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411   (exit $ac_status); } &&
17412          { ac_try='test -z "$ac_c_werror_flag"
17413                          || test ! -s conftest.err'
17414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17415   (eval $ac_try) 2>&5
17416   ac_status=$?
17417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418   (exit $ac_status); }; } &&
17419          { ac_try='test -s conftest$ac_exeext'
17420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421   (eval $ac_try) 2>&5
17422   ac_status=$?
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); }; }; then
17425   need_rpcrt=yes
17426 else
17427   echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.$ac_ext >&5
17429
17430 need_rpcrt=no
17431 fi
17432 rm -f conftest.err conftest.$ac_objext \
17433       conftest$ac_exeext conftest.$ac_ext
17434         if test $need_rpcrt = yes; then
17435                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17436         fi
17437         LIBS="$save_LIBS"
17438         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17439 echo "${ECHO_T}$need_rpcrt" >&6
17440 fi
17441
17442 ol_cv_lib_resolver=no
17443 if test $ol_cv_lib_resolver = no ; then
17444         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17445 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17446 if test "${ol_cv_resolver_none+set}" = set; then
17447   echo $ECHO_N "(cached) $ECHO_C" >&6
17448 else
17449
17450         ol_RESOLVER_LIB=
17451         ol_LIBS=$LIBS
17452         LIBS="$ol_RESOLVER_LIB $LIBS"
17453
17454         cat >conftest.$ac_ext <<_ACEOF
17455 /* confdefs.h.  */
17456 _ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h.  */
17460
17461 #ifdef HAVE_SYS_TYPES_H
17462 #       include <sys/types.h>
17463 #endif
17464 #include <netinet/in.h>
17465 #ifdef HAVE_ARPA_NAMESER_H
17466 #       include <arpa/nameser.h>
17467 #endif
17468 #ifdef HAVE_RESOLV_H
17469 #       include <resolv.h>
17470 #endif
17471
17472 int
17473 main ()
17474 {
17475 {
17476         int len, status;
17477         char *request = NULL;
17478         unsigned char reply[64*1024];
17479         unsigned char host[64*1024];
17480         unsigned char *p;
17481
17482 #ifdef NS_HFIXEDSZ
17483         /* Bind 8/9 interface */
17484         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17485 #else
17486         /* Bind 4 interface */
17487 # ifndef T_SRV
17488 #  define T_SRV 33
17489 # endif
17490         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17491 #endif
17492         p = reply;
17493 #ifdef NS_HFIXEDSZ
17494         /* Bind 8/9 interface */
17495         p += NS_HFIXEDSZ;
17496 #elif defined(HFIXEDSZ)
17497         /* Bind 4 interface w/ HFIXEDSZ */
17498         p += HFIXEDSZ;
17499 #else
17500         /* Bind 4 interface w/o HFIXEDSZ */
17501         p += sizeof(HEADER);
17502 #endif
17503         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17504 }
17505   ;
17506   return 0;
17507 }
17508 _ACEOF
17509 rm -f conftest.$ac_objext conftest$ac_exeext
17510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17511   (eval $ac_link) 2>conftest.er1
17512   ac_status=$?
17513   grep -v '^ *+' conftest.er1 >conftest.err
17514   rm -f conftest.er1
17515   cat conftest.err >&5
17516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517   (exit $ac_status); } &&
17518          { ac_try='test -z "$ac_c_werror_flag"
17519                          || test ! -s conftest.err'
17520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17521   (eval $ac_try) 2>&5
17522   ac_status=$?
17523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524   (exit $ac_status); }; } &&
17525          { ac_try='test -s conftest$ac_exeext'
17526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17527   (eval $ac_try) 2>&5
17528   ac_status=$?
17529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); }; }; then
17531   ol_cv_resolver_none=yes
17532 else
17533   echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17535
17536 ol_cv_resolver_none=no
17537 fi
17538 rm -f conftest.err conftest.$ac_objext \
17539       conftest$ac_exeext conftest.$ac_ext
17540
17541         LIBS="$ol_LIBS"
17542
17543 fi
17544 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17545 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17546
17547         if test $ol_cv_resolver_none = yes ; then
17548                 ol_cv_lib_resolver=yes
17549         fi
17550 fi
17551
17552 if test $ol_cv_lib_resolver = no ; then
17553         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17554 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17555 if test "${ol_cv_resolver_resolv+set}" = set; then
17556   echo $ECHO_N "(cached) $ECHO_C" >&6
17557 else
17558
17559         ol_RESOLVER_LIB=-lresolv
17560         ol_LIBS=$LIBS
17561         LIBS="$ol_RESOLVER_LIB $LIBS"
17562
17563         cat >conftest.$ac_ext <<_ACEOF
17564 /* confdefs.h.  */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h.  */
17569
17570 #ifdef HAVE_SYS_TYPES_H
17571 #       include <sys/types.h>
17572 #endif
17573 #include <netinet/in.h>
17574 #ifdef HAVE_ARPA_NAMESER_H
17575 #       include <arpa/nameser.h>
17576 #endif
17577 #ifdef HAVE_RESOLV_H
17578 #       include <resolv.h>
17579 #endif
17580
17581 int
17582 main ()
17583 {
17584 {
17585         int len, status;
17586         char *request = NULL;
17587         unsigned char reply[64*1024];
17588         unsigned char host[64*1024];
17589         unsigned char *p;
17590
17591 #ifdef NS_HFIXEDSZ
17592         /* Bind 8/9 interface */
17593         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17594 #else
17595         /* Bind 4 interface */
17596 # ifndef T_SRV
17597 #  define T_SRV 33
17598 # endif
17599         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17600 #endif
17601         p = reply;
17602 #ifdef NS_HFIXEDSZ
17603         /* Bind 8/9 interface */
17604         p += NS_HFIXEDSZ;
17605 #elif defined(HFIXEDSZ)
17606         /* Bind 4 interface w/ HFIXEDSZ */
17607         p += HFIXEDSZ;
17608 #else
17609         /* Bind 4 interface w/o HFIXEDSZ */
17610         p += sizeof(HEADER);
17611 #endif
17612         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17613 }
17614   ;
17615   return 0;
17616 }
17617 _ACEOF
17618 rm -f conftest.$ac_objext conftest$ac_exeext
17619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17620   (eval $ac_link) 2>conftest.er1
17621   ac_status=$?
17622   grep -v '^ *+' conftest.er1 >conftest.err
17623   rm -f conftest.er1
17624   cat conftest.err >&5
17625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626   (exit $ac_status); } &&
17627          { ac_try='test -z "$ac_c_werror_flag"
17628                          || test ! -s conftest.err'
17629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630   (eval $ac_try) 2>&5
17631   ac_status=$?
17632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); }; } &&
17634          { ac_try='test -s conftest$ac_exeext'
17635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636   (eval $ac_try) 2>&5
17637   ac_status=$?
17638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639   (exit $ac_status); }; }; then
17640   ol_cv_resolver_resolv=yes
17641 else
17642   echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17644
17645 ol_cv_resolver_resolv=no
17646 fi
17647 rm -f conftest.err conftest.$ac_objext \
17648       conftest$ac_exeext conftest.$ac_ext
17649
17650         LIBS="$ol_LIBS"
17651
17652 fi
17653 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17654 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17655
17656         if test $ol_cv_resolver_resolv = yes ; then
17657                 ol_cv_lib_resolver=-lresolv
17658         fi
17659 fi
17660
17661 if test $ol_cv_lib_resolver = no ; then
17662         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17663 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17664 if test "${ol_cv_resolver_bind+set}" = set; then
17665   echo $ECHO_N "(cached) $ECHO_C" >&6
17666 else
17667
17668         ol_RESOLVER_LIB=-lbind
17669         ol_LIBS=$LIBS
17670         LIBS="$ol_RESOLVER_LIB $LIBS"
17671
17672         cat >conftest.$ac_ext <<_ACEOF
17673 /* confdefs.h.  */
17674 _ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h.  */
17678
17679 #ifdef HAVE_SYS_TYPES_H
17680 #       include <sys/types.h>
17681 #endif
17682 #include <netinet/in.h>
17683 #ifdef HAVE_ARPA_NAMESER_H
17684 #       include <arpa/nameser.h>
17685 #endif
17686 #ifdef HAVE_RESOLV_H
17687 #       include <resolv.h>
17688 #endif
17689
17690 int
17691 main ()
17692 {
17693 {
17694         int len, status;
17695         char *request = NULL;
17696         unsigned char reply[64*1024];
17697         unsigned char host[64*1024];
17698         unsigned char *p;
17699
17700 #ifdef NS_HFIXEDSZ
17701         /* Bind 8/9 interface */
17702         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17703 #else
17704         /* Bind 4 interface */
17705 # ifndef T_SRV
17706 #  define T_SRV 33
17707 # endif
17708         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17709 #endif
17710         p = reply;
17711 #ifdef NS_HFIXEDSZ
17712         /* Bind 8/9 interface */
17713         p += NS_HFIXEDSZ;
17714 #elif defined(HFIXEDSZ)
17715         /* Bind 4 interface w/ HFIXEDSZ */
17716         p += HFIXEDSZ;
17717 #else
17718         /* Bind 4 interface w/o HFIXEDSZ */
17719         p += sizeof(HEADER);
17720 #endif
17721         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17722 }
17723   ;
17724   return 0;
17725 }
17726 _ACEOF
17727 rm -f conftest.$ac_objext conftest$ac_exeext
17728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17729   (eval $ac_link) 2>conftest.er1
17730   ac_status=$?
17731   grep -v '^ *+' conftest.er1 >conftest.err
17732   rm -f conftest.er1
17733   cat conftest.err >&5
17734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735   (exit $ac_status); } &&
17736          { ac_try='test -z "$ac_c_werror_flag"
17737                          || test ! -s conftest.err'
17738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739   (eval $ac_try) 2>&5
17740   ac_status=$?
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); }; } &&
17743          { ac_try='test -s conftest$ac_exeext'
17744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745   (eval $ac_try) 2>&5
17746   ac_status=$?
17747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748   (exit $ac_status); }; }; then
17749   ol_cv_resolver_bind=yes
17750 else
17751   echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17753
17754 ol_cv_resolver_bind=no
17755 fi
17756 rm -f conftest.err conftest.$ac_objext \
17757       conftest$ac_exeext conftest.$ac_ext
17758
17759         LIBS="$ol_LIBS"
17760
17761 fi
17762 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17763 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17764
17765         if test $ol_cv_resolver_bind = yes ; then
17766                 ol_cv_lib_resolver=-lbind
17767         fi
17768 fi
17769
17770
17771
17772 ol_link_dnssrv=no
17773 if test "$ol_cv_lib_resolver" != no ; then
17774
17775 cat >>confdefs.h <<\_ACEOF
17776 #define HAVE_RES_QUERY 1
17777 _ACEOF
17778
17779
17780         if test "$ol_enable_dnssrv" != no ; then
17781                 ol_link_dnssrv=yes
17782         fi
17783
17784         if test "$ol_cv_lib_resolver" != yes ; then
17785                 LIBS="$ol_cv_lib_resolver $LIBS"
17786         fi
17787 fi
17788
17789 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17790         if test "$ol_link_dnssrv" = no ; then
17791                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17792 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17793    { (exit 1); exit 1; }; }
17794         fi
17795 else
17796         ol_enable_dnssrv=no
17797 fi
17798
17799
17800 for ac_func in hstrerror
17801 do
17802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17803 echo "$as_me:$LINENO: checking for $ac_func" >&5
17804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17805 if eval "test \"\${$as_ac_var+set}\" = set"; then
17806   echo $ECHO_N "(cached) $ECHO_C" >&6
17807 else
17808   cat >conftest.$ac_ext <<_ACEOF
17809 /* confdefs.h.  */
17810 _ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h.  */
17814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17816 #define $ac_func innocuous_$ac_func
17817
17818 /* System header to define __stub macros and hopefully few prototypes,
17819     which can conflict with char $ac_func (); below.
17820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17821     <limits.h> exists even on freestanding compilers.  */
17822
17823 #ifdef __STDC__
17824 # include <limits.h>
17825 #else
17826 # include <assert.h>
17827 #endif
17828
17829 #undef $ac_func
17830
17831 /* Override any gcc2 internal prototype to avoid an error.  */
17832 #ifdef __cplusplus
17833 extern "C"
17834 {
17835 #endif
17836 /* We use char because int might match the return type of a gcc2
17837    builtin and then its argument prototype would still apply.  */
17838 char $ac_func ();
17839 /* The GNU C library defines this for functions which it implements
17840     to always fail with ENOSYS.  Some functions are actually named
17841     something starting with __ and the normal name is an alias.  */
17842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17843 choke me
17844 #else
17845 char (*f) () = $ac_func;
17846 #endif
17847 #ifdef __cplusplus
17848 }
17849 #endif
17850
17851 int
17852 main ()
17853 {
17854 return f != $ac_func;
17855   ;
17856   return 0;
17857 }
17858 _ACEOF
17859 rm -f conftest.$ac_objext conftest$ac_exeext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17861   (eval $ac_link) 2>conftest.er1
17862   ac_status=$?
17863   grep -v '^ *+' conftest.er1 >conftest.err
17864   rm -f conftest.er1
17865   cat conftest.err >&5
17866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); } &&
17868          { ac_try='test -z "$ac_c_werror_flag"
17869                          || test ! -s conftest.err'
17870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871   (eval $ac_try) 2>&5
17872   ac_status=$?
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); }; } &&
17875          { ac_try='test -s conftest$ac_exeext'
17876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877   (eval $ac_try) 2>&5
17878   ac_status=$?
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); }; }; then
17881   eval "$as_ac_var=yes"
17882 else
17883   echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886 eval "$as_ac_var=no"
17887 fi
17888 rm -f conftest.err conftest.$ac_objext \
17889       conftest$ac_exeext conftest.$ac_ext
17890 fi
17891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17893 if test `eval echo '${'$as_ac_var'}'` = yes; then
17894   cat >>confdefs.h <<_ACEOF
17895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17896 _ACEOF
17897
17898 fi
17899 done
17900
17901
17902
17903
17904
17905
17906 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17907 do
17908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17909 echo "$as_me:$LINENO: checking for $ac_func" >&5
17910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17911 if eval "test \"\${$as_ac_var+set}\" = set"; then
17912   echo $ECHO_N "(cached) $ECHO_C" >&6
17913 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17922 #define $ac_func innocuous_$ac_func
17923
17924 /* System header to define __stub macros and hopefully few prototypes,
17925     which can conflict with char $ac_func (); below.
17926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17927     <limits.h> exists even on freestanding compilers.  */
17928
17929 #ifdef __STDC__
17930 # include <limits.h>
17931 #else
17932 # include <assert.h>
17933 #endif
17934
17935 #undef $ac_func
17936
17937 /* Override any gcc2 internal prototype to avoid an error.  */
17938 #ifdef __cplusplus
17939 extern "C"
17940 {
17941 #endif
17942 /* We use char because int might match the return type of a gcc2
17943    builtin and then its argument prototype would still apply.  */
17944 char $ac_func ();
17945 /* The GNU C library defines this for functions which it implements
17946     to always fail with ENOSYS.  Some functions are actually named
17947     something starting with __ and the normal name is an alias.  */
17948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17949 choke me
17950 #else
17951 char (*f) () = $ac_func;
17952 #endif
17953 #ifdef __cplusplus
17954 }
17955 #endif
17956
17957 int
17958 main ()
17959 {
17960 return f != $ac_func;
17961   ;
17962   return 0;
17963 }
17964 _ACEOF
17965 rm -f conftest.$ac_objext conftest$ac_exeext
17966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17967   (eval $ac_link) 2>conftest.er1
17968   ac_status=$?
17969   grep -v '^ *+' conftest.er1 >conftest.err
17970   rm -f conftest.er1
17971   cat conftest.err >&5
17972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973   (exit $ac_status); } &&
17974          { ac_try='test -z "$ac_c_werror_flag"
17975                          || test ! -s conftest.err'
17976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977   (eval $ac_try) 2>&5
17978   ac_status=$?
17979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980   (exit $ac_status); }; } &&
17981          { ac_try='test -s conftest$ac_exeext'
17982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983   (eval $ac_try) 2>&5
17984   ac_status=$?
17985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986   (exit $ac_status); }; }; then
17987   eval "$as_ac_var=yes"
17988 else
17989   echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17991
17992 eval "$as_ac_var=no"
17993 fi
17994 rm -f conftest.err conftest.$ac_objext \
17995       conftest$ac_exeext conftest.$ac_ext
17996 fi
17997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17999 if test `eval echo '${'$as_ac_var'}'` = yes; then
18000   cat >>confdefs.h <<_ACEOF
18001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18002 _ACEOF
18003
18004 fi
18005 done
18006
18007
18008 ol_link_ipv6=no
18009 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18010         if test $ol_enable_ipv6 = yes ; then
18011                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18012 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18013    { (exit 1); exit 1; }; }
18014         fi
18015 elif test $ol_enable_ipv6 != no ; then
18016         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18017 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18018 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18019   echo $ECHO_N "(cached) $ECHO_C" >&6
18020 else
18021
18022                 cat >conftest.$ac_ext <<_ACEOF
18023 /* confdefs.h.  */
18024 _ACEOF
18025 cat confdefs.h >>conftest.$ac_ext
18026 cat >>conftest.$ac_ext <<_ACEOF
18027 /* end confdefs.h.  */
18028
18029 #                       include <netinet/in.h>
18030 #                       ifdef INET6_ADDRSTRLEN
18031                                 __has_inet6_addrstrlen__;
18032 #                       endif
18033
18034 _ACEOF
18035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18036   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18037   ol_cv_inet6_addrstrlen=yes
18038 else
18039   ol_cv_inet6_addrstrlen=no
18040 fi
18041 rm -f conftest*
18042
18043 fi
18044 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18045 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18046
18047
18048         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18049 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18050 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18051   echo $ECHO_N "(cached) $ECHO_C" >&6
18052 else
18053
18054                 cat >conftest.$ac_ext <<_ACEOF
18055 /* confdefs.h.  */
18056 _ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h.  */
18060
18061 #include <sys/types.h>
18062 #include <sys/socket.h>
18063
18064 int
18065 main ()
18066 {
18067
18068                         struct sockaddr_storage ss;
18069
18070   ;
18071   return 0;
18072 }
18073 _ACEOF
18074 rm -f conftest.$ac_objext
18075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18076   (eval $ac_compile) 2>conftest.er1
18077   ac_status=$?
18078   grep -v '^ *+' conftest.er1 >conftest.err
18079   rm -f conftest.er1
18080   cat conftest.err >&5
18081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082   (exit $ac_status); } &&
18083          { ac_try='test -z "$ac_c_werror_flag"
18084                          || test ! -s conftest.err'
18085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086   (eval $ac_try) 2>&5
18087   ac_status=$?
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); }; } &&
18090          { ac_try='test -s conftest.$ac_objext'
18091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092   (eval $ac_try) 2>&5
18093   ac_status=$?
18094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095   (exit $ac_status); }; }; then
18096   ol_cv_struct_sockaddr_storage=yes
18097 else
18098   echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18100
18101 ol_cv_struct_sockaddr_storage=no
18102 fi
18103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18104 fi
18105 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18106 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18107
18108         if test $ol_cv_inet6_addrstrlen = yes &&
18109            test $ol_cv_struct_sockaddr_storage = yes ; then
18110                 ol_link_ipv6=yes
18111         elif test $ol_enable_ipv6 = yes &&
18112              test $ol_cv_inet6_addrstrlen = no ; then
18113                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18114 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18115    { (exit 1); exit 1; }; }
18116         elif test $ol_enable_ipv6 = yes &&
18117              test $ol_cv_struct_sockaddr_storage = no ; then
18118                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18119 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18120    { (exit 1); exit 1; }; }
18121         fi
18122 fi
18123
18124 if test $ol_enable_local != no ; then
18125
18126 for ac_header in sys/un.h
18127 do
18128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18130   echo "$as_me:$LINENO: checking for $ac_header" >&5
18131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18133   echo $ECHO_N "(cached) $ECHO_C" >&6
18134 fi
18135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18137 else
18138   # Is the header compilable?
18139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18141 cat >conftest.$ac_ext <<_ACEOF
18142 /* confdefs.h.  */
18143 _ACEOF
18144 cat confdefs.h >>conftest.$ac_ext
18145 cat >>conftest.$ac_ext <<_ACEOF
18146 /* end confdefs.h.  */
18147 $ac_includes_default
18148 #include <$ac_header>
18149 _ACEOF
18150 rm -f conftest.$ac_objext
18151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18152   (eval $ac_compile) 2>conftest.er1
18153   ac_status=$?
18154   grep -v '^ *+' conftest.er1 >conftest.err
18155   rm -f conftest.er1
18156   cat conftest.err >&5
18157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158   (exit $ac_status); } &&
18159          { ac_try='test -z "$ac_c_werror_flag"
18160                          || test ! -s conftest.err'
18161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162   (eval $ac_try) 2>&5
18163   ac_status=$?
18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); }; } &&
18166          { ac_try='test -s conftest.$ac_objext'
18167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168   (eval $ac_try) 2>&5
18169   ac_status=$?
18170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171   (exit $ac_status); }; }; then
18172   ac_header_compiler=yes
18173 else
18174   echo "$as_me: failed program was:" >&5
18175 sed 's/^/| /' conftest.$ac_ext >&5
18176
18177 ac_header_compiler=no
18178 fi
18179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18181 echo "${ECHO_T}$ac_header_compiler" >&6
18182
18183 # Is the header present?
18184 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18186 cat >conftest.$ac_ext <<_ACEOF
18187 /* confdefs.h.  */
18188 _ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h.  */
18192 #include <$ac_header>
18193 _ACEOF
18194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18196   ac_status=$?
18197   grep -v '^ *+' conftest.er1 >conftest.err
18198   rm -f conftest.er1
18199   cat conftest.err >&5
18200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201   (exit $ac_status); } >/dev/null; then
18202   if test -s conftest.err; then
18203     ac_cpp_err=$ac_c_preproc_warn_flag
18204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18205   else
18206     ac_cpp_err=
18207   fi
18208 else
18209   ac_cpp_err=yes
18210 fi
18211 if test -z "$ac_cpp_err"; then
18212   ac_header_preproc=yes
18213 else
18214   echo "$as_me: failed program was:" >&5
18215 sed 's/^/| /' conftest.$ac_ext >&5
18216
18217   ac_header_preproc=no
18218 fi
18219 rm -f conftest.err conftest.$ac_ext
18220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18221 echo "${ECHO_T}$ac_header_preproc" >&6
18222
18223 # So?  What about this header?
18224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18225   yes:no: )
18226     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18230     ac_header_preproc=yes
18231     ;;
18232   no:yes:* )
18233     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18235     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18236 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18237     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18239     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18240 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18243     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18245     (
18246       cat <<\_ASBOX
18247 ## --------------------------------------------- ##
18248 ## Report this to <http://www.openldap.org/its/> ##
18249 ## --------------------------------------------- ##
18250 _ASBOX
18251     ) |
18252       sed "s/^/$as_me: WARNING:     /" >&2
18253     ;;
18254 esac
18255 echo "$as_me:$LINENO: checking for $ac_header" >&5
18256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18258   echo $ECHO_N "(cached) $ECHO_C" >&6
18259 else
18260   eval "$as_ac_Header=\$ac_header_preproc"
18261 fi
18262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18264
18265 fi
18266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18267   cat >>confdefs.h <<_ACEOF
18268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18269 _ACEOF
18270
18271 fi
18272
18273 done
18274
18275
18276         if test $ol_enable_local = auto ; then
18277                 ol_enable_local=$ac_cv_header_sys_un_h
18278         elif test $ac_cv_header_sys_un_h = no ; then
18279                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18280 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18281    { (exit 1); exit 1; }; }
18282         fi
18283 fi
18284
18285 ol_link_kbind=no
18286 ol_link_krb5=no
18287 ol_link_krb4=no
18288
18289 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
18290
18291
18292 for ac_header in krb5.h
18293 do
18294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18296   echo "$as_me:$LINENO: checking for $ac_header" >&5
18297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18299   echo $ECHO_N "(cached) $ECHO_C" >&6
18300 fi
18301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18303 else
18304   # Is the header compilable?
18305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18307 cat >conftest.$ac_ext <<_ACEOF
18308 /* confdefs.h.  */
18309 _ACEOF
18310 cat confdefs.h >>conftest.$ac_ext
18311 cat >>conftest.$ac_ext <<_ACEOF
18312 /* end confdefs.h.  */
18313 $ac_includes_default
18314 #include <$ac_header>
18315 _ACEOF
18316 rm -f conftest.$ac_objext
18317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18318   (eval $ac_compile) 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_objext'
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   ac_header_compiler=yes
18339 else
18340   echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18342
18343 ac_header_compiler=no
18344 fi
18345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18347 echo "${ECHO_T}$ac_header_compiler" >&6
18348
18349 # Is the header present?
18350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18352 cat >conftest.$ac_ext <<_ACEOF
18353 /* confdefs.h.  */
18354 _ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h.  */
18358 #include <$ac_header>
18359 _ACEOF
18360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18362   ac_status=$?
18363   grep -v '^ *+' conftest.er1 >conftest.err
18364   rm -f conftest.er1
18365   cat conftest.err >&5
18366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367   (exit $ac_status); } >/dev/null; then
18368   if test -s conftest.err; then
18369     ac_cpp_err=$ac_c_preproc_warn_flag
18370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18371   else
18372     ac_cpp_err=
18373   fi
18374 else
18375   ac_cpp_err=yes
18376 fi
18377 if test -z "$ac_cpp_err"; then
18378   ac_header_preproc=yes
18379 else
18380   echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18382
18383   ac_header_preproc=no
18384 fi
18385 rm -f conftest.err conftest.$ac_ext
18386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18387 echo "${ECHO_T}$ac_header_preproc" >&6
18388
18389 # So?  What about this header?
18390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18391   yes:no: )
18392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18396     ac_header_preproc=yes
18397     ;;
18398   no:yes:* )
18399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18411     (
18412       cat <<\_ASBOX
18413 ## --------------------------------------------- ##
18414 ## Report this to <http://www.openldap.org/its/> ##
18415 ## --------------------------------------------- ##
18416 _ASBOX
18417     ) |
18418       sed "s/^/$as_me: WARNING:     /" >&2
18419     ;;
18420 esac
18421 echo "$as_me:$LINENO: checking for $ac_header" >&5
18422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18424   echo $ECHO_N "(cached) $ECHO_C" >&6
18425 else
18426   eval "$as_ac_Header=\$ac_header_preproc"
18427 fi
18428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18430
18431 fi
18432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18433   cat >>confdefs.h <<_ACEOF
18434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18435 _ACEOF
18436
18437 fi
18438
18439 done
18440
18441
18442         if test $ac_cv_header_krb5_h = yes ; then
18443
18444 for ac_header in heim_err.h
18445 do
18446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18448   echo "$as_me:$LINENO: checking for $ac_header" >&5
18449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18451   echo $ECHO_N "(cached) $ECHO_C" >&6
18452 fi
18453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18455 else
18456   # Is the header compilable?
18457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18459 cat >conftest.$ac_ext <<_ACEOF
18460 /* confdefs.h.  */
18461 _ACEOF
18462 cat confdefs.h >>conftest.$ac_ext
18463 cat >>conftest.$ac_ext <<_ACEOF
18464 /* end confdefs.h.  */
18465 $ac_includes_default
18466 #include <$ac_header>
18467 _ACEOF
18468 rm -f conftest.$ac_objext
18469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18470   (eval $ac_compile) 2>conftest.er1
18471   ac_status=$?
18472   grep -v '^ *+' conftest.er1 >conftest.err
18473   rm -f conftest.er1
18474   cat conftest.err >&5
18475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476   (exit $ac_status); } &&
18477          { ac_try='test -z "$ac_c_werror_flag"
18478                          || test ! -s conftest.err'
18479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480   (eval $ac_try) 2>&5
18481   ac_status=$?
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); }; } &&
18484          { ac_try='test -s conftest.$ac_objext'
18485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486   (eval $ac_try) 2>&5
18487   ac_status=$?
18488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   (exit $ac_status); }; }; then
18490   ac_header_compiler=yes
18491 else
18492   echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.$ac_ext >&5
18494
18495 ac_header_compiler=no
18496 fi
18497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18499 echo "${ECHO_T}$ac_header_compiler" >&6
18500
18501 # Is the header present?
18502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18504 cat >conftest.$ac_ext <<_ACEOF
18505 /* confdefs.h.  */
18506 _ACEOF
18507 cat confdefs.h >>conftest.$ac_ext
18508 cat >>conftest.$ac_ext <<_ACEOF
18509 /* end confdefs.h.  */
18510 #include <$ac_header>
18511 _ACEOF
18512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18514   ac_status=$?
18515   grep -v '^ *+' conftest.er1 >conftest.err
18516   rm -f conftest.er1
18517   cat conftest.err >&5
18518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519   (exit $ac_status); } >/dev/null; then
18520   if test -s conftest.err; then
18521     ac_cpp_err=$ac_c_preproc_warn_flag
18522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18523   else
18524     ac_cpp_err=
18525   fi
18526 else
18527   ac_cpp_err=yes
18528 fi
18529 if test -z "$ac_cpp_err"; then
18530   ac_header_preproc=yes
18531 else
18532   echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.$ac_ext >&5
18534
18535   ac_header_preproc=no
18536 fi
18537 rm -f conftest.err conftest.$ac_ext
18538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18539 echo "${ECHO_T}$ac_header_preproc" >&6
18540
18541 # So?  What about this header?
18542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18543   yes:no: )
18544     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18548     ac_header_preproc=yes
18549     ;;
18550   no:yes:* )
18551     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18553     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18554 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18555     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18557     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18558 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18561     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18563     (
18564       cat <<\_ASBOX
18565 ## --------------------------------------------- ##
18566 ## Report this to <http://www.openldap.org/its/> ##
18567 ## --------------------------------------------- ##
18568 _ASBOX
18569     ) |
18570       sed "s/^/$as_me: WARNING:     /" >&2
18571     ;;
18572 esac
18573 echo "$as_me:$LINENO: checking for $ac_header" >&5
18574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18576   echo $ECHO_N "(cached) $ECHO_C" >&6
18577 else
18578   eval "$as_ac_Header=\$ac_header_preproc"
18579 fi
18580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18582
18583 fi
18584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18585   cat >>confdefs.h <<_ACEOF
18586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18587 _ACEOF
18588
18589 fi
18590
18591 done
18592
18593                 if test $ac_cv_header_heim_err_h = yes ; then
18594                         krb5_impl=heimdal
18595                 else
18596                         krb5_impl=mit
18597                 fi
18598
18599                 if test $krb5_impl = mit; then
18600                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18601 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18602 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18603   echo $ECHO_N "(cached) $ECHO_C" >&6
18604 else
18605   ac_check_lib_save_LIBS=$LIBS
18606 LIBS="-lk5crypto  $LIBS"
18607 cat >conftest.$ac_ext <<_ACEOF
18608 /* confdefs.h.  */
18609 _ACEOF
18610 cat confdefs.h >>conftest.$ac_ext
18611 cat >>conftest.$ac_ext <<_ACEOF
18612 /* end confdefs.h.  */
18613
18614
18615 int
18616 main ()
18617 {
18618 main ();
18619   ;
18620   return 0;
18621 }
18622 _ACEOF
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18625   (eval $ac_link) 2>conftest.er1
18626   ac_status=$?
18627   grep -v '^ *+' conftest.er1 >conftest.err
18628   rm -f conftest.er1
18629   cat conftest.err >&5
18630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631   (exit $ac_status); } &&
18632          { ac_try='test -z "$ac_c_werror_flag"
18633                          || test ! -s conftest.err'
18634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635   (eval $ac_try) 2>&5
18636   ac_status=$?
18637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638   (exit $ac_status); }; } &&
18639          { ac_try='test -s conftest$ac_exeext'
18640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641   (eval $ac_try) 2>&5
18642   ac_status=$?
18643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644   (exit $ac_status); }; }; then
18645   ac_cv_lib_k5crypto_main=yes
18646 else
18647   echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18649
18650 ac_cv_lib_k5crypto_main=no
18651 fi
18652 rm -f conftest.err conftest.$ac_objext \
18653       conftest$ac_exeext conftest.$ac_ext
18654 LIBS=$ac_check_lib_save_LIBS
18655 fi
18656 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18657 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18658 if test $ac_cv_lib_k5crypto_main = yes; then
18659   krb5crypto=k5crypto
18660 else
18661   krb5crypto=crypto
18662 fi
18663
18664
18665                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18666 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18667 if test "${ac_cv_lib_krb5_main+set}" = set; then
18668   echo $ECHO_N "(cached) $ECHO_C" >&6
18669 else
18670   ac_check_lib_save_LIBS=$LIBS
18671 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18672 cat >conftest.$ac_ext <<_ACEOF
18673 /* confdefs.h.  */
18674 _ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h.  */
18678
18679
18680 int
18681 main ()
18682 {
18683 main ();
18684   ;
18685   return 0;
18686 }
18687 _ACEOF
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18690   (eval $ac_link) 2>conftest.er1
18691   ac_status=$?
18692   grep -v '^ *+' conftest.er1 >conftest.err
18693   rm -f conftest.er1
18694   cat conftest.err >&5
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); } &&
18697          { ac_try='test -z "$ac_c_werror_flag"
18698                          || test ! -s conftest.err'
18699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700   (eval $ac_try) 2>&5
18701   ac_status=$?
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); }; } &&
18704          { ac_try='test -s conftest$ac_exeext'
18705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706   (eval $ac_try) 2>&5
18707   ac_status=$?
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); }; }; then
18710   ac_cv_lib_krb5_main=yes
18711 else
18712   echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18714
18715 ac_cv_lib_krb5_main=no
18716 fi
18717 rm -f conftest.err conftest.$ac_objext \
18718       conftest$ac_exeext conftest.$ac_ext
18719 LIBS=$ac_check_lib_save_LIBS
18720 fi
18721 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18722 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18723 if test $ac_cv_lib_krb5_main = yes; then
18724   have_krb5=yes
18725                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18726 else
18727   have_krb5=no
18728 fi
18729
18730
18731                 elif test $krb5_impl = heimdal; then
18732                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18733 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18734 if test "${ac_cv_lib_des_main+set}" = set; then
18735   echo $ECHO_N "(cached) $ECHO_C" >&6
18736 else
18737   ac_check_lib_save_LIBS=$LIBS
18738 LIBS="-ldes  $LIBS"
18739 cat >conftest.$ac_ext <<_ACEOF
18740 /* confdefs.h.  */
18741 _ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h.  */
18745
18746
18747 int
18748 main ()
18749 {
18750 main ();
18751   ;
18752   return 0;
18753 }
18754 _ACEOF
18755 rm -f conftest.$ac_objext conftest$ac_exeext
18756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18757   (eval $ac_link) 2>conftest.er1
18758   ac_status=$?
18759   grep -v '^ *+' conftest.er1 >conftest.err
18760   rm -f conftest.er1
18761   cat conftest.err >&5
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); } &&
18764          { ac_try='test -z "$ac_c_werror_flag"
18765                          || test ! -s conftest.err'
18766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767   (eval $ac_try) 2>&5
18768   ac_status=$?
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); }; } &&
18771          { ac_try='test -s conftest$ac_exeext'
18772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773   (eval $ac_try) 2>&5
18774   ac_status=$?
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); }; }; then
18777   ac_cv_lib_des_main=yes
18778 else
18779   echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18781
18782 ac_cv_lib_des_main=no
18783 fi
18784 rm -f conftest.err conftest.$ac_objext \
18785       conftest$ac_exeext conftest.$ac_ext
18786 LIBS=$ac_check_lib_save_LIBS
18787 fi
18788 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18789 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18790 if test $ac_cv_lib_des_main = yes; then
18791   krb5crypto=des
18792 else
18793   krb5crypto=crypto
18794 fi
18795
18796
18797                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18798 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18799 if test "${ac_cv_lib_krb5_main+set}" = set; then
18800   echo $ECHO_N "(cached) $ECHO_C" >&6
18801 else
18802   ac_check_lib_save_LIBS=$LIBS
18803 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18804 cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h.  */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h.  */
18810
18811
18812 int
18813 main ()
18814 {
18815 main ();
18816   ;
18817   return 0;
18818 }
18819 _ACEOF
18820 rm -f conftest.$ac_objext conftest$ac_exeext
18821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18822   (eval $ac_link) 2>conftest.er1
18823   ac_status=$?
18824   grep -v '^ *+' conftest.er1 >conftest.err
18825   rm -f conftest.er1
18826   cat conftest.err >&5
18827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828   (exit $ac_status); } &&
18829          { ac_try='test -z "$ac_c_werror_flag"
18830                          || test ! -s conftest.err'
18831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832   (eval $ac_try) 2>&5
18833   ac_status=$?
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); }; } &&
18836          { ac_try='test -s conftest$ac_exeext'
18837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838   (eval $ac_try) 2>&5
18839   ac_status=$?
18840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841   (exit $ac_status); }; }; then
18842   ac_cv_lib_krb5_main=yes
18843 else
18844   echo "$as_me: failed program was:" >&5
18845 sed 's/^/| /' conftest.$ac_ext >&5
18846
18847 ac_cv_lib_krb5_main=no
18848 fi
18849 rm -f conftest.err conftest.$ac_objext \
18850       conftest$ac_exeext conftest.$ac_ext
18851 LIBS=$ac_check_lib_save_LIBS
18852 fi
18853 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18854 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18855 if test $ac_cv_lib_krb5_main = yes; then
18856   have_krb5=yes
18857                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18858 else
18859   have_krb5=no
18860 fi
18861
18862
18863
18864 cat >>confdefs.h <<\_ACEOF
18865 #define HAVE_HEIMDAL_KERBEROS 1
18866 _ACEOF
18867
18868
18869                 else
18870                         have_krb5=no
18871                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18872 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18873                 fi
18874
18875                 if test $have_krb5 = yes ; then
18876                         ol_link_krb5=yes
18877
18878
18879 cat >>confdefs.h <<\_ACEOF
18880 #define HAVE_KRB5 1
18881 _ACEOF
18882
18883
18884                         if test $ol_with_kerberos = k5only ; then
18885                                 ol_with_kerberos=found
18886                         fi
18887
18888                 elif test $ol_with_kerberos != auto ; then
18889                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18890 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18891    { (exit 1); exit 1; }; }
18892                 fi
18893
18894         fi
18895         ;;
18896 esac
18897
18898 if test $ol_link_krb5 = yes &&
18899    { test $ol_with_kerberos = yes ||
18900      test $ol_with_kerberos = auto ||
18901      test $ol_with_kerberos = k425; }; then
18902
18903
18904
18905 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18906 do
18907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18909   echo "$as_me:$LINENO: checking for $ac_header" >&5
18910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18912   echo $ECHO_N "(cached) $ECHO_C" >&6
18913 fi
18914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18916 else
18917   # Is the header compilable?
18918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18920 cat >conftest.$ac_ext <<_ACEOF
18921 /* confdefs.h.  */
18922 _ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h.  */
18926 $ac_includes_default
18927 #include <$ac_header>
18928 _ACEOF
18929 rm -f conftest.$ac_objext
18930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18931   (eval $ac_compile) 2>conftest.er1
18932   ac_status=$?
18933   grep -v '^ *+' conftest.er1 >conftest.err
18934   rm -f conftest.er1
18935   cat conftest.err >&5
18936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937   (exit $ac_status); } &&
18938          { ac_try='test -z "$ac_c_werror_flag"
18939                          || test ! -s conftest.err'
18940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941   (eval $ac_try) 2>&5
18942   ac_status=$?
18943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944   (exit $ac_status); }; } &&
18945          { ac_try='test -s conftest.$ac_objext'
18946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947   (eval $ac_try) 2>&5
18948   ac_status=$?
18949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950   (exit $ac_status); }; }; then
18951   ac_header_compiler=yes
18952 else
18953   echo "$as_me: failed program was:" >&5
18954 sed 's/^/| /' conftest.$ac_ext >&5
18955
18956 ac_header_compiler=no
18957 fi
18958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18960 echo "${ECHO_T}$ac_header_compiler" >&6
18961
18962 # Is the header present?
18963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18965 cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h.  */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h.  */
18971 #include <$ac_header>
18972 _ACEOF
18973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18975   ac_status=$?
18976   grep -v '^ *+' conftest.er1 >conftest.err
18977   rm -f conftest.er1
18978   cat conftest.err >&5
18979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980   (exit $ac_status); } >/dev/null; then
18981   if test -s conftest.err; then
18982     ac_cpp_err=$ac_c_preproc_warn_flag
18983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18984   else
18985     ac_cpp_err=
18986   fi
18987 else
18988   ac_cpp_err=yes
18989 fi
18990 if test -z "$ac_cpp_err"; then
18991   ac_header_preproc=yes
18992 else
18993   echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18995
18996   ac_header_preproc=no
18997 fi
18998 rm -f conftest.err conftest.$ac_ext
18999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19000 echo "${ECHO_T}$ac_header_preproc" >&6
19001
19002 # So?  What about this header?
19003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19004   yes:no: )
19005     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19009     ac_header_preproc=yes
19010     ;;
19011   no:yes:* )
19012     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19014     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19015 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19016     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19018     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19019 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19022     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19024     (
19025       cat <<\_ASBOX
19026 ## --------------------------------------------- ##
19027 ## Report this to <http://www.openldap.org/its/> ##
19028 ## --------------------------------------------- ##
19029 _ASBOX
19030     ) |
19031       sed "s/^/$as_me: WARNING:     /" >&2
19032     ;;
19033 esac
19034 echo "$as_me:$LINENO: checking for $ac_header" >&5
19035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19037   echo $ECHO_N "(cached) $ECHO_C" >&6
19038 else
19039   eval "$as_ac_Header=\$ac_header_preproc"
19040 fi
19041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19043
19044 fi
19045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19046   cat >>confdefs.h <<_ACEOF
19047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19048 _ACEOF
19049
19050 fi
19051
19052 done
19053
19054
19055         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
19056                 if test $krb5_impl = mit; then
19057                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
19058 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
19059 if test "${ac_cv_lib_krb4_main+set}" = set; then
19060   echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
19062   ac_check_lib_save_LIBS=$LIBS
19063 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
19064 cat >conftest.$ac_ext <<_ACEOF
19065 /* confdefs.h.  */
19066 _ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h.  */
19070
19071
19072 int
19073 main ()
19074 {
19075 main ();
19076   ;
19077   return 0;
19078 }
19079 _ACEOF
19080 rm -f conftest.$ac_objext conftest$ac_exeext
19081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19082   (eval $ac_link) 2>conftest.er1
19083   ac_status=$?
19084   grep -v '^ *+' conftest.er1 >conftest.err
19085   rm -f conftest.er1
19086   cat conftest.err >&5
19087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); } &&
19089          { ac_try='test -z "$ac_c_werror_flag"
19090                          || test ! -s conftest.err'
19091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092   (eval $ac_try) 2>&5
19093   ac_status=$?
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); }; } &&
19096          { ac_try='test -s conftest$ac_exeext'
19097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19098   (eval $ac_try) 2>&5
19099   ac_status=$?
19100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101   (exit $ac_status); }; }; then
19102   ac_cv_lib_krb4_main=yes
19103 else
19104   echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19106
19107 ac_cv_lib_krb4_main=no
19108 fi
19109 rm -f conftest.err conftest.$ac_objext \
19110       conftest$ac_exeext conftest.$ac_ext
19111 LIBS=$ac_check_lib_save_LIBS
19112 fi
19113 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
19114 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
19115 if test $ac_cv_lib_krb4_main = yes; then
19116   have_k425=yes
19117                                 KRB4_LIBS="-lkrb4 -ldes425"
19118 else
19119   have_k425=no
19120 fi
19121
19122
19123                 elif test $krb5_impl = heimdal; then
19124                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
19125 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
19126 if test "${ac_cv_lib_krb4_main+set}" = set; then
19127   echo $ECHO_N "(cached) $ECHO_C" >&6
19128 else
19129   ac_check_lib_save_LIBS=$LIBS
19130 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
19131 cat >conftest.$ac_ext <<_ACEOF
19132 /* confdefs.h.  */
19133 _ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h.  */
19137
19138
19139 int
19140 main ()
19141 {
19142 main ();
19143   ;
19144   return 0;
19145 }
19146 _ACEOF
19147 rm -f conftest.$ac_objext conftest$ac_exeext
19148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19149   (eval $ac_link) 2>conftest.er1
19150   ac_status=$?
19151   grep -v '^ *+' conftest.er1 >conftest.err
19152   rm -f conftest.er1
19153   cat conftest.err >&5
19154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155   (exit $ac_status); } &&
19156          { ac_try='test -z "$ac_c_werror_flag"
19157                          || test ! -s conftest.err'
19158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159   (eval $ac_try) 2>&5
19160   ac_status=$?
19161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162   (exit $ac_status); }; } &&
19163          { ac_try='test -s conftest$ac_exeext'
19164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165   (eval $ac_try) 2>&5
19166   ac_status=$?
19167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168   (exit $ac_status); }; }; then
19169   ac_cv_lib_krb4_main=yes
19170 else
19171   echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19173
19174 ac_cv_lib_krb4_main=no
19175 fi
19176 rm -f conftest.err conftest.$ac_objext \
19177       conftest$ac_exeext conftest.$ac_ext
19178 LIBS=$ac_check_lib_save_LIBS
19179 fi
19180 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
19181 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
19182 if test $ac_cv_lib_krb4_main = yes; then
19183   have_k425=yes
19184                                 KRB4_LIBS="-lkrb4"
19185 else
19186   have_k425=no
19187 fi
19188
19189
19190                 else
19191                         have_425=no
19192                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
19193 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
19194                 fi
19195
19196                 if test $have_k425 = yes ; then
19197                         ol_with_kerberos=found
19198                         ol_link_krb4=yes
19199
19200
19201 cat >>confdefs.h <<\_ACEOF
19202 #define HAVE_KRB425 1
19203 _ACEOF
19204
19205
19206 cat >>confdefs.h <<\_ACEOF
19207 #define HAVE_KRB4 1
19208 _ACEOF
19209
19210
19211                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
19212 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
19213 if test "${ol_cv_var_des_debug+set}" = set; then
19214   echo $ECHO_N "(cached) $ECHO_C" >&6
19215 else
19216
19217                                                                 save_LIBS="$LIBS"
19218                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
19219                                 cat >conftest.$ac_ext <<_ACEOF
19220 /* confdefs.h.  */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h.  */
19225
19226 #include <kerberosIV/krb.h>
19227 #include <kerberosIV/des.h>
19228 extern int des_debug;
19229
19230 int
19231 main ()
19232 {
19233
19234 des_debug = 1;
19235
19236   ;
19237   return 0;
19238 }
19239 _ACEOF
19240 rm -f conftest.$ac_objext conftest$ac_exeext
19241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19242   (eval $ac_link) 2>conftest.er1
19243   ac_status=$?
19244   grep -v '^ *+' conftest.er1 >conftest.err
19245   rm -f conftest.er1
19246   cat conftest.err >&5
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); } &&
19249          { ac_try='test -z "$ac_c_werror_flag"
19250                          || test ! -s conftest.err'
19251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252   (eval $ac_try) 2>&5
19253   ac_status=$?
19254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255   (exit $ac_status); }; } &&
19256          { ac_try='test -s conftest$ac_exeext'
19257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258   (eval $ac_try) 2>&5
19259   ac_status=$?
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); }; }; then
19262   ol_cv_var_des_debug=yes
19263 else
19264   echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19266
19267 ol_cv_var_des_debug=no
19268 fi
19269 rm -f conftest.err conftest.$ac_objext \
19270       conftest$ac_exeext conftest.$ac_ext
19271                                                                 LIBS="$save_LIBS"
19272
19273 fi
19274 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
19275 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
19276
19277                         if test $ol_cv_var_des_debug = yes ; then
19278
19279 cat >>confdefs.h <<\_ACEOF
19280 #define HAVE_DES_DEBUG 1
19281 _ACEOF
19282
19283                         fi
19284
19285                         LIBS="$save_LIBS"
19286                 fi
19287         fi
19288 fi
19289
19290 if test $ol_link_krb5 = yes ; then
19291         ol_with_kerberos=found
19292 fi
19293
19294 case $ol_with_kerberos in yes | auto | k4 | kth)
19295
19296
19297
19298
19299 for ac_header in krb.h des.h krb-archaeology.h
19300 do
19301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19303   echo "$as_me:$LINENO: checking for $ac_header" >&5
19304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19306   echo $ECHO_N "(cached) $ECHO_C" >&6
19307 fi
19308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19310 else
19311   # Is the header compilable?
19312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19314 cat >conftest.$ac_ext <<_ACEOF
19315 /* confdefs.h.  */
19316 _ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h.  */
19320 $ac_includes_default
19321 #include <$ac_header>
19322 _ACEOF
19323 rm -f conftest.$ac_objext
19324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19325   (eval $ac_compile) 2>conftest.er1
19326   ac_status=$?
19327   grep -v '^ *+' conftest.er1 >conftest.err
19328   rm -f conftest.er1
19329   cat conftest.err >&5
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); } &&
19332          { ac_try='test -z "$ac_c_werror_flag"
19333                          || test ! -s conftest.err'
19334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335   (eval $ac_try) 2>&5
19336   ac_status=$?
19337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338   (exit $ac_status); }; } &&
19339          { ac_try='test -s conftest.$ac_objext'
19340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341   (eval $ac_try) 2>&5
19342   ac_status=$?
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); }; }; then
19345   ac_header_compiler=yes
19346 else
19347   echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19349
19350 ac_header_compiler=no
19351 fi
19352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19354 echo "${ECHO_T}$ac_header_compiler" >&6
19355
19356 # Is the header present?
19357 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19359 cat >conftest.$ac_ext <<_ACEOF
19360 /* confdefs.h.  */
19361 _ACEOF
19362 cat confdefs.h >>conftest.$ac_ext
19363 cat >>conftest.$ac_ext <<_ACEOF
19364 /* end confdefs.h.  */
19365 #include <$ac_header>
19366 _ACEOF
19367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19369   ac_status=$?
19370   grep -v '^ *+' conftest.er1 >conftest.err
19371   rm -f conftest.er1
19372   cat conftest.err >&5
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); } >/dev/null; then
19375   if test -s conftest.err; then
19376     ac_cpp_err=$ac_c_preproc_warn_flag
19377     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19378   else
19379     ac_cpp_err=
19380   fi
19381 else
19382   ac_cpp_err=yes
19383 fi
19384 if test -z "$ac_cpp_err"; then
19385   ac_header_preproc=yes
19386 else
19387   echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19389
19390   ac_header_preproc=no
19391 fi
19392 rm -f conftest.err conftest.$ac_ext
19393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19394 echo "${ECHO_T}$ac_header_preproc" >&6
19395
19396 # So?  What about this header?
19397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19398   yes:no: )
19399     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19403     ac_header_preproc=yes
19404     ;;
19405   no:yes:* )
19406     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19408     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19409 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19410     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19412     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19413 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19416     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19418     (
19419       cat <<\_ASBOX
19420 ## --------------------------------------------- ##
19421 ## Report this to <http://www.openldap.org/its/> ##
19422 ## --------------------------------------------- ##
19423 _ASBOX
19424     ) |
19425       sed "s/^/$as_me: WARNING:     /" >&2
19426     ;;
19427 esac
19428 echo "$as_me:$LINENO: checking for $ac_header" >&5
19429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19431   echo $ECHO_N "(cached) $ECHO_C" >&6
19432 else
19433   eval "$as_ac_Header=\$ac_header_preproc"
19434 fi
19435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19437
19438 fi
19439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19440   cat >>confdefs.h <<_ACEOF
19441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19442 _ACEOF
19443
19444 fi
19445
19446 done
19447
19448
19449         if test $ac_cv_header_krb_h = yes ; then
19450                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19451 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19452 if test "${ac_cv_lib_krb_main+set}" = set; then
19453   echo $ECHO_N "(cached) $ECHO_C" >&6
19454 else
19455   ac_check_lib_save_LIBS=$LIBS
19456 LIBS="-lkrb -ldes $LIBS"
19457 cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h.  */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h.  */
19463
19464
19465 int
19466 main ()
19467 {
19468 main ();
19469   ;
19470   return 0;
19471 }
19472 _ACEOF
19473 rm -f conftest.$ac_objext conftest$ac_exeext
19474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19475   (eval $ac_link) 2>conftest.er1
19476   ac_status=$?
19477   grep -v '^ *+' conftest.er1 >conftest.err
19478   rm -f conftest.er1
19479   cat conftest.err >&5
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); } &&
19482          { ac_try='test -z "$ac_c_werror_flag"
19483                          || test ! -s conftest.err'
19484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485   (eval $ac_try) 2>&5
19486   ac_status=$?
19487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488   (exit $ac_status); }; } &&
19489          { ac_try='test -s conftest$ac_exeext'
19490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19491   (eval $ac_try) 2>&5
19492   ac_status=$?
19493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494   (exit $ac_status); }; }; then
19495   ac_cv_lib_krb_main=yes
19496 else
19497   echo "$as_me: failed program was:" >&5
19498 sed 's/^/| /' conftest.$ac_ext >&5
19499
19500 ac_cv_lib_krb_main=no
19501 fi
19502 rm -f conftest.err conftest.$ac_objext \
19503       conftest$ac_exeext conftest.$ac_ext
19504 LIBS=$ac_check_lib_save_LIBS
19505 fi
19506 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19507 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19508 if test $ac_cv_lib_krb_main = yes; then
19509   have_k4=yes
19510 else
19511   have_k4=no
19512 fi
19513
19514
19515                 if test $have_k4 = yes ; then
19516                         ol_with_kerberos=found
19517                         ol_link_krb4=yes
19518
19519
19520 cat >>confdefs.h <<\_ACEOF
19521 #define HAVE_KRB4 1
19522 _ACEOF
19523
19524
19525                         KRB4_LIBS="-lkrb -ldes"
19526
19527                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19528
19529 cat >>confdefs.h <<\_ACEOF
19530 #define HAVE_KTH_KERBEROS 1
19531 _ACEOF
19532
19533                         fi
19534                 fi
19535         fi
19536         ;;
19537 esac
19538
19539 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19540         ol_link_kbind=yes
19541
19542 elif test $ol_enable_kbind = yes ; then
19543         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19544 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19545    { (exit 1); exit 1; }; }
19546 fi
19547
19548 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19549
19550 cat >>confdefs.h <<\_ACEOF
19551 #define HAVE_KERBEROS 1
19552 _ACEOF
19553
19554
19555 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19556         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19557 echo "$as_me: error: Kerberos detection failed" >&2;}
19558    { (exit 1); exit 1; }; }
19559 fi
19560
19561
19562 if test $ol_with_tls = yes ; then
19563         ol_with_tls=auto
19564 fi
19565
19566 ol_link_tls=no
19567 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19568
19569 for ac_header in openssl/ssl.h
19570 do
19571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19573   echo "$as_me:$LINENO: checking for $ac_header" >&5
19574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19576   echo $ECHO_N "(cached) $ECHO_C" >&6
19577 fi
19578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19580 else
19581   # Is the header compilable?
19582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19584 cat >conftest.$ac_ext <<_ACEOF
19585 /* confdefs.h.  */
19586 _ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h.  */
19590 $ac_includes_default
19591 #include <$ac_header>
19592 _ACEOF
19593 rm -f conftest.$ac_objext
19594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19595   (eval $ac_compile) 2>conftest.er1
19596   ac_status=$?
19597   grep -v '^ *+' conftest.er1 >conftest.err
19598   rm -f conftest.er1
19599   cat conftest.err >&5
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); } &&
19602          { ac_try='test -z "$ac_c_werror_flag"
19603                          || test ! -s conftest.err'
19604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605   (eval $ac_try) 2>&5
19606   ac_status=$?
19607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); }; } &&
19609          { ac_try='test -s conftest.$ac_objext'
19610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611   (eval $ac_try) 2>&5
19612   ac_status=$?
19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614   (exit $ac_status); }; }; then
19615   ac_header_compiler=yes
19616 else
19617   echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.$ac_ext >&5
19619
19620 ac_header_compiler=no
19621 fi
19622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19624 echo "${ECHO_T}$ac_header_compiler" >&6
19625
19626 # Is the header present?
19627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19629 cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h.  */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h.  */
19635 #include <$ac_header>
19636 _ACEOF
19637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19638   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19639   ac_status=$?
19640   grep -v '^ *+' conftest.er1 >conftest.err
19641   rm -f conftest.er1
19642   cat conftest.err >&5
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); } >/dev/null; then
19645   if test -s conftest.err; then
19646     ac_cpp_err=$ac_c_preproc_warn_flag
19647     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19648   else
19649     ac_cpp_err=
19650   fi
19651 else
19652   ac_cpp_err=yes
19653 fi
19654 if test -z "$ac_cpp_err"; then
19655   ac_header_preproc=yes
19656 else
19657   echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19659
19660   ac_header_preproc=no
19661 fi
19662 rm -f conftest.err conftest.$ac_ext
19663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19664 echo "${ECHO_T}$ac_header_preproc" >&6
19665
19666 # So?  What about this header?
19667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19668   yes:no: )
19669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19673     ac_header_preproc=yes
19674     ;;
19675   no:yes:* )
19676     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19678     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19679 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19680     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19682     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19683 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19686     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19688     (
19689       cat <<\_ASBOX
19690 ## --------------------------------------------- ##
19691 ## Report this to <http://www.openldap.org/its/> ##
19692 ## --------------------------------------------- ##
19693 _ASBOX
19694     ) |
19695       sed "s/^/$as_me: WARNING:     /" >&2
19696     ;;
19697 esac
19698 echo "$as_me:$LINENO: checking for $ac_header" >&5
19699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19701   echo $ECHO_N "(cached) $ECHO_C" >&6
19702 else
19703   eval "$as_ac_Header=\$ac_header_preproc"
19704 fi
19705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19707
19708 fi
19709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19710   cat >>confdefs.h <<_ACEOF
19711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19712 _ACEOF
19713
19714 fi
19715
19716 done
19717
19718
19719         if test $ac_cv_header_openssl_ssl_h = yes ; then
19720                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19721 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19722 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19723   echo $ECHO_N "(cached) $ECHO_C" >&6
19724 else
19725   ac_check_lib_save_LIBS=$LIBS
19726 LIBS="-lssl -lcrypto $LIBS"
19727 cat >conftest.$ac_ext <<_ACEOF
19728 /* confdefs.h.  */
19729 _ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h.  */
19733
19734 /* Override any gcc2 internal prototype to avoid an error.  */
19735 #ifdef __cplusplus
19736 extern "C"
19737 #endif
19738 /* We use char because int might match the return type of a gcc2
19739    builtin and then its argument prototype would still apply.  */
19740 char SSL_library_init ();
19741 int
19742 main ()
19743 {
19744 SSL_library_init ();
19745   ;
19746   return 0;
19747 }
19748 _ACEOF
19749 rm -f conftest.$ac_objext conftest$ac_exeext
19750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19751   (eval $ac_link) 2>conftest.er1
19752   ac_status=$?
19753   grep -v '^ *+' conftest.er1 >conftest.err
19754   rm -f conftest.er1
19755   cat conftest.err >&5
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); } &&
19758          { ac_try='test -z "$ac_c_werror_flag"
19759                          || test ! -s conftest.err'
19760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761   (eval $ac_try) 2>&5
19762   ac_status=$?
19763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); }; } &&
19765          { ac_try='test -s conftest$ac_exeext'
19766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767   (eval $ac_try) 2>&5
19768   ac_status=$?
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); }; }; then
19771   ac_cv_lib_ssl_SSL_library_init=yes
19772 else
19773   echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19775
19776 ac_cv_lib_ssl_SSL_library_init=no
19777 fi
19778 rm -f conftest.err conftest.$ac_objext \
19779       conftest$ac_exeext conftest.$ac_ext
19780 LIBS=$ac_check_lib_save_LIBS
19781 fi
19782 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19783 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19784 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19785   have_openssl=yes
19786                         need_rsaref=no
19787 else
19788   have_openssl=no
19789 fi
19790
19791
19792                 if test $have_openssl = no ; then
19793                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19794 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19795 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19796   echo $ECHO_N "(cached) $ECHO_C" >&6
19797 else
19798   ac_check_lib_save_LIBS=$LIBS
19799 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19800 cat >conftest.$ac_ext <<_ACEOF
19801 /* confdefs.h.  */
19802 _ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h.  */
19806
19807 /* Override any gcc2 internal prototype to avoid an error.  */
19808 #ifdef __cplusplus
19809 extern "C"
19810 #endif
19811 /* We use char because int might match the return type of a gcc2
19812    builtin and then its argument prototype would still apply.  */
19813 char ssl3_accept ();
19814 int
19815 main ()
19816 {
19817 ssl3_accept ();
19818   ;
19819   return 0;
19820 }
19821 _ACEOF
19822 rm -f conftest.$ac_objext conftest$ac_exeext
19823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19824   (eval $ac_link) 2>conftest.er1
19825   ac_status=$?
19826   grep -v '^ *+' conftest.er1 >conftest.err
19827   rm -f conftest.er1
19828   cat conftest.err >&5
19829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830   (exit $ac_status); } &&
19831          { ac_try='test -z "$ac_c_werror_flag"
19832                          || test ! -s conftest.err'
19833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834   (eval $ac_try) 2>&5
19835   ac_status=$?
19836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837   (exit $ac_status); }; } &&
19838          { ac_try='test -s conftest$ac_exeext'
19839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840   (eval $ac_try) 2>&5
19841   ac_status=$?
19842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843   (exit $ac_status); }; }; then
19844   ac_cv_lib_ssl_ssl3_accept=yes
19845 else
19846   echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19848
19849 ac_cv_lib_ssl_ssl3_accept=no
19850 fi
19851 rm -f conftest.err conftest.$ac_objext \
19852       conftest$ac_exeext conftest.$ac_ext
19853 LIBS=$ac_check_lib_save_LIBS
19854 fi
19855 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19856 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19857 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19858   have_openssl=yes
19859                                 need_rsaref=yes
19860 else
19861   have_openssl=no
19862 fi
19863
19864                 fi
19865
19866                 if test $have_openssl = yes ; then
19867                         ol_with_tls=openssl
19868                         ol_link_tls=yes
19869
19870
19871 cat >>confdefs.h <<\_ACEOF
19872 #define HAVE_OPENSSL 1
19873 _ACEOF
19874
19875
19876                         if test $need_rsaref = yes; then
19877
19878 cat >>confdefs.h <<\_ACEOF
19879 #define HAVE_RSAREF 1
19880 _ACEOF
19881
19882
19883                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19884                         else
19885                                 TLS_LIBS="-lssl -lcrypto"
19886                         fi
19887
19888                         echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19889 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19890 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19891   echo $ECHO_N "(cached) $ECHO_C" >&6
19892 else
19893
19894                 cat >conftest.$ac_ext <<_ACEOF
19895 /* confdefs.h.  */
19896 _ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h.  */
19900
19901 #ifdef HAVE_OPENSSL_SSL_H
19902 #include <openssl/ssl.h>
19903 #endif
19904
19905 /* Require 0.9.7d+ */
19906 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19907         char *__ssl_compat = "0.9.7d";
19908 #endif
19909
19910 _ACEOF
19911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19912   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19913   ol_cv_ssl_crl_compat=yes
19914 else
19915   ol_cv_ssl_crl_compat=no
19916 fi
19917 rm -f conftest*
19918
19919 fi
19920 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19921 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19922
19923                         if test $ol_cv_ssl_crl_compat = yes ; then
19924
19925 cat >>confdefs.h <<\_ACEOF
19926 #define HAVE_OPENSSL_CRL 1
19927 _ACEOF
19928
19929                         fi
19930                 fi
19931         fi
19932 fi
19933
19934 WITH_TLS=no
19935 if test $ol_link_tls = yes ; then
19936
19937 cat >>confdefs.h <<\_ACEOF
19938 #define HAVE_TLS 1
19939 _ACEOF
19940
19941         WITH_TLS=yes
19942 elif test $ol_with_tls = auto ; then
19943         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19944 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19945         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19946 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19947 elif test $ol_with_tls != no ; then
19948         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19949 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19950    { (exit 1); exit 1; }; }
19951 else
19952         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19953 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19954 fi
19955
19956 if test $ol_enable_lmpasswd != no; then
19957         if test $ol_link_tls != yes ; then
19958                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19959 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19960    { (exit 1); exit 1; }; }
19961         fi
19962
19963
19964 cat >>confdefs.h <<\_ACEOF
19965 #define SLAPD_LMHASH 1
19966 _ACEOF
19967
19968 fi
19969
19970 ol_link_threads=no
19971
19972 case $ol_with_threads in auto | yes | nt)
19973
19974
19975         echo "$as_me:$LINENO: checking for _beginthread" >&5
19976 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19977 if test "${ac_cv_func__beginthread+set}" = set; then
19978   echo $ECHO_N "(cached) $ECHO_C" >&6
19979 else
19980   cat >conftest.$ac_ext <<_ACEOF
19981 /* confdefs.h.  */
19982 _ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h.  */
19986 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19988 #define _beginthread innocuous__beginthread
19989
19990 /* System header to define __stub macros and hopefully few prototypes,
19991     which can conflict with char _beginthread (); below.
19992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19993     <limits.h> exists even on freestanding compilers.  */
19994
19995 #ifdef __STDC__
19996 # include <limits.h>
19997 #else
19998 # include <assert.h>
19999 #endif
20000
20001 #undef _beginthread
20002
20003 /* Override any gcc2 internal prototype to avoid an error.  */
20004 #ifdef __cplusplus
20005 extern "C"
20006 {
20007 #endif
20008 /* We use char because int might match the return type of a gcc2
20009    builtin and then its argument prototype would still apply.  */
20010 char _beginthread ();
20011 /* The GNU C library defines this for functions which it implements
20012     to always fail with ENOSYS.  Some functions are actually named
20013     something starting with __ and the normal name is an alias.  */
20014 #if defined (__stub__beginthread) || defined (__stub____beginthread)
20015 choke me
20016 #else
20017 char (*f) () = _beginthread;
20018 #endif
20019 #ifdef __cplusplus
20020 }
20021 #endif
20022
20023 int
20024 main ()
20025 {
20026 return f != _beginthread;
20027   ;
20028   return 0;
20029 }
20030 _ACEOF
20031 rm -f conftest.$ac_objext conftest$ac_exeext
20032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20033   (eval $ac_link) 2>conftest.er1
20034   ac_status=$?
20035   grep -v '^ *+' conftest.er1 >conftest.err
20036   rm -f conftest.er1
20037   cat conftest.err >&5
20038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); } &&
20040          { ac_try='test -z "$ac_c_werror_flag"
20041                          || test ! -s conftest.err'
20042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043   (eval $ac_try) 2>&5
20044   ac_status=$?
20045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046   (exit $ac_status); }; } &&
20047          { ac_try='test -s conftest$ac_exeext'
20048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049   (eval $ac_try) 2>&5
20050   ac_status=$?
20051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); }; }; then
20053   ac_cv_func__beginthread=yes
20054 else
20055   echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20057
20058 ac_cv_func__beginthread=no
20059 fi
20060 rm -f conftest.err conftest.$ac_objext \
20061       conftest$ac_exeext conftest.$ac_ext
20062 fi
20063 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20064 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
20065
20066
20067         if test $ac_cv_func__beginthread = yes ; then
20068
20069 cat >>confdefs.h <<\_ACEOF
20070 #define HAVE_NT_THREADS 1
20071 _ACEOF
20072
20073                 ol_cv_nt_threads=yes
20074         fi
20075
20076
20077         if test "$ol_cv_nt_threads" = yes ; then
20078                 ol_link_threads=nt
20079                 ol_with_threads=found
20080                 ol_with_yielding_select=yes
20081
20082
20083 cat >>confdefs.h <<\_ACEOF
20084 #define HAVE_NT_SERVICE_MANAGER 1
20085 _ACEOF
20086
20087
20088 cat >>confdefs.h <<\_ACEOF
20089 #define HAVE_NT_EVENT_LOG 1
20090 _ACEOF
20091
20092         fi
20093
20094         if test $ol_with_threads = nt ; then
20095                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20096 echo "$as_me: error: could not locate NT Threads" >&2;}
20097    { (exit 1); exit 1; }; }
20098         fi
20099         ;;
20100 esac
20101
20102 case $ol_with_threads in auto | yes | posix)
20103
20104
20105 for ac_header in pthread.h
20106 do
20107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20109   echo "$as_me:$LINENO: checking for $ac_header" >&5
20110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20112   echo $ECHO_N "(cached) $ECHO_C" >&6
20113 fi
20114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20116 else
20117   # Is the header compilable?
20118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20120 cat >conftest.$ac_ext <<_ACEOF
20121 /* confdefs.h.  */
20122 _ACEOF
20123 cat confdefs.h >>conftest.$ac_ext
20124 cat >>conftest.$ac_ext <<_ACEOF
20125 /* end confdefs.h.  */
20126 $ac_includes_default
20127 #include <$ac_header>
20128 _ACEOF
20129 rm -f conftest.$ac_objext
20130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20131   (eval $ac_compile) 2>conftest.er1
20132   ac_status=$?
20133   grep -v '^ *+' conftest.er1 >conftest.err
20134   rm -f conftest.er1
20135   cat conftest.err >&5
20136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137   (exit $ac_status); } &&
20138          { ac_try='test -z "$ac_c_werror_flag"
20139                          || test ! -s conftest.err'
20140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141   (eval $ac_try) 2>&5
20142   ac_status=$?
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); }; } &&
20145          { ac_try='test -s conftest.$ac_objext'
20146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147   (eval $ac_try) 2>&5
20148   ac_status=$?
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); }; }; then
20151   ac_header_compiler=yes
20152 else
20153   echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20155
20156 ac_header_compiler=no
20157 fi
20158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20160 echo "${ECHO_T}$ac_header_compiler" >&6
20161
20162 # Is the header present?
20163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20165 cat >conftest.$ac_ext <<_ACEOF
20166 /* confdefs.h.  */
20167 _ACEOF
20168 cat confdefs.h >>conftest.$ac_ext
20169 cat >>conftest.$ac_ext <<_ACEOF
20170 /* end confdefs.h.  */
20171 #include <$ac_header>
20172 _ACEOF
20173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20174   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20175   ac_status=$?
20176   grep -v '^ *+' conftest.er1 >conftest.err
20177   rm -f conftest.er1
20178   cat conftest.err >&5
20179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180   (exit $ac_status); } >/dev/null; then
20181   if test -s conftest.err; then
20182     ac_cpp_err=$ac_c_preproc_warn_flag
20183     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20184   else
20185     ac_cpp_err=
20186   fi
20187 else
20188   ac_cpp_err=yes
20189 fi
20190 if test -z "$ac_cpp_err"; then
20191   ac_header_preproc=yes
20192 else
20193   echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20195
20196   ac_header_preproc=no
20197 fi
20198 rm -f conftest.err conftest.$ac_ext
20199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20200 echo "${ECHO_T}$ac_header_preproc" >&6
20201
20202 # So?  What about this header?
20203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20204   yes:no: )
20205     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20209     ac_header_preproc=yes
20210     ;;
20211   no:yes:* )
20212     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20214     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20215 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20216     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20218     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20219 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20222     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20224     (
20225       cat <<\_ASBOX
20226 ## --------------------------------------------- ##
20227 ## Report this to <http://www.openldap.org/its/> ##
20228 ## --------------------------------------------- ##
20229 _ASBOX
20230     ) |
20231       sed "s/^/$as_me: WARNING:     /" >&2
20232     ;;
20233 esac
20234 echo "$as_me:$LINENO: checking for $ac_header" >&5
20235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20237   echo $ECHO_N "(cached) $ECHO_C" >&6
20238 else
20239   eval "$as_ac_Header=\$ac_header_preproc"
20240 fi
20241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20243
20244 fi
20245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20246   cat >>confdefs.h <<_ACEOF
20247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20248 _ACEOF
20249
20250 fi
20251
20252 done
20253
20254
20255         if test $ac_cv_header_pthread_h = yes ; then
20256                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20257 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20258 if test "${ol_cv_pthread_version+set}" = set; then
20259   echo $ECHO_N "(cached) $ECHO_C" >&6
20260 else
20261
20262         cat >conftest.$ac_ext <<_ACEOF
20263 /* confdefs.h.  */
20264 _ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h.  */
20268
20269 #               include <pthread.h>
20270
20271 int
20272 main ()
20273 {
20274
20275                 int i = PTHREAD_CREATE_JOINABLE;
20276
20277   ;
20278   return 0;
20279 }
20280 _ACEOF
20281 rm -f conftest.$ac_objext
20282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20283   (eval $ac_compile) 2>conftest.er1
20284   ac_status=$?
20285   grep -v '^ *+' conftest.er1 >conftest.err
20286   rm -f conftest.er1
20287   cat conftest.err >&5
20288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289   (exit $ac_status); } &&
20290          { ac_try='test -z "$ac_c_werror_flag"
20291                          || test ! -s conftest.err'
20292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293   (eval $ac_try) 2>&5
20294   ac_status=$?
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); }; } &&
20297          { ac_try='test -s conftest.$ac_objext'
20298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299   (eval $ac_try) 2>&5
20300   ac_status=$?
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); }; }; then
20303
20304         cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h.  */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h.  */
20310 #include <pthread.h>
20311
20312 _ACEOF
20313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20314   $EGREP "pthread_detach" >/dev/null 2>&1; then
20315   ol_cv_pthread_version=10
20316 else
20317   ol_cv_pthread_version=8
20318 fi
20319 rm -f conftest*
20320
20321 else
20322   echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20324
20325
20326         cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h.  */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h.  */
20332
20333 #               include <pthread.h>
20334 #               ifdef PTHREAD_CREATE_UNDETACHED
20335                 draft7
20336 #               endif
20337
20338 _ACEOF
20339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20340   $EGREP "draft7" >/dev/null 2>&1; then
20341   ol_cv_pthread_version=7
20342 else
20343
20344         cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h.  */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h.  */
20350 #include <pthread.h>
20351
20352 _ACEOF
20353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20354   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20355   ol_cv_pthread_version=6
20356 else
20357
20358         cat >conftest.$ac_ext <<_ACEOF
20359 /* confdefs.h.  */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h.  */
20364
20365 #               include <pthread.h>
20366 #ifdef          PTHREAD_MUTEX_INITIALIZER
20367                 draft5
20368 #endif
20369
20370 _ACEOF
20371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20372   $EGREP "draft5" >/dev/null 2>&1; then
20373   ol_cv_pthread_version=5
20374 else
20375   ol_cv_pthread_version=4
20376 fi
20377 rm -f conftest*
20378
20379 fi
20380 rm -f conftest*
20381
20382 fi
20383 rm -f conftest*
20384
20385 fi
20386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20387
20388 fi
20389 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20390 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20391
20392
20393                 if test $ol_cv_pthread_version != 0 ; then
20394
20395 cat >>confdefs.h <<_ACEOF
20396 #define HAVE_PTHREADS $ol_cv_pthread_version
20397 _ACEOF
20398
20399                 else
20400                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20401 echo "$as_me: error: unknown pthread version" >&2;}
20402    { (exit 1); exit 1; }; }
20403                 fi
20404
20405                 # consider threads found
20406                 ol_with_threads=found
20407
20408
20409         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20410 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20411 if test "${ol_cv_header_linux_threads+set}" = set; then
20412   echo $ECHO_N "(cached) $ECHO_C" >&6
20413 else
20414   cat >conftest.$ac_ext <<_ACEOF
20415 /* confdefs.h.  */
20416 _ACEOF
20417 cat confdefs.h >>conftest.$ac_ext
20418 cat >>conftest.$ac_ext <<_ACEOF
20419 /* end confdefs.h.  */
20420 #include <pthread.h>
20421 _ACEOF
20422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20423   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20424   ol_cv_header_linux_threads=yes
20425 else
20426   ol_cv_header_linux_threads=no
20427 fi
20428 rm -f conftest*
20429
20430
20431 fi
20432 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20433 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20434         if test $ol_cv_header_linux_threads = yes; then
20435
20436 cat >>confdefs.h <<\_ACEOF
20437 #define HAVE_LINUX_THREADS 1
20438 _ACEOF
20439
20440         fi
20441
20442
20443         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20444 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20445 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20446   echo $ECHO_N "(cached) $ECHO_C" >&6
20447 else
20448   cat >conftest.$ac_ext <<_ACEOF
20449 /* confdefs.h.  */
20450 _ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h.  */
20454 #include <pthread.h>
20455 #ifdef _POSIX_THREAD_IS_GNU_PTH
20456         __gnu_pth__;
20457 #endif
20458
20459 _ACEOF
20460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20461   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20462   ol_cv_header_gnu_pth_pthread_h=yes
20463 else
20464   ol_cv_header_gnu_pth_pthread_h=no
20465 fi
20466 rm -f conftest*
20467
20468
20469 fi
20470 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20471 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20472
20473
20474                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20475
20476 for ac_header in sched.h
20477 do
20478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20480   echo "$as_me:$LINENO: checking for $ac_header" >&5
20481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20483   echo $ECHO_N "(cached) $ECHO_C" >&6
20484 fi
20485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20487 else
20488   # Is the header compilable?
20489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20491 cat >conftest.$ac_ext <<_ACEOF
20492 /* confdefs.h.  */
20493 _ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h.  */
20497 $ac_includes_default
20498 #include <$ac_header>
20499 _ACEOF
20500 rm -f conftest.$ac_objext
20501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20502   (eval $ac_compile) 2>conftest.er1
20503   ac_status=$?
20504   grep -v '^ *+' conftest.er1 >conftest.err
20505   rm -f conftest.er1
20506   cat conftest.err >&5
20507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508   (exit $ac_status); } &&
20509          { ac_try='test -z "$ac_c_werror_flag"
20510                          || test ! -s conftest.err'
20511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512   (eval $ac_try) 2>&5
20513   ac_status=$?
20514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515   (exit $ac_status); }; } &&
20516          { ac_try='test -s conftest.$ac_objext'
20517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518   (eval $ac_try) 2>&5
20519   ac_status=$?
20520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521   (exit $ac_status); }; }; then
20522   ac_header_compiler=yes
20523 else
20524   echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20526
20527 ac_header_compiler=no
20528 fi
20529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20531 echo "${ECHO_T}$ac_header_compiler" >&6
20532
20533 # Is the header present?
20534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20536 cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h.  */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h.  */
20542 #include <$ac_header>
20543 _ACEOF
20544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20545   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20546   ac_status=$?
20547   grep -v '^ *+' conftest.er1 >conftest.err
20548   rm -f conftest.er1
20549   cat conftest.err >&5
20550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551   (exit $ac_status); } >/dev/null; then
20552   if test -s conftest.err; then
20553     ac_cpp_err=$ac_c_preproc_warn_flag
20554     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20555   else
20556     ac_cpp_err=
20557   fi
20558 else
20559   ac_cpp_err=yes
20560 fi
20561 if test -z "$ac_cpp_err"; then
20562   ac_header_preproc=yes
20563 else
20564   echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20566
20567   ac_header_preproc=no
20568 fi
20569 rm -f conftest.err conftest.$ac_ext
20570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20571 echo "${ECHO_T}$ac_header_preproc" >&6
20572
20573 # So?  What about this header?
20574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20575   yes:no: )
20576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20580     ac_header_preproc=yes
20581     ;;
20582   no:yes:* )
20583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20595     (
20596       cat <<\_ASBOX
20597 ## --------------------------------------------- ##
20598 ## Report this to <http://www.openldap.org/its/> ##
20599 ## --------------------------------------------- ##
20600 _ASBOX
20601     ) |
20602       sed "s/^/$as_me: WARNING:     /" >&2
20603     ;;
20604 esac
20605 echo "$as_me:$LINENO: checking for $ac_header" >&5
20606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20608   echo $ECHO_N "(cached) $ECHO_C" >&6
20609 else
20610   eval "$as_ac_Header=\$ac_header_preproc"
20611 fi
20612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20614
20615 fi
20616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20617   cat >>confdefs.h <<_ACEOF
20618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20619 _ACEOF
20620
20621 fi
20622
20623 done
20624
20625                 fi
20626
20627
20628                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20629 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20630 if test "${ol_cv_pthread_create+set}" = set; then
20631   echo $ECHO_N "(cached) $ECHO_C" >&6
20632 else
20633
20634                         if test "$cross_compiling" = yes; then
20635   cat >conftest.$ac_ext <<_ACEOF
20636 /* confdefs.h.  */
20637 _ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h.  */
20641
20642 /* pthread test headers */
20643 #include <pthread.h>
20644 #if HAVE_PTHREADS < 7
20645 #include <errno.h>
20646 #endif
20647 #ifndef NULL
20648 #define NULL (void*)0
20649 #endif
20650
20651 static void *task(p)
20652         void *p;
20653 {
20654         return (void *) (p == NULL);
20655 }
20656
20657 int
20658 main ()
20659 {
20660
20661         /* pthread test function */
20662 #ifndef PTHREAD_CREATE_DETACHED
20663 #define PTHREAD_CREATE_DETACHED 1
20664 #endif
20665         pthread_t t;
20666         int status;
20667         int detach = PTHREAD_CREATE_DETACHED;
20668
20669 #if HAVE_PTHREADS > 4
20670         /* Final pthreads */
20671         pthread_attr_t attr;
20672
20673         status = pthread_attr_init(&attr);
20674         if( status ) return status;
20675
20676 #if HAVE_PTHREADS < 7
20677         status = pthread_attr_setdetachstate(&attr, &detach);
20678         if( status < 0 ) status = errno;
20679 #else
20680         status = pthread_attr_setdetachstate(&attr, detach);
20681 #endif
20682         if( status ) return status;
20683         status = pthread_create( &t, &attr, task, NULL );
20684 #if HAVE_PTHREADS < 7
20685         if( status < 0 ) status = errno;
20686 #endif
20687         if( status ) return status;
20688 #else
20689         /* Draft 4 pthreads */
20690         status = pthread_create( &t, pthread_attr_default, task, NULL );
20691         if( status ) return errno;
20692
20693         /* give thread a chance to complete */
20694         /* it should remain joinable and hence detachable */
20695         sleep( 1 );
20696
20697         status = pthread_detach( &t );
20698         if( status ) return errno;
20699 #endif
20700
20701 #ifdef HAVE_LINUX_THREADS
20702         pthread_kill_other_threads_np();
20703 #endif
20704
20705         return 0;
20706
20707   ;
20708   return 0;
20709 }
20710 _ACEOF
20711 rm -f conftest.$ac_objext conftest$ac_exeext
20712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20713   (eval $ac_link) 2>conftest.er1
20714   ac_status=$?
20715   grep -v '^ *+' conftest.er1 >conftest.err
20716   rm -f conftest.er1
20717   cat conftest.err >&5
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); } &&
20720          { ac_try='test -z "$ac_c_werror_flag"
20721                          || test ! -s conftest.err'
20722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723   (eval $ac_try) 2>&5
20724   ac_status=$?
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); }; } &&
20727          { ac_try='test -s conftest$ac_exeext'
20728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729   (eval $ac_try) 2>&5
20730   ac_status=$?
20731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732   (exit $ac_status); }; }; then
20733   ol_cv_pthread_create=yes
20734 else
20735   echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
20738 ol_cv_pthread_create=no
20739 fi
20740 rm -f conftest.err conftest.$ac_objext \
20741       conftest$ac_exeext conftest.$ac_ext
20742 else
20743   cat >conftest.$ac_ext <<_ACEOF
20744 /* confdefs.h.  */
20745 _ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h.  */
20749
20750 /* pthread test headers */
20751 #include <pthread.h>
20752 #if HAVE_PTHREADS < 7
20753 #include <errno.h>
20754 #endif
20755 #ifndef NULL
20756 #define NULL (void*)0
20757 #endif
20758
20759 static void *task(p)
20760         void *p;
20761 {
20762         return (void *) (p == NULL);
20763 }
20764
20765
20766 int main(argc, argv)
20767         int argc;
20768         char **argv;
20769 {
20770
20771         /* pthread test function */
20772 #ifndef PTHREAD_CREATE_DETACHED
20773 #define PTHREAD_CREATE_DETACHED 1
20774 #endif
20775         pthread_t t;
20776         int status;
20777         int detach = PTHREAD_CREATE_DETACHED;
20778
20779 #if HAVE_PTHREADS > 4
20780         /* Final pthreads */
20781         pthread_attr_t attr;
20782
20783         status = pthread_attr_init(&attr);
20784         if( status ) return status;
20785
20786 #if HAVE_PTHREADS < 7
20787         status = pthread_attr_setdetachstate(&attr, &detach);
20788         if( status < 0 ) status = errno;
20789 #else
20790         status = pthread_attr_setdetachstate(&attr, detach);
20791 #endif
20792         if( status ) return status;
20793         status = pthread_create( &t, &attr, task, NULL );
20794 #if HAVE_PTHREADS < 7
20795         if( status < 0 ) status = errno;
20796 #endif
20797         if( status ) return status;
20798 #else
20799         /* Draft 4 pthreads */
20800         status = pthread_create( &t, pthread_attr_default, task, NULL );
20801         if( status ) return errno;
20802
20803         /* give thread a chance to complete */
20804         /* it should remain joinable and hence detachable */
20805         sleep( 1 );
20806
20807         status = pthread_detach( &t );
20808         if( status ) return errno;
20809 #endif
20810
20811 #ifdef HAVE_LINUX_THREADS
20812         pthread_kill_other_threads_np();
20813 #endif
20814
20815         return 0;
20816
20817 }
20818
20819 _ACEOF
20820 rm -f conftest$ac_exeext
20821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20822   (eval $ac_link) 2>&5
20823   ac_status=$?
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827   (eval $ac_try) 2>&5
20828   ac_status=$?
20829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830   (exit $ac_status); }; }; then
20831   ol_cv_pthread_create=yes
20832 else
20833   echo "$as_me: program exited with status $ac_status" >&5
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20836
20837 ( exit $ac_status )
20838 ol_cv_pthread_create=no
20839 fi
20840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20841 fi
20842 fi
20843 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20844 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20845
20846                 if test $ol_cv_pthread_create != no ; then
20847                         ol_link_threads=posix
20848                         ol_link_pthreads=""
20849                 fi
20850
20851                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20852 if test "$ol_link_threads" = no ; then
20853         # try -kthread
20854         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20855 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20856 if test "${ol_cv_pthread_kthread+set}" = set; then
20857   echo $ECHO_N "(cached) $ECHO_C" >&6
20858 else
20859
20860                 # save the flags
20861                 ol_LIBS="$LIBS"
20862                 LIBS="-kthread $LIBS"
20863
20864                 if test "$cross_compiling" = yes; then
20865   cat >conftest.$ac_ext <<_ACEOF
20866 /* confdefs.h.  */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h.  */
20871
20872 /* pthread test headers */
20873 #include <pthread.h>
20874 #if HAVE_PTHREADS < 7
20875 #include <errno.h>
20876 #endif
20877 #ifndef NULL
20878 #define NULL (void*)0
20879 #endif
20880
20881 static void *task(p)
20882         void *p;
20883 {
20884         return (void *) (p == NULL);
20885 }
20886
20887 int
20888 main ()
20889 {
20890
20891         /* pthread test function */
20892 #ifndef PTHREAD_CREATE_DETACHED
20893 #define PTHREAD_CREATE_DETACHED 1
20894 #endif
20895         pthread_t t;
20896         int status;
20897         int detach = PTHREAD_CREATE_DETACHED;
20898
20899 #if HAVE_PTHREADS > 4
20900         /* Final pthreads */
20901         pthread_attr_t attr;
20902
20903         status = pthread_attr_init(&attr);
20904         if( status ) return status;
20905
20906 #if HAVE_PTHREADS < 7
20907         status = pthread_attr_setdetachstate(&attr, &detach);
20908         if( status < 0 ) status = errno;
20909 #else
20910         status = pthread_attr_setdetachstate(&attr, detach);
20911 #endif
20912         if( status ) return status;
20913         status = pthread_create( &t, &attr, task, NULL );
20914 #if HAVE_PTHREADS < 7
20915         if( status < 0 ) status = errno;
20916 #endif
20917         if( status ) return status;
20918 #else
20919         /* Draft 4 pthreads */
20920         status = pthread_create( &t, pthread_attr_default, task, NULL );
20921         if( status ) return errno;
20922
20923         /* give thread a chance to complete */
20924         /* it should remain joinable and hence detachable */
20925         sleep( 1 );
20926
20927         status = pthread_detach( &t );
20928         if( status ) return errno;
20929 #endif
20930
20931 #ifdef HAVE_LINUX_THREADS
20932         pthread_kill_other_threads_np();
20933 #endif
20934
20935         return 0;
20936
20937   ;
20938   return 0;
20939 }
20940 _ACEOF
20941 rm -f conftest.$ac_objext conftest$ac_exeext
20942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20943   (eval $ac_link) 2>conftest.er1
20944   ac_status=$?
20945   grep -v '^ *+' conftest.er1 >conftest.err
20946   rm -f conftest.er1
20947   cat conftest.err >&5
20948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949   (exit $ac_status); } &&
20950          { ac_try='test -z "$ac_c_werror_flag"
20951                          || test ! -s conftest.err'
20952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953   (eval $ac_try) 2>&5
20954   ac_status=$?
20955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956   (exit $ac_status); }; } &&
20957          { ac_try='test -s conftest$ac_exeext'
20958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959   (eval $ac_try) 2>&5
20960   ac_status=$?
20961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); }; }; then
20963   ol_cv_pthread_kthread=yes
20964 else
20965   echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20967
20968 ol_cv_pthread_kthread=no
20969 fi
20970 rm -f conftest.err conftest.$ac_objext \
20971       conftest$ac_exeext conftest.$ac_ext
20972 else
20973   cat >conftest.$ac_ext <<_ACEOF
20974 /* confdefs.h.  */
20975 _ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h.  */
20979
20980 /* pthread test headers */
20981 #include <pthread.h>
20982 #if HAVE_PTHREADS < 7
20983 #include <errno.h>
20984 #endif
20985 #ifndef NULL
20986 #define NULL (void*)0
20987 #endif
20988
20989 static void *task(p)
20990         void *p;
20991 {
20992         return (void *) (p == NULL);
20993 }
20994
20995
20996 int main(argc, argv)
20997         int argc;
20998         char **argv;
20999 {
21000
21001         /* pthread test function */
21002 #ifndef PTHREAD_CREATE_DETACHED
21003 #define PTHREAD_CREATE_DETACHED 1
21004 #endif
21005         pthread_t t;
21006         int status;
21007         int detach = PTHREAD_CREATE_DETACHED;
21008
21009 #if HAVE_PTHREADS > 4
21010         /* Final pthreads */
21011         pthread_attr_t attr;
21012
21013         status = pthread_attr_init(&attr);
21014         if( status ) return status;
21015
21016 #if HAVE_PTHREADS < 7
21017         status = pthread_attr_setdetachstate(&attr, &detach);
21018         if( status < 0 ) status = errno;
21019 #else
21020         status = pthread_attr_setdetachstate(&attr, detach);
21021 #endif
21022         if( status ) return status;
21023         status = pthread_create( &t, &attr, task, NULL );
21024 #if HAVE_PTHREADS < 7
21025         if( status < 0 ) status = errno;
21026 #endif
21027         if( status ) return status;
21028 #else
21029         /* Draft 4 pthreads */
21030         status = pthread_create( &t, pthread_attr_default, task, NULL );
21031         if( status ) return errno;
21032
21033         /* give thread a chance to complete */
21034         /* it should remain joinable and hence detachable */
21035         sleep( 1 );
21036
21037         status = pthread_detach( &t );
21038         if( status ) return errno;
21039 #endif
21040
21041 #ifdef HAVE_LINUX_THREADS
21042         pthread_kill_other_threads_np();
21043 #endif
21044
21045         return 0;
21046
21047 }
21048
21049 _ACEOF
21050 rm -f conftest$ac_exeext
21051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21052   (eval $ac_link) 2>&5
21053   ac_status=$?
21054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057   (eval $ac_try) 2>&5
21058   ac_status=$?
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); }; }; then
21061   ol_cv_pthread_kthread=yes
21062 else
21063   echo "$as_me: program exited with status $ac_status" >&5
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21066
21067 ( exit $ac_status )
21068 ol_cv_pthread_kthread=no
21069 fi
21070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21071 fi
21072
21073                 # restore the LIBS
21074                 LIBS="$ol_LIBS"
21075
21076 fi
21077 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21078 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
21079
21080         if test $ol_cv_pthread_kthread = yes ; then
21081                 ol_link_pthreads="-kthread"
21082                 ol_link_threads=posix
21083         fi
21084 fi
21085
21086                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21087 if test "$ol_link_threads" = no ; then
21088         # try -pthread
21089         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21090 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
21091 if test "${ol_cv_pthread_pthread+set}" = set; then
21092   echo $ECHO_N "(cached) $ECHO_C" >&6
21093 else
21094
21095                 # save the flags
21096                 ol_LIBS="$LIBS"
21097                 LIBS="-pthread $LIBS"
21098
21099                 if test "$cross_compiling" = yes; then
21100   cat >conftest.$ac_ext <<_ACEOF
21101 /* confdefs.h.  */
21102 _ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h.  */
21106
21107 /* pthread test headers */
21108 #include <pthread.h>
21109 #if HAVE_PTHREADS < 7
21110 #include <errno.h>
21111 #endif
21112 #ifndef NULL
21113 #define NULL (void*)0
21114 #endif
21115
21116 static void *task(p)
21117         void *p;
21118 {
21119         return (void *) (p == NULL);
21120 }
21121
21122 int
21123 main ()
21124 {
21125
21126         /* pthread test function */
21127 #ifndef PTHREAD_CREATE_DETACHED
21128 #define PTHREAD_CREATE_DETACHED 1
21129 #endif
21130         pthread_t t;
21131         int status;
21132         int detach = PTHREAD_CREATE_DETACHED;
21133
21134 #if HAVE_PTHREADS > 4
21135         /* Final pthreads */
21136         pthread_attr_t attr;
21137
21138         status = pthread_attr_init(&attr);
21139         if( status ) return status;
21140
21141 #if HAVE_PTHREADS < 7
21142         status = pthread_attr_setdetachstate(&attr, &detach);
21143         if( status < 0 ) status = errno;
21144 #else
21145         status = pthread_attr_setdetachstate(&attr, detach);
21146 #endif
21147         if( status ) return status;
21148         status = pthread_create( &t, &attr, task, NULL );
21149 #if HAVE_PTHREADS < 7
21150         if( status < 0 ) status = errno;
21151 #endif
21152         if( status ) return status;
21153 #else
21154         /* Draft 4 pthreads */
21155         status = pthread_create( &t, pthread_attr_default, task, NULL );
21156         if( status ) return errno;
21157
21158         /* give thread a chance to complete */
21159         /* it should remain joinable and hence detachable */
21160         sleep( 1 );
21161
21162         status = pthread_detach( &t );
21163         if( status ) return errno;
21164 #endif
21165
21166 #ifdef HAVE_LINUX_THREADS
21167         pthread_kill_other_threads_np();
21168 #endif
21169
21170         return 0;
21171
21172   ;
21173   return 0;
21174 }
21175 _ACEOF
21176 rm -f conftest.$ac_objext conftest$ac_exeext
21177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21178   (eval $ac_link) 2>conftest.er1
21179   ac_status=$?
21180   grep -v '^ *+' conftest.er1 >conftest.err
21181   rm -f conftest.er1
21182   cat conftest.err >&5
21183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184   (exit $ac_status); } &&
21185          { ac_try='test -z "$ac_c_werror_flag"
21186                          || test ! -s conftest.err'
21187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188   (eval $ac_try) 2>&5
21189   ac_status=$?
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); }; } &&
21192          { ac_try='test -s conftest$ac_exeext'
21193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21194   (eval $ac_try) 2>&5
21195   ac_status=$?
21196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197   (exit $ac_status); }; }; then
21198   ol_cv_pthread_pthread=yes
21199 else
21200   echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.$ac_ext >&5
21202
21203 ol_cv_pthread_pthread=no
21204 fi
21205 rm -f conftest.err conftest.$ac_objext \
21206       conftest$ac_exeext conftest.$ac_ext
21207 else
21208   cat >conftest.$ac_ext <<_ACEOF
21209 /* confdefs.h.  */
21210 _ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h.  */
21214
21215 /* pthread test headers */
21216 #include <pthread.h>
21217 #if HAVE_PTHREADS < 7
21218 #include <errno.h>
21219 #endif
21220 #ifndef NULL
21221 #define NULL (void*)0
21222 #endif
21223
21224 static void *task(p)
21225         void *p;
21226 {
21227         return (void *) (p == NULL);
21228 }
21229
21230
21231 int main(argc, argv)
21232         int argc;
21233         char **argv;
21234 {
21235
21236         /* pthread test function */
21237 #ifndef PTHREAD_CREATE_DETACHED
21238 #define PTHREAD_CREATE_DETACHED 1
21239 #endif
21240         pthread_t t;
21241         int status;
21242         int detach = PTHREAD_CREATE_DETACHED;
21243
21244 #if HAVE_PTHREADS > 4
21245         /* Final pthreads */
21246         pthread_attr_t attr;
21247
21248         status = pthread_attr_init(&attr);
21249         if( status ) return status;
21250
21251 #if HAVE_PTHREADS < 7
21252         status = pthread_attr_setdetachstate(&attr, &detach);
21253         if( status < 0 ) status = errno;
21254 #else
21255         status = pthread_attr_setdetachstate(&attr, detach);
21256 #endif
21257         if( status ) return status;
21258         status = pthread_create( &t, &attr, task, NULL );
21259 #if HAVE_PTHREADS < 7
21260         if( status < 0 ) status = errno;
21261 #endif
21262         if( status ) return status;
21263 #else
21264         /* Draft 4 pthreads */
21265         status = pthread_create( &t, pthread_attr_default, task, NULL );
21266         if( status ) return errno;
21267
21268         /* give thread a chance to complete */
21269         /* it should remain joinable and hence detachable */
21270         sleep( 1 );
21271
21272         status = pthread_detach( &t );
21273         if( status ) return errno;
21274 #endif
21275
21276 #ifdef HAVE_LINUX_THREADS
21277         pthread_kill_other_threads_np();
21278 #endif
21279
21280         return 0;
21281
21282 }
21283
21284 _ACEOF
21285 rm -f conftest$ac_exeext
21286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21287   (eval $ac_link) 2>&5
21288   ac_status=$?
21289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292   (eval $ac_try) 2>&5
21293   ac_status=$?
21294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295   (exit $ac_status); }; }; then
21296   ol_cv_pthread_pthread=yes
21297 else
21298   echo "$as_me: program exited with status $ac_status" >&5
21299 echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302 ( exit $ac_status )
21303 ol_cv_pthread_pthread=no
21304 fi
21305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21306 fi
21307
21308                 # restore the LIBS
21309                 LIBS="$ol_LIBS"
21310
21311 fi
21312 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21313 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21314
21315         if test $ol_cv_pthread_pthread = yes ; then
21316                 ol_link_pthreads="-pthread"
21317                 ol_link_threads=posix
21318         fi
21319 fi
21320
21321                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21322 if test "$ol_link_threads" = no ; then
21323         # try -pthreads
21324         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21325 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21326 if test "${ol_cv_pthread_pthreads+set}" = set; then
21327   echo $ECHO_N "(cached) $ECHO_C" >&6
21328 else
21329
21330                 # save the flags
21331                 ol_LIBS="$LIBS"
21332                 LIBS="-pthreads $LIBS"
21333
21334                 if test "$cross_compiling" = yes; then
21335   cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h.  */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h.  */
21341
21342 /* pthread test headers */
21343 #include <pthread.h>
21344 #if HAVE_PTHREADS < 7
21345 #include <errno.h>
21346 #endif
21347 #ifndef NULL
21348 #define NULL (void*)0
21349 #endif
21350
21351 static void *task(p)
21352         void *p;
21353 {
21354         return (void *) (p == NULL);
21355 }
21356
21357 int
21358 main ()
21359 {
21360
21361         /* pthread test function */
21362 #ifndef PTHREAD_CREATE_DETACHED
21363 #define PTHREAD_CREATE_DETACHED 1
21364 #endif
21365         pthread_t t;
21366         int status;
21367         int detach = PTHREAD_CREATE_DETACHED;
21368
21369 #if HAVE_PTHREADS > 4
21370         /* Final pthreads */
21371         pthread_attr_t attr;
21372
21373         status = pthread_attr_init(&attr);
21374         if( status ) return status;
21375
21376 #if HAVE_PTHREADS < 7
21377         status = pthread_attr_setdetachstate(&attr, &detach);
21378         if( status < 0 ) status = errno;
21379 #else
21380         status = pthread_attr_setdetachstate(&attr, detach);
21381 #endif
21382         if( status ) return status;
21383         status = pthread_create( &t, &attr, task, NULL );
21384 #if HAVE_PTHREADS < 7
21385         if( status < 0 ) status = errno;
21386 #endif
21387         if( status ) return status;
21388 #else
21389         /* Draft 4 pthreads */
21390         status = pthread_create( &t, pthread_attr_default, task, NULL );
21391         if( status ) return errno;
21392
21393         /* give thread a chance to complete */
21394         /* it should remain joinable and hence detachable */
21395         sleep( 1 );
21396
21397         status = pthread_detach( &t );
21398         if( status ) return errno;
21399 #endif
21400
21401 #ifdef HAVE_LINUX_THREADS
21402         pthread_kill_other_threads_np();
21403 #endif
21404
21405         return 0;
21406
21407   ;
21408   return 0;
21409 }
21410 _ACEOF
21411 rm -f conftest.$ac_objext conftest$ac_exeext
21412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21413   (eval $ac_link) 2>conftest.er1
21414   ac_status=$?
21415   grep -v '^ *+' conftest.er1 >conftest.err
21416   rm -f conftest.er1
21417   cat conftest.err >&5
21418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419   (exit $ac_status); } &&
21420          { ac_try='test -z "$ac_c_werror_flag"
21421                          || test ! -s conftest.err'
21422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423   (eval $ac_try) 2>&5
21424   ac_status=$?
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); }; } &&
21427          { ac_try='test -s conftest$ac_exeext'
21428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429   (eval $ac_try) 2>&5
21430   ac_status=$?
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); }; }; then
21433   ol_cv_pthread_pthreads=yes
21434 else
21435   echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438 ol_cv_pthread_pthreads=no
21439 fi
21440 rm -f conftest.err conftest.$ac_objext \
21441       conftest$ac_exeext conftest.$ac_ext
21442 else
21443   cat >conftest.$ac_ext <<_ACEOF
21444 /* confdefs.h.  */
21445 _ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h.  */
21449
21450 /* pthread test headers */
21451 #include <pthread.h>
21452 #if HAVE_PTHREADS < 7
21453 #include <errno.h>
21454 #endif
21455 #ifndef NULL
21456 #define NULL (void*)0
21457 #endif
21458
21459 static void *task(p)
21460         void *p;
21461 {
21462         return (void *) (p == NULL);
21463 }
21464
21465
21466 int main(argc, argv)
21467         int argc;
21468         char **argv;
21469 {
21470
21471         /* pthread test function */
21472 #ifndef PTHREAD_CREATE_DETACHED
21473 #define PTHREAD_CREATE_DETACHED 1
21474 #endif
21475         pthread_t t;
21476         int status;
21477         int detach = PTHREAD_CREATE_DETACHED;
21478
21479 #if HAVE_PTHREADS > 4
21480         /* Final pthreads */
21481         pthread_attr_t attr;
21482
21483         status = pthread_attr_init(&attr);
21484         if( status ) return status;
21485
21486 #if HAVE_PTHREADS < 7
21487         status = pthread_attr_setdetachstate(&attr, &detach);
21488         if( status < 0 ) status = errno;
21489 #else
21490         status = pthread_attr_setdetachstate(&attr, detach);
21491 #endif
21492         if( status ) return status;
21493         status = pthread_create( &t, &attr, task, NULL );
21494 #if HAVE_PTHREADS < 7
21495         if( status < 0 ) status = errno;
21496 #endif
21497         if( status ) return status;
21498 #else
21499         /* Draft 4 pthreads */
21500         status = pthread_create( &t, pthread_attr_default, task, NULL );
21501         if( status ) return errno;
21502
21503         /* give thread a chance to complete */
21504         /* it should remain joinable and hence detachable */
21505         sleep( 1 );
21506
21507         status = pthread_detach( &t );
21508         if( status ) return errno;
21509 #endif
21510
21511 #ifdef HAVE_LINUX_THREADS
21512         pthread_kill_other_threads_np();
21513 #endif
21514
21515         return 0;
21516
21517 }
21518
21519 _ACEOF
21520 rm -f conftest$ac_exeext
21521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21522   (eval $ac_link) 2>&5
21523   ac_status=$?
21524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21527   (eval $ac_try) 2>&5
21528   ac_status=$?
21529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530   (exit $ac_status); }; }; then
21531   ol_cv_pthread_pthreads=yes
21532 else
21533   echo "$as_me: program exited with status $ac_status" >&5
21534 echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21536
21537 ( exit $ac_status )
21538 ol_cv_pthread_pthreads=no
21539 fi
21540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21541 fi
21542
21543                 # restore the LIBS
21544                 LIBS="$ol_LIBS"
21545
21546 fi
21547 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21548 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21549
21550         if test $ol_cv_pthread_pthreads = yes ; then
21551                 ol_link_pthreads="-pthreads"
21552                 ol_link_threads=posix
21553         fi
21554 fi
21555
21556                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21557 if test "$ol_link_threads" = no ; then
21558         # try -mthreads
21559         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21560 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21561 if test "${ol_cv_pthread_mthreads+set}" = set; then
21562   echo $ECHO_N "(cached) $ECHO_C" >&6
21563 else
21564
21565                 # save the flags
21566                 ol_LIBS="$LIBS"
21567                 LIBS="-mthreads $LIBS"
21568
21569                 if test "$cross_compiling" = yes; then
21570   cat >conftest.$ac_ext <<_ACEOF
21571 /* confdefs.h.  */
21572 _ACEOF
21573 cat confdefs.h >>conftest.$ac_ext
21574 cat >>conftest.$ac_ext <<_ACEOF
21575 /* end confdefs.h.  */
21576
21577 /* pthread test headers */
21578 #include <pthread.h>
21579 #if HAVE_PTHREADS < 7
21580 #include <errno.h>
21581 #endif
21582 #ifndef NULL
21583 #define NULL (void*)0
21584 #endif
21585
21586 static void *task(p)
21587         void *p;
21588 {
21589         return (void *) (p == NULL);
21590 }
21591
21592 int
21593 main ()
21594 {
21595
21596         /* pthread test function */
21597 #ifndef PTHREAD_CREATE_DETACHED
21598 #define PTHREAD_CREATE_DETACHED 1
21599 #endif
21600         pthread_t t;
21601         int status;
21602         int detach = PTHREAD_CREATE_DETACHED;
21603
21604 #if HAVE_PTHREADS > 4
21605         /* Final pthreads */
21606         pthread_attr_t attr;
21607
21608         status = pthread_attr_init(&attr);
21609         if( status ) return status;
21610
21611 #if HAVE_PTHREADS < 7
21612         status = pthread_attr_setdetachstate(&attr, &detach);
21613         if( status < 0 ) status = errno;
21614 #else
21615         status = pthread_attr_setdetachstate(&attr, detach);
21616 #endif
21617         if( status ) return status;
21618         status = pthread_create( &t, &attr, task, NULL );
21619 #if HAVE_PTHREADS < 7
21620         if( status < 0 ) status = errno;
21621 #endif
21622         if( status ) return status;
21623 #else
21624         /* Draft 4 pthreads */
21625         status = pthread_create( &t, pthread_attr_default, task, NULL );
21626         if( status ) return errno;
21627
21628         /* give thread a chance to complete */
21629         /* it should remain joinable and hence detachable */
21630         sleep( 1 );
21631
21632         status = pthread_detach( &t );
21633         if( status ) return errno;
21634 #endif
21635
21636 #ifdef HAVE_LINUX_THREADS
21637         pthread_kill_other_threads_np();
21638 #endif
21639
21640         return 0;
21641
21642   ;
21643   return 0;
21644 }
21645 _ACEOF
21646 rm -f conftest.$ac_objext conftest$ac_exeext
21647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21648   (eval $ac_link) 2>conftest.er1
21649   ac_status=$?
21650   grep -v '^ *+' conftest.er1 >conftest.err
21651   rm -f conftest.er1
21652   cat conftest.err >&5
21653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654   (exit $ac_status); } &&
21655          { ac_try='test -z "$ac_c_werror_flag"
21656                          || test ! -s conftest.err'
21657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21658   (eval $ac_try) 2>&5
21659   ac_status=$?
21660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661   (exit $ac_status); }; } &&
21662          { ac_try='test -s conftest$ac_exeext'
21663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664   (eval $ac_try) 2>&5
21665   ac_status=$?
21666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667   (exit $ac_status); }; }; then
21668   ol_cv_pthread_mthreads=yes
21669 else
21670   echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21672
21673 ol_cv_pthread_mthreads=no
21674 fi
21675 rm -f conftest.err conftest.$ac_objext \
21676       conftest$ac_exeext conftest.$ac_ext
21677 else
21678   cat >conftest.$ac_ext <<_ACEOF
21679 /* confdefs.h.  */
21680 _ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h.  */
21684
21685 /* pthread test headers */
21686 #include <pthread.h>
21687 #if HAVE_PTHREADS < 7
21688 #include <errno.h>
21689 #endif
21690 #ifndef NULL
21691 #define NULL (void*)0
21692 #endif
21693
21694 static void *task(p)
21695         void *p;
21696 {
21697         return (void *) (p == NULL);
21698 }
21699
21700
21701 int main(argc, argv)
21702         int argc;
21703         char **argv;
21704 {
21705
21706         /* pthread test function */
21707 #ifndef PTHREAD_CREATE_DETACHED
21708 #define PTHREAD_CREATE_DETACHED 1
21709 #endif
21710         pthread_t t;
21711         int status;
21712         int detach = PTHREAD_CREATE_DETACHED;
21713
21714 #if HAVE_PTHREADS > 4
21715         /* Final pthreads */
21716         pthread_attr_t attr;
21717
21718         status = pthread_attr_init(&attr);
21719         if( status ) return status;
21720
21721 #if HAVE_PTHREADS < 7
21722         status = pthread_attr_setdetachstate(&attr, &detach);
21723         if( status < 0 ) status = errno;
21724 #else
21725         status = pthread_attr_setdetachstate(&attr, detach);
21726 #endif
21727         if( status ) return status;
21728         status = pthread_create( &t, &attr, task, NULL );
21729 #if HAVE_PTHREADS < 7
21730         if( status < 0 ) status = errno;
21731 #endif
21732         if( status ) return status;
21733 #else
21734         /* Draft 4 pthreads */
21735         status = pthread_create( &t, pthread_attr_default, task, NULL );
21736         if( status ) return errno;
21737
21738         /* give thread a chance to complete */
21739         /* it should remain joinable and hence detachable */
21740         sleep( 1 );
21741
21742         status = pthread_detach( &t );
21743         if( status ) return errno;
21744 #endif
21745
21746 #ifdef HAVE_LINUX_THREADS
21747         pthread_kill_other_threads_np();
21748 #endif
21749
21750         return 0;
21751
21752 }
21753
21754 _ACEOF
21755 rm -f conftest$ac_exeext
21756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21757   (eval $ac_link) 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21762   (eval $ac_try) 2>&5
21763   ac_status=$?
21764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765   (exit $ac_status); }; }; then
21766   ol_cv_pthread_mthreads=yes
21767 else
21768   echo "$as_me: program exited with status $ac_status" >&5
21769 echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21771
21772 ( exit $ac_status )
21773 ol_cv_pthread_mthreads=no
21774 fi
21775 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21776 fi
21777
21778                 # restore the LIBS
21779                 LIBS="$ol_LIBS"
21780
21781 fi
21782 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21783 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21784
21785         if test $ol_cv_pthread_mthreads = yes ; then
21786                 ol_link_pthreads="-mthreads"
21787                 ol_link_threads=posix
21788         fi
21789 fi
21790
21791                 # Pthread try link: -thread (ol_cv_pthread_thread)
21792 if test "$ol_link_threads" = no ; then
21793         # try -thread
21794         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21795 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21796 if test "${ol_cv_pthread_thread+set}" = set; then
21797   echo $ECHO_N "(cached) $ECHO_C" >&6
21798 else
21799
21800                 # save the flags
21801                 ol_LIBS="$LIBS"
21802                 LIBS="-thread $LIBS"
21803
21804                 if test "$cross_compiling" = yes; then
21805   cat >conftest.$ac_ext <<_ACEOF
21806 /* confdefs.h.  */
21807 _ACEOF
21808 cat confdefs.h >>conftest.$ac_ext
21809 cat >>conftest.$ac_ext <<_ACEOF
21810 /* end confdefs.h.  */
21811
21812 /* pthread test headers */
21813 #include <pthread.h>
21814 #if HAVE_PTHREADS < 7
21815 #include <errno.h>
21816 #endif
21817 #ifndef NULL
21818 #define NULL (void*)0
21819 #endif
21820
21821 static void *task(p)
21822         void *p;
21823 {
21824         return (void *) (p == NULL);
21825 }
21826
21827 int
21828 main ()
21829 {
21830
21831         /* pthread test function */
21832 #ifndef PTHREAD_CREATE_DETACHED
21833 #define PTHREAD_CREATE_DETACHED 1
21834 #endif
21835         pthread_t t;
21836         int status;
21837         int detach = PTHREAD_CREATE_DETACHED;
21838
21839 #if HAVE_PTHREADS > 4
21840         /* Final pthreads */
21841         pthread_attr_t attr;
21842
21843         status = pthread_attr_init(&attr);
21844         if( status ) return status;
21845
21846 #if HAVE_PTHREADS < 7
21847         status = pthread_attr_setdetachstate(&attr, &detach);
21848         if( status < 0 ) status = errno;
21849 #else
21850         status = pthread_attr_setdetachstate(&attr, detach);
21851 #endif
21852         if( status ) return status;
21853         status = pthread_create( &t, &attr, task, NULL );
21854 #if HAVE_PTHREADS < 7
21855         if( status < 0 ) status = errno;
21856 #endif
21857         if( status ) return status;
21858 #else
21859         /* Draft 4 pthreads */
21860         status = pthread_create( &t, pthread_attr_default, task, NULL );
21861         if( status ) return errno;
21862
21863         /* give thread a chance to complete */
21864         /* it should remain joinable and hence detachable */
21865         sleep( 1 );
21866
21867         status = pthread_detach( &t );
21868         if( status ) return errno;
21869 #endif
21870
21871 #ifdef HAVE_LINUX_THREADS
21872         pthread_kill_other_threads_np();
21873 #endif
21874
21875         return 0;
21876
21877   ;
21878   return 0;
21879 }
21880 _ACEOF
21881 rm -f conftest.$ac_objext conftest$ac_exeext
21882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21883   (eval $ac_link) 2>conftest.er1
21884   ac_status=$?
21885   grep -v '^ *+' conftest.er1 >conftest.err
21886   rm -f conftest.er1
21887   cat conftest.err >&5
21888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889   (exit $ac_status); } &&
21890          { ac_try='test -z "$ac_c_werror_flag"
21891                          || test ! -s conftest.err'
21892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893   (eval $ac_try) 2>&5
21894   ac_status=$?
21895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); }; } &&
21897          { ac_try='test -s conftest$ac_exeext'
21898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899   (eval $ac_try) 2>&5
21900   ac_status=$?
21901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902   (exit $ac_status); }; }; then
21903   ol_cv_pthread_thread=yes
21904 else
21905   echo "$as_me: failed program was:" >&5
21906 sed 's/^/| /' conftest.$ac_ext >&5
21907
21908 ol_cv_pthread_thread=no
21909 fi
21910 rm -f conftest.err conftest.$ac_objext \
21911       conftest$ac_exeext conftest.$ac_ext
21912 else
21913   cat >conftest.$ac_ext <<_ACEOF
21914 /* confdefs.h.  */
21915 _ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h.  */
21919
21920 /* pthread test headers */
21921 #include <pthread.h>
21922 #if HAVE_PTHREADS < 7
21923 #include <errno.h>
21924 #endif
21925 #ifndef NULL
21926 #define NULL (void*)0
21927 #endif
21928
21929 static void *task(p)
21930         void *p;
21931 {
21932         return (void *) (p == NULL);
21933 }
21934
21935
21936 int main(argc, argv)
21937         int argc;
21938         char **argv;
21939 {
21940
21941         /* pthread test function */
21942 #ifndef PTHREAD_CREATE_DETACHED
21943 #define PTHREAD_CREATE_DETACHED 1
21944 #endif
21945         pthread_t t;
21946         int status;
21947         int detach = PTHREAD_CREATE_DETACHED;
21948
21949 #if HAVE_PTHREADS > 4
21950         /* Final pthreads */
21951         pthread_attr_t attr;
21952
21953         status = pthread_attr_init(&attr);
21954         if( status ) return status;
21955
21956 #if HAVE_PTHREADS < 7
21957         status = pthread_attr_setdetachstate(&attr, &detach);
21958         if( status < 0 ) status = errno;
21959 #else
21960         status = pthread_attr_setdetachstate(&attr, detach);
21961 #endif
21962         if( status ) return status;
21963         status = pthread_create( &t, &attr, task, NULL );
21964 #if HAVE_PTHREADS < 7
21965         if( status < 0 ) status = errno;
21966 #endif
21967         if( status ) return status;
21968 #else
21969         /* Draft 4 pthreads */
21970         status = pthread_create( &t, pthread_attr_default, task, NULL );
21971         if( status ) return errno;
21972
21973         /* give thread a chance to complete */
21974         /* it should remain joinable and hence detachable */
21975         sleep( 1 );
21976
21977         status = pthread_detach( &t );
21978         if( status ) return errno;
21979 #endif
21980
21981 #ifdef HAVE_LINUX_THREADS
21982         pthread_kill_other_threads_np();
21983 #endif
21984
21985         return 0;
21986
21987 }
21988
21989 _ACEOF
21990 rm -f conftest$ac_exeext
21991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21992   (eval $ac_link) 2>&5
21993   ac_status=$?
21994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21997   (eval $ac_try) 2>&5
21998   ac_status=$?
21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); }; }; then
22001   ol_cv_pthread_thread=yes
22002 else
22003   echo "$as_me: program exited with status $ac_status" >&5
22004 echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22006
22007 ( exit $ac_status )
22008 ol_cv_pthread_thread=no
22009 fi
22010 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22011 fi
22012
22013                 # restore the LIBS
22014                 LIBS="$ol_LIBS"
22015
22016 fi
22017 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22018 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
22019
22020         if test $ol_cv_pthread_thread = yes ; then
22021                 ol_link_pthreads="-thread"
22022                 ol_link_threads=posix
22023         fi
22024 fi
22025
22026
22027                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22028 if test "$ol_link_threads" = no ; then
22029         # try -lpthread -lmach -lexc -lc_r
22030         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22031 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
22032 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22033   echo $ECHO_N "(cached) $ECHO_C" >&6
22034 else
22035
22036                 # save the flags
22037                 ol_LIBS="$LIBS"
22038                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22039
22040                 if test "$cross_compiling" = yes; then
22041   cat >conftest.$ac_ext <<_ACEOF
22042 /* confdefs.h.  */
22043 _ACEOF
22044 cat confdefs.h >>conftest.$ac_ext
22045 cat >>conftest.$ac_ext <<_ACEOF
22046 /* end confdefs.h.  */
22047
22048 /* pthread test headers */
22049 #include <pthread.h>
22050 #if HAVE_PTHREADS < 7
22051 #include <errno.h>
22052 #endif
22053 #ifndef NULL
22054 #define NULL (void*)0
22055 #endif
22056
22057 static void *task(p)
22058         void *p;
22059 {
22060         return (void *) (p == NULL);
22061 }
22062
22063 int
22064 main ()
22065 {
22066
22067         /* pthread test function */
22068 #ifndef PTHREAD_CREATE_DETACHED
22069 #define PTHREAD_CREATE_DETACHED 1
22070 #endif
22071         pthread_t t;
22072         int status;
22073         int detach = PTHREAD_CREATE_DETACHED;
22074
22075 #if HAVE_PTHREADS > 4
22076         /* Final pthreads */
22077         pthread_attr_t attr;
22078
22079         status = pthread_attr_init(&attr);
22080         if( status ) return status;
22081
22082 #if HAVE_PTHREADS < 7
22083         status = pthread_attr_setdetachstate(&attr, &detach);
22084         if( status < 0 ) status = errno;
22085 #else
22086         status = pthread_attr_setdetachstate(&attr, detach);
22087 #endif
22088         if( status ) return status;
22089         status = pthread_create( &t, &attr, task, NULL );
22090 #if HAVE_PTHREADS < 7
22091         if( status < 0 ) status = errno;
22092 #endif
22093         if( status ) return status;
22094 #else
22095         /* Draft 4 pthreads */
22096         status = pthread_create( &t, pthread_attr_default, task, NULL );
22097         if( status ) return errno;
22098
22099         /* give thread a chance to complete */
22100         /* it should remain joinable and hence detachable */
22101         sleep( 1 );
22102
22103         status = pthread_detach( &t );
22104         if( status ) return errno;
22105 #endif
22106
22107 #ifdef HAVE_LINUX_THREADS
22108         pthread_kill_other_threads_np();
22109 #endif
22110
22111         return 0;
22112
22113   ;
22114   return 0;
22115 }
22116 _ACEOF
22117 rm -f conftest.$ac_objext conftest$ac_exeext
22118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22119   (eval $ac_link) 2>conftest.er1
22120   ac_status=$?
22121   grep -v '^ *+' conftest.er1 >conftest.err
22122   rm -f conftest.er1
22123   cat conftest.err >&5
22124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125   (exit $ac_status); } &&
22126          { ac_try='test -z "$ac_c_werror_flag"
22127                          || test ! -s conftest.err'
22128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22129   (eval $ac_try) 2>&5
22130   ac_status=$?
22131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132   (exit $ac_status); }; } &&
22133          { ac_try='test -s conftest$ac_exeext'
22134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22135   (eval $ac_try) 2>&5
22136   ac_status=$?
22137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138   (exit $ac_status); }; }; then
22139   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22140 else
22141   echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22143
22144 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22145 fi
22146 rm -f conftest.err conftest.$ac_objext \
22147       conftest$ac_exeext conftest.$ac_ext
22148 else
22149   cat >conftest.$ac_ext <<_ACEOF
22150 /* confdefs.h.  */
22151 _ACEOF
22152 cat confdefs.h >>conftest.$ac_ext
22153 cat >>conftest.$ac_ext <<_ACEOF
22154 /* end confdefs.h.  */
22155
22156 /* pthread test headers */
22157 #include <pthread.h>
22158 #if HAVE_PTHREADS < 7
22159 #include <errno.h>
22160 #endif
22161 #ifndef NULL
22162 #define NULL (void*)0
22163 #endif
22164
22165 static void *task(p)
22166         void *p;
22167 {
22168         return (void *) (p == NULL);
22169 }
22170
22171
22172 int main(argc, argv)
22173         int argc;
22174         char **argv;
22175 {
22176
22177         /* pthread test function */
22178 #ifndef PTHREAD_CREATE_DETACHED
22179 #define PTHREAD_CREATE_DETACHED 1
22180 #endif
22181         pthread_t t;
22182         int status;
22183         int detach = PTHREAD_CREATE_DETACHED;
22184
22185 #if HAVE_PTHREADS > 4
22186         /* Final pthreads */
22187         pthread_attr_t attr;
22188
22189         status = pthread_attr_init(&attr);
22190         if( status ) return status;
22191
22192 #if HAVE_PTHREADS < 7
22193         status = pthread_attr_setdetachstate(&attr, &detach);
22194         if( status < 0 ) status = errno;
22195 #else
22196         status = pthread_attr_setdetachstate(&attr, detach);
22197 #endif
22198         if( status ) return status;
22199         status = pthread_create( &t, &attr, task, NULL );
22200 #if HAVE_PTHREADS < 7
22201         if( status < 0 ) status = errno;
22202 #endif
22203         if( status ) return status;
22204 #else
22205         /* Draft 4 pthreads */
22206         status = pthread_create( &t, pthread_attr_default, task, NULL );
22207         if( status ) return errno;
22208
22209         /* give thread a chance to complete */
22210         /* it should remain joinable and hence detachable */
22211         sleep( 1 );
22212
22213         status = pthread_detach( &t );
22214         if( status ) return errno;
22215 #endif
22216
22217 #ifdef HAVE_LINUX_THREADS
22218         pthread_kill_other_threads_np();
22219 #endif
22220
22221         return 0;
22222
22223 }
22224
22225 _ACEOF
22226 rm -f conftest$ac_exeext
22227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22228   (eval $ac_link) 2>&5
22229   ac_status=$?
22230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233   (eval $ac_try) 2>&5
22234   ac_status=$?
22235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236   (exit $ac_status); }; }; then
22237   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22238 else
22239   echo "$as_me: program exited with status $ac_status" >&5
22240 echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22242
22243 ( exit $ac_status )
22244 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22245 fi
22246 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22247 fi
22248
22249                 # restore the LIBS
22250                 LIBS="$ol_LIBS"
22251
22252 fi
22253 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22254 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22255
22256         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22257                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22258                 ol_link_threads=posix
22259         fi
22260 fi
22261
22262                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22263 if test "$ol_link_threads" = no ; then
22264         # try -lpthread -lmach -lexc
22265         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22266 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22267 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22268   echo $ECHO_N "(cached) $ECHO_C" >&6
22269 else
22270
22271                 # save the flags
22272                 ol_LIBS="$LIBS"
22273                 LIBS="-lpthread -lmach -lexc $LIBS"
22274
22275                 if test "$cross_compiling" = yes; then
22276   cat >conftest.$ac_ext <<_ACEOF
22277 /* confdefs.h.  */
22278 _ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h.  */
22282
22283 /* pthread test headers */
22284 #include <pthread.h>
22285 #if HAVE_PTHREADS < 7
22286 #include <errno.h>
22287 #endif
22288 #ifndef NULL
22289 #define NULL (void*)0
22290 #endif
22291
22292 static void *task(p)
22293         void *p;
22294 {
22295         return (void *) (p == NULL);
22296 }
22297
22298 int
22299 main ()
22300 {
22301
22302         /* pthread test function */
22303 #ifndef PTHREAD_CREATE_DETACHED
22304 #define PTHREAD_CREATE_DETACHED 1
22305 #endif
22306         pthread_t t;
22307         int status;
22308         int detach = PTHREAD_CREATE_DETACHED;
22309
22310 #if HAVE_PTHREADS > 4
22311         /* Final pthreads */
22312         pthread_attr_t attr;
22313
22314         status = pthread_attr_init(&attr);
22315         if( status ) return status;
22316
22317 #if HAVE_PTHREADS < 7
22318         status = pthread_attr_setdetachstate(&attr, &detach);
22319         if( status < 0 ) status = errno;
22320 #else
22321         status = pthread_attr_setdetachstate(&attr, detach);
22322 #endif
22323         if( status ) return status;
22324         status = pthread_create( &t, &attr, task, NULL );
22325 #if HAVE_PTHREADS < 7
22326         if( status < 0 ) status = errno;
22327 #endif
22328         if( status ) return status;
22329 #else
22330         /* Draft 4 pthreads */
22331         status = pthread_create( &t, pthread_attr_default, task, NULL );
22332         if( status ) return errno;
22333
22334         /* give thread a chance to complete */
22335         /* it should remain joinable and hence detachable */
22336         sleep( 1 );
22337
22338         status = pthread_detach( &t );
22339         if( status ) return errno;
22340 #endif
22341
22342 #ifdef HAVE_LINUX_THREADS
22343         pthread_kill_other_threads_np();
22344 #endif
22345
22346         return 0;
22347
22348   ;
22349   return 0;
22350 }
22351 _ACEOF
22352 rm -f conftest.$ac_objext conftest$ac_exeext
22353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22354   (eval $ac_link) 2>conftest.er1
22355   ac_status=$?
22356   grep -v '^ *+' conftest.er1 >conftest.err
22357   rm -f conftest.er1
22358   cat conftest.err >&5
22359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360   (exit $ac_status); } &&
22361          { ac_try='test -z "$ac_c_werror_flag"
22362                          || test ! -s conftest.err'
22363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22364   (eval $ac_try) 2>&5
22365   ac_status=$?
22366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367   (exit $ac_status); }; } &&
22368          { ac_try='test -s conftest$ac_exeext'
22369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370   (eval $ac_try) 2>&5
22371   ac_status=$?
22372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373   (exit $ac_status); }; }; then
22374   ol_cv_pthread_lpthread_lmach_lexc=yes
22375 else
22376   echo "$as_me: failed program was:" >&5
22377 sed 's/^/| /' conftest.$ac_ext >&5
22378
22379 ol_cv_pthread_lpthread_lmach_lexc=no
22380 fi
22381 rm -f conftest.err conftest.$ac_objext \
22382       conftest$ac_exeext conftest.$ac_ext
22383 else
22384   cat >conftest.$ac_ext <<_ACEOF
22385 /* confdefs.h.  */
22386 _ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h.  */
22390
22391 /* pthread test headers */
22392 #include <pthread.h>
22393 #if HAVE_PTHREADS < 7
22394 #include <errno.h>
22395 #endif
22396 #ifndef NULL
22397 #define NULL (void*)0
22398 #endif
22399
22400 static void *task(p)
22401         void *p;
22402 {
22403         return (void *) (p == NULL);
22404 }
22405
22406
22407 int main(argc, argv)
22408         int argc;
22409         char **argv;
22410 {
22411
22412         /* pthread test function */
22413 #ifndef PTHREAD_CREATE_DETACHED
22414 #define PTHREAD_CREATE_DETACHED 1
22415 #endif
22416         pthread_t t;
22417         int status;
22418         int detach = PTHREAD_CREATE_DETACHED;
22419
22420 #if HAVE_PTHREADS > 4
22421         /* Final pthreads */
22422         pthread_attr_t attr;
22423
22424         status = pthread_attr_init(&attr);
22425         if( status ) return status;
22426
22427 #if HAVE_PTHREADS < 7
22428         status = pthread_attr_setdetachstate(&attr, &detach);
22429         if( status < 0 ) status = errno;
22430 #else
22431         status = pthread_attr_setdetachstate(&attr, detach);
22432 #endif
22433         if( status ) return status;
22434         status = pthread_create( &t, &attr, task, NULL );
22435 #if HAVE_PTHREADS < 7
22436         if( status < 0 ) status = errno;
22437 #endif
22438         if( status ) return status;
22439 #else
22440         /* Draft 4 pthreads */
22441         status = pthread_create( &t, pthread_attr_default, task, NULL );
22442         if( status ) return errno;
22443
22444         /* give thread a chance to complete */
22445         /* it should remain joinable and hence detachable */
22446         sleep( 1 );
22447
22448         status = pthread_detach( &t );
22449         if( status ) return errno;
22450 #endif
22451
22452 #ifdef HAVE_LINUX_THREADS
22453         pthread_kill_other_threads_np();
22454 #endif
22455
22456         return 0;
22457
22458 }
22459
22460 _ACEOF
22461 rm -f conftest$ac_exeext
22462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22463   (eval $ac_link) 2>&5
22464   ac_status=$?
22465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22468   (eval $ac_try) 2>&5
22469   ac_status=$?
22470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471   (exit $ac_status); }; }; then
22472   ol_cv_pthread_lpthread_lmach_lexc=yes
22473 else
22474   echo "$as_me: program exited with status $ac_status" >&5
22475 echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22477
22478 ( exit $ac_status )
22479 ol_cv_pthread_lpthread_lmach_lexc=no
22480 fi
22481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22482 fi
22483
22484                 # restore the LIBS
22485                 LIBS="$ol_LIBS"
22486
22487 fi
22488 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22489 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22490
22491         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22492                 ol_link_pthreads="-lpthread -lmach -lexc"
22493                 ol_link_threads=posix
22494         fi
22495 fi
22496
22497
22498                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22499 if test "$ol_link_threads" = no ; then
22500         # try -lpthread -Wl,-woff,85
22501         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22502 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22503 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22504   echo $ECHO_N "(cached) $ECHO_C" >&6
22505 else
22506
22507                 # save the flags
22508                 ol_LIBS="$LIBS"
22509                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22510
22511                 if test "$cross_compiling" = yes; then
22512   cat >conftest.$ac_ext <<_ACEOF
22513 /* confdefs.h.  */
22514 _ACEOF
22515 cat confdefs.h >>conftest.$ac_ext
22516 cat >>conftest.$ac_ext <<_ACEOF
22517 /* end confdefs.h.  */
22518
22519 /* pthread test headers */
22520 #include <pthread.h>
22521 #if HAVE_PTHREADS < 7
22522 #include <errno.h>
22523 #endif
22524 #ifndef NULL
22525 #define NULL (void*)0
22526 #endif
22527
22528 static void *task(p)
22529         void *p;
22530 {
22531         return (void *) (p == NULL);
22532 }
22533
22534 int
22535 main ()
22536 {
22537
22538         /* pthread test function */
22539 #ifndef PTHREAD_CREATE_DETACHED
22540 #define PTHREAD_CREATE_DETACHED 1
22541 #endif
22542         pthread_t t;
22543         int status;
22544         int detach = PTHREAD_CREATE_DETACHED;
22545
22546 #if HAVE_PTHREADS > 4
22547         /* Final pthreads */
22548         pthread_attr_t attr;
22549
22550         status = pthread_attr_init(&attr);
22551         if( status ) return status;
22552
22553 #if HAVE_PTHREADS < 7
22554         status = pthread_attr_setdetachstate(&attr, &detach);
22555         if( status < 0 ) status = errno;
22556 #else
22557         status = pthread_attr_setdetachstate(&attr, detach);
22558 #endif
22559         if( status ) return status;
22560         status = pthread_create( &t, &attr, task, NULL );
22561 #if HAVE_PTHREADS < 7
22562         if( status < 0 ) status = errno;
22563 #endif
22564         if( status ) return status;
22565 #else
22566         /* Draft 4 pthreads */
22567         status = pthread_create( &t, pthread_attr_default, task, NULL );
22568         if( status ) return errno;
22569
22570         /* give thread a chance to complete */
22571         /* it should remain joinable and hence detachable */
22572         sleep( 1 );
22573
22574         status = pthread_detach( &t );
22575         if( status ) return errno;
22576 #endif
22577
22578 #ifdef HAVE_LINUX_THREADS
22579         pthread_kill_other_threads_np();
22580 #endif
22581
22582         return 0;
22583
22584   ;
22585   return 0;
22586 }
22587 _ACEOF
22588 rm -f conftest.$ac_objext conftest$ac_exeext
22589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22590   (eval $ac_link) 2>conftest.er1
22591   ac_status=$?
22592   grep -v '^ *+' conftest.er1 >conftest.err
22593   rm -f conftest.er1
22594   cat conftest.err >&5
22595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596   (exit $ac_status); } &&
22597          { ac_try='test -z "$ac_c_werror_flag"
22598                          || test ! -s conftest.err'
22599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22600   (eval $ac_try) 2>&5
22601   ac_status=$?
22602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603   (exit $ac_status); }; } &&
22604          { ac_try='test -s conftest$ac_exeext'
22605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22606   (eval $ac_try) 2>&5
22607   ac_status=$?
22608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609   (exit $ac_status); }; }; then
22610   ol_cv_pthread_lib_lpthread_woff=yes
22611 else
22612   echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22614
22615 ol_cv_pthread_lib_lpthread_woff=no
22616 fi
22617 rm -f conftest.err conftest.$ac_objext \
22618       conftest$ac_exeext conftest.$ac_ext
22619 else
22620   cat >conftest.$ac_ext <<_ACEOF
22621 /* confdefs.h.  */
22622 _ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h.  */
22626
22627 /* pthread test headers */
22628 #include <pthread.h>
22629 #if HAVE_PTHREADS < 7
22630 #include <errno.h>
22631 #endif
22632 #ifndef NULL
22633 #define NULL (void*)0
22634 #endif
22635
22636 static void *task(p)
22637         void *p;
22638 {
22639         return (void *) (p == NULL);
22640 }
22641
22642
22643 int main(argc, argv)
22644         int argc;
22645         char **argv;
22646 {
22647
22648         /* pthread test function */
22649 #ifndef PTHREAD_CREATE_DETACHED
22650 #define PTHREAD_CREATE_DETACHED 1
22651 #endif
22652         pthread_t t;
22653         int status;
22654         int detach = PTHREAD_CREATE_DETACHED;
22655
22656 #if HAVE_PTHREADS > 4
22657         /* Final pthreads */
22658         pthread_attr_t attr;
22659
22660         status = pthread_attr_init(&attr);
22661         if( status ) return status;
22662
22663 #if HAVE_PTHREADS < 7
22664         status = pthread_attr_setdetachstate(&attr, &detach);
22665         if( status < 0 ) status = errno;
22666 #else
22667         status = pthread_attr_setdetachstate(&attr, detach);
22668 #endif
22669         if( status ) return status;
22670         status = pthread_create( &t, &attr, task, NULL );
22671 #if HAVE_PTHREADS < 7
22672         if( status < 0 ) status = errno;
22673 #endif
22674         if( status ) return status;
22675 #else
22676         /* Draft 4 pthreads */
22677         status = pthread_create( &t, pthread_attr_default, task, NULL );
22678         if( status ) return errno;
22679
22680         /* give thread a chance to complete */
22681         /* it should remain joinable and hence detachable */
22682         sleep( 1 );
22683
22684         status = pthread_detach( &t );
22685         if( status ) return errno;
22686 #endif
22687
22688 #ifdef HAVE_LINUX_THREADS
22689         pthread_kill_other_threads_np();
22690 #endif
22691
22692         return 0;
22693
22694 }
22695
22696 _ACEOF
22697 rm -f conftest$ac_exeext
22698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22699   (eval $ac_link) 2>&5
22700   ac_status=$?
22701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22704   (eval $ac_try) 2>&5
22705   ac_status=$?
22706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707   (exit $ac_status); }; }; then
22708   ol_cv_pthread_lib_lpthread_woff=yes
22709 else
22710   echo "$as_me: program exited with status $ac_status" >&5
22711 echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22713
22714 ( exit $ac_status )
22715 ol_cv_pthread_lib_lpthread_woff=no
22716 fi
22717 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22718 fi
22719
22720                 # restore the LIBS
22721                 LIBS="$ol_LIBS"
22722
22723 fi
22724 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22725 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22726
22727         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22728                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22729                 ol_link_threads=posix
22730         fi
22731 fi
22732
22733
22734                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22735 if test "$ol_link_threads" = no ; then
22736         # try -lpthread
22737         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22738 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22739 if test "${ol_cv_pthread_lpthread+set}" = set; then
22740   echo $ECHO_N "(cached) $ECHO_C" >&6
22741 else
22742
22743                 # save the flags
22744                 ol_LIBS="$LIBS"
22745                 LIBS="-lpthread $LIBS"
22746
22747                 if test "$cross_compiling" = yes; then
22748   cat >conftest.$ac_ext <<_ACEOF
22749 /* confdefs.h.  */
22750 _ACEOF
22751 cat confdefs.h >>conftest.$ac_ext
22752 cat >>conftest.$ac_ext <<_ACEOF
22753 /* end confdefs.h.  */
22754
22755 /* pthread test headers */
22756 #include <pthread.h>
22757 #if HAVE_PTHREADS < 7
22758 #include <errno.h>
22759 #endif
22760 #ifndef NULL
22761 #define NULL (void*)0
22762 #endif
22763
22764 static void *task(p)
22765         void *p;
22766 {
22767         return (void *) (p == NULL);
22768 }
22769
22770 int
22771 main ()
22772 {
22773
22774         /* pthread test function */
22775 #ifndef PTHREAD_CREATE_DETACHED
22776 #define PTHREAD_CREATE_DETACHED 1
22777 #endif
22778         pthread_t t;
22779         int status;
22780         int detach = PTHREAD_CREATE_DETACHED;
22781
22782 #if HAVE_PTHREADS > 4
22783         /* Final pthreads */
22784         pthread_attr_t attr;
22785
22786         status = pthread_attr_init(&attr);
22787         if( status ) return status;
22788
22789 #if HAVE_PTHREADS < 7
22790         status = pthread_attr_setdetachstate(&attr, &detach);
22791         if( status < 0 ) status = errno;
22792 #else
22793         status = pthread_attr_setdetachstate(&attr, detach);
22794 #endif
22795         if( status ) return status;
22796         status = pthread_create( &t, &attr, task, NULL );
22797 #if HAVE_PTHREADS < 7
22798         if( status < 0 ) status = errno;
22799 #endif
22800         if( status ) return status;
22801 #else
22802         /* Draft 4 pthreads */
22803         status = pthread_create( &t, pthread_attr_default, task, NULL );
22804         if( status ) return errno;
22805
22806         /* give thread a chance to complete */
22807         /* it should remain joinable and hence detachable */
22808         sleep( 1 );
22809
22810         status = pthread_detach( &t );
22811         if( status ) return errno;
22812 #endif
22813
22814 #ifdef HAVE_LINUX_THREADS
22815         pthread_kill_other_threads_np();
22816 #endif
22817
22818         return 0;
22819
22820   ;
22821   return 0;
22822 }
22823 _ACEOF
22824 rm -f conftest.$ac_objext conftest$ac_exeext
22825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22826   (eval $ac_link) 2>conftest.er1
22827   ac_status=$?
22828   grep -v '^ *+' conftest.er1 >conftest.err
22829   rm -f conftest.er1
22830   cat conftest.err >&5
22831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832   (exit $ac_status); } &&
22833          { ac_try='test -z "$ac_c_werror_flag"
22834                          || test ! -s conftest.err'
22835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836   (eval $ac_try) 2>&5
22837   ac_status=$?
22838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839   (exit $ac_status); }; } &&
22840          { ac_try='test -s conftest$ac_exeext'
22841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22842   (eval $ac_try) 2>&5
22843   ac_status=$?
22844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845   (exit $ac_status); }; }; then
22846   ol_cv_pthread_lpthread=yes
22847 else
22848   echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22850
22851 ol_cv_pthread_lpthread=no
22852 fi
22853 rm -f conftest.err conftest.$ac_objext \
22854       conftest$ac_exeext conftest.$ac_ext
22855 else
22856   cat >conftest.$ac_ext <<_ACEOF
22857 /* confdefs.h.  */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h.  */
22862
22863 /* pthread test headers */
22864 #include <pthread.h>
22865 #if HAVE_PTHREADS < 7
22866 #include <errno.h>
22867 #endif
22868 #ifndef NULL
22869 #define NULL (void*)0
22870 #endif
22871
22872 static void *task(p)
22873         void *p;
22874 {
22875         return (void *) (p == NULL);
22876 }
22877
22878
22879 int main(argc, argv)
22880         int argc;
22881         char **argv;
22882 {
22883
22884         /* pthread test function */
22885 #ifndef PTHREAD_CREATE_DETACHED
22886 #define PTHREAD_CREATE_DETACHED 1
22887 #endif
22888         pthread_t t;
22889         int status;
22890         int detach = PTHREAD_CREATE_DETACHED;
22891
22892 #if HAVE_PTHREADS > 4
22893         /* Final pthreads */
22894         pthread_attr_t attr;
22895
22896         status = pthread_attr_init(&attr);
22897         if( status ) return status;
22898
22899 #if HAVE_PTHREADS < 7
22900         status = pthread_attr_setdetachstate(&attr, &detach);
22901         if( status < 0 ) status = errno;
22902 #else
22903         status = pthread_attr_setdetachstate(&attr, detach);
22904 #endif
22905         if( status ) return status;
22906         status = pthread_create( &t, &attr, task, NULL );
22907 #if HAVE_PTHREADS < 7
22908         if( status < 0 ) status = errno;
22909 #endif
22910         if( status ) return status;
22911 #else
22912         /* Draft 4 pthreads */
22913         status = pthread_create( &t, pthread_attr_default, task, NULL );
22914         if( status ) return errno;
22915
22916         /* give thread a chance to complete */
22917         /* it should remain joinable and hence detachable */
22918         sleep( 1 );
22919
22920         status = pthread_detach( &t );
22921         if( status ) return errno;
22922 #endif
22923
22924 #ifdef HAVE_LINUX_THREADS
22925         pthread_kill_other_threads_np();
22926 #endif
22927
22928         return 0;
22929
22930 }
22931
22932 _ACEOF
22933 rm -f conftest$ac_exeext
22934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22935   (eval $ac_link) 2>&5
22936   ac_status=$?
22937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22940   (eval $ac_try) 2>&5
22941   ac_status=$?
22942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943   (exit $ac_status); }; }; then
22944   ol_cv_pthread_lpthread=yes
22945 else
22946   echo "$as_me: program exited with status $ac_status" >&5
22947 echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22949
22950 ( exit $ac_status )
22951 ol_cv_pthread_lpthread=no
22952 fi
22953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22954 fi
22955
22956                 # restore the LIBS
22957                 LIBS="$ol_LIBS"
22958
22959 fi
22960 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22961 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22962
22963         if test $ol_cv_pthread_lpthread = yes ; then
22964                 ol_link_pthreads="-lpthread"
22965                 ol_link_threads=posix
22966         fi
22967 fi
22968
22969                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22970 if test "$ol_link_threads" = no ; then
22971         # try -lc_r
22972         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22973 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22974 if test "${ol_cv_pthread_lc_r+set}" = set; then
22975   echo $ECHO_N "(cached) $ECHO_C" >&6
22976 else
22977
22978                 # save the flags
22979                 ol_LIBS="$LIBS"
22980                 LIBS="-lc_r $LIBS"
22981
22982                 if test "$cross_compiling" = yes; then
22983   cat >conftest.$ac_ext <<_ACEOF
22984 /* confdefs.h.  */
22985 _ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h.  */
22989
22990 /* pthread test headers */
22991 #include <pthread.h>
22992 #if HAVE_PTHREADS < 7
22993 #include <errno.h>
22994 #endif
22995 #ifndef NULL
22996 #define NULL (void*)0
22997 #endif
22998
22999 static void *task(p)
23000         void *p;
23001 {
23002         return (void *) (p == NULL);
23003 }
23004
23005 int
23006 main ()
23007 {
23008
23009         /* pthread test function */
23010 #ifndef PTHREAD_CREATE_DETACHED
23011 #define PTHREAD_CREATE_DETACHED 1
23012 #endif
23013         pthread_t t;
23014         int status;
23015         int detach = PTHREAD_CREATE_DETACHED;
23016
23017 #if HAVE_PTHREADS > 4
23018         /* Final pthreads */
23019         pthread_attr_t attr;
23020
23021         status = pthread_attr_init(&attr);
23022         if( status ) return status;
23023
23024 #if HAVE_PTHREADS < 7
23025         status = pthread_attr_setdetachstate(&attr, &detach);
23026         if( status < 0 ) status = errno;
23027 #else
23028         status = pthread_attr_setdetachstate(&attr, detach);
23029 #endif
23030         if( status ) return status;
23031         status = pthread_create( &t, &attr, task, NULL );
23032 #if HAVE_PTHREADS < 7
23033         if( status < 0 ) status = errno;
23034 #endif
23035         if( status ) return status;
23036 #else
23037         /* Draft 4 pthreads */
23038         status = pthread_create( &t, pthread_attr_default, task, NULL );
23039         if( status ) return errno;
23040
23041         /* give thread a chance to complete */
23042         /* it should remain joinable and hence detachable */
23043         sleep( 1 );
23044
23045         status = pthread_detach( &t );
23046         if( status ) return errno;
23047 #endif
23048
23049 #ifdef HAVE_LINUX_THREADS
23050         pthread_kill_other_threads_np();
23051 #endif
23052
23053         return 0;
23054
23055   ;
23056   return 0;
23057 }
23058 _ACEOF
23059 rm -f conftest.$ac_objext conftest$ac_exeext
23060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23061   (eval $ac_link) 2>conftest.er1
23062   ac_status=$?
23063   grep -v '^ *+' conftest.er1 >conftest.err
23064   rm -f conftest.er1
23065   cat conftest.err >&5
23066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); } &&
23068          { ac_try='test -z "$ac_c_werror_flag"
23069                          || test ! -s conftest.err'
23070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23071   (eval $ac_try) 2>&5
23072   ac_status=$?
23073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074   (exit $ac_status); }; } &&
23075          { ac_try='test -s conftest$ac_exeext'
23076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077   (eval $ac_try) 2>&5
23078   ac_status=$?
23079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); }; }; then
23081   ol_cv_pthread_lc_r=yes
23082 else
23083   echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23085
23086 ol_cv_pthread_lc_r=no
23087 fi
23088 rm -f conftest.err conftest.$ac_objext \
23089       conftest$ac_exeext conftest.$ac_ext
23090 else
23091   cat >conftest.$ac_ext <<_ACEOF
23092 /* confdefs.h.  */
23093 _ACEOF
23094 cat confdefs.h >>conftest.$ac_ext
23095 cat >>conftest.$ac_ext <<_ACEOF
23096 /* end confdefs.h.  */
23097
23098 /* pthread test headers */
23099 #include <pthread.h>
23100 #if HAVE_PTHREADS < 7
23101 #include <errno.h>
23102 #endif
23103 #ifndef NULL
23104 #define NULL (void*)0
23105 #endif
23106
23107 static void *task(p)
23108         void *p;
23109 {
23110         return (void *) (p == NULL);
23111 }
23112
23113
23114 int main(argc, argv)
23115         int argc;
23116         char **argv;
23117 {
23118
23119         /* pthread test function */
23120 #ifndef PTHREAD_CREATE_DETACHED
23121 #define PTHREAD_CREATE_DETACHED 1
23122 #endif
23123         pthread_t t;
23124         int status;
23125         int detach = PTHREAD_CREATE_DETACHED;
23126
23127 #if HAVE_PTHREADS > 4
23128         /* Final pthreads */
23129         pthread_attr_t attr;
23130
23131         status = pthread_attr_init(&attr);
23132         if( status ) return status;
23133
23134 #if HAVE_PTHREADS < 7
23135         status = pthread_attr_setdetachstate(&attr, &detach);
23136         if( status < 0 ) status = errno;
23137 #else
23138         status = pthread_attr_setdetachstate(&attr, detach);
23139 #endif
23140         if( status ) return status;
23141         status = pthread_create( &t, &attr, task, NULL );
23142 #if HAVE_PTHREADS < 7
23143         if( status < 0 ) status = errno;
23144 #endif
23145         if( status ) return status;
23146 #else
23147         /* Draft 4 pthreads */
23148         status = pthread_create( &t, pthread_attr_default, task, NULL );
23149         if( status ) return errno;
23150
23151         /* give thread a chance to complete */
23152         /* it should remain joinable and hence detachable */
23153         sleep( 1 );
23154
23155         status = pthread_detach( &t );
23156         if( status ) return errno;
23157 #endif
23158
23159 #ifdef HAVE_LINUX_THREADS
23160         pthread_kill_other_threads_np();
23161 #endif
23162
23163         return 0;
23164
23165 }
23166
23167 _ACEOF
23168 rm -f conftest$ac_exeext
23169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23170   (eval $ac_link) 2>&5
23171   ac_status=$?
23172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175   (eval $ac_try) 2>&5
23176   ac_status=$?
23177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178   (exit $ac_status); }; }; then
23179   ol_cv_pthread_lc_r=yes
23180 else
23181   echo "$as_me: program exited with status $ac_status" >&5
23182 echo "$as_me: failed program was:" >&5
23183 sed 's/^/| /' conftest.$ac_ext >&5
23184
23185 ( exit $ac_status )
23186 ol_cv_pthread_lc_r=no
23187 fi
23188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23189 fi
23190
23191                 # restore the LIBS
23192                 LIBS="$ol_LIBS"
23193
23194 fi
23195 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23196 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
23197
23198         if test $ol_cv_pthread_lc_r = yes ; then
23199                 ol_link_pthreads="-lc_r"
23200                 ol_link_threads=posix
23201         fi
23202 fi
23203
23204
23205                 # Pthread try link: -threads (ol_cv_pthread_threads)
23206 if test "$ol_link_threads" = no ; then
23207         # try -threads
23208         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23209 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23210 if test "${ol_cv_pthread_threads+set}" = set; then
23211   echo $ECHO_N "(cached) $ECHO_C" >&6
23212 else
23213
23214                 # save the flags
23215                 ol_LIBS="$LIBS"
23216                 LIBS="-threads $LIBS"
23217
23218                 if test "$cross_compiling" = yes; then
23219   cat >conftest.$ac_ext <<_ACEOF
23220 /* confdefs.h.  */
23221 _ACEOF
23222 cat confdefs.h >>conftest.$ac_ext
23223 cat >>conftest.$ac_ext <<_ACEOF
23224 /* end confdefs.h.  */
23225
23226 /* pthread test headers */
23227 #include <pthread.h>
23228 #if HAVE_PTHREADS < 7
23229 #include <errno.h>
23230 #endif
23231 #ifndef NULL
23232 #define NULL (void*)0
23233 #endif
23234
23235 static void *task(p)
23236         void *p;
23237 {
23238         return (void *) (p == NULL);
23239 }
23240
23241 int
23242 main ()
23243 {
23244
23245         /* pthread test function */
23246 #ifndef PTHREAD_CREATE_DETACHED
23247 #define PTHREAD_CREATE_DETACHED 1
23248 #endif
23249         pthread_t t;
23250         int status;
23251         int detach = PTHREAD_CREATE_DETACHED;
23252
23253 #if HAVE_PTHREADS > 4
23254         /* Final pthreads */
23255         pthread_attr_t attr;
23256
23257         status = pthread_attr_init(&attr);
23258         if( status ) return status;
23259
23260 #if HAVE_PTHREADS < 7
23261         status = pthread_attr_setdetachstate(&attr, &detach);
23262         if( status < 0 ) status = errno;
23263 #else
23264         status = pthread_attr_setdetachstate(&attr, detach);
23265 #endif
23266         if( status ) return status;
23267         status = pthread_create( &t, &attr, task, NULL );
23268 #if HAVE_PTHREADS < 7
23269         if( status < 0 ) status = errno;
23270 #endif
23271         if( status ) return status;
23272 #else
23273         /* Draft 4 pthreads */
23274         status = pthread_create( &t, pthread_attr_default, task, NULL );
23275         if( status ) return errno;
23276
23277         /* give thread a chance to complete */
23278         /* it should remain joinable and hence detachable */
23279         sleep( 1 );
23280
23281         status = pthread_detach( &t );
23282         if( status ) return errno;
23283 #endif
23284
23285 #ifdef HAVE_LINUX_THREADS
23286         pthread_kill_other_threads_np();
23287 #endif
23288
23289         return 0;
23290
23291   ;
23292   return 0;
23293 }
23294 _ACEOF
23295 rm -f conftest.$ac_objext conftest$ac_exeext
23296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23297   (eval $ac_link) 2>conftest.er1
23298   ac_status=$?
23299   grep -v '^ *+' conftest.er1 >conftest.err
23300   rm -f conftest.er1
23301   cat conftest.err >&5
23302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303   (exit $ac_status); } &&
23304          { ac_try='test -z "$ac_c_werror_flag"
23305                          || test ! -s conftest.err'
23306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23307   (eval $ac_try) 2>&5
23308   ac_status=$?
23309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310   (exit $ac_status); }; } &&
23311          { ac_try='test -s conftest$ac_exeext'
23312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23313   (eval $ac_try) 2>&5
23314   ac_status=$?
23315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316   (exit $ac_status); }; }; then
23317   ol_cv_pthread_threads=yes
23318 else
23319   echo "$as_me: failed program was:" >&5
23320 sed 's/^/| /' conftest.$ac_ext >&5
23321
23322 ol_cv_pthread_threads=no
23323 fi
23324 rm -f conftest.err conftest.$ac_objext \
23325       conftest$ac_exeext conftest.$ac_ext
23326 else
23327   cat >conftest.$ac_ext <<_ACEOF
23328 /* confdefs.h.  */
23329 _ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h.  */
23333
23334 /* pthread test headers */
23335 #include <pthread.h>
23336 #if HAVE_PTHREADS < 7
23337 #include <errno.h>
23338 #endif
23339 #ifndef NULL
23340 #define NULL (void*)0
23341 #endif
23342
23343 static void *task(p)
23344         void *p;
23345 {
23346         return (void *) (p == NULL);
23347 }
23348
23349
23350 int main(argc, argv)
23351         int argc;
23352         char **argv;
23353 {
23354
23355         /* pthread test function */
23356 #ifndef PTHREAD_CREATE_DETACHED
23357 #define PTHREAD_CREATE_DETACHED 1
23358 #endif
23359         pthread_t t;
23360         int status;
23361         int detach = PTHREAD_CREATE_DETACHED;
23362
23363 #if HAVE_PTHREADS > 4
23364         /* Final pthreads */
23365         pthread_attr_t attr;
23366
23367         status = pthread_attr_init(&attr);
23368         if( status ) return status;
23369
23370 #if HAVE_PTHREADS < 7
23371         status = pthread_attr_setdetachstate(&attr, &detach);
23372         if( status < 0 ) status = errno;
23373 #else
23374         status = pthread_attr_setdetachstate(&attr, detach);
23375 #endif
23376         if( status ) return status;
23377         status = pthread_create( &t, &attr, task, NULL );
23378 #if HAVE_PTHREADS < 7
23379         if( status < 0 ) status = errno;
23380 #endif
23381         if( status ) return status;
23382 #else
23383         /* Draft 4 pthreads */
23384         status = pthread_create( &t, pthread_attr_default, task, NULL );
23385         if( status ) return errno;
23386
23387         /* give thread a chance to complete */
23388         /* it should remain joinable and hence detachable */
23389         sleep( 1 );
23390
23391         status = pthread_detach( &t );
23392         if( status ) return errno;
23393 #endif
23394
23395 #ifdef HAVE_LINUX_THREADS
23396         pthread_kill_other_threads_np();
23397 #endif
23398
23399         return 0;
23400
23401 }
23402
23403 _ACEOF
23404 rm -f conftest$ac_exeext
23405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23406   (eval $ac_link) 2>&5
23407   ac_status=$?
23408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23411   (eval $ac_try) 2>&5
23412   ac_status=$?
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); }; }; then
23415   ol_cv_pthread_threads=yes
23416 else
23417   echo "$as_me: program exited with status $ac_status" >&5
23418 echo "$as_me: failed program was:" >&5
23419 sed 's/^/| /' conftest.$ac_ext >&5
23420
23421 ( exit $ac_status )
23422 ol_cv_pthread_threads=no
23423 fi
23424 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23425 fi
23426
23427                 # restore the LIBS
23428                 LIBS="$ol_LIBS"
23429
23430 fi
23431 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23432 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23433
23434         if test $ol_cv_pthread_threads = yes ; then
23435                 ol_link_pthreads="-threads"
23436                 ol_link_threads=posix
23437         fi
23438 fi
23439
23440
23441                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23442 if test "$ol_link_threads" = no ; then
23443         # try -lpthreads -lmach -lexc -lc_r
23444         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23445 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23446 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23447   echo $ECHO_N "(cached) $ECHO_C" >&6
23448 else
23449
23450                 # save the flags
23451                 ol_LIBS="$LIBS"
23452                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23453
23454                 if test "$cross_compiling" = yes; then
23455   cat >conftest.$ac_ext <<_ACEOF
23456 /* confdefs.h.  */
23457 _ACEOF
23458 cat confdefs.h >>conftest.$ac_ext
23459 cat >>conftest.$ac_ext <<_ACEOF
23460 /* end confdefs.h.  */
23461
23462 /* pthread test headers */
23463 #include <pthread.h>
23464 #if HAVE_PTHREADS < 7
23465 #include <errno.h>
23466 #endif
23467 #ifndef NULL
23468 #define NULL (void*)0
23469 #endif
23470
23471 static void *task(p)
23472         void *p;
23473 {
23474         return (void *) (p == NULL);
23475 }
23476
23477 int
23478 main ()
23479 {
23480
23481         /* pthread test function */
23482 #ifndef PTHREAD_CREATE_DETACHED
23483 #define PTHREAD_CREATE_DETACHED 1
23484 #endif
23485         pthread_t t;
23486         int status;
23487         int detach = PTHREAD_CREATE_DETACHED;
23488
23489 #if HAVE_PTHREADS > 4
23490         /* Final pthreads */
23491         pthread_attr_t attr;
23492
23493         status = pthread_attr_init(&attr);
23494         if( status ) return status;
23495
23496 #if HAVE_PTHREADS < 7
23497         status = pthread_attr_setdetachstate(&attr, &detach);
23498         if( status < 0 ) status = errno;
23499 #else
23500         status = pthread_attr_setdetachstate(&attr, detach);
23501 #endif
23502         if( status ) return status;
23503         status = pthread_create( &t, &attr, task, NULL );
23504 #if HAVE_PTHREADS < 7
23505         if( status < 0 ) status = errno;
23506 #endif
23507         if( status ) return status;
23508 #else
23509         /* Draft 4 pthreads */
23510         status = pthread_create( &t, pthread_attr_default, task, NULL );
23511         if( status ) return errno;
23512
23513         /* give thread a chance to complete */
23514         /* it should remain joinable and hence detachable */
23515         sleep( 1 );
23516
23517         status = pthread_detach( &t );
23518         if( status ) return errno;
23519 #endif
23520
23521 #ifdef HAVE_LINUX_THREADS
23522         pthread_kill_other_threads_np();
23523 #endif
23524
23525         return 0;
23526
23527   ;
23528   return 0;
23529 }
23530 _ACEOF
23531 rm -f conftest.$ac_objext conftest$ac_exeext
23532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23533   (eval $ac_link) 2>conftest.er1
23534   ac_status=$?
23535   grep -v '^ *+' conftest.er1 >conftest.err
23536   rm -f conftest.er1
23537   cat conftest.err >&5
23538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539   (exit $ac_status); } &&
23540          { ac_try='test -z "$ac_c_werror_flag"
23541                          || test ! -s conftest.err'
23542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23543   (eval $ac_try) 2>&5
23544   ac_status=$?
23545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546   (exit $ac_status); }; } &&
23547          { ac_try='test -s conftest$ac_exeext'
23548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23549   (eval $ac_try) 2>&5
23550   ac_status=$?
23551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552   (exit $ac_status); }; }; then
23553   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23554 else
23555   echo "$as_me: failed program was:" >&5
23556 sed 's/^/| /' conftest.$ac_ext >&5
23557
23558 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23559 fi
23560 rm -f conftest.err conftest.$ac_objext \
23561       conftest$ac_exeext conftest.$ac_ext
23562 else
23563   cat >conftest.$ac_ext <<_ACEOF
23564 /* confdefs.h.  */
23565 _ACEOF
23566 cat confdefs.h >>conftest.$ac_ext
23567 cat >>conftest.$ac_ext <<_ACEOF
23568 /* end confdefs.h.  */
23569
23570 /* pthread test headers */
23571 #include <pthread.h>
23572 #if HAVE_PTHREADS < 7
23573 #include <errno.h>
23574 #endif
23575 #ifndef NULL
23576 #define NULL (void*)0
23577 #endif
23578
23579 static void *task(p)
23580         void *p;
23581 {
23582         return (void *) (p == NULL);
23583 }
23584
23585
23586 int main(argc, argv)
23587         int argc;
23588         char **argv;
23589 {
23590
23591         /* pthread test function */
23592 #ifndef PTHREAD_CREATE_DETACHED
23593 #define PTHREAD_CREATE_DETACHED 1
23594 #endif
23595         pthread_t t;
23596         int status;
23597         int detach = PTHREAD_CREATE_DETACHED;
23598
23599 #if HAVE_PTHREADS > 4
23600         /* Final pthreads */
23601         pthread_attr_t attr;
23602
23603         status = pthread_attr_init(&attr);
23604         if( status ) return status;
23605
23606 #if HAVE_PTHREADS < 7
23607         status = pthread_attr_setdetachstate(&attr, &detach);
23608         if( status < 0 ) status = errno;
23609 #else
23610         status = pthread_attr_setdetachstate(&attr, detach);
23611 #endif
23612         if( status ) return status;
23613         status = pthread_create( &t, &attr, task, NULL );
23614 #if HAVE_PTHREADS < 7
23615         if( status < 0 ) status = errno;
23616 #endif
23617         if( status ) return status;
23618 #else
23619         /* Draft 4 pthreads */
23620         status = pthread_create( &t, pthread_attr_default, task, NULL );
23621         if( status ) return errno;
23622
23623         /* give thread a chance to complete */
23624         /* it should remain joinable and hence detachable */
23625         sleep( 1 );
23626
23627         status = pthread_detach( &t );
23628         if( status ) return errno;
23629 #endif
23630
23631 #ifdef HAVE_LINUX_THREADS
23632         pthread_kill_other_threads_np();
23633 #endif
23634
23635         return 0;
23636
23637 }
23638
23639 _ACEOF
23640 rm -f conftest$ac_exeext
23641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23642   (eval $ac_link) 2>&5
23643   ac_status=$?
23644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23647   (eval $ac_try) 2>&5
23648   ac_status=$?
23649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650   (exit $ac_status); }; }; then
23651   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23652 else
23653   echo "$as_me: program exited with status $ac_status" >&5
23654 echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23656
23657 ( exit $ac_status )
23658 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23659 fi
23660 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23661 fi
23662
23663                 # restore the LIBS
23664                 LIBS="$ol_LIBS"
23665
23666 fi
23667 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23668 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23669
23670         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23671                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23672                 ol_link_threads=posix
23673         fi
23674 fi
23675
23676                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23677 if test "$ol_link_threads" = no ; then
23678         # try -lpthreads -lmach -lexc
23679         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23680 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23681 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23682   echo $ECHO_N "(cached) $ECHO_C" >&6
23683 else
23684
23685                 # save the flags
23686                 ol_LIBS="$LIBS"
23687                 LIBS="-lpthreads -lmach -lexc $LIBS"
23688
23689                 if test "$cross_compiling" = yes; then
23690   cat >conftest.$ac_ext <<_ACEOF
23691 /* confdefs.h.  */
23692 _ACEOF
23693 cat confdefs.h >>conftest.$ac_ext
23694 cat >>conftest.$ac_ext <<_ACEOF
23695 /* end confdefs.h.  */
23696
23697 /* pthread test headers */
23698 #include <pthread.h>
23699 #if HAVE_PTHREADS < 7
23700 #include <errno.h>
23701 #endif
23702 #ifndef NULL
23703 #define NULL (void*)0
23704 #endif
23705
23706 static void *task(p)
23707         void *p;
23708 {
23709         return (void *) (p == NULL);
23710 }
23711
23712 int
23713 main ()
23714 {
23715
23716         /* pthread test function */
23717 #ifndef PTHREAD_CREATE_DETACHED
23718 #define PTHREAD_CREATE_DETACHED 1
23719 #endif
23720         pthread_t t;
23721         int status;
23722         int detach = PTHREAD_CREATE_DETACHED;
23723
23724 #if HAVE_PTHREADS > 4
23725         /* Final pthreads */
23726         pthread_attr_t attr;
23727
23728         status = pthread_attr_init(&attr);
23729         if( status ) return status;
23730
23731 #if HAVE_PTHREADS < 7
23732         status = pthread_attr_setdetachstate(&attr, &detach);
23733         if( status < 0 ) status = errno;
23734 #else
23735         status = pthread_attr_setdetachstate(&attr, detach);
23736 #endif
23737         if( status ) return status;
23738         status = pthread_create( &t, &attr, task, NULL );
23739 #if HAVE_PTHREADS < 7
23740         if( status < 0 ) status = errno;
23741 #endif
23742         if( status ) return status;
23743 #else
23744         /* Draft 4 pthreads */
23745         status = pthread_create( &t, pthread_attr_default, task, NULL );
23746         if( status ) return errno;
23747
23748         /* give thread a chance to complete */
23749         /* it should remain joinable and hence detachable */
23750         sleep( 1 );
23751
23752         status = pthread_detach( &t );
23753         if( status ) return errno;
23754 #endif
23755
23756 #ifdef HAVE_LINUX_THREADS
23757         pthread_kill_other_threads_np();
23758 #endif
23759
23760         return 0;
23761
23762   ;
23763   return 0;
23764 }
23765 _ACEOF
23766 rm -f conftest.$ac_objext conftest$ac_exeext
23767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23768   (eval $ac_link) 2>conftest.er1
23769   ac_status=$?
23770   grep -v '^ *+' conftest.er1 >conftest.err
23771   rm -f conftest.er1
23772   cat conftest.err >&5
23773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774   (exit $ac_status); } &&
23775          { ac_try='test -z "$ac_c_werror_flag"
23776                          || test ! -s conftest.err'
23777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23778   (eval $ac_try) 2>&5
23779   ac_status=$?
23780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781   (exit $ac_status); }; } &&
23782          { ac_try='test -s conftest$ac_exeext'
23783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23784   (eval $ac_try) 2>&5
23785   ac_status=$?
23786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787   (exit $ac_status); }; }; then
23788   ol_cv_pthread_lpthreads_lmach_lexc=yes
23789 else
23790   echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23792
23793 ol_cv_pthread_lpthreads_lmach_lexc=no
23794 fi
23795 rm -f conftest.err conftest.$ac_objext \
23796       conftest$ac_exeext conftest.$ac_ext
23797 else
23798   cat >conftest.$ac_ext <<_ACEOF
23799 /* confdefs.h.  */
23800 _ACEOF
23801 cat confdefs.h >>conftest.$ac_ext
23802 cat >>conftest.$ac_ext <<_ACEOF
23803 /* end confdefs.h.  */
23804
23805 /* pthread test headers */
23806 #include <pthread.h>
23807 #if HAVE_PTHREADS < 7
23808 #include <errno.h>
23809 #endif
23810 #ifndef NULL
23811 #define NULL (void*)0
23812 #endif
23813
23814 static void *task(p)
23815         void *p;
23816 {
23817         return (void *) (p == NULL);
23818 }
23819
23820
23821 int main(argc, argv)
23822         int argc;
23823         char **argv;
23824 {
23825
23826         /* pthread test function */
23827 #ifndef PTHREAD_CREATE_DETACHED
23828 #define PTHREAD_CREATE_DETACHED 1
23829 #endif
23830         pthread_t t;
23831         int status;
23832         int detach = PTHREAD_CREATE_DETACHED;
23833
23834 #if HAVE_PTHREADS > 4
23835         /* Final pthreads */
23836         pthread_attr_t attr;
23837
23838         status = pthread_attr_init(&attr);
23839         if( status ) return status;
23840
23841 #if HAVE_PTHREADS < 7
23842         status = pthread_attr_setdetachstate(&attr, &detach);
23843         if( status < 0 ) status = errno;
23844 #else
23845         status = pthread_attr_setdetachstate(&attr, detach);
23846 #endif
23847         if( status ) return status;
23848         status = pthread_create( &t, &attr, task, NULL );
23849 #if HAVE_PTHREADS < 7
23850         if( status < 0 ) status = errno;
23851 #endif
23852         if( status ) return status;
23853 #else
23854         /* Draft 4 pthreads */
23855         status = pthread_create( &t, pthread_attr_default, task, NULL );
23856         if( status ) return errno;
23857
23858         /* give thread a chance to complete */
23859         /* it should remain joinable and hence detachable */
23860         sleep( 1 );
23861
23862         status = pthread_detach( &t );
23863         if( status ) return errno;
23864 #endif
23865
23866 #ifdef HAVE_LINUX_THREADS
23867         pthread_kill_other_threads_np();
23868 #endif
23869
23870         return 0;
23871
23872 }
23873
23874 _ACEOF
23875 rm -f conftest$ac_exeext
23876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23877   (eval $ac_link) 2>&5
23878   ac_status=$?
23879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23882   (eval $ac_try) 2>&5
23883   ac_status=$?
23884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885   (exit $ac_status); }; }; then
23886   ol_cv_pthread_lpthreads_lmach_lexc=yes
23887 else
23888   echo "$as_me: program exited with status $ac_status" >&5
23889 echo "$as_me: failed program was:" >&5
23890 sed 's/^/| /' conftest.$ac_ext >&5
23891
23892 ( exit $ac_status )
23893 ol_cv_pthread_lpthreads_lmach_lexc=no
23894 fi
23895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23896 fi
23897
23898                 # restore the LIBS
23899                 LIBS="$ol_LIBS"
23900
23901 fi
23902 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23903 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23904
23905         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23906                 ol_link_pthreads="-lpthreads -lmach -lexc"
23907                 ol_link_threads=posix
23908         fi
23909 fi
23910
23911                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23912 if test "$ol_link_threads" = no ; then
23913         # try -lpthreads -lexc
23914         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23915 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23916 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23917   echo $ECHO_N "(cached) $ECHO_C" >&6
23918 else
23919
23920                 # save the flags
23921                 ol_LIBS="$LIBS"
23922                 LIBS="-lpthreads -lexc $LIBS"
23923
23924                 if test "$cross_compiling" = yes; then
23925   cat >conftest.$ac_ext <<_ACEOF
23926 /* confdefs.h.  */
23927 _ACEOF
23928 cat confdefs.h >>conftest.$ac_ext
23929 cat >>conftest.$ac_ext <<_ACEOF
23930 /* end confdefs.h.  */
23931
23932 /* pthread test headers */
23933 #include <pthread.h>
23934 #if HAVE_PTHREADS < 7
23935 #include <errno.h>
23936 #endif
23937 #ifndef NULL
23938 #define NULL (void*)0
23939 #endif
23940
23941 static void *task(p)
23942         void *p;
23943 {
23944         return (void *) (p == NULL);
23945 }
23946
23947 int
23948 main ()
23949 {
23950
23951         /* pthread test function */
23952 #ifndef PTHREAD_CREATE_DETACHED
23953 #define PTHREAD_CREATE_DETACHED 1
23954 #endif
23955         pthread_t t;
23956         int status;
23957         int detach = PTHREAD_CREATE_DETACHED;
23958
23959 #if HAVE_PTHREADS > 4
23960         /* Final pthreads */
23961         pthread_attr_t attr;
23962
23963         status = pthread_attr_init(&attr);
23964         if( status ) return status;
23965
23966 #if HAVE_PTHREADS < 7
23967         status = pthread_attr_setdetachstate(&attr, &detach);
23968         if( status < 0 ) status = errno;
23969 #else
23970         status = pthread_attr_setdetachstate(&attr, detach);
23971 #endif
23972         if( status ) return status;
23973         status = pthread_create( &t, &attr, task, NULL );
23974 #if HAVE_PTHREADS < 7
23975         if( status < 0 ) status = errno;
23976 #endif
23977         if( status ) return status;
23978 #else
23979         /* Draft 4 pthreads */
23980         status = pthread_create( &t, pthread_attr_default, task, NULL );
23981         if( status ) return errno;
23982
23983         /* give thread a chance to complete */
23984         /* it should remain joinable and hence detachable */
23985         sleep( 1 );
23986
23987         status = pthread_detach( &t );
23988         if( status ) return errno;
23989 #endif
23990
23991 #ifdef HAVE_LINUX_THREADS
23992         pthread_kill_other_threads_np();
23993 #endif
23994
23995         return 0;
23996
23997   ;
23998   return 0;
23999 }
24000 _ACEOF
24001 rm -f conftest.$ac_objext conftest$ac_exeext
24002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24003   (eval $ac_link) 2>conftest.er1
24004   ac_status=$?
24005   grep -v '^ *+' conftest.er1 >conftest.err
24006   rm -f conftest.er1
24007   cat conftest.err >&5
24008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009   (exit $ac_status); } &&
24010          { ac_try='test -z "$ac_c_werror_flag"
24011                          || test ! -s conftest.err'
24012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24013   (eval $ac_try) 2>&5
24014   ac_status=$?
24015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016   (exit $ac_status); }; } &&
24017          { ac_try='test -s conftest$ac_exeext'
24018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24019   (eval $ac_try) 2>&5
24020   ac_status=$?
24021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022   (exit $ac_status); }; }; then
24023   ol_cv_pthread_lpthreads_lexc=yes
24024 else
24025   echo "$as_me: failed program was:" >&5
24026 sed 's/^/| /' conftest.$ac_ext >&5
24027
24028 ol_cv_pthread_lpthreads_lexc=no
24029 fi
24030 rm -f conftest.err conftest.$ac_objext \
24031       conftest$ac_exeext conftest.$ac_ext
24032 else
24033   cat >conftest.$ac_ext <<_ACEOF
24034 /* confdefs.h.  */
24035 _ACEOF
24036 cat confdefs.h >>conftest.$ac_ext
24037 cat >>conftest.$ac_ext <<_ACEOF
24038 /* end confdefs.h.  */
24039
24040 /* pthread test headers */
24041 #include <pthread.h>
24042 #if HAVE_PTHREADS < 7
24043 #include <errno.h>
24044 #endif
24045 #ifndef NULL
24046 #define NULL (void*)0
24047 #endif
24048
24049 static void *task(p)
24050         void *p;
24051 {
24052         return (void *) (p == NULL);
24053 }
24054
24055
24056 int main(argc, argv)
24057         int argc;
24058         char **argv;
24059 {
24060
24061         /* pthread test function */
24062 #ifndef PTHREAD_CREATE_DETACHED
24063 #define PTHREAD_CREATE_DETACHED 1
24064 #endif
24065         pthread_t t;
24066         int status;
24067         int detach = PTHREAD_CREATE_DETACHED;
24068
24069 #if HAVE_PTHREADS > 4
24070         /* Final pthreads */
24071         pthread_attr_t attr;
24072
24073         status = pthread_attr_init(&attr);
24074         if( status ) return status;
24075
24076 #if HAVE_PTHREADS < 7
24077         status = pthread_attr_setdetachstate(&attr, &detach);
24078         if( status < 0 ) status = errno;
24079 #else
24080         status = pthread_attr_setdetachstate(&attr, detach);
24081 #endif
24082         if( status ) return status;
24083         status = pthread_create( &t, &attr, task, NULL );
24084 #if HAVE_PTHREADS < 7
24085         if( status < 0 ) status = errno;
24086 #endif
24087         if( status ) return status;
24088 #else
24089         /* Draft 4 pthreads */
24090         status = pthread_create( &t, pthread_attr_default, task, NULL );
24091         if( status ) return errno;
24092
24093         /* give thread a chance to complete */
24094         /* it should remain joinable and hence detachable */
24095         sleep( 1 );
24096
24097         status = pthread_detach( &t );
24098         if( status ) return errno;
24099 #endif
24100
24101 #ifdef HAVE_LINUX_THREADS
24102         pthread_kill_other_threads_np();
24103 #endif
24104
24105         return 0;
24106
24107 }
24108
24109 _ACEOF
24110 rm -f conftest$ac_exeext
24111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24112   (eval $ac_link) 2>&5
24113   ac_status=$?
24114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24117   (eval $ac_try) 2>&5
24118   ac_status=$?
24119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120   (exit $ac_status); }; }; then
24121   ol_cv_pthread_lpthreads_lexc=yes
24122 else
24123   echo "$as_me: program exited with status $ac_status" >&5
24124 echo "$as_me: failed program was:" >&5
24125 sed 's/^/| /' conftest.$ac_ext >&5
24126
24127 ( exit $ac_status )
24128 ol_cv_pthread_lpthreads_lexc=no
24129 fi
24130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24131 fi
24132
24133                 # restore the LIBS
24134                 LIBS="$ol_LIBS"
24135
24136 fi
24137 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24138 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
24139
24140         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24141                 ol_link_pthreads="-lpthreads -lexc"
24142                 ol_link_threads=posix
24143         fi
24144 fi
24145
24146
24147                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24148 if test "$ol_link_threads" = no ; then
24149         # try -lpthreads
24150         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24151 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
24152 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24153   echo $ECHO_N "(cached) $ECHO_C" >&6
24154 else
24155
24156                 # save the flags
24157                 ol_LIBS="$LIBS"
24158                 LIBS="-lpthreads $LIBS"
24159
24160                 if test "$cross_compiling" = yes; then
24161   cat >conftest.$ac_ext <<_ACEOF
24162 /* confdefs.h.  */
24163 _ACEOF
24164 cat confdefs.h >>conftest.$ac_ext
24165 cat >>conftest.$ac_ext <<_ACEOF
24166 /* end confdefs.h.  */
24167
24168 /* pthread test headers */
24169 #include <pthread.h>
24170 #if HAVE_PTHREADS < 7
24171 #include <errno.h>
24172 #endif
24173 #ifndef NULL
24174 #define NULL (void*)0
24175 #endif
24176
24177 static void *task(p)
24178         void *p;
24179 {
24180         return (void *) (p == NULL);
24181 }
24182
24183 int
24184 main ()
24185 {
24186
24187         /* pthread test function */
24188 #ifndef PTHREAD_CREATE_DETACHED
24189 #define PTHREAD_CREATE_DETACHED 1
24190 #endif
24191         pthread_t t;
24192         int status;
24193         int detach = PTHREAD_CREATE_DETACHED;
24194
24195 #if HAVE_PTHREADS > 4
24196         /* Final pthreads */
24197         pthread_attr_t attr;
24198
24199         status = pthread_attr_init(&attr);
24200         if( status ) return status;
24201
24202 #if HAVE_PTHREADS < 7
24203         status = pthread_attr_setdetachstate(&attr, &detach);
24204         if( status < 0 ) status = errno;
24205 #else
24206         status = pthread_attr_setdetachstate(&attr, detach);
24207 #endif
24208         if( status ) return status;
24209         status = pthread_create( &t, &attr, task, NULL );
24210 #if HAVE_PTHREADS < 7
24211         if( status < 0 ) status = errno;
24212 #endif
24213         if( status ) return status;
24214 #else
24215         /* Draft 4 pthreads */
24216         status = pthread_create( &t, pthread_attr_default, task, NULL );
24217         if( status ) return errno;
24218
24219         /* give thread a chance to complete */
24220         /* it should remain joinable and hence detachable */
24221         sleep( 1 );
24222
24223         status = pthread_detach( &t );
24224         if( status ) return errno;
24225 #endif
24226
24227 #ifdef HAVE_LINUX_THREADS
24228         pthread_kill_other_threads_np();
24229 #endif
24230
24231         return 0;
24232
24233   ;
24234   return 0;
24235 }
24236 _ACEOF
24237 rm -f conftest.$ac_objext conftest$ac_exeext
24238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24239   (eval $ac_link) 2>conftest.er1
24240   ac_status=$?
24241   grep -v '^ *+' conftest.er1 >conftest.err
24242   rm -f conftest.er1
24243   cat conftest.err >&5
24244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245   (exit $ac_status); } &&
24246          { ac_try='test -z "$ac_c_werror_flag"
24247                          || test ! -s conftest.err'
24248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249   (eval $ac_try) 2>&5
24250   ac_status=$?
24251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252   (exit $ac_status); }; } &&
24253          { ac_try='test -s conftest$ac_exeext'
24254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24255   (eval $ac_try) 2>&5
24256   ac_status=$?
24257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258   (exit $ac_status); }; }; then
24259   ol_cv_pthread_lib_lpthreads=yes
24260 else
24261   echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24263
24264 ol_cv_pthread_lib_lpthreads=no
24265 fi
24266 rm -f conftest.err conftest.$ac_objext \
24267       conftest$ac_exeext conftest.$ac_ext
24268 else
24269   cat >conftest.$ac_ext <<_ACEOF
24270 /* confdefs.h.  */
24271 _ACEOF
24272 cat confdefs.h >>conftest.$ac_ext
24273 cat >>conftest.$ac_ext <<_ACEOF
24274 /* end confdefs.h.  */
24275
24276 /* pthread test headers */
24277 #include <pthread.h>
24278 #if HAVE_PTHREADS < 7
24279 #include <errno.h>
24280 #endif
24281 #ifndef NULL
24282 #define NULL (void*)0
24283 #endif
24284
24285 static void *task(p)
24286         void *p;
24287 {
24288         return (void *) (p == NULL);
24289 }
24290
24291
24292 int main(argc, argv)
24293         int argc;
24294         char **argv;
24295 {
24296
24297         /* pthread test function */
24298 #ifndef PTHREAD_CREATE_DETACHED
24299 #define PTHREAD_CREATE_DETACHED 1
24300 #endif
24301         pthread_t t;
24302         int status;
24303         int detach = PTHREAD_CREATE_DETACHED;
24304
24305 #if HAVE_PTHREADS > 4
24306         /* Final pthreads */
24307         pthread_attr_t attr;
24308
24309         status = pthread_attr_init(&attr);
24310         if( status ) return status;
24311
24312 #if HAVE_PTHREADS < 7
24313         status = pthread_attr_setdetachstate(&attr, &detach);
24314         if( status < 0 ) status = errno;
24315 #else
24316         status = pthread_attr_setdetachstate(&attr, detach);
24317 #endif
24318         if( status ) return status;
24319         status = pthread_create( &t, &attr, task, NULL );
24320 #if HAVE_PTHREADS < 7
24321         if( status < 0 ) status = errno;
24322 #endif
24323         if( status ) return status;
24324 #else
24325         /* Draft 4 pthreads */
24326         status = pthread_create( &t, pthread_attr_default, task, NULL );
24327         if( status ) return errno;
24328
24329         /* give thread a chance to complete */
24330         /* it should remain joinable and hence detachable */
24331         sleep( 1 );
24332
24333         status = pthread_detach( &t );
24334         if( status ) return errno;
24335 #endif
24336
24337 #ifdef HAVE_LINUX_THREADS
24338         pthread_kill_other_threads_np();
24339 #endif
24340
24341         return 0;
24342
24343 }
24344
24345 _ACEOF
24346 rm -f conftest$ac_exeext
24347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24348   (eval $ac_link) 2>&5
24349   ac_status=$?
24350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24353   (eval $ac_try) 2>&5
24354   ac_status=$?
24355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356   (exit $ac_status); }; }; then
24357   ol_cv_pthread_lib_lpthreads=yes
24358 else
24359   echo "$as_me: program exited with status $ac_status" >&5
24360 echo "$as_me: failed program was:" >&5
24361 sed 's/^/| /' conftest.$ac_ext >&5
24362
24363 ( exit $ac_status )
24364 ol_cv_pthread_lib_lpthreads=no
24365 fi
24366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24367 fi
24368
24369                 # restore the LIBS
24370                 LIBS="$ol_LIBS"
24371
24372 fi
24373 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24374 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24375
24376         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24377                 ol_link_pthreads="-lpthreads"
24378                 ol_link_threads=posix
24379         fi
24380 fi
24381
24382
24383                 if test $ol_link_threads != no ; then
24384                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24385
24386                                                 save_CPPFLAGS="$CPPFLAGS"
24387                         save_LIBS="$LIBS"
24388                         LIBS="$LTHREAD_LIBS $LIBS"
24389
24390
24391
24392
24393 for ac_func in sched_yield pthread_yield thr_yield
24394 do
24395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24396 echo "$as_me:$LINENO: checking for $ac_func" >&5
24397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24398 if eval "test \"\${$as_ac_var+set}\" = set"; then
24399   echo $ECHO_N "(cached) $ECHO_C" >&6
24400 else
24401   cat >conftest.$ac_ext <<_ACEOF
24402 /* confdefs.h.  */
24403 _ACEOF
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
24406 /* end confdefs.h.  */
24407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24408    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24409 #define $ac_func innocuous_$ac_func
24410
24411 /* System header to define __stub macros and hopefully few prototypes,
24412     which can conflict with char $ac_func (); below.
24413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24414     <limits.h> exists even on freestanding compilers.  */
24415
24416 #ifdef __STDC__
24417 # include <limits.h>
24418 #else
24419 # include <assert.h>
24420 #endif
24421
24422 #undef $ac_func
24423
24424 /* Override any gcc2 internal prototype to avoid an error.  */
24425 #ifdef __cplusplus
24426 extern "C"
24427 {
24428 #endif
24429 /* We use char because int might match the return type of a gcc2
24430    builtin and then its argument prototype would still apply.  */
24431 char $ac_func ();
24432 /* The GNU C library defines this for functions which it implements
24433     to always fail with ENOSYS.  Some functions are actually named
24434     something starting with __ and the normal name is an alias.  */
24435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24436 choke me
24437 #else
24438 char (*f) () = $ac_func;
24439 #endif
24440 #ifdef __cplusplus
24441 }
24442 #endif
24443
24444 int
24445 main ()
24446 {
24447 return f != $ac_func;
24448   ;
24449   return 0;
24450 }
24451 _ACEOF
24452 rm -f conftest.$ac_objext conftest$ac_exeext
24453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24454   (eval $ac_link) 2>conftest.er1
24455   ac_status=$?
24456   grep -v '^ *+' conftest.er1 >conftest.err
24457   rm -f conftest.er1
24458   cat conftest.err >&5
24459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460   (exit $ac_status); } &&
24461          { ac_try='test -z "$ac_c_werror_flag"
24462                          || test ! -s conftest.err'
24463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24464   (eval $ac_try) 2>&5
24465   ac_status=$?
24466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467   (exit $ac_status); }; } &&
24468          { ac_try='test -s conftest$ac_exeext'
24469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24470   (eval $ac_try) 2>&5
24471   ac_status=$?
24472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473   (exit $ac_status); }; }; then
24474   eval "$as_ac_var=yes"
24475 else
24476   echo "$as_me: failed program was:" >&5
24477 sed 's/^/| /' conftest.$ac_ext >&5
24478
24479 eval "$as_ac_var=no"
24480 fi
24481 rm -f conftest.err conftest.$ac_objext \
24482       conftest$ac_exeext conftest.$ac_ext
24483 fi
24484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24486 if test `eval echo '${'$as_ac_var'}'` = yes; then
24487   cat >>confdefs.h <<_ACEOF
24488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24489 _ACEOF
24490
24491 fi
24492 done
24493
24494
24495                         if test $ac_cv_func_sched_yield = no &&
24496                            test $ac_cv_func_pthread_yield = no &&
24497                            test $ac_cv_func_thr_yield = no ; then
24498                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24499 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24500 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24501   echo $ECHO_N "(cached) $ECHO_C" >&6
24502 else
24503   ac_check_lib_save_LIBS=$LIBS
24504 LIBS="-lrt  $LIBS"
24505 cat >conftest.$ac_ext <<_ACEOF
24506 /* confdefs.h.  */
24507 _ACEOF
24508 cat confdefs.h >>conftest.$ac_ext
24509 cat >>conftest.$ac_ext <<_ACEOF
24510 /* end confdefs.h.  */
24511
24512 /* Override any gcc2 internal prototype to avoid an error.  */
24513 #ifdef __cplusplus
24514 extern "C"
24515 #endif
24516 /* We use char because int might match the return type of a gcc2
24517    builtin and then its argument prototype would still apply.  */
24518 char sched_yield ();
24519 int
24520 main ()
24521 {
24522 sched_yield ();
24523   ;
24524   return 0;
24525 }
24526 _ACEOF
24527 rm -f conftest.$ac_objext conftest$ac_exeext
24528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24529   (eval $ac_link) 2>conftest.er1
24530   ac_status=$?
24531   grep -v '^ *+' conftest.er1 >conftest.err
24532   rm -f conftest.er1
24533   cat conftest.err >&5
24534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535   (exit $ac_status); } &&
24536          { ac_try='test -z "$ac_c_werror_flag"
24537                          || test ! -s conftest.err'
24538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24539   (eval $ac_try) 2>&5
24540   ac_status=$?
24541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542   (exit $ac_status); }; } &&
24543          { ac_try='test -s conftest$ac_exeext'
24544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24545   (eval $ac_try) 2>&5
24546   ac_status=$?
24547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548   (exit $ac_status); }; }; then
24549   ac_cv_lib_rt_sched_yield=yes
24550 else
24551   echo "$as_me: failed program was:" >&5
24552 sed 's/^/| /' conftest.$ac_ext >&5
24553
24554 ac_cv_lib_rt_sched_yield=no
24555 fi
24556 rm -f conftest.err conftest.$ac_objext \
24557       conftest$ac_exeext conftest.$ac_ext
24558 LIBS=$ac_check_lib_save_LIBS
24559 fi
24560 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24561 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24562 if test $ac_cv_lib_rt_sched_yield = yes; then
24563   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24564
24565 cat >>confdefs.h <<\_ACEOF
24566 #define HAVE_SCHED_YIELD 1
24567 _ACEOF
24568
24569                                         ac_cv_func_sched_yield=yes
24570 else
24571   ac_cv_func_sched_yield=no
24572 fi
24573
24574                         fi
24575                         if test $ac_cv_func_sched_yield = no &&
24576                            test $ac_cv_func_pthread_yield = no &&
24577                            test "$ac_cv_func_thr_yield" = no ; then
24578                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24579 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24580                         fi
24581
24582
24583
24584 for ac_func in pthread_kill pthread_rwlock_destroy
24585 do
24586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24587 echo "$as_me:$LINENO: checking for $ac_func" >&5
24588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24589 if eval "test \"\${$as_ac_var+set}\" = set"; then
24590   echo $ECHO_N "(cached) $ECHO_C" >&6
24591 else
24592   cat >conftest.$ac_ext <<_ACEOF
24593 /* confdefs.h.  */
24594 _ACEOF
24595 cat confdefs.h >>conftest.$ac_ext
24596 cat >>conftest.$ac_ext <<_ACEOF
24597 /* end confdefs.h.  */
24598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24600 #define $ac_func innocuous_$ac_func
24601
24602 /* System header to define __stub macros and hopefully few prototypes,
24603     which can conflict with char $ac_func (); below.
24604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24605     <limits.h> exists even on freestanding compilers.  */
24606
24607 #ifdef __STDC__
24608 # include <limits.h>
24609 #else
24610 # include <assert.h>
24611 #endif
24612
24613 #undef $ac_func
24614
24615 /* Override any gcc2 internal prototype to avoid an error.  */
24616 #ifdef __cplusplus
24617 extern "C"
24618 {
24619 #endif
24620 /* We use char because int might match the return type of a gcc2
24621    builtin and then its argument prototype would still apply.  */
24622 char $ac_func ();
24623 /* The GNU C library defines this for functions which it implements
24624     to always fail with ENOSYS.  Some functions are actually named
24625     something starting with __ and the normal name is an alias.  */
24626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24627 choke me
24628 #else
24629 char (*f) () = $ac_func;
24630 #endif
24631 #ifdef __cplusplus
24632 }
24633 #endif
24634
24635 int
24636 main ()
24637 {
24638 return f != $ac_func;
24639   ;
24640   return 0;
24641 }
24642 _ACEOF
24643 rm -f conftest.$ac_objext conftest$ac_exeext
24644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24645   (eval $ac_link) 2>conftest.er1
24646   ac_status=$?
24647   grep -v '^ *+' conftest.er1 >conftest.err
24648   rm -f conftest.er1
24649   cat conftest.err >&5
24650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651   (exit $ac_status); } &&
24652          { ac_try='test -z "$ac_c_werror_flag"
24653                          || test ! -s conftest.err'
24654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24655   (eval $ac_try) 2>&5
24656   ac_status=$?
24657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658   (exit $ac_status); }; } &&
24659          { ac_try='test -s conftest$ac_exeext'
24660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24661   (eval $ac_try) 2>&5
24662   ac_status=$?
24663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664   (exit $ac_status); }; }; then
24665   eval "$as_ac_var=yes"
24666 else
24667   echo "$as_me: failed program was:" >&5
24668 sed 's/^/| /' conftest.$ac_ext >&5
24669
24670 eval "$as_ac_var=no"
24671 fi
24672 rm -f conftest.err conftest.$ac_objext \
24673       conftest$ac_exeext conftest.$ac_ext
24674 fi
24675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24677 if test `eval echo '${'$as_ac_var'}'` = yes; then
24678   cat >>confdefs.h <<_ACEOF
24679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24680 _ACEOF
24681
24682 fi
24683 done
24684
24685
24686                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24687 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24688 if test "${ol_cv_func_pthread_detach+set}" = set; then
24689   echo $ECHO_N "(cached) $ECHO_C" >&6
24690 else
24691
24692                                                                 cat >conftest.$ac_ext <<_ACEOF
24693 /* confdefs.h.  */
24694 _ACEOF
24695 cat confdefs.h >>conftest.$ac_ext
24696 cat >>conftest.$ac_ext <<_ACEOF
24697 /* end confdefs.h.  */
24698
24699 #include <pthread.h>
24700 #ifndef NULL
24701 #define NULL (void*)0
24702 #endif
24703
24704 int
24705 main ()
24706 {
24707 pthread_detach(NULL);
24708   ;
24709   return 0;
24710 }
24711 _ACEOF
24712 rm -f conftest.$ac_objext conftest$ac_exeext
24713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24714   (eval $ac_link) 2>conftest.er1
24715   ac_status=$?
24716   grep -v '^ *+' conftest.er1 >conftest.err
24717   rm -f conftest.er1
24718   cat conftest.err >&5
24719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720   (exit $ac_status); } &&
24721          { ac_try='test -z "$ac_c_werror_flag"
24722                          || test ! -s conftest.err'
24723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724   (eval $ac_try) 2>&5
24725   ac_status=$?
24726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); }; } &&
24728          { ac_try='test -s conftest$ac_exeext'
24729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24730   (eval $ac_try) 2>&5
24731   ac_status=$?
24732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733   (exit $ac_status); }; }; then
24734   ol_cv_func_pthread_detach=yes
24735 else
24736   echo "$as_me: failed program was:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24738
24739 ol_cv_func_pthread_detach=no
24740 fi
24741 rm -f conftest.err conftest.$ac_objext \
24742       conftest$ac_exeext conftest.$ac_ext
24743
24744 fi
24745 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24746 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24747
24748                         if test $ol_cv_func_pthread_detach = no ; then
24749                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24750 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24751    { (exit 1); exit 1; }; }
24752                         fi
24753
24754
24755 cat >>confdefs.h <<\_ACEOF
24756 #define HAVE_PTHREAD_DETACH 1
24757 _ACEOF
24758
24759
24760
24761
24762
24763
24764 for ac_func in \
24765                                 pthread_setconcurrency \
24766                                 pthread_getconcurrency \
24767                                 thr_setconcurrency \
24768                                 thr_getconcurrency \
24769
24770 do
24771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24772 echo "$as_me:$LINENO: checking for $ac_func" >&5
24773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24774 if eval "test \"\${$as_ac_var+set}\" = set"; then
24775   echo $ECHO_N "(cached) $ECHO_C" >&6
24776 else
24777   cat >conftest.$ac_ext <<_ACEOF
24778 /* confdefs.h.  */
24779 _ACEOF
24780 cat confdefs.h >>conftest.$ac_ext
24781 cat >>conftest.$ac_ext <<_ACEOF
24782 /* end confdefs.h.  */
24783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24785 #define $ac_func innocuous_$ac_func
24786
24787 /* System header to define __stub macros and hopefully few prototypes,
24788     which can conflict with char $ac_func (); below.
24789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24790     <limits.h> exists even on freestanding compilers.  */
24791
24792 #ifdef __STDC__
24793 # include <limits.h>
24794 #else
24795 # include <assert.h>
24796 #endif
24797
24798 #undef $ac_func
24799
24800 /* Override any gcc2 internal prototype to avoid an error.  */
24801 #ifdef __cplusplus
24802 extern "C"
24803 {
24804 #endif
24805 /* We use char because int might match the return type of a gcc2
24806    builtin and then its argument prototype would still apply.  */
24807 char $ac_func ();
24808 /* The GNU C library defines this for functions which it implements
24809     to always fail with ENOSYS.  Some functions are actually named
24810     something starting with __ and the normal name is an alias.  */
24811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24812 choke me
24813 #else
24814 char (*f) () = $ac_func;
24815 #endif
24816 #ifdef __cplusplus
24817 }
24818 #endif
24819
24820 int
24821 main ()
24822 {
24823 return f != $ac_func;
24824   ;
24825   return 0;
24826 }
24827 _ACEOF
24828 rm -f conftest.$ac_objext conftest$ac_exeext
24829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24830   (eval $ac_link) 2>conftest.er1
24831   ac_status=$?
24832   grep -v '^ *+' conftest.er1 >conftest.err
24833   rm -f conftest.er1
24834   cat conftest.err >&5
24835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836   (exit $ac_status); } &&
24837          { ac_try='test -z "$ac_c_werror_flag"
24838                          || test ! -s conftest.err'
24839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24840   (eval $ac_try) 2>&5
24841   ac_status=$?
24842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843   (exit $ac_status); }; } &&
24844          { ac_try='test -s conftest$ac_exeext'
24845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24846   (eval $ac_try) 2>&5
24847   ac_status=$?
24848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849   (exit $ac_status); }; }; then
24850   eval "$as_ac_var=yes"
24851 else
24852   echo "$as_me: failed program was:" >&5
24853 sed 's/^/| /' conftest.$ac_ext >&5
24854
24855 eval "$as_ac_var=no"
24856 fi
24857 rm -f conftest.err conftest.$ac_objext \
24858       conftest$ac_exeext conftest.$ac_ext
24859 fi
24860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24862 if test `eval echo '${'$as_ac_var'}'` = yes; then
24863   cat >>confdefs.h <<_ACEOF
24864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24865 _ACEOF
24866
24867 fi
24868 done
24869
24870
24871
24872
24873 for ac_func in pthread_kill_other_threads_np
24874 do
24875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24876 echo "$as_me:$LINENO: checking for $ac_func" >&5
24877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24878 if eval "test \"\${$as_ac_var+set}\" = set"; then
24879   echo $ECHO_N "(cached) $ECHO_C" >&6
24880 else
24881   cat >conftest.$ac_ext <<_ACEOF
24882 /* confdefs.h.  */
24883 _ACEOF
24884 cat confdefs.h >>conftest.$ac_ext
24885 cat >>conftest.$ac_ext <<_ACEOF
24886 /* end confdefs.h.  */
24887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24889 #define $ac_func innocuous_$ac_func
24890
24891 /* System header to define __stub macros and hopefully few prototypes,
24892     which can conflict with char $ac_func (); below.
24893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24894     <limits.h> exists even on freestanding compilers.  */
24895
24896 #ifdef __STDC__
24897 # include <limits.h>
24898 #else
24899 # include <assert.h>
24900 #endif
24901
24902 #undef $ac_func
24903
24904 /* Override any gcc2 internal prototype to avoid an error.  */
24905 #ifdef __cplusplus
24906 extern "C"
24907 {
24908 #endif
24909 /* We use char because int might match the return type of a gcc2
24910    builtin and then its argument prototype would still apply.  */
24911 char $ac_func ();
24912 /* The GNU C library defines this for functions which it implements
24913     to always fail with ENOSYS.  Some functions are actually named
24914     something starting with __ and the normal name is an alias.  */
24915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24916 choke me
24917 #else
24918 char (*f) () = $ac_func;
24919 #endif
24920 #ifdef __cplusplus
24921 }
24922 #endif
24923
24924 int
24925 main ()
24926 {
24927 return f != $ac_func;
24928   ;
24929   return 0;
24930 }
24931 _ACEOF
24932 rm -f conftest.$ac_objext conftest$ac_exeext
24933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24934   (eval $ac_link) 2>conftest.er1
24935   ac_status=$?
24936   grep -v '^ *+' conftest.er1 >conftest.err
24937   rm -f conftest.er1
24938   cat conftest.err >&5
24939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940   (exit $ac_status); } &&
24941          { ac_try='test -z "$ac_c_werror_flag"
24942                          || test ! -s conftest.err'
24943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944   (eval $ac_try) 2>&5
24945   ac_status=$?
24946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947   (exit $ac_status); }; } &&
24948          { ac_try='test -s conftest$ac_exeext'
24949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950   (eval $ac_try) 2>&5
24951   ac_status=$?
24952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953   (exit $ac_status); }; }; then
24954   eval "$as_ac_var=yes"
24955 else
24956   echo "$as_me: failed program was:" >&5
24957 sed 's/^/| /' conftest.$ac_ext >&5
24958
24959 eval "$as_ac_var=no"
24960 fi
24961 rm -f conftest.err conftest.$ac_objext \
24962       conftest$ac_exeext conftest.$ac_ext
24963 fi
24964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24966 if test `eval echo '${'$as_ac_var'}'` = yes; then
24967   cat >>confdefs.h <<_ACEOF
24968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24969 _ACEOF
24970
24971 fi
24972 done
24973
24974         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24975 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24976 if test "${ol_cv_sys_linux_threads+set}" = set; then
24977   echo $ECHO_N "(cached) $ECHO_C" >&6
24978 else
24979   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24980 fi
24981 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24982 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24983
24984
24985
24986
24987         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24988 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24989 if test "${ol_cv_linux_threads+set}" = set; then
24990   echo $ECHO_N "(cached) $ECHO_C" >&6
24991 else
24992
24993                 if test $ol_cv_header_linux_threads = yes &&
24994                    test $ol_cv_sys_linux_threads = yes; then
24995                         ol_cv_linux_threads=yes
24996                 elif test $ol_cv_header_linux_threads = no &&
24997                      test $ol_cv_sys_linux_threads = no; then
24998                         ol_cv_linux_threads=no
24999                 else
25000                         ol_cv_linux_threads=error
25001                 fi
25002
25003 fi
25004 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25005 echo "${ECHO_T}$ol_cv_linux_threads" >&6
25006
25007
25008                         if test $ol_cv_linux_threads = error; then
25009                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25010 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25011    { (exit 1); exit 1; }; };
25012                         fi
25013
25014                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25015 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
25016 if test "${ol_cv_pthread_create_works+set}" = set; then
25017   echo $ECHO_N "(cached) $ECHO_C" >&6
25018 else
25019
25020                         if test "$cross_compiling" = yes; then
25021                                 ol_cv_pthread_create_works=yes
25022 else
25023   cat >conftest.$ac_ext <<_ACEOF
25024 /* confdefs.h.  */
25025 _ACEOF
25026 cat confdefs.h >>conftest.$ac_ext
25027 cat >>conftest.$ac_ext <<_ACEOF
25028 /* end confdefs.h.  */
25029
25030 /* pthread test headers */
25031 #include <pthread.h>
25032 #if HAVE_PTHREADS < 7
25033 #include <errno.h>
25034 #endif
25035 #ifndef NULL
25036 #define NULL (void*)0
25037 #endif
25038
25039 static void *task(p)
25040         void *p;
25041 {
25042         return (void *) (p == NULL);
25043 }
25044
25045
25046 int main(argc, argv)
25047         int argc;
25048         char **argv;
25049 {
25050
25051         /* pthread test function */
25052 #ifndef PTHREAD_CREATE_DETACHED
25053 #define PTHREAD_CREATE_DETACHED 1
25054 #endif
25055         pthread_t t;
25056         int status;
25057         int detach = PTHREAD_CREATE_DETACHED;
25058
25059 #if HAVE_PTHREADS > 4
25060         /* Final pthreads */
25061         pthread_attr_t attr;
25062
25063         status = pthread_attr_init(&attr);
25064         if( status ) return status;
25065
25066 #if HAVE_PTHREADS < 7
25067         status = pthread_attr_setdetachstate(&attr, &detach);
25068         if( status < 0 ) status = errno;
25069 #else
25070         status = pthread_attr_setdetachstate(&attr, detach);
25071 #endif
25072         if( status ) return status;
25073         status = pthread_create( &t, &attr, task, NULL );
25074 #if HAVE_PTHREADS < 7
25075         if( status < 0 ) status = errno;
25076 #endif
25077         if( status ) return status;
25078 #else
25079         /* Draft 4 pthreads */
25080         status = pthread_create( &t, pthread_attr_default, task, NULL );
25081         if( status ) return errno;
25082
25083         /* give thread a chance to complete */
25084         /* it should remain joinable and hence detachable */
25085         sleep( 1 );
25086
25087         status = pthread_detach( &t );
25088         if( status ) return errno;
25089 #endif
25090
25091 #ifdef HAVE_LINUX_THREADS
25092         pthread_kill_other_threads_np();
25093 #endif
25094
25095         return 0;
25096
25097 }
25098
25099 _ACEOF
25100 rm -f conftest$ac_exeext
25101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25102   (eval $ac_link) 2>&5
25103   ac_status=$?
25104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25107   (eval $ac_try) 2>&5
25108   ac_status=$?
25109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110   (exit $ac_status); }; }; then
25111   ol_cv_pthread_create_works=yes
25112 else
25113   echo "$as_me: program exited with status $ac_status" >&5
25114 echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25116
25117 ( exit $ac_status )
25118 ol_cv_pthread_create_works=no
25119 fi
25120 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25121 fi
25122 fi
25123 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25124 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
25125
25126                         if test $ol_cv_pthread_create_works = no ; then
25127                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25128 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25129    { (exit 1); exit 1; }; }
25130                         fi
25131
25132                         ol_replace_broken_yield=no
25133
25134                         if test $ol_replace_broken_yield = yes ; then
25135
25136 cat >>confdefs.h <<\_ACEOF
25137 #define REPLACE_BROKEN_YIELD 1
25138 _ACEOF
25139
25140                         fi
25141
25142                                                 if test $ol_with_yielding_select = auto ; then
25143                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25144 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
25145 if test "${ol_cv_pthread_select_yields+set}" = set; then
25146   echo $ECHO_N "(cached) $ECHO_C" >&6
25147 else
25148
25149                                 if test "$cross_compiling" = yes; then
25150   ol_cv_pthread_select_yields=cross
25151 else
25152   cat >conftest.$ac_ext <<_ACEOF
25153 /* confdefs.h.  */
25154 _ACEOF
25155 cat confdefs.h >>conftest.$ac_ext
25156 cat >>conftest.$ac_ext <<_ACEOF
25157 /* end confdefs.h.  */
25158
25159 #include <sys/types.h>
25160 #include <sys/time.h>
25161 #include <unistd.h>
25162 #include <pthread.h>
25163 #ifndef NULL
25164 #define NULL (void*) 0
25165 #endif
25166
25167 static int fildes[2];
25168
25169 static void *task(p)
25170         void *p;
25171 {
25172         int i;
25173         struct timeval tv;
25174
25175         fd_set rfds;
25176
25177         tv.tv_sec=10;
25178         tv.tv_usec=0;
25179
25180         FD_ZERO(&rfds);
25181         FD_SET(fildes[0], &rfds);
25182
25183         /* we're not interested in any fds */
25184         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25185
25186         if(i < 0) {
25187                 perror("select");
25188                 exit(10);
25189         }
25190
25191         exit(0); /* if we exit here, the select blocked the whole process */
25192 }
25193
25194 int main(argc, argv)
25195         int argc;
25196         char **argv;
25197 {
25198         pthread_t t;
25199
25200         /* create a pipe to select */
25201         if(pipe(&fildes[0])) {
25202                 perror("select");
25203                 exit(1);
25204         }
25205
25206 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25207         (void) pthread_setconcurrency(2);
25208 #else
25209 #ifdef HAVE_THR_SETCONCURRENCY
25210         /* Set Solaris LWP concurrency to 2 */
25211         thr_setconcurrency(2);
25212 #endif
25213 #endif
25214
25215 #if HAVE_PTHREADS < 6
25216         pthread_create(&t, pthread_attr_default, task, NULL);
25217 #else
25218         pthread_create(&t, NULL, task, NULL);
25219 #endif
25220
25221         /* make sure task runs first */
25222 #if HAVE_THR_YIELD
25223         thr_yield();
25224 #elif defined( HAVE_SCHED_YIELD )
25225         sched_yield();
25226 #elif defined( HAVE_PTHREAD_YIELD )
25227         pthread_yield();
25228 #endif
25229
25230         exit(2);
25231 }
25232 _ACEOF
25233 rm -f conftest$ac_exeext
25234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25235   (eval $ac_link) 2>&5
25236   ac_status=$?
25237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25240   (eval $ac_try) 2>&5
25241   ac_status=$?
25242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243   (exit $ac_status); }; }; then
25244   ol_cv_pthread_select_yields=no
25245 else
25246   echo "$as_me: program exited with status $ac_status" >&5
25247 echo "$as_me: failed program was:" >&5
25248 sed 's/^/| /' conftest.$ac_ext >&5
25249
25250 ( exit $ac_status )
25251 ol_cv_pthread_select_yields=yes
25252 fi
25253 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25254 fi
25255 fi
25256 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25257 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25258
25259                                 if test $ol_cv_pthread_select_yields = cross ; then
25260                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25261 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25262    { (exit 1); exit 1; }; }
25263                                 fi
25264
25265                                 if test $ol_cv_pthread_select_yields = yes ; then
25266                                         ol_with_yielding_select=yes
25267                                 fi
25268                         fi
25269
25270                                                 CPPFLAGS="$save_CPPFLAGS"
25271                         LIBS="$save_LIBS"
25272                 else
25273                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25274 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25275    { (exit 1); exit 1; }; }
25276                 fi
25277         fi
25278
25279         if test $ol_with_threads = posix ; then
25280                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25281 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25282    { (exit 1); exit 1; }; }
25283         fi
25284         ;;
25285 esac
25286
25287 case $ol_with_threads in auto | yes | mach)
25288
25289
25290
25291 for ac_header in mach/cthreads.h cthreads.h
25292 do
25293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25295   echo "$as_me:$LINENO: checking for $ac_header" >&5
25296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25298   echo $ECHO_N "(cached) $ECHO_C" >&6
25299 fi
25300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25302 else
25303   # Is the header compilable?
25304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25306 cat >conftest.$ac_ext <<_ACEOF
25307 /* confdefs.h.  */
25308 _ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h.  */
25312 $ac_includes_default
25313 #include <$ac_header>
25314 _ACEOF
25315 rm -f conftest.$ac_objext
25316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25317   (eval $ac_compile) 2>conftest.er1
25318   ac_status=$?
25319   grep -v '^ *+' conftest.er1 >conftest.err
25320   rm -f conftest.er1
25321   cat conftest.err >&5
25322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323   (exit $ac_status); } &&
25324          { ac_try='test -z "$ac_c_werror_flag"
25325                          || test ! -s conftest.err'
25326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25327   (eval $ac_try) 2>&5
25328   ac_status=$?
25329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330   (exit $ac_status); }; } &&
25331          { ac_try='test -s conftest.$ac_objext'
25332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25333   (eval $ac_try) 2>&5
25334   ac_status=$?
25335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336   (exit $ac_status); }; }; then
25337   ac_header_compiler=yes
25338 else
25339   echo "$as_me: failed program was:" >&5
25340 sed 's/^/| /' conftest.$ac_ext >&5
25341
25342 ac_header_compiler=no
25343 fi
25344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25346 echo "${ECHO_T}$ac_header_compiler" >&6
25347
25348 # Is the header present?
25349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25351 cat >conftest.$ac_ext <<_ACEOF
25352 /* confdefs.h.  */
25353 _ACEOF
25354 cat confdefs.h >>conftest.$ac_ext
25355 cat >>conftest.$ac_ext <<_ACEOF
25356 /* end confdefs.h.  */
25357 #include <$ac_header>
25358 _ACEOF
25359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25360   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25361   ac_status=$?
25362   grep -v '^ *+' conftest.er1 >conftest.err
25363   rm -f conftest.er1
25364   cat conftest.err >&5
25365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366   (exit $ac_status); } >/dev/null; then
25367   if test -s conftest.err; then
25368     ac_cpp_err=$ac_c_preproc_warn_flag
25369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25370   else
25371     ac_cpp_err=
25372   fi
25373 else
25374   ac_cpp_err=yes
25375 fi
25376 if test -z "$ac_cpp_err"; then
25377   ac_header_preproc=yes
25378 else
25379   echo "$as_me: failed program was:" >&5
25380 sed 's/^/| /' conftest.$ac_ext >&5
25381
25382   ac_header_preproc=no
25383 fi
25384 rm -f conftest.err conftest.$ac_ext
25385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25386 echo "${ECHO_T}$ac_header_preproc" >&6
25387
25388 # So?  What about this header?
25389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25390   yes:no: )
25391     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25393     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25395     ac_header_preproc=yes
25396     ;;
25397   no:yes:* )
25398     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25400     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25401 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25402     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25404     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25405 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25408     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25410     (
25411       cat <<\_ASBOX
25412 ## --------------------------------------------- ##
25413 ## Report this to <http://www.openldap.org/its/> ##
25414 ## --------------------------------------------- ##
25415 _ASBOX
25416     ) |
25417       sed "s/^/$as_me: WARNING:     /" >&2
25418     ;;
25419 esac
25420 echo "$as_me:$LINENO: checking for $ac_header" >&5
25421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25423   echo $ECHO_N "(cached) $ECHO_C" >&6
25424 else
25425   eval "$as_ac_Header=\$ac_header_preproc"
25426 fi
25427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25429
25430 fi
25431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25432   cat >>confdefs.h <<_ACEOF
25433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25434 _ACEOF
25435
25436 fi
25437
25438 done
25439
25440         if test $ac_cv_header_mach_cthreads_h = yes ; then
25441                 ol_with_threads=found
25442
25443                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25444 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25445 if test "${ac_cv_func_cthread_fork+set}" = set; then
25446   echo $ECHO_N "(cached) $ECHO_C" >&6
25447 else
25448   cat >conftest.$ac_ext <<_ACEOF
25449 /* confdefs.h.  */
25450 _ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h.  */
25454 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25456 #define cthread_fork innocuous_cthread_fork
25457
25458 /* System header to define __stub macros and hopefully few prototypes,
25459     which can conflict with char cthread_fork (); below.
25460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25461     <limits.h> exists even on freestanding compilers.  */
25462
25463 #ifdef __STDC__
25464 # include <limits.h>
25465 #else
25466 # include <assert.h>
25467 #endif
25468
25469 #undef cthread_fork
25470
25471 /* Override any gcc2 internal prototype to avoid an error.  */
25472 #ifdef __cplusplus
25473 extern "C"
25474 {
25475 #endif
25476 /* We use char because int might match the return type of a gcc2
25477    builtin and then its argument prototype would still apply.  */
25478 char cthread_fork ();
25479 /* The GNU C library defines this for functions which it implements
25480     to always fail with ENOSYS.  Some functions are actually named
25481     something starting with __ and the normal name is an alias.  */
25482 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25483 choke me
25484 #else
25485 char (*f) () = cthread_fork;
25486 #endif
25487 #ifdef __cplusplus
25488 }
25489 #endif
25490
25491 int
25492 main ()
25493 {
25494 return f != cthread_fork;
25495   ;
25496   return 0;
25497 }
25498 _ACEOF
25499 rm -f conftest.$ac_objext conftest$ac_exeext
25500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25501   (eval $ac_link) 2>conftest.er1
25502   ac_status=$?
25503   grep -v '^ *+' conftest.er1 >conftest.err
25504   rm -f conftest.er1
25505   cat conftest.err >&5
25506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507   (exit $ac_status); } &&
25508          { ac_try='test -z "$ac_c_werror_flag"
25509                          || test ! -s conftest.err'
25510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25511   (eval $ac_try) 2>&5
25512   ac_status=$?
25513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514   (exit $ac_status); }; } &&
25515          { ac_try='test -s conftest$ac_exeext'
25516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25517   (eval $ac_try) 2>&5
25518   ac_status=$?
25519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520   (exit $ac_status); }; }; then
25521   ac_cv_func_cthread_fork=yes
25522 else
25523   echo "$as_me: failed program was:" >&5
25524 sed 's/^/| /' conftest.$ac_ext >&5
25525
25526 ac_cv_func_cthread_fork=no
25527 fi
25528 rm -f conftest.err conftest.$ac_objext \
25529       conftest$ac_exeext conftest.$ac_ext
25530 fi
25531 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25532 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25533 if test $ac_cv_func_cthread_fork = yes; then
25534   ol_link_threads=yes
25535 fi
25536
25537
25538                 if test $ol_link_threads = no ; then
25539                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25540 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25541 if test "${ol_cv_cthread_all_load+set}" = set; then
25542   echo $ECHO_N "(cached) $ECHO_C" >&6
25543 else
25544
25545                                                                 save_LIBS="$LIBS"
25546                                 LIBS="-all_load $LIBS"
25547                                 cat >conftest.$ac_ext <<_ACEOF
25548 /* confdefs.h.  */
25549 _ACEOF
25550 cat confdefs.h >>conftest.$ac_ext
25551 cat >>conftest.$ac_ext <<_ACEOF
25552 /* end confdefs.h.  */
25553 #include <mach/cthreads.h>
25554 int
25555 main ()
25556 {
25557
25558                                         cthread_fork((void *)0, (void *)0);
25559
25560   ;
25561   return 0;
25562 }
25563 _ACEOF
25564 rm -f conftest.$ac_objext conftest$ac_exeext
25565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25566   (eval $ac_link) 2>conftest.er1
25567   ac_status=$?
25568   grep -v '^ *+' conftest.er1 >conftest.err
25569   rm -f conftest.er1
25570   cat conftest.err >&5
25571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572   (exit $ac_status); } &&
25573          { ac_try='test -z "$ac_c_werror_flag"
25574                          || test ! -s conftest.err'
25575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576   (eval $ac_try) 2>&5
25577   ac_status=$?
25578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579   (exit $ac_status); }; } &&
25580          { ac_try='test -s conftest$ac_exeext'
25581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582   (eval $ac_try) 2>&5
25583   ac_status=$?
25584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585   (exit $ac_status); }; }; then
25586   ol_cv_cthread_all_load=yes
25587 else
25588   echo "$as_me: failed program was:" >&5
25589 sed 's/^/| /' conftest.$ac_ext >&5
25590
25591 ol_cv_cthread_all_load=no
25592 fi
25593 rm -f conftest.err conftest.$ac_objext \
25594       conftest$ac_exeext conftest.$ac_ext
25595                                                                 LIBS="$save_LIBS"
25596
25597 fi
25598 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25599 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25600
25601                         if test $ol_cv_cthread_all_load = yes ; then
25602                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25603                                 ol_link_threads=mach
25604                                 ol_with_threads=found
25605                         fi
25606                 fi
25607
25608         elif test $ac_cv_header_cthreads_h = yes ; then
25609
25610                 ol_with_threads=found
25611
25612                                 save_LIBS="$LIBS"
25613                 LIBS="$LIBS -lthreads"
25614                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25615 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25616 if test "${ac_cv_func_cthread_fork+set}" = set; then
25617   echo $ECHO_N "(cached) $ECHO_C" >&6
25618 else
25619   cat >conftest.$ac_ext <<_ACEOF
25620 /* confdefs.h.  */
25621 _ACEOF
25622 cat confdefs.h >>conftest.$ac_ext
25623 cat >>conftest.$ac_ext <<_ACEOF
25624 /* end confdefs.h.  */
25625 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25627 #define cthread_fork innocuous_cthread_fork
25628
25629 /* System header to define __stub macros and hopefully few prototypes,
25630     which can conflict with char cthread_fork (); below.
25631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25632     <limits.h> exists even on freestanding compilers.  */
25633
25634 #ifdef __STDC__
25635 # include <limits.h>
25636 #else
25637 # include <assert.h>
25638 #endif
25639
25640 #undef cthread_fork
25641
25642 /* Override any gcc2 internal prototype to avoid an error.  */
25643 #ifdef __cplusplus
25644 extern "C"
25645 {
25646 #endif
25647 /* We use char because int might match the return type of a gcc2
25648    builtin and then its argument prototype would still apply.  */
25649 char cthread_fork ();
25650 /* The GNU C library defines this for functions which it implements
25651     to always fail with ENOSYS.  Some functions are actually named
25652     something starting with __ and the normal name is an alias.  */
25653 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25654 choke me
25655 #else
25656 char (*f) () = cthread_fork;
25657 #endif
25658 #ifdef __cplusplus
25659 }
25660 #endif
25661
25662 int
25663 main ()
25664 {
25665 return f != cthread_fork;
25666   ;
25667   return 0;
25668 }
25669 _ACEOF
25670 rm -f conftest.$ac_objext conftest$ac_exeext
25671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25672   (eval $ac_link) 2>conftest.er1
25673   ac_status=$?
25674   grep -v '^ *+' conftest.er1 >conftest.err
25675   rm -f conftest.er1
25676   cat conftest.err >&5
25677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678   (exit $ac_status); } &&
25679          { ac_try='test -z "$ac_c_werror_flag"
25680                          || test ! -s conftest.err'
25681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25682   (eval $ac_try) 2>&5
25683   ac_status=$?
25684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685   (exit $ac_status); }; } &&
25686          { ac_try='test -s conftest$ac_exeext'
25687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25688   (eval $ac_try) 2>&5
25689   ac_status=$?
25690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691   (exit $ac_status); }; }; then
25692   ac_cv_func_cthread_fork=yes
25693 else
25694   echo "$as_me: failed program was:" >&5
25695 sed 's/^/| /' conftest.$ac_ext >&5
25696
25697 ac_cv_func_cthread_fork=no
25698 fi
25699 rm -f conftest.err conftest.$ac_objext \
25700       conftest$ac_exeext conftest.$ac_ext
25701 fi
25702 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25703 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25704 if test $ac_cv_func_cthread_fork = yes; then
25705   ol_link_threads=yes
25706 fi
25707
25708                 LIBS="$save_LIBS"
25709
25710                 if test $ol_link_threads = yes ; then
25711                         LTHREAD_LIBS="-lthreads"
25712                         ol_link_threads=mach
25713                         ol_with_threads=found
25714                 else
25715                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25716 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25717    { (exit 1); exit 1; }; }
25718                 fi
25719
25720         elif test $ol_with_threads = mach ; then
25721                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25722 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25723    { (exit 1); exit 1; }; }
25724         fi
25725
25726         if test $ol_link_threads = mach ; then
25727
25728 cat >>confdefs.h <<\_ACEOF
25729 #define HAVE_MACH_CTHREADS 1
25730 _ACEOF
25731
25732         elif test $ol_with_threads = found ; then
25733                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25734 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25735    { (exit 1); exit 1; }; }
25736         fi
25737         ;;
25738 esac
25739
25740 case $ol_with_threads in auto | yes | pth)
25741
25742
25743 for ac_header in pth.h
25744 do
25745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25747   echo "$as_me:$LINENO: checking for $ac_header" >&5
25748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25750   echo $ECHO_N "(cached) $ECHO_C" >&6
25751 fi
25752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25754 else
25755   # Is the header compilable?
25756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25758 cat >conftest.$ac_ext <<_ACEOF
25759 /* confdefs.h.  */
25760 _ACEOF
25761 cat confdefs.h >>conftest.$ac_ext
25762 cat >>conftest.$ac_ext <<_ACEOF
25763 /* end confdefs.h.  */
25764 $ac_includes_default
25765 #include <$ac_header>
25766 _ACEOF
25767 rm -f conftest.$ac_objext
25768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25769   (eval $ac_compile) 2>conftest.er1
25770   ac_status=$?
25771   grep -v '^ *+' conftest.er1 >conftest.err
25772   rm -f conftest.er1
25773   cat conftest.err >&5
25774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775   (exit $ac_status); } &&
25776          { ac_try='test -z "$ac_c_werror_flag"
25777                          || test ! -s conftest.err'
25778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25779   (eval $ac_try) 2>&5
25780   ac_status=$?
25781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782   (exit $ac_status); }; } &&
25783          { ac_try='test -s conftest.$ac_objext'
25784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25785   (eval $ac_try) 2>&5
25786   ac_status=$?
25787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788   (exit $ac_status); }; }; then
25789   ac_header_compiler=yes
25790 else
25791   echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25793
25794 ac_header_compiler=no
25795 fi
25796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25798 echo "${ECHO_T}$ac_header_compiler" >&6
25799
25800 # Is the header present?
25801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25803 cat >conftest.$ac_ext <<_ACEOF
25804 /* confdefs.h.  */
25805 _ACEOF
25806 cat confdefs.h >>conftest.$ac_ext
25807 cat >>conftest.$ac_ext <<_ACEOF
25808 /* end confdefs.h.  */
25809 #include <$ac_header>
25810 _ACEOF
25811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25813   ac_status=$?
25814   grep -v '^ *+' conftest.er1 >conftest.err
25815   rm -f conftest.er1
25816   cat conftest.err >&5
25817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818   (exit $ac_status); } >/dev/null; then
25819   if test -s conftest.err; then
25820     ac_cpp_err=$ac_c_preproc_warn_flag
25821     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25822   else
25823     ac_cpp_err=
25824   fi
25825 else
25826   ac_cpp_err=yes
25827 fi
25828 if test -z "$ac_cpp_err"; then
25829   ac_header_preproc=yes
25830 else
25831   echo "$as_me: failed program was:" >&5
25832 sed 's/^/| /' conftest.$ac_ext >&5
25833
25834   ac_header_preproc=no
25835 fi
25836 rm -f conftest.err conftest.$ac_ext
25837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25838 echo "${ECHO_T}$ac_header_preproc" >&6
25839
25840 # So?  What about this header?
25841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25842   yes:no: )
25843     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25847     ac_header_preproc=yes
25848     ;;
25849   no:yes:* )
25850     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25852     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25853 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25854     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25856     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25857 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25860     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25862     (
25863       cat <<\_ASBOX
25864 ## --------------------------------------------- ##
25865 ## Report this to <http://www.openldap.org/its/> ##
25866 ## --------------------------------------------- ##
25867 _ASBOX
25868     ) |
25869       sed "s/^/$as_me: WARNING:     /" >&2
25870     ;;
25871 esac
25872 echo "$as_me:$LINENO: checking for $ac_header" >&5
25873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25875   echo $ECHO_N "(cached) $ECHO_C" >&6
25876 else
25877   eval "$as_ac_Header=\$ac_header_preproc"
25878 fi
25879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25881
25882 fi
25883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25884   cat >>confdefs.h <<_ACEOF
25885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25886 _ACEOF
25887
25888 fi
25889
25890 done
25891
25892
25893         if test $ac_cv_header_pth_h = yes ; then
25894                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25895 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25896 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25897   echo $ECHO_N "(cached) $ECHO_C" >&6
25898 else
25899   ac_check_lib_save_LIBS=$LIBS
25900 LIBS="-lpth  $LIBS"
25901 cat >conftest.$ac_ext <<_ACEOF
25902 /* confdefs.h.  */
25903 _ACEOF
25904 cat confdefs.h >>conftest.$ac_ext
25905 cat >>conftest.$ac_ext <<_ACEOF
25906 /* end confdefs.h.  */
25907
25908 /* Override any gcc2 internal prototype to avoid an error.  */
25909 #ifdef __cplusplus
25910 extern "C"
25911 #endif
25912 /* We use char because int might match the return type of a gcc2
25913    builtin and then its argument prototype would still apply.  */
25914 char pth_version ();
25915 int
25916 main ()
25917 {
25918 pth_version ();
25919   ;
25920   return 0;
25921 }
25922 _ACEOF
25923 rm -f conftest.$ac_objext conftest$ac_exeext
25924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25925   (eval $ac_link) 2>conftest.er1
25926   ac_status=$?
25927   grep -v '^ *+' conftest.er1 >conftest.err
25928   rm -f conftest.er1
25929   cat conftest.err >&5
25930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931   (exit $ac_status); } &&
25932          { ac_try='test -z "$ac_c_werror_flag"
25933                          || test ! -s conftest.err'
25934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25935   (eval $ac_try) 2>&5
25936   ac_status=$?
25937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938   (exit $ac_status); }; } &&
25939          { ac_try='test -s conftest$ac_exeext'
25940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25941   (eval $ac_try) 2>&5
25942   ac_status=$?
25943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944   (exit $ac_status); }; }; then
25945   ac_cv_lib_pth_pth_version=yes
25946 else
25947   echo "$as_me: failed program was:" >&5
25948 sed 's/^/| /' conftest.$ac_ext >&5
25949
25950 ac_cv_lib_pth_pth_version=no
25951 fi
25952 rm -f conftest.err conftest.$ac_objext \
25953       conftest$ac_exeext conftest.$ac_ext
25954 LIBS=$ac_check_lib_save_LIBS
25955 fi
25956 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25957 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25958 if test $ac_cv_lib_pth_pth_version = yes; then
25959   have_pth=yes
25960 else
25961   have_pth=no
25962 fi
25963
25964
25965                 if test $have_pth = yes ; then
25966
25967 cat >>confdefs.h <<\_ACEOF
25968 #define HAVE_GNU_PTH 1
25969 _ACEOF
25970
25971                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25972                         ol_link_threads=pth
25973                         ol_with_threads=found
25974
25975                         if test $ol_with_yielding_select = auto ; then
25976                                 ol_with_yielding_select=yes
25977                         fi
25978                 fi
25979         fi
25980         ;;
25981 esac
25982
25983 case $ol_with_threads in auto | yes | lwp)
25984
25985
25986
25987 for ac_header in thread.h synch.h
25988 do
25989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25991   echo "$as_me:$LINENO: checking for $ac_header" >&5
25992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25994   echo $ECHO_N "(cached) $ECHO_C" >&6
25995 fi
25996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25998 else
25999   # Is the header compilable?
26000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26002 cat >conftest.$ac_ext <<_ACEOF
26003 /* confdefs.h.  */
26004 _ACEOF
26005 cat confdefs.h >>conftest.$ac_ext
26006 cat >>conftest.$ac_ext <<_ACEOF
26007 /* end confdefs.h.  */
26008 $ac_includes_default
26009 #include <$ac_header>
26010 _ACEOF
26011 rm -f conftest.$ac_objext
26012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26013   (eval $ac_compile) 2>conftest.er1
26014   ac_status=$?
26015   grep -v '^ *+' conftest.er1 >conftest.err
26016   rm -f conftest.er1
26017   cat conftest.err >&5
26018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019   (exit $ac_status); } &&
26020          { ac_try='test -z "$ac_c_werror_flag"
26021                          || test ! -s conftest.err'
26022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26023   (eval $ac_try) 2>&5
26024   ac_status=$?
26025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026   (exit $ac_status); }; } &&
26027          { ac_try='test -s conftest.$ac_objext'
26028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26029   (eval $ac_try) 2>&5
26030   ac_status=$?
26031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032   (exit $ac_status); }; }; then
26033   ac_header_compiler=yes
26034 else
26035   echo "$as_me: failed program was:" >&5
26036 sed 's/^/| /' conftest.$ac_ext >&5
26037
26038 ac_header_compiler=no
26039 fi
26040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26042 echo "${ECHO_T}$ac_header_compiler" >&6
26043
26044 # Is the header present?
26045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26047 cat >conftest.$ac_ext <<_ACEOF
26048 /* confdefs.h.  */
26049 _ACEOF
26050 cat confdefs.h >>conftest.$ac_ext
26051 cat >>conftest.$ac_ext <<_ACEOF
26052 /* end confdefs.h.  */
26053 #include <$ac_header>
26054 _ACEOF
26055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26057   ac_status=$?
26058   grep -v '^ *+' conftest.er1 >conftest.err
26059   rm -f conftest.er1
26060   cat conftest.err >&5
26061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062   (exit $ac_status); } >/dev/null; then
26063   if test -s conftest.err; then
26064     ac_cpp_err=$ac_c_preproc_warn_flag
26065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26066   else
26067     ac_cpp_err=
26068   fi
26069 else
26070   ac_cpp_err=yes
26071 fi
26072 if test -z "$ac_cpp_err"; then
26073   ac_header_preproc=yes
26074 else
26075   echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26077
26078   ac_header_preproc=no
26079 fi
26080 rm -f conftest.err conftest.$ac_ext
26081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26082 echo "${ECHO_T}$ac_header_preproc" >&6
26083
26084 # So?  What about this header?
26085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26086   yes:no: )
26087     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26091     ac_header_preproc=yes
26092     ;;
26093   no:yes:* )
26094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26096     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26097 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26098     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26100     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26101 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26104     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26106     (
26107       cat <<\_ASBOX
26108 ## --------------------------------------------- ##
26109 ## Report this to <http://www.openldap.org/its/> ##
26110 ## --------------------------------------------- ##
26111 _ASBOX
26112     ) |
26113       sed "s/^/$as_me: WARNING:     /" >&2
26114     ;;
26115 esac
26116 echo "$as_me:$LINENO: checking for $ac_header" >&5
26117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26119   echo $ECHO_N "(cached) $ECHO_C" >&6
26120 else
26121   eval "$as_ac_Header=\$ac_header_preproc"
26122 fi
26123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26125
26126 fi
26127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26128   cat >>confdefs.h <<_ACEOF
26129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26130 _ACEOF
26131
26132 fi
26133
26134 done
26135
26136         if test $ac_cv_header_thread_h = yes &&
26137            test $ac_cv_header_synch_h = yes ; then
26138                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26139 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
26140 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26141   echo $ECHO_N "(cached) $ECHO_C" >&6
26142 else
26143   ac_check_lib_save_LIBS=$LIBS
26144 LIBS="-lthread  $LIBS"
26145 cat >conftest.$ac_ext <<_ACEOF
26146 /* confdefs.h.  */
26147 _ACEOF
26148 cat confdefs.h >>conftest.$ac_ext
26149 cat >>conftest.$ac_ext <<_ACEOF
26150 /* end confdefs.h.  */
26151
26152 /* Override any gcc2 internal prototype to avoid an error.  */
26153 #ifdef __cplusplus
26154 extern "C"
26155 #endif
26156 /* We use char because int might match the return type of a gcc2
26157    builtin and then its argument prototype would still apply.  */
26158 char thr_create ();
26159 int
26160 main ()
26161 {
26162 thr_create ();
26163   ;
26164   return 0;
26165 }
26166 _ACEOF
26167 rm -f conftest.$ac_objext conftest$ac_exeext
26168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26169   (eval $ac_link) 2>conftest.er1
26170   ac_status=$?
26171   grep -v '^ *+' conftest.er1 >conftest.err
26172   rm -f conftest.er1
26173   cat conftest.err >&5
26174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); } &&
26176          { ac_try='test -z "$ac_c_werror_flag"
26177                          || test ! -s conftest.err'
26178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179   (eval $ac_try) 2>&5
26180   ac_status=$?
26181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182   (exit $ac_status); }; } &&
26183          { ac_try='test -s conftest$ac_exeext'
26184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185   (eval $ac_try) 2>&5
26186   ac_status=$?
26187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188   (exit $ac_status); }; }; then
26189   ac_cv_lib_thread_thr_create=yes
26190 else
26191   echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26193
26194 ac_cv_lib_thread_thr_create=no
26195 fi
26196 rm -f conftest.err conftest.$ac_objext \
26197       conftest$ac_exeext conftest.$ac_ext
26198 LIBS=$ac_check_lib_save_LIBS
26199 fi
26200 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26201 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26202 if test $ac_cv_lib_thread_thr_create = yes; then
26203   have_thr=yes
26204 else
26205   have_thr=no
26206 fi
26207
26208
26209                 if test $have_thr = yes ; then
26210
26211 cat >>confdefs.h <<\_ACEOF
26212 #define HAVE_THR 1
26213 _ACEOF
26214
26215                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26216                         ol_link_threads=thr
26217
26218                         if test $ol_with_yielding_select = auto ; then
26219                                 ol_with_yielding_select=yes
26220                         fi
26221
26222
26223
26224 for ac_func in \
26225                                 thr_setconcurrency \
26226                                 thr_getconcurrency \
26227
26228 do
26229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26230 echo "$as_me:$LINENO: checking for $ac_func" >&5
26231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26232 if eval "test \"\${$as_ac_var+set}\" = set"; then
26233   echo $ECHO_N "(cached) $ECHO_C" >&6
26234 else
26235   cat >conftest.$ac_ext <<_ACEOF
26236 /* confdefs.h.  */
26237 _ACEOF
26238 cat confdefs.h >>conftest.$ac_ext
26239 cat >>conftest.$ac_ext <<_ACEOF
26240 /* end confdefs.h.  */
26241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26243 #define $ac_func innocuous_$ac_func
26244
26245 /* System header to define __stub macros and hopefully few prototypes,
26246     which can conflict with char $ac_func (); below.
26247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26248     <limits.h> exists even on freestanding compilers.  */
26249
26250 #ifdef __STDC__
26251 # include <limits.h>
26252 #else
26253 # include <assert.h>
26254 #endif
26255
26256 #undef $ac_func
26257
26258 /* Override any gcc2 internal prototype to avoid an error.  */
26259 #ifdef __cplusplus
26260 extern "C"
26261 {
26262 #endif
26263 /* We use char because int might match the return type of a gcc2
26264    builtin and then its argument prototype would still apply.  */
26265 char $ac_func ();
26266 /* The GNU C library defines this for functions which it implements
26267     to always fail with ENOSYS.  Some functions are actually named
26268     something starting with __ and the normal name is an alias.  */
26269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26270 choke me
26271 #else
26272 char (*f) () = $ac_func;
26273 #endif
26274 #ifdef __cplusplus
26275 }
26276 #endif
26277
26278 int
26279 main ()
26280 {
26281 return f != $ac_func;
26282   ;
26283   return 0;
26284 }
26285 _ACEOF
26286 rm -f conftest.$ac_objext conftest$ac_exeext
26287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26288   (eval $ac_link) 2>conftest.er1
26289   ac_status=$?
26290   grep -v '^ *+' conftest.er1 >conftest.err
26291   rm -f conftest.er1
26292   cat conftest.err >&5
26293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294   (exit $ac_status); } &&
26295          { ac_try='test -z "$ac_c_werror_flag"
26296                          || test ! -s conftest.err'
26297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26298   (eval $ac_try) 2>&5
26299   ac_status=$?
26300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301   (exit $ac_status); }; } &&
26302          { ac_try='test -s conftest$ac_exeext'
26303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26304   (eval $ac_try) 2>&5
26305   ac_status=$?
26306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307   (exit $ac_status); }; }; then
26308   eval "$as_ac_var=yes"
26309 else
26310   echo "$as_me: failed program was:" >&5
26311 sed 's/^/| /' conftest.$ac_ext >&5
26312
26313 eval "$as_ac_var=no"
26314 fi
26315 rm -f conftest.err conftest.$ac_objext \
26316       conftest$ac_exeext conftest.$ac_ext
26317 fi
26318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26320 if test `eval echo '${'$as_ac_var'}'` = yes; then
26321   cat >>confdefs.h <<_ACEOF
26322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26323 _ACEOF
26324
26325 fi
26326 done
26327
26328                 fi
26329         fi
26330
26331
26332 for ac_header in lwp/lwp.h
26333 do
26334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26336   echo "$as_me:$LINENO: checking for $ac_header" >&5
26337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26339   echo $ECHO_N "(cached) $ECHO_C" >&6
26340 fi
26341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26343 else
26344   # Is the header compilable?
26345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26347 cat >conftest.$ac_ext <<_ACEOF
26348 /* confdefs.h.  */
26349 _ACEOF
26350 cat confdefs.h >>conftest.$ac_ext
26351 cat >>conftest.$ac_ext <<_ACEOF
26352 /* end confdefs.h.  */
26353 $ac_includes_default
26354 #include <$ac_header>
26355 _ACEOF
26356 rm -f conftest.$ac_objext
26357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26358   (eval $ac_compile) 2>conftest.er1
26359   ac_status=$?
26360   grep -v '^ *+' conftest.er1 >conftest.err
26361   rm -f conftest.er1
26362   cat conftest.err >&5
26363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364   (exit $ac_status); } &&
26365          { ac_try='test -z "$ac_c_werror_flag"
26366                          || test ! -s conftest.err'
26367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26368   (eval $ac_try) 2>&5
26369   ac_status=$?
26370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26371   (exit $ac_status); }; } &&
26372          { ac_try='test -s conftest.$ac_objext'
26373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26374   (eval $ac_try) 2>&5
26375   ac_status=$?
26376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377   (exit $ac_status); }; }; then
26378   ac_header_compiler=yes
26379 else
26380   echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26382
26383 ac_header_compiler=no
26384 fi
26385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26387 echo "${ECHO_T}$ac_header_compiler" >&6
26388
26389 # Is the header present?
26390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26392 cat >conftest.$ac_ext <<_ACEOF
26393 /* confdefs.h.  */
26394 _ACEOF
26395 cat confdefs.h >>conftest.$ac_ext
26396 cat >>conftest.$ac_ext <<_ACEOF
26397 /* end confdefs.h.  */
26398 #include <$ac_header>
26399 _ACEOF
26400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26402   ac_status=$?
26403   grep -v '^ *+' conftest.er1 >conftest.err
26404   rm -f conftest.er1
26405   cat conftest.err >&5
26406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407   (exit $ac_status); } >/dev/null; then
26408   if test -s conftest.err; then
26409     ac_cpp_err=$ac_c_preproc_warn_flag
26410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26411   else
26412     ac_cpp_err=
26413   fi
26414 else
26415   ac_cpp_err=yes
26416 fi
26417 if test -z "$ac_cpp_err"; then
26418   ac_header_preproc=yes
26419 else
26420   echo "$as_me: failed program was:" >&5
26421 sed 's/^/| /' conftest.$ac_ext >&5
26422
26423   ac_header_preproc=no
26424 fi
26425 rm -f conftest.err conftest.$ac_ext
26426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26427 echo "${ECHO_T}$ac_header_preproc" >&6
26428
26429 # So?  What about this header?
26430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26431   yes:no: )
26432     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26436     ac_header_preproc=yes
26437     ;;
26438   no:yes:* )
26439     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26441     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26442 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26443     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26445     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26446 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26449     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26451     (
26452       cat <<\_ASBOX
26453 ## --------------------------------------------- ##
26454 ## Report this to <http://www.openldap.org/its/> ##
26455 ## --------------------------------------------- ##
26456 _ASBOX
26457     ) |
26458       sed "s/^/$as_me: WARNING:     /" >&2
26459     ;;
26460 esac
26461 echo "$as_me:$LINENO: checking for $ac_header" >&5
26462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26464   echo $ECHO_N "(cached) $ECHO_C" >&6
26465 else
26466   eval "$as_ac_Header=\$ac_header_preproc"
26467 fi
26468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26470
26471 fi
26472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26473   cat >>confdefs.h <<_ACEOF
26474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26475 _ACEOF
26476
26477 fi
26478
26479 done
26480
26481         if test $ac_cv_header_lwp_lwp_h = yes ; then
26482                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26483 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26484 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26485   echo $ECHO_N "(cached) $ECHO_C" >&6
26486 else
26487   ac_check_lib_save_LIBS=$LIBS
26488 LIBS="-llwp  $LIBS"
26489 cat >conftest.$ac_ext <<_ACEOF
26490 /* confdefs.h.  */
26491 _ACEOF
26492 cat confdefs.h >>conftest.$ac_ext
26493 cat >>conftest.$ac_ext <<_ACEOF
26494 /* end confdefs.h.  */
26495
26496 /* Override any gcc2 internal prototype to avoid an error.  */
26497 #ifdef __cplusplus
26498 extern "C"
26499 #endif
26500 /* We use char because int might match the return type of a gcc2
26501    builtin and then its argument prototype would still apply.  */
26502 char lwp_create ();
26503 int
26504 main ()
26505 {
26506 lwp_create ();
26507   ;
26508   return 0;
26509 }
26510 _ACEOF
26511 rm -f conftest.$ac_objext conftest$ac_exeext
26512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26513   (eval $ac_link) 2>conftest.er1
26514   ac_status=$?
26515   grep -v '^ *+' conftest.er1 >conftest.err
26516   rm -f conftest.er1
26517   cat conftest.err >&5
26518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519   (exit $ac_status); } &&
26520          { ac_try='test -z "$ac_c_werror_flag"
26521                          || test ! -s conftest.err'
26522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26523   (eval $ac_try) 2>&5
26524   ac_status=$?
26525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526   (exit $ac_status); }; } &&
26527          { ac_try='test -s conftest$ac_exeext'
26528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26529   (eval $ac_try) 2>&5
26530   ac_status=$?
26531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532   (exit $ac_status); }; }; then
26533   ac_cv_lib_lwp_lwp_create=yes
26534 else
26535   echo "$as_me: failed program was:" >&5
26536 sed 's/^/| /' conftest.$ac_ext >&5
26537
26538 ac_cv_lib_lwp_lwp_create=no
26539 fi
26540 rm -f conftest.err conftest.$ac_objext \
26541       conftest$ac_exeext conftest.$ac_ext
26542 LIBS=$ac_check_lib_save_LIBS
26543 fi
26544 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26545 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26546 if test $ac_cv_lib_lwp_lwp_create = yes; then
26547   have_lwp=yes
26548 else
26549   have_lwp=no
26550 fi
26551
26552
26553                 if test $have_lwp = yes ; then
26554
26555 cat >>confdefs.h <<\_ACEOF
26556 #define HAVE_LWP 1
26557 _ACEOF
26558
26559                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26560                         ol_link_threads=lwp
26561
26562                         if test $ol_with_yielding_select = auto ; then
26563                                 ol_with_yielding_select=no
26564                         fi
26565                 fi
26566         fi
26567         ;;
26568 esac
26569
26570 if test $ol_with_yielding_select = yes ; then
26571
26572 cat >>confdefs.h <<\_ACEOF
26573 #define HAVE_YIELDING_SELECT 1
26574 _ACEOF
26575
26576 fi
26577
26578 if test $ol_with_threads = manual ; then
26579                 ol_link_threads=yes
26580
26581         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26582 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26583
26584
26585
26586 for ac_header in pthread.h sched.h
26587 do
26588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26590   echo "$as_me:$LINENO: checking for $ac_header" >&5
26591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26593   echo $ECHO_N "(cached) $ECHO_C" >&6
26594 fi
26595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26597 else
26598   # Is the header compilable?
26599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26601 cat >conftest.$ac_ext <<_ACEOF
26602 /* confdefs.h.  */
26603 _ACEOF
26604 cat confdefs.h >>conftest.$ac_ext
26605 cat >>conftest.$ac_ext <<_ACEOF
26606 /* end confdefs.h.  */
26607 $ac_includes_default
26608 #include <$ac_header>
26609 _ACEOF
26610 rm -f conftest.$ac_objext
26611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26612   (eval $ac_compile) 2>conftest.er1
26613   ac_status=$?
26614   grep -v '^ *+' conftest.er1 >conftest.err
26615   rm -f conftest.er1
26616   cat conftest.err >&5
26617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618   (exit $ac_status); } &&
26619          { ac_try='test -z "$ac_c_werror_flag"
26620                          || test ! -s conftest.err'
26621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26622   (eval $ac_try) 2>&5
26623   ac_status=$?
26624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625   (exit $ac_status); }; } &&
26626          { ac_try='test -s conftest.$ac_objext'
26627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26628   (eval $ac_try) 2>&5
26629   ac_status=$?
26630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631   (exit $ac_status); }; }; then
26632   ac_header_compiler=yes
26633 else
26634   echo "$as_me: failed program was:" >&5
26635 sed 's/^/| /' conftest.$ac_ext >&5
26636
26637 ac_header_compiler=no
26638 fi
26639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26641 echo "${ECHO_T}$ac_header_compiler" >&6
26642
26643 # Is the header present?
26644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26646 cat >conftest.$ac_ext <<_ACEOF
26647 /* confdefs.h.  */
26648 _ACEOF
26649 cat confdefs.h >>conftest.$ac_ext
26650 cat >>conftest.$ac_ext <<_ACEOF
26651 /* end confdefs.h.  */
26652 #include <$ac_header>
26653 _ACEOF
26654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26655   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26656   ac_status=$?
26657   grep -v '^ *+' conftest.er1 >conftest.err
26658   rm -f conftest.er1
26659   cat conftest.err >&5
26660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661   (exit $ac_status); } >/dev/null; then
26662   if test -s conftest.err; then
26663     ac_cpp_err=$ac_c_preproc_warn_flag
26664     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26665   else
26666     ac_cpp_err=
26667   fi
26668 else
26669   ac_cpp_err=yes
26670 fi
26671 if test -z "$ac_cpp_err"; then
26672   ac_header_preproc=yes
26673 else
26674   echo "$as_me: failed program was:" >&5
26675 sed 's/^/| /' conftest.$ac_ext >&5
26676
26677   ac_header_preproc=no
26678 fi
26679 rm -f conftest.err conftest.$ac_ext
26680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26681 echo "${ECHO_T}$ac_header_preproc" >&6
26682
26683 # So?  What about this header?
26684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26685   yes:no: )
26686     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26690     ac_header_preproc=yes
26691     ;;
26692   no:yes:* )
26693     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26695     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26696 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26697     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26699     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26700 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26703     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26705     (
26706       cat <<\_ASBOX
26707 ## --------------------------------------------- ##
26708 ## Report this to <http://www.openldap.org/its/> ##
26709 ## --------------------------------------------- ##
26710 _ASBOX
26711     ) |
26712       sed "s/^/$as_me: WARNING:     /" >&2
26713     ;;
26714 esac
26715 echo "$as_me:$LINENO: checking for $ac_header" >&5
26716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26718   echo $ECHO_N "(cached) $ECHO_C" >&6
26719 else
26720   eval "$as_ac_Header=\$ac_header_preproc"
26721 fi
26722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26724
26725 fi
26726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26727   cat >>confdefs.h <<_ACEOF
26728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26729 _ACEOF
26730
26731 fi
26732
26733 done
26734
26735
26736
26737 for ac_func in sched_yield pthread_yield
26738 do
26739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26740 echo "$as_me:$LINENO: checking for $ac_func" >&5
26741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26742 if eval "test \"\${$as_ac_var+set}\" = set"; then
26743   echo $ECHO_N "(cached) $ECHO_C" >&6
26744 else
26745   cat >conftest.$ac_ext <<_ACEOF
26746 /* confdefs.h.  */
26747 _ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h.  */
26751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26753 #define $ac_func innocuous_$ac_func
26754
26755 /* System header to define __stub macros and hopefully few prototypes,
26756     which can conflict with char $ac_func (); below.
26757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26758     <limits.h> exists even on freestanding compilers.  */
26759
26760 #ifdef __STDC__
26761 # include <limits.h>
26762 #else
26763 # include <assert.h>
26764 #endif
26765
26766 #undef $ac_func
26767
26768 /* Override any gcc2 internal prototype to avoid an error.  */
26769 #ifdef __cplusplus
26770 extern "C"
26771 {
26772 #endif
26773 /* We use char because int might match the return type of a gcc2
26774    builtin and then its argument prototype would still apply.  */
26775 char $ac_func ();
26776 /* The GNU C library defines this for functions which it implements
26777     to always fail with ENOSYS.  Some functions are actually named
26778     something starting with __ and the normal name is an alias.  */
26779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26780 choke me
26781 #else
26782 char (*f) () = $ac_func;
26783 #endif
26784 #ifdef __cplusplus
26785 }
26786 #endif
26787
26788 int
26789 main ()
26790 {
26791 return f != $ac_func;
26792   ;
26793   return 0;
26794 }
26795 _ACEOF
26796 rm -f conftest.$ac_objext conftest$ac_exeext
26797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26798   (eval $ac_link) 2>conftest.er1
26799   ac_status=$?
26800   grep -v '^ *+' conftest.er1 >conftest.err
26801   rm -f conftest.er1
26802   cat conftest.err >&5
26803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804   (exit $ac_status); } &&
26805          { ac_try='test -z "$ac_c_werror_flag"
26806                          || test ! -s conftest.err'
26807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26808   (eval $ac_try) 2>&5
26809   ac_status=$?
26810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811   (exit $ac_status); }; } &&
26812          { ac_try='test -s conftest$ac_exeext'
26813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26814   (eval $ac_try) 2>&5
26815   ac_status=$?
26816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817   (exit $ac_status); }; }; then
26818   eval "$as_ac_var=yes"
26819 else
26820   echo "$as_me: failed program was:" >&5
26821 sed 's/^/| /' conftest.$ac_ext >&5
26822
26823 eval "$as_ac_var=no"
26824 fi
26825 rm -f conftest.err conftest.$ac_objext \
26826       conftest$ac_exeext conftest.$ac_ext
26827 fi
26828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26830 if test `eval echo '${'$as_ac_var'}'` = yes; then
26831   cat >>confdefs.h <<_ACEOF
26832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26833 _ACEOF
26834
26835 fi
26836 done
26837
26838
26839         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26840 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26841 if test "${ol_cv_header_linux_threads+set}" = set; then
26842   echo $ECHO_N "(cached) $ECHO_C" >&6
26843 else
26844   cat >conftest.$ac_ext <<_ACEOF
26845 /* confdefs.h.  */
26846 _ACEOF
26847 cat confdefs.h >>conftest.$ac_ext
26848 cat >>conftest.$ac_ext <<_ACEOF
26849 /* end confdefs.h.  */
26850 #include <pthread.h>
26851 _ACEOF
26852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26853   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26854   ol_cv_header_linux_threads=yes
26855 else
26856   ol_cv_header_linux_threads=no
26857 fi
26858 rm -f conftest*
26859
26860
26861 fi
26862 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26863 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26864         if test $ol_cv_header_linux_threads = yes; then
26865
26866 cat >>confdefs.h <<\_ACEOF
26867 #define HAVE_LINUX_THREADS 1
26868 _ACEOF
26869
26870         fi
26871
26872
26873
26874 for ac_header in mach/cthreads.h
26875 do
26876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26878   echo "$as_me:$LINENO: checking for $ac_header" >&5
26879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26881   echo $ECHO_N "(cached) $ECHO_C" >&6
26882 fi
26883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26885 else
26886   # Is the header compilable?
26887 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26889 cat >conftest.$ac_ext <<_ACEOF
26890 /* confdefs.h.  */
26891 _ACEOF
26892 cat confdefs.h >>conftest.$ac_ext
26893 cat >>conftest.$ac_ext <<_ACEOF
26894 /* end confdefs.h.  */
26895 $ac_includes_default
26896 #include <$ac_header>
26897 _ACEOF
26898 rm -f conftest.$ac_objext
26899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26900   (eval $ac_compile) 2>conftest.er1
26901   ac_status=$?
26902   grep -v '^ *+' conftest.er1 >conftest.err
26903   rm -f conftest.er1
26904   cat conftest.err >&5
26905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906   (exit $ac_status); } &&
26907          { ac_try='test -z "$ac_c_werror_flag"
26908                          || test ! -s conftest.err'
26909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26910   (eval $ac_try) 2>&5
26911   ac_status=$?
26912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913   (exit $ac_status); }; } &&
26914          { ac_try='test -s conftest.$ac_objext'
26915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916   (eval $ac_try) 2>&5
26917   ac_status=$?
26918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919   (exit $ac_status); }; }; then
26920   ac_header_compiler=yes
26921 else
26922   echo "$as_me: failed program was:" >&5
26923 sed 's/^/| /' conftest.$ac_ext >&5
26924
26925 ac_header_compiler=no
26926 fi
26927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26929 echo "${ECHO_T}$ac_header_compiler" >&6
26930
26931 # Is the header present?
26932 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26934 cat >conftest.$ac_ext <<_ACEOF
26935 /* confdefs.h.  */
26936 _ACEOF
26937 cat confdefs.h >>conftest.$ac_ext
26938 cat >>conftest.$ac_ext <<_ACEOF
26939 /* end confdefs.h.  */
26940 #include <$ac_header>
26941 _ACEOF
26942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26943   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26944   ac_status=$?
26945   grep -v '^ *+' conftest.er1 >conftest.err
26946   rm -f conftest.er1
26947   cat conftest.err >&5
26948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949   (exit $ac_status); } >/dev/null; then
26950   if test -s conftest.err; then
26951     ac_cpp_err=$ac_c_preproc_warn_flag
26952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26953   else
26954     ac_cpp_err=
26955   fi
26956 else
26957   ac_cpp_err=yes
26958 fi
26959 if test -z "$ac_cpp_err"; then
26960   ac_header_preproc=yes
26961 else
26962   echo "$as_me: failed program was:" >&5
26963 sed 's/^/| /' conftest.$ac_ext >&5
26964
26965   ac_header_preproc=no
26966 fi
26967 rm -f conftest.err conftest.$ac_ext
26968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26969 echo "${ECHO_T}$ac_header_preproc" >&6
26970
26971 # So?  What about this header?
26972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26973   yes:no: )
26974     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26978     ac_header_preproc=yes
26979     ;;
26980   no:yes:* )
26981     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26983     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26984 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26985     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26987     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26988 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26991     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26993     (
26994       cat <<\_ASBOX
26995 ## --------------------------------------------- ##
26996 ## Report this to <http://www.openldap.org/its/> ##
26997 ## --------------------------------------------- ##
26998 _ASBOX
26999     ) |
27000       sed "s/^/$as_me: WARNING:     /" >&2
27001     ;;
27002 esac
27003 echo "$as_me:$LINENO: checking for $ac_header" >&5
27004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27006   echo $ECHO_N "(cached) $ECHO_C" >&6
27007 else
27008   eval "$as_ac_Header=\$ac_header_preproc"
27009 fi
27010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27012
27013 fi
27014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27015   cat >>confdefs.h <<_ACEOF
27016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27017 _ACEOF
27018
27019 fi
27020
27021 done
27022
27023
27024 for ac_header in lwp/lwp.h
27025 do
27026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27028   echo "$as_me:$LINENO: checking for $ac_header" >&5
27029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27031   echo $ECHO_N "(cached) $ECHO_C" >&6
27032 fi
27033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27035 else
27036   # Is the header compilable?
27037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27039 cat >conftest.$ac_ext <<_ACEOF
27040 /* confdefs.h.  */
27041 _ACEOF
27042 cat confdefs.h >>conftest.$ac_ext
27043 cat >>conftest.$ac_ext <<_ACEOF
27044 /* end confdefs.h.  */
27045 $ac_includes_default
27046 #include <$ac_header>
27047 _ACEOF
27048 rm -f conftest.$ac_objext
27049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27050   (eval $ac_compile) 2>conftest.er1
27051   ac_status=$?
27052   grep -v '^ *+' conftest.er1 >conftest.err
27053   rm -f conftest.er1
27054   cat conftest.err >&5
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); } &&
27057          { ac_try='test -z "$ac_c_werror_flag"
27058                          || test ! -s conftest.err'
27059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060   (eval $ac_try) 2>&5
27061   ac_status=$?
27062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063   (exit $ac_status); }; } &&
27064          { ac_try='test -s conftest.$ac_objext'
27065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27066   (eval $ac_try) 2>&5
27067   ac_status=$?
27068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069   (exit $ac_status); }; }; then
27070   ac_header_compiler=yes
27071 else
27072   echo "$as_me: failed program was:" >&5
27073 sed 's/^/| /' conftest.$ac_ext >&5
27074
27075 ac_header_compiler=no
27076 fi
27077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27079 echo "${ECHO_T}$ac_header_compiler" >&6
27080
27081 # Is the header present?
27082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27084 cat >conftest.$ac_ext <<_ACEOF
27085 /* confdefs.h.  */
27086 _ACEOF
27087 cat confdefs.h >>conftest.$ac_ext
27088 cat >>conftest.$ac_ext <<_ACEOF
27089 /* end confdefs.h.  */
27090 #include <$ac_header>
27091 _ACEOF
27092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27094   ac_status=$?
27095   grep -v '^ *+' conftest.er1 >conftest.err
27096   rm -f conftest.er1
27097   cat conftest.err >&5
27098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099   (exit $ac_status); } >/dev/null; then
27100   if test -s conftest.err; then
27101     ac_cpp_err=$ac_c_preproc_warn_flag
27102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27103   else
27104     ac_cpp_err=
27105   fi
27106 else
27107   ac_cpp_err=yes
27108 fi
27109 if test -z "$ac_cpp_err"; then
27110   ac_header_preproc=yes
27111 else
27112   echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27114
27115   ac_header_preproc=no
27116 fi
27117 rm -f conftest.err conftest.$ac_ext
27118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27119 echo "${ECHO_T}$ac_header_preproc" >&6
27120
27121 # So?  What about this header?
27122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27123   yes:no: )
27124     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27128     ac_header_preproc=yes
27129     ;;
27130   no:yes:* )
27131     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27133     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27134 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27135     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27137     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27138 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27141     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27143     (
27144       cat <<\_ASBOX
27145 ## --------------------------------------------- ##
27146 ## Report this to <http://www.openldap.org/its/> ##
27147 ## --------------------------------------------- ##
27148 _ASBOX
27149     ) |
27150       sed "s/^/$as_me: WARNING:     /" >&2
27151     ;;
27152 esac
27153 echo "$as_me:$LINENO: checking for $ac_header" >&5
27154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27156   echo $ECHO_N "(cached) $ECHO_C" >&6
27157 else
27158   eval "$as_ac_Header=\$ac_header_preproc"
27159 fi
27160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27162
27163 fi
27164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27165   cat >>confdefs.h <<_ACEOF
27166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27167 _ACEOF
27168
27169 fi
27170
27171 done
27172
27173
27174
27175 for ac_header in thread.h synch.h
27176 do
27177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27179   echo "$as_me:$LINENO: checking for $ac_header" >&5
27180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27182   echo $ECHO_N "(cached) $ECHO_C" >&6
27183 fi
27184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27186 else
27187   # Is the header compilable?
27188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27190 cat >conftest.$ac_ext <<_ACEOF
27191 /* confdefs.h.  */
27192 _ACEOF
27193 cat confdefs.h >>conftest.$ac_ext
27194 cat >>conftest.$ac_ext <<_ACEOF
27195 /* end confdefs.h.  */
27196 $ac_includes_default
27197 #include <$ac_header>
27198 _ACEOF
27199 rm -f conftest.$ac_objext
27200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27201   (eval $ac_compile) 2>conftest.er1
27202   ac_status=$?
27203   grep -v '^ *+' conftest.er1 >conftest.err
27204   rm -f conftest.er1
27205   cat conftest.err >&5
27206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207   (exit $ac_status); } &&
27208          { ac_try='test -z "$ac_c_werror_flag"
27209                          || test ! -s conftest.err'
27210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27211   (eval $ac_try) 2>&5
27212   ac_status=$?
27213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214   (exit $ac_status); }; } &&
27215          { ac_try='test -s conftest.$ac_objext'
27216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27217   (eval $ac_try) 2>&5
27218   ac_status=$?
27219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220   (exit $ac_status); }; }; then
27221   ac_header_compiler=yes
27222 else
27223   echo "$as_me: failed program was:" >&5
27224 sed 's/^/| /' conftest.$ac_ext >&5
27225
27226 ac_header_compiler=no
27227 fi
27228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27230 echo "${ECHO_T}$ac_header_compiler" >&6
27231
27232 # Is the header present?
27233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27235 cat >conftest.$ac_ext <<_ACEOF
27236 /* confdefs.h.  */
27237 _ACEOF
27238 cat confdefs.h >>conftest.$ac_ext
27239 cat >>conftest.$ac_ext <<_ACEOF
27240 /* end confdefs.h.  */
27241 #include <$ac_header>
27242 _ACEOF
27243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27244   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27245   ac_status=$?
27246   grep -v '^ *+' conftest.er1 >conftest.err
27247   rm -f conftest.er1
27248   cat conftest.err >&5
27249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250   (exit $ac_status); } >/dev/null; then
27251   if test -s conftest.err; then
27252     ac_cpp_err=$ac_c_preproc_warn_flag
27253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27254   else
27255     ac_cpp_err=
27256   fi
27257 else
27258   ac_cpp_err=yes
27259 fi
27260 if test -z "$ac_cpp_err"; then
27261   ac_header_preproc=yes
27262 else
27263   echo "$as_me: failed program was:" >&5
27264 sed 's/^/| /' conftest.$ac_ext >&5
27265
27266   ac_header_preproc=no
27267 fi
27268 rm -f conftest.err conftest.$ac_ext
27269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27270 echo "${ECHO_T}$ac_header_preproc" >&6
27271
27272 # So?  What about this header?
27273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27274   yes:no: )
27275     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27279     ac_header_preproc=yes
27280     ;;
27281   no:yes:* )
27282     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27284     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27285 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27286     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27288     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27289 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27292     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27294     (
27295       cat <<\_ASBOX
27296 ## --------------------------------------------- ##
27297 ## Report this to <http://www.openldap.org/its/> ##
27298 ## --------------------------------------------- ##
27299 _ASBOX
27300     ) |
27301       sed "s/^/$as_me: WARNING:     /" >&2
27302     ;;
27303 esac
27304 echo "$as_me:$LINENO: checking for $ac_header" >&5
27305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27307   echo $ECHO_N "(cached) $ECHO_C" >&6
27308 else
27309   eval "$as_ac_Header=\$ac_header_preproc"
27310 fi
27311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27313
27314 fi
27315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27316   cat >>confdefs.h <<_ACEOF
27317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27318 _ACEOF
27319
27320 fi
27321
27322 done
27323
27324 fi
27325
27326 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27327                         cat >>confdefs.h <<\_ACEOF
27328 #define REENTRANT 1
27329 _ACEOF
27330
27331         cat >>confdefs.h <<\_ACEOF
27332 #define _REENTRANT 1
27333 _ACEOF
27334
27335         cat >>confdefs.h <<\_ACEOF
27336 #define THREAD_SAFE 1
27337 _ACEOF
27338
27339         cat >>confdefs.h <<\_ACEOF
27340 #define _THREAD_SAFE 1
27341 _ACEOF
27342
27343         cat >>confdefs.h <<\_ACEOF
27344 #define THREADSAFE 1
27345 _ACEOF
27346
27347         cat >>confdefs.h <<\_ACEOF
27348 #define _THREADSAFE 1
27349 _ACEOF
27350
27351         cat >>confdefs.h <<\_ACEOF
27352 #define _SGI_MP_SOURCE 1
27353 _ACEOF
27354
27355
27356                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27357 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27358 if test "${ol_cv_errno_thread_specific+set}" = set; then
27359   echo $ECHO_N "(cached) $ECHO_C" >&6
27360 else
27361
27362                 cat >conftest.$ac_ext <<_ACEOF
27363 /* confdefs.h.  */
27364 _ACEOF
27365 cat confdefs.h >>conftest.$ac_ext
27366 cat >>conftest.$ac_ext <<_ACEOF
27367 /* end confdefs.h.  */
27368 #include <errno.h>
27369 int
27370 main ()
27371 {
27372 errno = 0;
27373   ;
27374   return 0;
27375 }
27376 _ACEOF
27377 rm -f conftest.$ac_objext conftest$ac_exeext
27378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27379   (eval $ac_link) 2>conftest.er1
27380   ac_status=$?
27381   grep -v '^ *+' conftest.er1 >conftest.err
27382   rm -f conftest.er1
27383   cat conftest.err >&5
27384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385   (exit $ac_status); } &&
27386          { ac_try='test -z "$ac_c_werror_flag"
27387                          || test ! -s conftest.err'
27388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27389   (eval $ac_try) 2>&5
27390   ac_status=$?
27391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392   (exit $ac_status); }; } &&
27393          { ac_try='test -s conftest$ac_exeext'
27394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27395   (eval $ac_try) 2>&5
27396   ac_status=$?
27397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398   (exit $ac_status); }; }; then
27399   ol_cv_errno_thread_specific=yes
27400 else
27401   echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27403
27404 ol_cv_errno_thread_specific=no
27405 fi
27406 rm -f conftest.err conftest.$ac_objext \
27407       conftest$ac_exeext conftest.$ac_ext
27408
27409 fi
27410 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27411 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27412
27413                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27414 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27415 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27416   echo $ECHO_N "(cached) $ECHO_C" >&6
27417 else
27418
27419                 cat >conftest.$ac_ext <<_ACEOF
27420 /* confdefs.h.  */
27421 _ACEOF
27422 cat confdefs.h >>conftest.$ac_ext
27423 cat >>conftest.$ac_ext <<_ACEOF
27424 /* end confdefs.h.  */
27425 #include <netdb.h>
27426 int
27427 main ()
27428 {
27429 h_errno = 0;
27430   ;
27431   return 0;
27432 }
27433 _ACEOF
27434 rm -f conftest.$ac_objext conftest$ac_exeext
27435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27436   (eval $ac_link) 2>conftest.er1
27437   ac_status=$?
27438   grep -v '^ *+' conftest.er1 >conftest.err
27439   rm -f conftest.er1
27440   cat conftest.err >&5
27441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442   (exit $ac_status); } &&
27443          { ac_try='test -z "$ac_c_werror_flag"
27444                          || test ! -s conftest.err'
27445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27446   (eval $ac_try) 2>&5
27447   ac_status=$?
27448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449   (exit $ac_status); }; } &&
27450          { ac_try='test -s conftest$ac_exeext'
27451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27452   (eval $ac_try) 2>&5
27453   ac_status=$?
27454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455   (exit $ac_status); }; }; then
27456   ol_cv_h_errno_thread_specific=yes
27457 else
27458   echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27460
27461 ol_cv_h_errno_thread_specific=no
27462 fi
27463 rm -f conftest.err conftest.$ac_objext \
27464       conftest$ac_exeext conftest.$ac_ext
27465
27466 fi
27467 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27468 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27469
27470         if test $ol_cv_errno_thread_specific != yes ||
27471            test $ol_cv_h_errno_thread_specific != yes ; then
27472                 LIBS="$LTHREAD_LIBS $LIBS"
27473                 LTHREAD_LIBS=""
27474         fi
27475
27476 fi
27477
27478 if test $ol_link_threads = no ; then
27479         if test $ol_with_threads = yes ; then
27480                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27481 echo "$as_me: error: no suitable thread support" >&2;}
27482    { (exit 1); exit 1; }; }
27483         fi
27484
27485         if test $ol_with_threads = auto ; then
27486                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27487 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27488                 ol_with_threads=no
27489         fi
27490
27491
27492 cat >>confdefs.h <<\_ACEOF
27493 #define NO_THREADS 1
27494 _ACEOF
27495
27496         LTHREAD_LIBS=""
27497         BUILD_THREAD=no
27498 else
27499         BUILD_THREAD=yes
27500 fi
27501
27502 if test $ol_link_threads != no ; then
27503
27504 cat >>confdefs.h <<\_ACEOF
27505 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27506 _ACEOF
27507
27508 fi
27509
27510
27511
27512
27513 for ac_func in \
27514         ctime_r                 \
27515         gethostbyname_r gethostbyaddr_r \
27516
27517 do
27518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27519 echo "$as_me:$LINENO: checking for $ac_func" >&5
27520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27521 if eval "test \"\${$as_ac_var+set}\" = set"; then
27522   echo $ECHO_N "(cached) $ECHO_C" >&6
27523 else
27524   cat >conftest.$ac_ext <<_ACEOF
27525 /* confdefs.h.  */
27526 _ACEOF
27527 cat confdefs.h >>conftest.$ac_ext
27528 cat >>conftest.$ac_ext <<_ACEOF
27529 /* end confdefs.h.  */
27530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27532 #define $ac_func innocuous_$ac_func
27533
27534 /* System header to define __stub macros and hopefully few prototypes,
27535     which can conflict with char $ac_func (); below.
27536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27537     <limits.h> exists even on freestanding compilers.  */
27538
27539 #ifdef __STDC__
27540 # include <limits.h>
27541 #else
27542 # include <assert.h>
27543 #endif
27544
27545 #undef $ac_func
27546
27547 /* Override any gcc2 internal prototype to avoid an error.  */
27548 #ifdef __cplusplus
27549 extern "C"
27550 {
27551 #endif
27552 /* We use char because int might match the return type of a gcc2
27553    builtin and then its argument prototype would still apply.  */
27554 char $ac_func ();
27555 /* The GNU C library defines this for functions which it implements
27556     to always fail with ENOSYS.  Some functions are actually named
27557     something starting with __ and the normal name is an alias.  */
27558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27559 choke me
27560 #else
27561 char (*f) () = $ac_func;
27562 #endif
27563 #ifdef __cplusplus
27564 }
27565 #endif
27566
27567 int
27568 main ()
27569 {
27570 return f != $ac_func;
27571   ;
27572   return 0;
27573 }
27574 _ACEOF
27575 rm -f conftest.$ac_objext conftest$ac_exeext
27576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27577   (eval $ac_link) 2>conftest.er1
27578   ac_status=$?
27579   grep -v '^ *+' conftest.er1 >conftest.err
27580   rm -f conftest.er1
27581   cat conftest.err >&5
27582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583   (exit $ac_status); } &&
27584          { ac_try='test -z "$ac_c_werror_flag"
27585                          || test ! -s conftest.err'
27586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27587   (eval $ac_try) 2>&5
27588   ac_status=$?
27589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590   (exit $ac_status); }; } &&
27591          { ac_try='test -s conftest$ac_exeext'
27592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27593   (eval $ac_try) 2>&5
27594   ac_status=$?
27595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596   (exit $ac_status); }; }; then
27597   eval "$as_ac_var=yes"
27598 else
27599   echo "$as_me: failed program was:" >&5
27600 sed 's/^/| /' conftest.$ac_ext >&5
27601
27602 eval "$as_ac_var=no"
27603 fi
27604 rm -f conftest.err conftest.$ac_objext \
27605       conftest$ac_exeext conftest.$ac_ext
27606 fi
27607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27609 if test `eval echo '${'$as_ac_var'}'` = yes; then
27610   cat >>confdefs.h <<_ACEOF
27611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27612 _ACEOF
27613
27614 fi
27615 done
27616
27617
27618 if test "$ac_cv_func_ctime_r" = no ; then
27619         ol_cv_func_ctime_r_nargs=0
27620 else
27621         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27622 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27623 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27624   echo $ECHO_N "(cached) $ECHO_C" >&6
27625 else
27626   cat >conftest.$ac_ext <<_ACEOF
27627 /* confdefs.h.  */
27628 _ACEOF
27629 cat confdefs.h >>conftest.$ac_ext
27630 cat >>conftest.$ac_ext <<_ACEOF
27631 /* end confdefs.h.  */
27632 #include <time.h>
27633 int
27634 main ()
27635 {
27636 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27637   ;
27638   return 0;
27639 }
27640 _ACEOF
27641 rm -f conftest.$ac_objext
27642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27643   (eval $ac_compile) 2>conftest.er1
27644   ac_status=$?
27645   grep -v '^ *+' conftest.er1 >conftest.err
27646   rm -f conftest.er1
27647   cat conftest.err >&5
27648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649   (exit $ac_status); } &&
27650          { ac_try='test -z "$ac_c_werror_flag"
27651                          || test ! -s conftest.err'
27652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653   (eval $ac_try) 2>&5
27654   ac_status=$?
27655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656   (exit $ac_status); }; } &&
27657          { ac_try='test -s conftest.$ac_objext'
27658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27659   (eval $ac_try) 2>&5
27660   ac_status=$?
27661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662   (exit $ac_status); }; }; then
27663   ol_cv_func_ctime_r_nargs3=yes
27664 else
27665   echo "$as_me: failed program was:" >&5
27666 sed 's/^/| /' conftest.$ac_ext >&5
27667
27668 ol_cv_func_ctime_r_nargs3=no
27669 fi
27670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27671
27672         cat >conftest.$ac_ext <<_ACEOF
27673 /* confdefs.h.  */
27674 _ACEOF
27675 cat confdefs.h >>conftest.$ac_ext
27676 cat >>conftest.$ac_ext <<_ACEOF
27677 /* end confdefs.h.  */
27678 #include <time.h>
27679 int
27680 main ()
27681 {
27682 time_t ti; char *buffer; ctime_r(&ti,buffer);
27683   ;
27684   return 0;
27685 }
27686 _ACEOF
27687 rm -f conftest.$ac_objext
27688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27689   (eval $ac_compile) 2>conftest.er1
27690   ac_status=$?
27691   grep -v '^ *+' conftest.er1 >conftest.err
27692   rm -f conftest.er1
27693   cat conftest.err >&5
27694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695   (exit $ac_status); } &&
27696          { ac_try='test -z "$ac_c_werror_flag"
27697                          || test ! -s conftest.err'
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); }; } &&
27703          { ac_try='test -s conftest.$ac_objext'
27704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27705   (eval $ac_try) 2>&5
27706   ac_status=$?
27707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708   (exit $ac_status); }; }; then
27709   ol_cv_func_ctime_r_nargs2=yes
27710 else
27711   echo "$as_me: failed program was:" >&5
27712 sed 's/^/| /' conftest.$ac_ext >&5
27713
27714 ol_cv_func_ctime_r_nargs2=no
27715 fi
27716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27717
27718         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27719            test $ol_cv_func_ctime_r_nargs2 = no ; then
27720
27721                 ol_cv_func_ctime_r_nargs=3
27722
27723         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27724              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27725
27726                 ol_cv_func_ctime_r_nargs=2
27727
27728         else
27729                 ol_cv_func_ctime_r_nargs=0
27730         fi
27731
27732 fi
27733 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27734 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27735
27736   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27737
27738 cat >>confdefs.h <<_ACEOF
27739 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27740 _ACEOF
27741
27742   fi
27743
27744 fi
27745
27746 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27747         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27748 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27749 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27750   echo $ECHO_N "(cached) $ECHO_C" >&6
27751 else
27752   cat >conftest.$ac_ext <<_ACEOF
27753 /* confdefs.h.  */
27754 _ACEOF
27755 cat confdefs.h >>conftest.$ac_ext
27756 cat >>conftest.$ac_ext <<_ACEOF
27757 /* end confdefs.h.  */
27758 #include <sys/types.h>
27759 #include <sys/socket.h>
27760 #include <netinet/in.h>
27761 #include <netdb.h>
27762 #define BUFSIZE (sizeof(struct hostent)+10)
27763 int
27764 main ()
27765 {
27766 struct hostent hent; char buffer[BUFSIZE];
27767                 int bufsize=BUFSIZE;int h_errno;
27768                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27769                         buffer, bufsize, &h_errno);
27770   ;
27771   return 0;
27772 }
27773 _ACEOF
27774 rm -f conftest.$ac_objext
27775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27776   (eval $ac_compile) 2>conftest.er1
27777   ac_status=$?
27778   grep -v '^ *+' conftest.er1 >conftest.err
27779   rm -f conftest.er1
27780   cat conftest.err >&5
27781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); } &&
27783          { ac_try='test -z "$ac_c_werror_flag"
27784                          || test ! -s conftest.err'
27785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27786   (eval $ac_try) 2>&5
27787   ac_status=$?
27788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789   (exit $ac_status); }; } &&
27790          { ac_try='test -s conftest.$ac_objext'
27791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27792   (eval $ac_try) 2>&5
27793   ac_status=$?
27794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795   (exit $ac_status); }; }; then
27796   ol_cv_func_gethostbyname_r_nargs5=yes
27797 else
27798   echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27800
27801 ol_cv_func_gethostbyname_r_nargs5=no
27802 fi
27803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27804
27805         cat >conftest.$ac_ext <<_ACEOF
27806 /* confdefs.h.  */
27807 _ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h.  */
27811 #include <sys/types.h>
27812 #include <sys/socket.h>
27813 #include <netinet/in.h>
27814 #include <netdb.h>
27815 #define BUFSIZE (sizeof(struct hostent)+10)
27816 int
27817 main ()
27818 {
27819 struct hostent hent;struct hostent *rhent;
27820                 char buffer[BUFSIZE];
27821                 int bufsize=BUFSIZE;int h_errno;
27822                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27823                         &rhent, &h_errno);
27824   ;
27825   return 0;
27826 }
27827 _ACEOF
27828 rm -f conftest.$ac_objext
27829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27830   (eval $ac_compile) 2>conftest.er1
27831   ac_status=$?
27832   grep -v '^ *+' conftest.er1 >conftest.err
27833   rm -f conftest.er1
27834   cat conftest.err >&5
27835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836   (exit $ac_status); } &&
27837          { ac_try='test -z "$ac_c_werror_flag"
27838                          || test ! -s conftest.err'
27839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840   (eval $ac_try) 2>&5
27841   ac_status=$?
27842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843   (exit $ac_status); }; } &&
27844          { ac_try='test -s conftest.$ac_objext'
27845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27846   (eval $ac_try) 2>&5
27847   ac_status=$?
27848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849   (exit $ac_status); }; }; then
27850   ol_cv_func_gethostbyname_r_nargs6=yes
27851 else
27852   echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27854
27855 ol_cv_func_gethostbyname_r_nargs6=no
27856 fi
27857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27858
27859         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27860            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27861
27862                 ol_cv_func_gethostbyname_r_nargs=5
27863
27864         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27865              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27866
27867                 ol_cv_func_gethostbyname_r_nargs=6
27868
27869         else
27870                 ol_cv_func_gethostbyname_r_nargs=0
27871         fi
27872
27873 fi
27874 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27875 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27876   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27877
27878 cat >>confdefs.h <<_ACEOF
27879 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27880 _ACEOF
27881
27882   fi
27883
27884 else
27885         ol_cv_func_gethostbyname_r_nargs=0
27886 fi
27887
27888 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27889         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27890 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27891 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27892   echo $ECHO_N "(cached) $ECHO_C" >&6
27893 else
27894   cat >conftest.$ac_ext <<_ACEOF
27895 /* confdefs.h.  */
27896 _ACEOF
27897 cat confdefs.h >>conftest.$ac_ext
27898 cat >>conftest.$ac_ext <<_ACEOF
27899 /* end confdefs.h.  */
27900 #include <sys/types.h>
27901 #include <sys/socket.h>
27902 #include <netinet/in.h>
27903 #include <netdb.h>
27904 #define BUFSIZE (sizeof(struct hostent)+10)
27905 int
27906 main ()
27907 {
27908 struct hostent hent; char buffer[BUFSIZE];
27909             struct in_addr add;
27910             size_t alen=sizeof(struct in_addr);
27911             int bufsize=BUFSIZE;int h_errno;
27912                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27913                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27914   ;
27915   return 0;
27916 }
27917 _ACEOF
27918 rm -f conftest.$ac_objext
27919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27920   (eval $ac_compile) 2>conftest.er1
27921   ac_status=$?
27922   grep -v '^ *+' conftest.er1 >conftest.err
27923   rm -f conftest.er1
27924   cat conftest.err >&5
27925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926   (exit $ac_status); } &&
27927          { ac_try='test -z "$ac_c_werror_flag"
27928                          || test ! -s conftest.err'
27929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27930   (eval $ac_try) 2>&5
27931   ac_status=$?
27932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933   (exit $ac_status); }; } &&
27934          { ac_try='test -s conftest.$ac_objext'
27935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27936   (eval $ac_try) 2>&5
27937   ac_status=$?
27938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939   (exit $ac_status); }; }; then
27940   ol_cv_func_gethostbyaddr_r_nargs7=yes
27941 else
27942   echo "$as_me: failed program was:" >&5
27943 sed 's/^/| /' conftest.$ac_ext >&5
27944
27945 ol_cv_func_gethostbyaddr_r_nargs7=no
27946 fi
27947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27948
27949         cat >conftest.$ac_ext <<_ACEOF
27950 /* confdefs.h.  */
27951 _ACEOF
27952 cat confdefs.h >>conftest.$ac_ext
27953 cat >>conftest.$ac_ext <<_ACEOF
27954 /* end confdefs.h.  */
27955 #include <sys/types.h>
27956 #include <sys/socket.h>
27957 #include <netinet/in.h>
27958 #include <netdb.h>
27959 #define BUFSIZE (sizeof(struct hostent)+10)
27960 int
27961 main ()
27962 {
27963 struct hostent hent;
27964                 struct hostent *rhent; char buffer[BUFSIZE];
27965                 struct in_addr add;
27966                 size_t alen=sizeof(struct in_addr);
27967                 int bufsize=BUFSIZE;int h_errno;
27968                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27969                         alen, AF_INET, &hent, buffer, bufsize,
27970                         &rhent, &h_errno);
27971   ;
27972   return 0;
27973 }
27974 _ACEOF
27975 rm -f conftest.$ac_objext
27976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27977   (eval $ac_compile) 2>conftest.er1
27978   ac_status=$?
27979   grep -v '^ *+' conftest.er1 >conftest.err
27980   rm -f conftest.er1
27981   cat conftest.err >&5
27982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983   (exit $ac_status); } &&
27984          { ac_try='test -z "$ac_c_werror_flag"
27985                          || test ! -s conftest.err'
27986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27987   (eval $ac_try) 2>&5
27988   ac_status=$?
27989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990   (exit $ac_status); }; } &&
27991          { ac_try='test -s conftest.$ac_objext'
27992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27993   (eval $ac_try) 2>&5
27994   ac_status=$?
27995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996   (exit $ac_status); }; }; then
27997   ol_cv_func_gethostbyaddr_r_nargs8=yes
27998 else
27999   echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.$ac_ext >&5
28001
28002 ol_cv_func_gethostbyaddr_r_nargs8=no
28003 fi
28004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28005
28006         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
28007            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
28008
28009                 ol_cv_func_gethostbyaddr_r_nargs=7
28010
28011         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
28012              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
28013
28014                 ol_cv_func_gethostbyaddr_r_nargs=8
28015
28016         else
28017                 ol_cv_func_gethostbyaddr_r_nargs=0
28018         fi
28019
28020 fi
28021 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
28022 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
28023   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
28024
28025 cat >>confdefs.h <<_ACEOF
28026 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
28027 _ACEOF
28028
28029   fi
28030
28031 else
28032         ol_cv_func_gethostbyaddr_r_nargs=0
28033 fi
28034
28035 ol_link_bdb=no
28036
28037 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
28038         ol_cv_berkeley_db=no
28039
28040 for ac_header in db.h
28041 do
28042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28044   echo "$as_me:$LINENO: checking for $ac_header" >&5
28045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28047   echo $ECHO_N "(cached) $ECHO_C" >&6
28048 fi
28049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28051 else
28052   # Is the header compilable?
28053 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28055 cat >conftest.$ac_ext <<_ACEOF
28056 /* confdefs.h.  */
28057 _ACEOF
28058 cat confdefs.h >>conftest.$ac_ext
28059 cat >>conftest.$ac_ext <<_ACEOF
28060 /* end confdefs.h.  */
28061 $ac_includes_default
28062 #include <$ac_header>
28063 _ACEOF
28064 rm -f conftest.$ac_objext
28065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28066   (eval $ac_compile) 2>conftest.er1
28067   ac_status=$?
28068   grep -v '^ *+' conftest.er1 >conftest.err
28069   rm -f conftest.er1
28070   cat conftest.err >&5
28071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072   (exit $ac_status); } &&
28073          { ac_try='test -z "$ac_c_werror_flag"
28074                          || test ! -s conftest.err'
28075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076   (eval $ac_try) 2>&5
28077   ac_status=$?
28078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079   (exit $ac_status); }; } &&
28080          { ac_try='test -s conftest.$ac_objext'
28081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28082   (eval $ac_try) 2>&5
28083   ac_status=$?
28084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085   (exit $ac_status); }; }; then
28086   ac_header_compiler=yes
28087 else
28088   echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.$ac_ext >&5
28090
28091 ac_header_compiler=no
28092 fi
28093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28095 echo "${ECHO_T}$ac_header_compiler" >&6
28096
28097 # Is the header present?
28098 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28100 cat >conftest.$ac_ext <<_ACEOF
28101 /* confdefs.h.  */
28102 _ACEOF
28103 cat confdefs.h >>conftest.$ac_ext
28104 cat >>conftest.$ac_ext <<_ACEOF
28105 /* end confdefs.h.  */
28106 #include <$ac_header>
28107 _ACEOF
28108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28110   ac_status=$?
28111   grep -v '^ *+' conftest.er1 >conftest.err
28112   rm -f conftest.er1
28113   cat conftest.err >&5
28114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115   (exit $ac_status); } >/dev/null; then
28116   if test -s conftest.err; then
28117     ac_cpp_err=$ac_c_preproc_warn_flag
28118     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28119   else
28120     ac_cpp_err=
28121   fi
28122 else
28123   ac_cpp_err=yes
28124 fi
28125 if test -z "$ac_cpp_err"; then
28126   ac_header_preproc=yes
28127 else
28128   echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28130
28131   ac_header_preproc=no
28132 fi
28133 rm -f conftest.err conftest.$ac_ext
28134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28135 echo "${ECHO_T}$ac_header_preproc" >&6
28136
28137 # So?  What about this header?
28138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28139   yes:no: )
28140     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28144     ac_header_preproc=yes
28145     ;;
28146   no:yes:* )
28147     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28149     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28150 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28151     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28153     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28154 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28157     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28159     (
28160       cat <<\_ASBOX
28161 ## --------------------------------------------- ##
28162 ## Report this to <http://www.openldap.org/its/> ##
28163 ## --------------------------------------------- ##
28164 _ASBOX
28165     ) |
28166       sed "s/^/$as_me: WARNING:     /" >&2
28167     ;;
28168 esac
28169 echo "$as_me:$LINENO: checking for $ac_header" >&5
28170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28172   echo $ECHO_N "(cached) $ECHO_C" >&6
28173 else
28174   eval "$as_ac_Header=\$ac_header_preproc"
28175 fi
28176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28178
28179 fi
28180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28181   cat >>confdefs.h <<_ACEOF
28182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28183 _ACEOF
28184
28185 fi
28186
28187 done
28188
28189 if test $ac_cv_header_db_h = yes; then
28190         ol_cv_lib_db=no
28191
28192 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
28193 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
28194 if test "${ol_cv_bdb_major+set}" = set; then
28195   echo $ECHO_N "(cached) $ECHO_C" >&6
28196 else
28197
28198         ol_cv_bdb_major=0
28199         if test $ol_cv_bdb_major = 0 ; then
28200                 cat >conftest.$ac_ext <<_ACEOF
28201 /* confdefs.h.  */
28202 _ACEOF
28203 cat confdefs.h >>conftest.$ac_ext
28204 cat >>conftest.$ac_ext <<_ACEOF
28205 /* end confdefs.h.  */
28206
28207 #include <db.h>
28208 #ifndef DB_VERSION_MAJOR
28209 #       define DB_VERSION_MAJOR 1
28210 #endif
28211 #if DB_VERSION_MAJOR == 4
28212 __db_version
28213 #endif
28214
28215 _ACEOF
28216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28217   $EGREP "__db_version" >/dev/null 2>&1; then
28218   ol_cv_bdb_major=4
28219 else
28220   :
28221 fi
28222 rm -f conftest*
28223
28224         fi
28225         if test $ol_cv_bdb_major = 0 ; then
28226                 cat >conftest.$ac_ext <<_ACEOF
28227 /* confdefs.h.  */
28228 _ACEOF
28229 cat confdefs.h >>conftest.$ac_ext
28230 cat >>conftest.$ac_ext <<_ACEOF
28231 /* end confdefs.h.  */
28232
28233 #include <db.h>
28234 #ifndef DB_VERSION_MAJOR
28235 #       define DB_VERSION_MAJOR 1
28236 #endif
28237 #if DB_VERSION_MAJOR == 3
28238 __db_version
28239 #endif
28240
28241 _ACEOF
28242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28243   $EGREP "__db_version" >/dev/null 2>&1; then
28244   ol_cv_bdb_major=3
28245 else
28246   :
28247 fi
28248 rm -f conftest*
28249
28250         fi
28251         if test $ol_cv_bdb_major = 0 ; then
28252                 cat >conftest.$ac_ext <<_ACEOF
28253 /* confdefs.h.  */
28254 _ACEOF
28255 cat confdefs.h >>conftest.$ac_ext
28256 cat >>conftest.$ac_ext <<_ACEOF
28257 /* end confdefs.h.  */
28258
28259 #include <db.h>
28260 #ifndef DB_VERSION_MAJOR
28261 #       define DB_VERSION_MAJOR 1
28262 #endif
28263 #if DB_VERSION_MAJOR == 2
28264 __db_version
28265 #endif
28266
28267 _ACEOF
28268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28269   $EGREP "__db_version" >/dev/null 2>&1; then
28270   ol_cv_bdb_major=2
28271 else
28272   :
28273 fi
28274 rm -f conftest*
28275
28276         fi
28277         if test $ol_cv_bdb_major = 0 ; then
28278                 cat >conftest.$ac_ext <<_ACEOF
28279 /* confdefs.h.  */
28280 _ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h.  */
28284
28285 #include <db.h>
28286 #ifndef DB_VERSION_MAJOR
28287 #       define DB_VERSION_MAJOR 1
28288 #endif
28289 #if DB_VERSION_MAJOR == 1
28290 __db_version
28291 #endif
28292
28293 _ACEOF
28294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28295   $EGREP "__db_version" >/dev/null 2>&1; then
28296   ol_cv_bdb_major=1
28297 else
28298   :
28299 fi
28300 rm -f conftest*
28301
28302         fi
28303
28304         if test $ol_cv_bdb_major = 0 ; then
28305                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28306 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28307    { (exit 1); exit 1; }; }
28308         fi
28309
28310 fi
28311 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28312 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28313
28314 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28315 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28316 if test "${ol_cv_bdb_minor+set}" = set; then
28317   echo $ECHO_N "(cached) $ECHO_C" >&6
28318 else
28319
28320         ol_cv_bdb_minor=0
28321         if test $ol_cv_bdb_minor = 0 ; then
28322                 cat >conftest.$ac_ext <<_ACEOF
28323 /* confdefs.h.  */
28324 _ACEOF
28325 cat confdefs.h >>conftest.$ac_ext
28326 cat >>conftest.$ac_ext <<_ACEOF
28327 /* end confdefs.h.  */
28328
28329 #include <db.h>
28330 #ifndef DB_VERSION_MINOR
28331 #       define DB_VERSION_MINOR 0
28332 #endif
28333 #if DB_VERSION_MINOR == 9
28334 __db_version
28335 #endif
28336
28337 _ACEOF
28338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28339   $EGREP "__db_version" >/dev/null 2>&1; then
28340   ol_cv_bdb_minor=9
28341 else
28342   :
28343 fi
28344 rm -f conftest*
28345
28346         fi
28347         if test $ol_cv_bdb_minor = 0 ; then
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 #include <db.h>
28356 #ifndef DB_VERSION_MINOR
28357 #       define DB_VERSION_MINOR 0
28358 #endif
28359 #if DB_VERSION_MINOR == 8
28360 __db_version
28361 #endif
28362
28363 _ACEOF
28364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28365   $EGREP "__db_version" >/dev/null 2>&1; then
28366   ol_cv_bdb_minor=8
28367 else
28368   :
28369 fi
28370 rm -f conftest*
28371
28372         fi
28373         if test $ol_cv_bdb_minor = 0 ; then
28374                 cat >conftest.$ac_ext <<_ACEOF
28375 /* confdefs.h.  */
28376 _ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h.  */
28380
28381 #include <db.h>
28382 #ifndef DB_VERSION_MINOR
28383 #       define DB_VERSION_MINOR 0
28384 #endif
28385 #if DB_VERSION_MINOR == 7
28386 __db_version
28387 #endif
28388
28389 _ACEOF
28390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28391   $EGREP "__db_version" >/dev/null 2>&1; then
28392   ol_cv_bdb_minor=7
28393 else
28394   :
28395 fi
28396 rm -f conftest*
28397
28398         fi
28399         if test $ol_cv_bdb_minor = 0 ; then
28400                 cat >conftest.$ac_ext <<_ACEOF
28401 /* confdefs.h.  */
28402 _ACEOF
28403 cat confdefs.h >>conftest.$ac_ext
28404 cat >>conftest.$ac_ext <<_ACEOF
28405 /* end confdefs.h.  */
28406
28407 #include <db.h>
28408 #ifndef DB_VERSION_MINOR
28409 #       define DB_VERSION_MINOR 0
28410 #endif
28411 #if DB_VERSION_MINOR == 6
28412 __db_version
28413 #endif
28414
28415 _ACEOF
28416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28417   $EGREP "__db_version" >/dev/null 2>&1; then
28418   ol_cv_bdb_minor=6
28419 else
28420   :
28421 fi
28422 rm -f conftest*
28423
28424         fi
28425         if test $ol_cv_bdb_minor = 0 ; then
28426                 cat >conftest.$ac_ext <<_ACEOF
28427 /* confdefs.h.  */
28428 _ACEOF
28429 cat confdefs.h >>conftest.$ac_ext
28430 cat >>conftest.$ac_ext <<_ACEOF
28431 /* end confdefs.h.  */
28432
28433 #include <db.h>
28434 #ifndef DB_VERSION_MINOR
28435 #       define DB_VERSION_MINOR 0
28436 #endif
28437 #if DB_VERSION_MINOR == 5
28438 __db_version
28439 #endif
28440
28441 _ACEOF
28442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28443   $EGREP "__db_version" >/dev/null 2>&1; then
28444   ol_cv_bdb_minor=5
28445 else
28446   :
28447 fi
28448 rm -f conftest*
28449
28450         fi
28451         if test $ol_cv_bdb_minor = 0 ; then
28452                 cat >conftest.$ac_ext <<_ACEOF
28453 /* confdefs.h.  */
28454 _ACEOF
28455 cat confdefs.h >>conftest.$ac_ext
28456 cat >>conftest.$ac_ext <<_ACEOF
28457 /* end confdefs.h.  */
28458
28459 #include <db.h>
28460 #ifndef DB_VERSION_MINOR
28461 #       define DB_VERSION_MINOR 0
28462 #endif
28463 #if DB_VERSION_MINOR == 4
28464 __db_version
28465 #endif
28466
28467 _ACEOF
28468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28469   $EGREP "__db_version" >/dev/null 2>&1; then
28470   ol_cv_bdb_minor=4
28471 else
28472   :
28473 fi
28474 rm -f conftest*
28475
28476         fi
28477         if test $ol_cv_bdb_minor = 0 ; then
28478                 cat >conftest.$ac_ext <<_ACEOF
28479 /* confdefs.h.  */
28480 _ACEOF
28481 cat confdefs.h >>conftest.$ac_ext
28482 cat >>conftest.$ac_ext <<_ACEOF
28483 /* end confdefs.h.  */
28484
28485 #include <db.h>
28486 #ifndef DB_VERSION_MINOR
28487 #       define DB_VERSION_MINOR 0
28488 #endif
28489 #if DB_VERSION_MINOR == 3
28490 __db_version
28491 #endif
28492
28493 _ACEOF
28494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28495   $EGREP "__db_version" >/dev/null 2>&1; then
28496   ol_cv_bdb_minor=3
28497 else
28498   :
28499 fi
28500 rm -f conftest*
28501
28502         fi
28503         if test $ol_cv_bdb_minor = 0 ; then
28504                 cat >conftest.$ac_ext <<_ACEOF
28505 /* confdefs.h.  */
28506 _ACEOF
28507 cat confdefs.h >>conftest.$ac_ext
28508 cat >>conftest.$ac_ext <<_ACEOF
28509 /* end confdefs.h.  */
28510
28511 #include <db.h>
28512 #ifndef DB_VERSION_MINOR
28513 #       define DB_VERSION_MINOR 0
28514 #endif
28515 #if DB_VERSION_MINOR == 2
28516 __db_version
28517 #endif
28518
28519 _ACEOF
28520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28521   $EGREP "__db_version" >/dev/null 2>&1; then
28522   ol_cv_bdb_minor=2
28523 else
28524   :
28525 fi
28526 rm -f conftest*
28527
28528         fi
28529         if test $ol_cv_bdb_minor = 0 ; then
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 #include <db.h>
28538 #ifndef DB_VERSION_MINOR
28539 #       define DB_VERSION_MINOR 0
28540 #endif
28541 #if DB_VERSION_MINOR == 1
28542 __db_version
28543 #endif
28544
28545 _ACEOF
28546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28547   $EGREP "__db_version" >/dev/null 2>&1; then
28548   ol_cv_bdb_minor=1
28549 else
28550   :
28551 fi
28552 rm -f conftest*
28553
28554         fi
28555
28556 fi
28557 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28558 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28559
28560 if test $ol_cv_bdb_major = 4 ; then
28561         if test $ol_cv_bdb_minor = 4 ; then
28562                 if test $ol_cv_lib_db = no ; then
28563         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28564 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28565 if test "${ol_cv_db_db44+set}" = set; then
28566   echo $ECHO_N "(cached) $ECHO_C" >&6
28567 else
28568
28569         ol_DB_LIB=-ldb44
28570         ol_LIBS=$LIBS
28571         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28572
28573         cat >conftest.$ac_ext <<_ACEOF
28574 /* confdefs.h.  */
28575 _ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h.  */
28579
28580 #ifdef HAVE_DB_185_H
28581 # include <db_185.h>
28582 #else
28583 # include <db.h>
28584 #endif
28585
28586 #ifndef DB_VERSION_MAJOR
28587 # define DB_VERSION_MAJOR 1
28588 #endif
28589
28590 #ifndef NULL
28591 #define NULL ((void*)0)
28592 #endif
28593
28594 int
28595 main ()
28596 {
28597
28598 #if DB_VERSION_MAJOR > 1
28599         {
28600                 char *version;
28601                 int major, minor, patch;
28602
28603                 version = db_version( &major, &minor, &patch );
28604
28605                 if( major != DB_VERSION_MAJOR ||
28606                         minor < DB_VERSION_MINOR )
28607                 {
28608                         printf("Berkeley DB version mismatch\n"
28609                                 "\theader: %s\n\tlibrary: %s\n",
28610                                 DB_VERSION_STRING, version);
28611                         return 1;
28612                 }
28613         }
28614 #endif
28615
28616 #if DB_VERSION_MAJOR > 2
28617         db_env_create( NULL, 0 );
28618 #elif DB_VERSION_MAJOR > 1
28619         db_appexit( NULL );
28620 #else
28621         (void) dbopen( NULL, 0, 0, 0, NULL);
28622 #endif
28623
28624   ;
28625   return 0;
28626 }
28627 _ACEOF
28628 rm -f conftest.$ac_objext conftest$ac_exeext
28629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28630   (eval $ac_link) 2>conftest.er1
28631   ac_status=$?
28632   grep -v '^ *+' conftest.er1 >conftest.err
28633   rm -f conftest.er1
28634   cat conftest.err >&5
28635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636   (exit $ac_status); } &&
28637          { ac_try='test -z "$ac_c_werror_flag"
28638                          || test ! -s conftest.err'
28639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640   (eval $ac_try) 2>&5
28641   ac_status=$?
28642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643   (exit $ac_status); }; } &&
28644          { ac_try='test -s conftest$ac_exeext'
28645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646   (eval $ac_try) 2>&5
28647   ac_status=$?
28648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649   (exit $ac_status); }; }; then
28650   ol_cv_db_db44=yes
28651 else
28652   echo "$as_me: failed program was:" >&5
28653 sed 's/^/| /' conftest.$ac_ext >&5
28654
28655 ol_cv_db_db44=no
28656 fi
28657 rm -f conftest.err conftest.$ac_objext \
28658       conftest$ac_exeext conftest.$ac_ext
28659
28660         LIBS="$ol_LIBS"
28661
28662 fi
28663 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28664 echo "${ECHO_T}$ol_cv_db_db44" >&6
28665
28666         if test $ol_cv_db_db44 = yes ; then
28667                 ol_cv_lib_db=-ldb44
28668         fi
28669 fi
28670
28671                 if test $ol_cv_lib_db = no ; then
28672         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28673 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28674 if test "${ol_cv_db_db_44+set}" = set; then
28675   echo $ECHO_N "(cached) $ECHO_C" >&6
28676 else
28677
28678         ol_DB_LIB=-ldb-44
28679         ol_LIBS=$LIBS
28680         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28681
28682         cat >conftest.$ac_ext <<_ACEOF
28683 /* confdefs.h.  */
28684 _ACEOF
28685 cat confdefs.h >>conftest.$ac_ext
28686 cat >>conftest.$ac_ext <<_ACEOF
28687 /* end confdefs.h.  */
28688
28689 #ifdef HAVE_DB_185_H
28690 # include <db_185.h>
28691 #else
28692 # include <db.h>
28693 #endif
28694
28695 #ifndef DB_VERSION_MAJOR
28696 # define DB_VERSION_MAJOR 1
28697 #endif
28698
28699 #ifndef NULL
28700 #define NULL ((void*)0)
28701 #endif
28702
28703 int
28704 main ()
28705 {
28706
28707 #if DB_VERSION_MAJOR > 1
28708         {
28709                 char *version;
28710                 int major, minor, patch;
28711
28712                 version = db_version( &major, &minor, &patch );
28713
28714                 if( major != DB_VERSION_MAJOR ||
28715                         minor < DB_VERSION_MINOR )
28716                 {
28717                         printf("Berkeley DB version mismatch\n"
28718                                 "\theader: %s\n\tlibrary: %s\n",
28719                                 DB_VERSION_STRING, version);
28720                         return 1;
28721                 }
28722         }
28723 #endif
28724
28725 #if DB_VERSION_MAJOR > 2
28726         db_env_create( NULL, 0 );
28727 #elif DB_VERSION_MAJOR > 1
28728         db_appexit( NULL );
28729 #else
28730         (void) dbopen( NULL, 0, 0, 0, NULL);
28731 #endif
28732
28733   ;
28734   return 0;
28735 }
28736 _ACEOF
28737 rm -f conftest.$ac_objext conftest$ac_exeext
28738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28739   (eval $ac_link) 2>conftest.er1
28740   ac_status=$?
28741   grep -v '^ *+' conftest.er1 >conftest.err
28742   rm -f conftest.er1
28743   cat conftest.err >&5
28744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745   (exit $ac_status); } &&
28746          { ac_try='test -z "$ac_c_werror_flag"
28747                          || test ! -s conftest.err'
28748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28749   (eval $ac_try) 2>&5
28750   ac_status=$?
28751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752   (exit $ac_status); }; } &&
28753          { ac_try='test -s conftest$ac_exeext'
28754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28755   (eval $ac_try) 2>&5
28756   ac_status=$?
28757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758   (exit $ac_status); }; }; then
28759   ol_cv_db_db_44=yes
28760 else
28761   echo "$as_me: failed program was:" >&5
28762 sed 's/^/| /' conftest.$ac_ext >&5
28763
28764 ol_cv_db_db_44=no
28765 fi
28766 rm -f conftest.err conftest.$ac_objext \
28767       conftest$ac_exeext conftest.$ac_ext
28768
28769         LIBS="$ol_LIBS"
28770
28771 fi
28772 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28773 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28774
28775         if test $ol_cv_db_db_44 = yes ; then
28776                 ol_cv_lib_db=-ldb-44
28777         fi
28778 fi
28779
28780                 if test $ol_cv_lib_db = no ; then
28781         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28782 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28783 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28784   echo $ECHO_N "(cached) $ECHO_C" >&6
28785 else
28786
28787         ol_DB_LIB=-ldb-4.4
28788         ol_LIBS=$LIBS
28789         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28790
28791         cat >conftest.$ac_ext <<_ACEOF
28792 /* confdefs.h.  */
28793 _ACEOF
28794 cat confdefs.h >>conftest.$ac_ext
28795 cat >>conftest.$ac_ext <<_ACEOF
28796 /* end confdefs.h.  */
28797
28798 #ifdef HAVE_DB_185_H
28799 # include <db_185.h>
28800 #else
28801 # include <db.h>
28802 #endif
28803
28804 #ifndef DB_VERSION_MAJOR
28805 # define DB_VERSION_MAJOR 1
28806 #endif
28807
28808 #ifndef NULL
28809 #define NULL ((void*)0)
28810 #endif
28811
28812 int
28813 main ()
28814 {
28815
28816 #if DB_VERSION_MAJOR > 1
28817         {
28818                 char *version;
28819                 int major, minor, patch;
28820
28821                 version = db_version( &major, &minor, &patch );
28822
28823                 if( major != DB_VERSION_MAJOR ||
28824                         minor < DB_VERSION_MINOR )
28825                 {
28826                         printf("Berkeley DB version mismatch\n"
28827                                 "\theader: %s\n\tlibrary: %s\n",
28828                                 DB_VERSION_STRING, version);
28829                         return 1;
28830                 }
28831         }
28832 #endif
28833
28834 #if DB_VERSION_MAJOR > 2
28835         db_env_create( NULL, 0 );
28836 #elif DB_VERSION_MAJOR > 1
28837         db_appexit( NULL );
28838 #else
28839         (void) dbopen( NULL, 0, 0, 0, NULL);
28840 #endif
28841
28842   ;
28843   return 0;
28844 }
28845 _ACEOF
28846 rm -f conftest.$ac_objext conftest$ac_exeext
28847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28848   (eval $ac_link) 2>conftest.er1
28849   ac_status=$?
28850   grep -v '^ *+' conftest.er1 >conftest.err
28851   rm -f conftest.er1
28852   cat conftest.err >&5
28853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854   (exit $ac_status); } &&
28855          { ac_try='test -z "$ac_c_werror_flag"
28856                          || test ! -s conftest.err'
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); }; } &&
28862          { ac_try='test -s conftest$ac_exeext'
28863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28864   (eval $ac_try) 2>&5
28865   ac_status=$?
28866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867   (exit $ac_status); }; }; then
28868   ol_cv_db_db_4_dot_4=yes
28869 else
28870   echo "$as_me: failed program was:" >&5
28871 sed 's/^/| /' conftest.$ac_ext >&5
28872
28873 ol_cv_db_db_4_dot_4=no
28874 fi
28875 rm -f conftest.err conftest.$ac_objext \
28876       conftest$ac_exeext conftest.$ac_ext
28877
28878         LIBS="$ol_LIBS"
28879
28880 fi
28881 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28882 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28883
28884         if test $ol_cv_db_db_4_dot_4 = yes ; then
28885                 ol_cv_lib_db=-ldb-4.4
28886         fi
28887 fi
28888
28889                 if test $ol_cv_lib_db = no ; then
28890         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28891 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28892 if test "${ol_cv_db_db_4_4+set}" = set; then
28893   echo $ECHO_N "(cached) $ECHO_C" >&6
28894 else
28895
28896         ol_DB_LIB=-ldb-4-4
28897         ol_LIBS=$LIBS
28898         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28899
28900         cat >conftest.$ac_ext <<_ACEOF
28901 /* confdefs.h.  */
28902 _ACEOF
28903 cat confdefs.h >>conftest.$ac_ext
28904 cat >>conftest.$ac_ext <<_ACEOF
28905 /* end confdefs.h.  */
28906
28907 #ifdef HAVE_DB_185_H
28908 # include <db_185.h>
28909 #else
28910 # include <db.h>
28911 #endif
28912
28913 #ifndef DB_VERSION_MAJOR
28914 # define DB_VERSION_MAJOR 1
28915 #endif
28916
28917 #ifndef NULL
28918 #define NULL ((void*)0)
28919 #endif
28920
28921 int
28922 main ()
28923 {
28924
28925 #if DB_VERSION_MAJOR > 1
28926         {
28927                 char *version;
28928                 int major, minor, patch;
28929
28930                 version = db_version( &major, &minor, &patch );
28931
28932                 if( major != DB_VERSION_MAJOR ||
28933                         minor < DB_VERSION_MINOR )
28934                 {
28935                         printf("Berkeley DB version mismatch\n"
28936                                 "\theader: %s\n\tlibrary: %s\n",
28937                                 DB_VERSION_STRING, version);
28938                         return 1;
28939                 }
28940         }
28941 #endif
28942
28943 #if DB_VERSION_MAJOR > 2
28944         db_env_create( NULL, 0 );
28945 #elif DB_VERSION_MAJOR > 1
28946         db_appexit( NULL );
28947 #else
28948         (void) dbopen( NULL, 0, 0, 0, NULL);
28949 #endif
28950
28951   ;
28952   return 0;
28953 }
28954 _ACEOF
28955 rm -f conftest.$ac_objext conftest$ac_exeext
28956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28957   (eval $ac_link) 2>conftest.er1
28958   ac_status=$?
28959   grep -v '^ *+' conftest.er1 >conftest.err
28960   rm -f conftest.er1
28961   cat conftest.err >&5
28962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963   (exit $ac_status); } &&
28964          { ac_try='test -z "$ac_c_werror_flag"
28965                          || test ! -s conftest.err'
28966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28967   (eval $ac_try) 2>&5
28968   ac_status=$?
28969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970   (exit $ac_status); }; } &&
28971          { ac_try='test -s conftest$ac_exeext'
28972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28973   (eval $ac_try) 2>&5
28974   ac_status=$?
28975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976   (exit $ac_status); }; }; then
28977   ol_cv_db_db_4_4=yes
28978 else
28979   echo "$as_me: failed program was:" >&5
28980 sed 's/^/| /' conftest.$ac_ext >&5
28981
28982 ol_cv_db_db_4_4=no
28983 fi
28984 rm -f conftest.err conftest.$ac_objext \
28985       conftest$ac_exeext conftest.$ac_ext
28986
28987         LIBS="$ol_LIBS"
28988
28989 fi
28990 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28991 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28992
28993         if test $ol_cv_db_db_4_4 = yes ; then
28994                 ol_cv_lib_db=-ldb-4-4
28995         fi
28996 fi
28997
28998         elif test $ol_cv_bdb_minor = 3 ; then
28999                 if test $ol_cv_lib_db = no ; then
29000         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
29001 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
29002 if test "${ol_cv_db_db43+set}" = set; then
29003   echo $ECHO_N "(cached) $ECHO_C" >&6
29004 else
29005
29006         ol_DB_LIB=-ldb43
29007         ol_LIBS=$LIBS
29008         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29009
29010         cat >conftest.$ac_ext <<_ACEOF
29011 /* confdefs.h.  */
29012 _ACEOF
29013 cat confdefs.h >>conftest.$ac_ext
29014 cat >>conftest.$ac_ext <<_ACEOF
29015 /* end confdefs.h.  */
29016
29017 #ifdef HAVE_DB_185_H
29018 # include <db_185.h>
29019 #else
29020 # include <db.h>
29021 #endif
29022
29023 #ifndef DB_VERSION_MAJOR
29024 # define DB_VERSION_MAJOR 1
29025 #endif
29026
29027 #ifndef NULL
29028 #define NULL ((void*)0)
29029 #endif
29030
29031 int
29032 main ()
29033 {
29034
29035 #if DB_VERSION_MAJOR > 1
29036         {
29037                 char *version;
29038                 int major, minor, patch;
29039
29040                 version = db_version( &major, &minor, &patch );
29041
29042                 if( major != DB_VERSION_MAJOR ||
29043                         minor < DB_VERSION_MINOR )
29044                 {
29045                         printf("Berkeley DB version mismatch\n"
29046                                 "\theader: %s\n\tlibrary: %s\n",
29047                                 DB_VERSION_STRING, version);
29048                         return 1;
29049                 }
29050         }
29051 #endif
29052
29053 #if DB_VERSION_MAJOR > 2
29054         db_env_create( NULL, 0 );
29055 #elif DB_VERSION_MAJOR > 1
29056         db_appexit( NULL );
29057 #else
29058         (void) dbopen( NULL, 0, 0, 0, NULL);
29059 #endif
29060
29061   ;
29062   return 0;
29063 }
29064 _ACEOF
29065 rm -f conftest.$ac_objext conftest$ac_exeext
29066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29067   (eval $ac_link) 2>conftest.er1
29068   ac_status=$?
29069   grep -v '^ *+' conftest.er1 >conftest.err
29070   rm -f conftest.er1
29071   cat conftest.err >&5
29072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073   (exit $ac_status); } &&
29074          { ac_try='test -z "$ac_c_werror_flag"
29075                          || test ! -s conftest.err'
29076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29077   (eval $ac_try) 2>&5
29078   ac_status=$?
29079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080   (exit $ac_status); }; } &&
29081          { ac_try='test -s conftest$ac_exeext'
29082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29083   (eval $ac_try) 2>&5
29084   ac_status=$?
29085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086   (exit $ac_status); }; }; then
29087   ol_cv_db_db43=yes
29088 else
29089   echo "$as_me: failed program was:" >&5
29090 sed 's/^/| /' conftest.$ac_ext >&5
29091
29092 ol_cv_db_db43=no
29093 fi
29094 rm -f conftest.err conftest.$ac_objext \
29095       conftest$ac_exeext conftest.$ac_ext
29096
29097         LIBS="$ol_LIBS"
29098
29099 fi
29100 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
29101 echo "${ECHO_T}$ol_cv_db_db43" >&6
29102
29103         if test $ol_cv_db_db43 = yes ; then
29104                 ol_cv_lib_db=-ldb43
29105         fi
29106 fi
29107
29108                 if test $ol_cv_lib_db = no ; then
29109         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
29110 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
29111 if test "${ol_cv_db_db_43+set}" = set; then
29112   echo $ECHO_N "(cached) $ECHO_C" >&6
29113 else
29114
29115         ol_DB_LIB=-ldb-43
29116         ol_LIBS=$LIBS
29117         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29118
29119         cat >conftest.$ac_ext <<_ACEOF
29120 /* confdefs.h.  */
29121 _ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h.  */
29125
29126 #ifdef HAVE_DB_185_H
29127 # include <db_185.h>
29128 #else
29129 # include <db.h>
29130 #endif
29131
29132 #ifndef DB_VERSION_MAJOR
29133 # define DB_VERSION_MAJOR 1
29134 #endif
29135
29136 #ifndef NULL
29137 #define NULL ((void*)0)
29138 #endif
29139
29140 int
29141 main ()
29142 {
29143
29144 #if DB_VERSION_MAJOR > 1
29145         {
29146                 char *version;
29147                 int major, minor, patch;
29148
29149                 version = db_version( &major, &minor, &patch );
29150
29151                 if( major != DB_VERSION_MAJOR ||
29152                         minor < DB_VERSION_MINOR )
29153                 {
29154                         printf("Berkeley DB version mismatch\n"
29155                                 "\theader: %s\n\tlibrary: %s\n",
29156                                 DB_VERSION_STRING, version);
29157                         return 1;
29158                 }
29159         }
29160 #endif
29161
29162 #if DB_VERSION_MAJOR > 2
29163         db_env_create( NULL, 0 );
29164 #elif DB_VERSION_MAJOR > 1
29165         db_appexit( NULL );
29166 #else
29167         (void) dbopen( NULL, 0, 0, 0, NULL);
29168 #endif
29169
29170   ;
29171   return 0;
29172 }
29173 _ACEOF
29174 rm -f conftest.$ac_objext conftest$ac_exeext
29175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29176   (eval $ac_link) 2>conftest.er1
29177   ac_status=$?
29178   grep -v '^ *+' conftest.er1 >conftest.err
29179   rm -f conftest.er1
29180   cat conftest.err >&5
29181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182   (exit $ac_status); } &&
29183          { ac_try='test -z "$ac_c_werror_flag"
29184                          || test ! -s conftest.err'
29185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29186   (eval $ac_try) 2>&5
29187   ac_status=$?
29188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189   (exit $ac_status); }; } &&
29190          { ac_try='test -s conftest$ac_exeext'
29191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29192   (eval $ac_try) 2>&5
29193   ac_status=$?
29194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195   (exit $ac_status); }; }; then
29196   ol_cv_db_db_43=yes
29197 else
29198   echo "$as_me: failed program was:" >&5
29199 sed 's/^/| /' conftest.$ac_ext >&5
29200
29201 ol_cv_db_db_43=no
29202 fi
29203 rm -f conftest.err conftest.$ac_objext \
29204       conftest$ac_exeext conftest.$ac_ext
29205
29206         LIBS="$ol_LIBS"
29207
29208 fi
29209 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
29210 echo "${ECHO_T}$ol_cv_db_db_43" >&6
29211
29212         if test $ol_cv_db_db_43 = yes ; then
29213                 ol_cv_lib_db=-ldb-43
29214         fi
29215 fi
29216
29217                 if test $ol_cv_lib_db = no ; then
29218         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
29219 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
29220 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
29221   echo $ECHO_N "(cached) $ECHO_C" >&6
29222 else
29223
29224         ol_DB_LIB=-ldb-4.3
29225         ol_LIBS=$LIBS
29226         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29227
29228         cat >conftest.$ac_ext <<_ACEOF
29229 /* confdefs.h.  */
29230 _ACEOF
29231 cat confdefs.h >>conftest.$ac_ext
29232 cat >>conftest.$ac_ext <<_ACEOF
29233 /* end confdefs.h.  */
29234
29235 #ifdef HAVE_DB_185_H
29236 # include <db_185.h>
29237 #else
29238 # include <db.h>
29239 #endif
29240
29241 #ifndef DB_VERSION_MAJOR
29242 # define DB_VERSION_MAJOR 1
29243 #endif
29244
29245 #ifndef NULL
29246 #define NULL ((void*)0)
29247 #endif
29248
29249 int
29250 main ()
29251 {
29252
29253 #if DB_VERSION_MAJOR > 1
29254         {
29255                 char *version;
29256                 int major, minor, patch;
29257
29258                 version = db_version( &major, &minor, &patch );
29259
29260                 if( major != DB_VERSION_MAJOR ||
29261                         minor < DB_VERSION_MINOR )
29262                 {
29263                         printf("Berkeley DB version mismatch\n"
29264                                 "\theader: %s\n\tlibrary: %s\n",
29265                                 DB_VERSION_STRING, version);
29266                         return 1;
29267                 }
29268         }
29269 #endif
29270
29271 #if DB_VERSION_MAJOR > 2
29272         db_env_create( NULL, 0 );
29273 #elif DB_VERSION_MAJOR > 1
29274         db_appexit( NULL );
29275 #else
29276         (void) dbopen( NULL, 0, 0, 0, NULL);
29277 #endif
29278
29279   ;
29280   return 0;
29281 }
29282 _ACEOF
29283 rm -f conftest.$ac_objext conftest$ac_exeext
29284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29285   (eval $ac_link) 2>conftest.er1
29286   ac_status=$?
29287   grep -v '^ *+' conftest.er1 >conftest.err
29288   rm -f conftest.er1
29289   cat conftest.err >&5
29290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291   (exit $ac_status); } &&
29292          { ac_try='test -z "$ac_c_werror_flag"
29293                          || test ! -s conftest.err'
29294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29295   (eval $ac_try) 2>&5
29296   ac_status=$?
29297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298   (exit $ac_status); }; } &&
29299          { ac_try='test -s conftest$ac_exeext'
29300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29301   (eval $ac_try) 2>&5
29302   ac_status=$?
29303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304   (exit $ac_status); }; }; then
29305   ol_cv_db_db_4_dot_3=yes
29306 else
29307   echo "$as_me: failed program was:" >&5
29308 sed 's/^/| /' conftest.$ac_ext >&5
29309
29310 ol_cv_db_db_4_dot_3=no
29311 fi
29312 rm -f conftest.err conftest.$ac_objext \
29313       conftest$ac_exeext conftest.$ac_ext
29314
29315         LIBS="$ol_LIBS"
29316
29317 fi
29318 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29319 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29320
29321         if test $ol_cv_db_db_4_dot_3 = yes ; then
29322                 ol_cv_lib_db=-ldb-4.3
29323         fi
29324 fi
29325
29326                 if test $ol_cv_lib_db = no ; then
29327         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29328 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29329 if test "${ol_cv_db_db_4_3+set}" = set; then
29330   echo $ECHO_N "(cached) $ECHO_C" >&6
29331 else
29332
29333         ol_DB_LIB=-ldb-4-3
29334         ol_LIBS=$LIBS
29335         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29336
29337         cat >conftest.$ac_ext <<_ACEOF
29338 /* confdefs.h.  */
29339 _ACEOF
29340 cat confdefs.h >>conftest.$ac_ext
29341 cat >>conftest.$ac_ext <<_ACEOF
29342 /* end confdefs.h.  */
29343
29344 #ifdef HAVE_DB_185_H
29345 # include <db_185.h>
29346 #else
29347 # include <db.h>
29348 #endif
29349
29350 #ifndef DB_VERSION_MAJOR
29351 # define DB_VERSION_MAJOR 1
29352 #endif
29353
29354 #ifndef NULL
29355 #define NULL ((void*)0)
29356 #endif
29357
29358 int
29359 main ()
29360 {
29361
29362 #if DB_VERSION_MAJOR > 1
29363         {
29364                 char *version;
29365                 int major, minor, patch;
29366
29367                 version = db_version( &major, &minor, &patch );
29368
29369                 if( major != DB_VERSION_MAJOR ||
29370                         minor < DB_VERSION_MINOR )
29371                 {
29372                         printf("Berkeley DB version mismatch\n"
29373                                 "\theader: %s\n\tlibrary: %s\n",
29374                                 DB_VERSION_STRING, version);
29375                         return 1;
29376                 }
29377         }
29378 #endif
29379
29380 #if DB_VERSION_MAJOR > 2
29381         db_env_create( NULL, 0 );
29382 #elif DB_VERSION_MAJOR > 1
29383         db_appexit( NULL );
29384 #else
29385         (void) dbopen( NULL, 0, 0, 0, NULL);
29386 #endif
29387
29388   ;
29389   return 0;
29390 }
29391 _ACEOF
29392 rm -f conftest.$ac_objext conftest$ac_exeext
29393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29394   (eval $ac_link) 2>conftest.er1
29395   ac_status=$?
29396   grep -v '^ *+' conftest.er1 >conftest.err
29397   rm -f conftest.er1
29398   cat conftest.err >&5
29399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400   (exit $ac_status); } &&
29401          { ac_try='test -z "$ac_c_werror_flag"
29402                          || test ! -s conftest.err'
29403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29404   (eval $ac_try) 2>&5
29405   ac_status=$?
29406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407   (exit $ac_status); }; } &&
29408          { ac_try='test -s conftest$ac_exeext'
29409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29410   (eval $ac_try) 2>&5
29411   ac_status=$?
29412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413   (exit $ac_status); }; }; then
29414   ol_cv_db_db_4_3=yes
29415 else
29416   echo "$as_me: failed program was:" >&5
29417 sed 's/^/| /' conftest.$ac_ext >&5
29418
29419 ol_cv_db_db_4_3=no
29420 fi
29421 rm -f conftest.err conftest.$ac_objext \
29422       conftest$ac_exeext conftest.$ac_ext
29423
29424         LIBS="$ol_LIBS"
29425
29426 fi
29427 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29428 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29429
29430         if test $ol_cv_db_db_4_3 = yes ; then
29431                 ol_cv_lib_db=-ldb-4-3
29432         fi
29433 fi
29434
29435         elif test $ol_cv_bdb_minor = 2 ; then
29436                 if test $ol_cv_lib_db = no ; then
29437         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29438 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29439 if test "${ol_cv_db_db42+set}" = set; then
29440   echo $ECHO_N "(cached) $ECHO_C" >&6
29441 else
29442
29443         ol_DB_LIB=-ldb42
29444         ol_LIBS=$LIBS
29445         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29446
29447         cat >conftest.$ac_ext <<_ACEOF
29448 /* confdefs.h.  */
29449 _ACEOF
29450 cat confdefs.h >>conftest.$ac_ext
29451 cat >>conftest.$ac_ext <<_ACEOF
29452 /* end confdefs.h.  */
29453
29454 #ifdef HAVE_DB_185_H
29455 # include <db_185.h>
29456 #else
29457 # include <db.h>
29458 #endif
29459
29460 #ifndef DB_VERSION_MAJOR
29461 # define DB_VERSION_MAJOR 1
29462 #endif
29463
29464 #ifndef NULL
29465 #define NULL ((void*)0)
29466 #endif
29467
29468 int
29469 main ()
29470 {
29471
29472 #if DB_VERSION_MAJOR > 1
29473         {
29474                 char *version;
29475                 int major, minor, patch;
29476
29477                 version = db_version( &major, &minor, &patch );
29478
29479                 if( major != DB_VERSION_MAJOR ||
29480                         minor < DB_VERSION_MINOR )
29481                 {
29482                         printf("Berkeley DB version mismatch\n"
29483                                 "\theader: %s\n\tlibrary: %s\n",
29484                                 DB_VERSION_STRING, version);
29485                         return 1;
29486                 }
29487         }
29488 #endif
29489
29490 #if DB_VERSION_MAJOR > 2
29491         db_env_create( NULL, 0 );
29492 #elif DB_VERSION_MAJOR > 1
29493         db_appexit( NULL );
29494 #else
29495         (void) dbopen( NULL, 0, 0, 0, NULL);
29496 #endif
29497
29498   ;
29499   return 0;
29500 }
29501 _ACEOF
29502 rm -f conftest.$ac_objext conftest$ac_exeext
29503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29504   (eval $ac_link) 2>conftest.er1
29505   ac_status=$?
29506   grep -v '^ *+' conftest.er1 >conftest.err
29507   rm -f conftest.er1
29508   cat conftest.err >&5
29509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510   (exit $ac_status); } &&
29511          { ac_try='test -z "$ac_c_werror_flag"
29512                          || test ! -s conftest.err'
29513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514   (eval $ac_try) 2>&5
29515   ac_status=$?
29516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); }; } &&
29518          { ac_try='test -s conftest$ac_exeext'
29519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29520   (eval $ac_try) 2>&5
29521   ac_status=$?
29522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523   (exit $ac_status); }; }; then
29524   ol_cv_db_db42=yes
29525 else
29526   echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29528
29529 ol_cv_db_db42=no
29530 fi
29531 rm -f conftest.err conftest.$ac_objext \
29532       conftest$ac_exeext conftest.$ac_ext
29533
29534         LIBS="$ol_LIBS"
29535
29536 fi
29537 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29538 echo "${ECHO_T}$ol_cv_db_db42" >&6
29539
29540         if test $ol_cv_db_db42 = yes ; then
29541                 ol_cv_lib_db=-ldb42
29542         fi
29543 fi
29544
29545                 if test $ol_cv_lib_db = no ; then
29546         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29547 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29548 if test "${ol_cv_db_db_42+set}" = set; then
29549   echo $ECHO_N "(cached) $ECHO_C" >&6
29550 else
29551
29552         ol_DB_LIB=-ldb-42
29553         ol_LIBS=$LIBS
29554         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29555
29556         cat >conftest.$ac_ext <<_ACEOF
29557 /* confdefs.h.  */
29558 _ACEOF
29559 cat confdefs.h >>conftest.$ac_ext
29560 cat >>conftest.$ac_ext <<_ACEOF
29561 /* end confdefs.h.  */
29562
29563 #ifdef HAVE_DB_185_H
29564 # include <db_185.h>
29565 #else
29566 # include <db.h>
29567 #endif
29568
29569 #ifndef DB_VERSION_MAJOR
29570 # define DB_VERSION_MAJOR 1
29571 #endif
29572
29573 #ifndef NULL
29574 #define NULL ((void*)0)
29575 #endif
29576
29577 int
29578 main ()
29579 {
29580
29581 #if DB_VERSION_MAJOR > 1
29582         {
29583                 char *version;
29584                 int major, minor, patch;
29585
29586                 version = db_version( &major, &minor, &patch );
29587
29588                 if( major != DB_VERSION_MAJOR ||
29589                         minor < DB_VERSION_MINOR )
29590                 {
29591                         printf("Berkeley DB version mismatch\n"
29592                                 "\theader: %s\n\tlibrary: %s\n",
29593                                 DB_VERSION_STRING, version);
29594                         return 1;
29595                 }
29596         }
29597 #endif
29598
29599 #if DB_VERSION_MAJOR > 2
29600         db_env_create( NULL, 0 );
29601 #elif DB_VERSION_MAJOR > 1
29602         db_appexit( NULL );
29603 #else
29604         (void) dbopen( NULL, 0, 0, 0, NULL);
29605 #endif
29606
29607   ;
29608   return 0;
29609 }
29610 _ACEOF
29611 rm -f conftest.$ac_objext conftest$ac_exeext
29612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29613   (eval $ac_link) 2>conftest.er1
29614   ac_status=$?
29615   grep -v '^ *+' conftest.er1 >conftest.err
29616   rm -f conftest.er1
29617   cat conftest.err >&5
29618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619   (exit $ac_status); } &&
29620          { ac_try='test -z "$ac_c_werror_flag"
29621                          || test ! -s conftest.err'
29622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29623   (eval $ac_try) 2>&5
29624   ac_status=$?
29625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626   (exit $ac_status); }; } &&
29627          { ac_try='test -s conftest$ac_exeext'
29628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29629   (eval $ac_try) 2>&5
29630   ac_status=$?
29631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632   (exit $ac_status); }; }; then
29633   ol_cv_db_db_42=yes
29634 else
29635   echo "$as_me: failed program was:" >&5
29636 sed 's/^/| /' conftest.$ac_ext >&5
29637
29638 ol_cv_db_db_42=no
29639 fi
29640 rm -f conftest.err conftest.$ac_objext \
29641       conftest$ac_exeext conftest.$ac_ext
29642
29643         LIBS="$ol_LIBS"
29644
29645 fi
29646 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29647 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29648
29649         if test $ol_cv_db_db_42 = yes ; then
29650                 ol_cv_lib_db=-ldb-42
29651         fi
29652 fi
29653
29654                 if test $ol_cv_lib_db = no ; then
29655         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29656 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29657 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29658   echo $ECHO_N "(cached) $ECHO_C" >&6
29659 else
29660
29661         ol_DB_LIB=-ldb-4.2
29662         ol_LIBS=$LIBS
29663         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29664
29665         cat >conftest.$ac_ext <<_ACEOF
29666 /* confdefs.h.  */
29667 _ACEOF
29668 cat confdefs.h >>conftest.$ac_ext
29669 cat >>conftest.$ac_ext <<_ACEOF
29670 /* end confdefs.h.  */
29671
29672 #ifdef HAVE_DB_185_H
29673 # include <db_185.h>
29674 #else
29675 # include <db.h>
29676 #endif
29677
29678 #ifndef DB_VERSION_MAJOR
29679 # define DB_VERSION_MAJOR 1
29680 #endif
29681
29682 #ifndef NULL
29683 #define NULL ((void*)0)
29684 #endif
29685
29686 int
29687 main ()
29688 {
29689
29690 #if DB_VERSION_MAJOR > 1
29691         {
29692                 char *version;
29693                 int major, minor, patch;
29694
29695                 version = db_version( &major, &minor, &patch );
29696
29697                 if( major != DB_VERSION_MAJOR ||
29698                         minor < DB_VERSION_MINOR )
29699                 {
29700                         printf("Berkeley DB version mismatch\n"
29701                                 "\theader: %s\n\tlibrary: %s\n",
29702                                 DB_VERSION_STRING, version);
29703                         return 1;
29704                 }
29705         }
29706 #endif
29707
29708 #if DB_VERSION_MAJOR > 2
29709         db_env_create( NULL, 0 );
29710 #elif DB_VERSION_MAJOR > 1
29711         db_appexit( NULL );
29712 #else
29713         (void) dbopen( NULL, 0, 0, 0, NULL);
29714 #endif
29715
29716   ;
29717   return 0;
29718 }
29719 _ACEOF
29720 rm -f conftest.$ac_objext conftest$ac_exeext
29721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29722   (eval $ac_link) 2>conftest.er1
29723   ac_status=$?
29724   grep -v '^ *+' conftest.er1 >conftest.err
29725   rm -f conftest.er1
29726   cat conftest.err >&5
29727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728   (exit $ac_status); } &&
29729          { ac_try='test -z "$ac_c_werror_flag"
29730                          || test ! -s conftest.err'
29731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29732   (eval $ac_try) 2>&5
29733   ac_status=$?
29734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735   (exit $ac_status); }; } &&
29736          { ac_try='test -s conftest$ac_exeext'
29737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29738   (eval $ac_try) 2>&5
29739   ac_status=$?
29740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741   (exit $ac_status); }; }; then
29742   ol_cv_db_db_4_dot_2=yes
29743 else
29744   echo "$as_me: failed program was:" >&5
29745 sed 's/^/| /' conftest.$ac_ext >&5
29746
29747 ol_cv_db_db_4_dot_2=no
29748 fi
29749 rm -f conftest.err conftest.$ac_objext \
29750       conftest$ac_exeext conftest.$ac_ext
29751
29752         LIBS="$ol_LIBS"
29753
29754 fi
29755 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29756 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29757
29758         if test $ol_cv_db_db_4_dot_2 = yes ; then
29759                 ol_cv_lib_db=-ldb-4.2
29760         fi
29761 fi
29762
29763                 if test $ol_cv_lib_db = no ; then
29764         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29765 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29766 if test "${ol_cv_db_db_4_2+set}" = set; then
29767   echo $ECHO_N "(cached) $ECHO_C" >&6
29768 else
29769
29770         ol_DB_LIB=-ldb-4-2
29771         ol_LIBS=$LIBS
29772         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29773
29774         cat >conftest.$ac_ext <<_ACEOF
29775 /* confdefs.h.  */
29776 _ACEOF
29777 cat confdefs.h >>conftest.$ac_ext
29778 cat >>conftest.$ac_ext <<_ACEOF
29779 /* end confdefs.h.  */
29780
29781 #ifdef HAVE_DB_185_H
29782 # include <db_185.h>
29783 #else
29784 # include <db.h>
29785 #endif
29786
29787 #ifndef DB_VERSION_MAJOR
29788 # define DB_VERSION_MAJOR 1
29789 #endif
29790
29791 #ifndef NULL
29792 #define NULL ((void*)0)
29793 #endif
29794
29795 int
29796 main ()
29797 {
29798
29799 #if DB_VERSION_MAJOR > 1
29800         {
29801                 char *version;
29802                 int major, minor, patch;
29803
29804                 version = db_version( &major, &minor, &patch );
29805
29806                 if( major != DB_VERSION_MAJOR ||
29807                         minor < DB_VERSION_MINOR )
29808                 {
29809                         printf("Berkeley DB version mismatch\n"
29810                                 "\theader: %s\n\tlibrary: %s\n",
29811                                 DB_VERSION_STRING, version);
29812                         return 1;
29813                 }
29814         }
29815 #endif
29816
29817 #if DB_VERSION_MAJOR > 2
29818         db_env_create( NULL, 0 );
29819 #elif DB_VERSION_MAJOR > 1
29820         db_appexit( NULL );
29821 #else
29822         (void) dbopen( NULL, 0, 0, 0, NULL);
29823 #endif
29824
29825   ;
29826   return 0;
29827 }
29828 _ACEOF
29829 rm -f conftest.$ac_objext conftest$ac_exeext
29830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29831   (eval $ac_link) 2>conftest.er1
29832   ac_status=$?
29833   grep -v '^ *+' conftest.er1 >conftest.err
29834   rm -f conftest.er1
29835   cat conftest.err >&5
29836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837   (exit $ac_status); } &&
29838          { ac_try='test -z "$ac_c_werror_flag"
29839                          || test ! -s conftest.err'
29840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29841   (eval $ac_try) 2>&5
29842   ac_status=$?
29843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844   (exit $ac_status); }; } &&
29845          { ac_try='test -s conftest$ac_exeext'
29846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29847   (eval $ac_try) 2>&5
29848   ac_status=$?
29849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850   (exit $ac_status); }; }; then
29851   ol_cv_db_db_4_2=yes
29852 else
29853   echo "$as_me: failed program was:" >&5
29854 sed 's/^/| /' conftest.$ac_ext >&5
29855
29856 ol_cv_db_db_4_2=no
29857 fi
29858 rm -f conftest.err conftest.$ac_objext \
29859       conftest$ac_exeext conftest.$ac_ext
29860
29861         LIBS="$ol_LIBS"
29862
29863 fi
29864 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29865 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29866
29867         if test $ol_cv_db_db_4_2 = yes ; then
29868                 ol_cv_lib_db=-ldb-4-2
29869         fi
29870 fi
29871
29872         elif test $ol_cv_bdb_minor = 1 ; then
29873                 if test $ol_cv_lib_db = no ; then
29874         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29875 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29876 if test "${ol_cv_db_db41+set}" = set; then
29877   echo $ECHO_N "(cached) $ECHO_C" >&6
29878 else
29879
29880         ol_DB_LIB=-ldb41
29881         ol_LIBS=$LIBS
29882         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29883
29884         cat >conftest.$ac_ext <<_ACEOF
29885 /* confdefs.h.  */
29886 _ACEOF
29887 cat confdefs.h >>conftest.$ac_ext
29888 cat >>conftest.$ac_ext <<_ACEOF
29889 /* end confdefs.h.  */
29890
29891 #ifdef HAVE_DB_185_H
29892 # include <db_185.h>
29893 #else
29894 # include <db.h>
29895 #endif
29896
29897 #ifndef DB_VERSION_MAJOR
29898 # define DB_VERSION_MAJOR 1
29899 #endif
29900
29901 #ifndef NULL
29902 #define NULL ((void*)0)
29903 #endif
29904
29905 int
29906 main ()
29907 {
29908
29909 #if DB_VERSION_MAJOR > 1
29910         {
29911                 char *version;
29912                 int major, minor, patch;
29913
29914                 version = db_version( &major, &minor, &patch );
29915
29916                 if( major != DB_VERSION_MAJOR ||
29917                         minor < DB_VERSION_MINOR )
29918                 {
29919                         printf("Berkeley DB version mismatch\n"
29920                                 "\theader: %s\n\tlibrary: %s\n",
29921                                 DB_VERSION_STRING, version);
29922                         return 1;
29923                 }
29924         }
29925 #endif
29926
29927 #if DB_VERSION_MAJOR > 2
29928         db_env_create( NULL, 0 );
29929 #elif DB_VERSION_MAJOR > 1
29930         db_appexit( NULL );
29931 #else
29932         (void) dbopen( NULL, 0, 0, 0, NULL);
29933 #endif
29934
29935   ;
29936   return 0;
29937 }
29938 _ACEOF
29939 rm -f conftest.$ac_objext conftest$ac_exeext
29940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29941   (eval $ac_link) 2>conftest.er1
29942   ac_status=$?
29943   grep -v '^ *+' conftest.er1 >conftest.err
29944   rm -f conftest.er1
29945   cat conftest.err >&5
29946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947   (exit $ac_status); } &&
29948          { ac_try='test -z "$ac_c_werror_flag"
29949                          || test ! -s conftest.err'
29950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29951   (eval $ac_try) 2>&5
29952   ac_status=$?
29953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954   (exit $ac_status); }; } &&
29955          { ac_try='test -s conftest$ac_exeext'
29956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29957   (eval $ac_try) 2>&5
29958   ac_status=$?
29959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960   (exit $ac_status); }; }; then
29961   ol_cv_db_db41=yes
29962 else
29963   echo "$as_me: failed program was:" >&5
29964 sed 's/^/| /' conftest.$ac_ext >&5
29965
29966 ol_cv_db_db41=no
29967 fi
29968 rm -f conftest.err conftest.$ac_objext \
29969       conftest$ac_exeext conftest.$ac_ext
29970
29971         LIBS="$ol_LIBS"
29972
29973 fi
29974 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29975 echo "${ECHO_T}$ol_cv_db_db41" >&6
29976
29977         if test $ol_cv_db_db41 = yes ; then
29978                 ol_cv_lib_db=-ldb41
29979         fi
29980 fi
29981
29982                 if test $ol_cv_lib_db = no ; then
29983         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29984 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29985 if test "${ol_cv_db_db_41+set}" = set; then
29986   echo $ECHO_N "(cached) $ECHO_C" >&6
29987 else
29988
29989         ol_DB_LIB=-ldb-41
29990         ol_LIBS=$LIBS
29991         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29992
29993         cat >conftest.$ac_ext <<_ACEOF
29994 /* confdefs.h.  */
29995 _ACEOF
29996 cat confdefs.h >>conftest.$ac_ext
29997 cat >>conftest.$ac_ext <<_ACEOF
29998 /* end confdefs.h.  */
29999
30000 #ifdef HAVE_DB_185_H
30001 # include <db_185.h>
30002 #else
30003 # include <db.h>
30004 #endif
30005
30006 #ifndef DB_VERSION_MAJOR
30007 # define DB_VERSION_MAJOR 1
30008 #endif
30009
30010 #ifndef NULL
30011 #define NULL ((void*)0)
30012 #endif
30013
30014 int
30015 main ()
30016 {
30017
30018 #if DB_VERSION_MAJOR > 1
30019         {
30020                 char *version;
30021                 int major, minor, patch;
30022
30023                 version = db_version( &major, &minor, &patch );
30024
30025                 if( major != DB_VERSION_MAJOR ||
30026                         minor < DB_VERSION_MINOR )
30027                 {
30028                         printf("Berkeley DB version mismatch\n"
30029                                 "\theader: %s\n\tlibrary: %s\n",
30030                                 DB_VERSION_STRING, version);
30031                         return 1;
30032                 }
30033         }
30034 #endif
30035
30036 #if DB_VERSION_MAJOR > 2
30037         db_env_create( NULL, 0 );
30038 #elif DB_VERSION_MAJOR > 1
30039         db_appexit( NULL );
30040 #else
30041         (void) dbopen( NULL, 0, 0, 0, NULL);
30042 #endif
30043
30044   ;
30045   return 0;
30046 }
30047 _ACEOF
30048 rm -f conftest.$ac_objext conftest$ac_exeext
30049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30050   (eval $ac_link) 2>conftest.er1
30051   ac_status=$?
30052   grep -v '^ *+' conftest.er1 >conftest.err
30053   rm -f conftest.er1
30054   cat conftest.err >&5
30055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056   (exit $ac_status); } &&
30057          { ac_try='test -z "$ac_c_werror_flag"
30058                          || test ! -s conftest.err'
30059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30060   (eval $ac_try) 2>&5
30061   ac_status=$?
30062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063   (exit $ac_status); }; } &&
30064          { ac_try='test -s conftest$ac_exeext'
30065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30066   (eval $ac_try) 2>&5
30067   ac_status=$?
30068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069   (exit $ac_status); }; }; then
30070   ol_cv_db_db_41=yes
30071 else
30072   echo "$as_me: failed program was:" >&5
30073 sed 's/^/| /' conftest.$ac_ext >&5
30074
30075 ol_cv_db_db_41=no
30076 fi
30077 rm -f conftest.err conftest.$ac_objext \
30078       conftest$ac_exeext conftest.$ac_ext
30079
30080         LIBS="$ol_LIBS"
30081
30082 fi
30083 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
30084 echo "${ECHO_T}$ol_cv_db_db_41" >&6
30085
30086         if test $ol_cv_db_db_41 = yes ; then
30087                 ol_cv_lib_db=-ldb-41
30088         fi
30089 fi
30090
30091                 if test $ol_cv_lib_db = no ; then
30092         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
30093 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
30094 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
30095   echo $ECHO_N "(cached) $ECHO_C" >&6
30096 else
30097
30098         ol_DB_LIB=-ldb-4.1
30099         ol_LIBS=$LIBS
30100         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30101
30102         cat >conftest.$ac_ext <<_ACEOF
30103 /* confdefs.h.  */
30104 _ACEOF
30105 cat confdefs.h >>conftest.$ac_ext
30106 cat >>conftest.$ac_ext <<_ACEOF
30107 /* end confdefs.h.  */
30108
30109 #ifdef HAVE_DB_185_H
30110 # include <db_185.h>
30111 #else
30112 # include <db.h>
30113 #endif
30114
30115 #ifndef DB_VERSION_MAJOR
30116 # define DB_VERSION_MAJOR 1
30117 #endif
30118
30119 #ifndef NULL
30120 #define NULL ((void*)0)
30121 #endif
30122
30123 int
30124 main ()
30125 {
30126
30127 #if DB_VERSION_MAJOR > 1
30128         {
30129                 char *version;
30130                 int major, minor, patch;
30131
30132                 version = db_version( &major, &minor, &patch );
30133
30134                 if( major != DB_VERSION_MAJOR ||
30135                         minor < DB_VERSION_MINOR )
30136                 {
30137                         printf("Berkeley DB version mismatch\n"
30138                                 "\theader: %s\n\tlibrary: %s\n",
30139                                 DB_VERSION_STRING, version);
30140                         return 1;
30141                 }
30142         }
30143 #endif
30144
30145 #if DB_VERSION_MAJOR > 2
30146         db_env_create( NULL, 0 );
30147 #elif DB_VERSION_MAJOR > 1
30148         db_appexit( NULL );
30149 #else
30150         (void) dbopen( NULL, 0, 0, 0, NULL);
30151 #endif
30152
30153   ;
30154   return 0;
30155 }
30156 _ACEOF
30157 rm -f conftest.$ac_objext conftest$ac_exeext
30158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30159   (eval $ac_link) 2>conftest.er1
30160   ac_status=$?
30161   grep -v '^ *+' conftest.er1 >conftest.err
30162   rm -f conftest.er1
30163   cat conftest.err >&5
30164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165   (exit $ac_status); } &&
30166          { ac_try='test -z "$ac_c_werror_flag"
30167                          || test ! -s conftest.err'
30168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30169   (eval $ac_try) 2>&5
30170   ac_status=$?
30171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172   (exit $ac_status); }; } &&
30173          { ac_try='test -s conftest$ac_exeext'
30174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30175   (eval $ac_try) 2>&5
30176   ac_status=$?
30177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30178   (exit $ac_status); }; }; then
30179   ol_cv_db_db_4_dot_1=yes
30180 else
30181   echo "$as_me: failed program was:" >&5
30182 sed 's/^/| /' conftest.$ac_ext >&5
30183
30184 ol_cv_db_db_4_dot_1=no
30185 fi
30186 rm -f conftest.err conftest.$ac_objext \
30187       conftest$ac_exeext conftest.$ac_ext
30188
30189         LIBS="$ol_LIBS"
30190
30191 fi
30192 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
30193 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
30194
30195         if test $ol_cv_db_db_4_dot_1 = yes ; then
30196                 ol_cv_lib_db=-ldb-4.1
30197         fi
30198 fi
30199
30200                 if test $ol_cv_lib_db = no ; then
30201         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
30202 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
30203 if test "${ol_cv_db_db_4_1+set}" = set; then
30204   echo $ECHO_N "(cached) $ECHO_C" >&6
30205 else
30206
30207         ol_DB_LIB=-ldb-4-1
30208         ol_LIBS=$LIBS
30209         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30210
30211         cat >conftest.$ac_ext <<_ACEOF
30212 /* confdefs.h.  */
30213 _ACEOF
30214 cat confdefs.h >>conftest.$ac_ext
30215 cat >>conftest.$ac_ext <<_ACEOF
30216 /* end confdefs.h.  */
30217
30218 #ifdef HAVE_DB_185_H
30219 # include <db_185.h>
30220 #else
30221 # include <db.h>
30222 #endif
30223
30224 #ifndef DB_VERSION_MAJOR
30225 # define DB_VERSION_MAJOR 1
30226 #endif
30227
30228 #ifndef NULL
30229 #define NULL ((void*)0)
30230 #endif
30231
30232 int
30233 main ()
30234 {
30235
30236 #if DB_VERSION_MAJOR > 1
30237         {
30238                 char *version;
30239                 int major, minor, patch;
30240
30241                 version = db_version( &major, &minor, &patch );
30242
30243                 if( major != DB_VERSION_MAJOR ||
30244                         minor < DB_VERSION_MINOR )
30245                 {
30246                         printf("Berkeley DB version mismatch\n"
30247                                 "\theader: %s\n\tlibrary: %s\n",
30248                                 DB_VERSION_STRING, version);
30249                         return 1;
30250                 }
30251         }
30252 #endif
30253
30254 #if DB_VERSION_MAJOR > 2
30255         db_env_create( NULL, 0 );
30256 #elif DB_VERSION_MAJOR > 1
30257         db_appexit( NULL );
30258 #else
30259         (void) dbopen( NULL, 0, 0, 0, NULL);
30260 #endif
30261
30262   ;
30263   return 0;
30264 }
30265 _ACEOF
30266 rm -f conftest.$ac_objext conftest$ac_exeext
30267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30268   (eval $ac_link) 2>conftest.er1
30269   ac_status=$?
30270   grep -v '^ *+' conftest.er1 >conftest.err
30271   rm -f conftest.er1
30272   cat conftest.err >&5
30273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274   (exit $ac_status); } &&
30275          { ac_try='test -z "$ac_c_werror_flag"
30276                          || test ! -s conftest.err'
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); }; } &&
30282          { ac_try='test -s conftest$ac_exeext'
30283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30284   (eval $ac_try) 2>&5
30285   ac_status=$?
30286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287   (exit $ac_status); }; }; then
30288   ol_cv_db_db_4_1=yes
30289 else
30290   echo "$as_me: failed program was:" >&5
30291 sed 's/^/| /' conftest.$ac_ext >&5
30292
30293 ol_cv_db_db_4_1=no
30294 fi
30295 rm -f conftest.err conftest.$ac_objext \
30296       conftest$ac_exeext conftest.$ac_ext
30297
30298         LIBS="$ol_LIBS"
30299
30300 fi
30301 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30302 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30303
30304         if test $ol_cv_db_db_4_1 = yes ; then
30305                 ol_cv_lib_db=-ldb-4-1
30306         fi
30307 fi
30308
30309         fi
30310         if test $ol_cv_lib_db = no ; then
30311         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30312 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30313 if test "${ol_cv_db_db_4+set}" = set; then
30314   echo $ECHO_N "(cached) $ECHO_C" >&6
30315 else
30316
30317         ol_DB_LIB=-ldb-4
30318         ol_LIBS=$LIBS
30319         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30320
30321         cat >conftest.$ac_ext <<_ACEOF
30322 /* confdefs.h.  */
30323 _ACEOF
30324 cat confdefs.h >>conftest.$ac_ext
30325 cat >>conftest.$ac_ext <<_ACEOF
30326 /* end confdefs.h.  */
30327
30328 #ifdef HAVE_DB_185_H
30329 # include <db_185.h>
30330 #else
30331 # include <db.h>
30332 #endif
30333
30334 #ifndef DB_VERSION_MAJOR
30335 # define DB_VERSION_MAJOR 1
30336 #endif
30337
30338 #ifndef NULL
30339 #define NULL ((void*)0)
30340 #endif
30341
30342 int
30343 main ()
30344 {
30345
30346 #if DB_VERSION_MAJOR > 1
30347         {
30348                 char *version;
30349                 int major, minor, patch;
30350
30351                 version = db_version( &major, &minor, &patch );
30352
30353                 if( major != DB_VERSION_MAJOR ||
30354                         minor < DB_VERSION_MINOR )
30355                 {
30356                         printf("Berkeley DB version mismatch\n"
30357                                 "\theader: %s\n\tlibrary: %s\n",
30358                                 DB_VERSION_STRING, version);
30359                         return 1;
30360                 }
30361         }
30362 #endif
30363
30364 #if DB_VERSION_MAJOR > 2
30365         db_env_create( NULL, 0 );
30366 #elif DB_VERSION_MAJOR > 1
30367         db_appexit( NULL );
30368 #else
30369         (void) dbopen( NULL, 0, 0, 0, NULL);
30370 #endif
30371
30372   ;
30373   return 0;
30374 }
30375 _ACEOF
30376 rm -f conftest.$ac_objext conftest$ac_exeext
30377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30378   (eval $ac_link) 2>conftest.er1
30379   ac_status=$?
30380   grep -v '^ *+' conftest.er1 >conftest.err
30381   rm -f conftest.er1
30382   cat conftest.err >&5
30383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384   (exit $ac_status); } &&
30385          { ac_try='test -z "$ac_c_werror_flag"
30386                          || test ! -s conftest.err'
30387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30388   (eval $ac_try) 2>&5
30389   ac_status=$?
30390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391   (exit $ac_status); }; } &&
30392          { ac_try='test -s conftest$ac_exeext'
30393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30394   (eval $ac_try) 2>&5
30395   ac_status=$?
30396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397   (exit $ac_status); }; }; then
30398   ol_cv_db_db_4=yes
30399 else
30400   echo "$as_me: failed program was:" >&5
30401 sed 's/^/| /' conftest.$ac_ext >&5
30402
30403 ol_cv_db_db_4=no
30404 fi
30405 rm -f conftest.err conftest.$ac_objext \
30406       conftest$ac_exeext conftest.$ac_ext
30407
30408         LIBS="$ol_LIBS"
30409
30410 fi
30411 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30412 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30413
30414         if test $ol_cv_db_db_4 = yes ; then
30415                 ol_cv_lib_db=-ldb-4
30416         fi
30417 fi
30418
30419         if test $ol_cv_lib_db = no ; then
30420         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30421 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30422 if test "${ol_cv_db_db4+set}" = set; then
30423   echo $ECHO_N "(cached) $ECHO_C" >&6
30424 else
30425
30426         ol_DB_LIB=-ldb4
30427         ol_LIBS=$LIBS
30428         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30429
30430         cat >conftest.$ac_ext <<_ACEOF
30431 /* confdefs.h.  */
30432 _ACEOF
30433 cat confdefs.h >>conftest.$ac_ext
30434 cat >>conftest.$ac_ext <<_ACEOF
30435 /* end confdefs.h.  */
30436
30437 #ifdef HAVE_DB_185_H
30438 # include <db_185.h>
30439 #else
30440 # include <db.h>
30441 #endif
30442
30443 #ifndef DB_VERSION_MAJOR
30444 # define DB_VERSION_MAJOR 1
30445 #endif
30446
30447 #ifndef NULL
30448 #define NULL ((void*)0)
30449 #endif
30450
30451 int
30452 main ()
30453 {
30454
30455 #if DB_VERSION_MAJOR > 1
30456         {
30457                 char *version;
30458                 int major, minor, patch;
30459
30460                 version = db_version( &major, &minor, &patch );
30461
30462                 if( major != DB_VERSION_MAJOR ||
30463                         minor < DB_VERSION_MINOR )
30464                 {
30465                         printf("Berkeley DB version mismatch\n"
30466                                 "\theader: %s\n\tlibrary: %s\n",
30467                                 DB_VERSION_STRING, version);
30468                         return 1;
30469                 }
30470         }
30471 #endif
30472
30473 #if DB_VERSION_MAJOR > 2
30474         db_env_create( NULL, 0 );
30475 #elif DB_VERSION_MAJOR > 1
30476         db_appexit( NULL );
30477 #else
30478         (void) dbopen( NULL, 0, 0, 0, NULL);
30479 #endif
30480
30481   ;
30482   return 0;
30483 }
30484 _ACEOF
30485 rm -f conftest.$ac_objext conftest$ac_exeext
30486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30487   (eval $ac_link) 2>conftest.er1
30488   ac_status=$?
30489   grep -v '^ *+' conftest.er1 >conftest.err
30490   rm -f conftest.er1
30491   cat conftest.err >&5
30492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30493   (exit $ac_status); } &&
30494          { ac_try='test -z "$ac_c_werror_flag"
30495                          || test ! -s conftest.err'
30496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30497   (eval $ac_try) 2>&5
30498   ac_status=$?
30499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500   (exit $ac_status); }; } &&
30501          { ac_try='test -s conftest$ac_exeext'
30502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30503   (eval $ac_try) 2>&5
30504   ac_status=$?
30505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506   (exit $ac_status); }; }; then
30507   ol_cv_db_db4=yes
30508 else
30509   echo "$as_me: failed program was:" >&5
30510 sed 's/^/| /' conftest.$ac_ext >&5
30511
30512 ol_cv_db_db4=no
30513 fi
30514 rm -f conftest.err conftest.$ac_objext \
30515       conftest$ac_exeext conftest.$ac_ext
30516
30517         LIBS="$ol_LIBS"
30518
30519 fi
30520 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30521 echo "${ECHO_T}$ol_cv_db_db4" >&6
30522
30523         if test $ol_cv_db_db4 = yes ; then
30524                 ol_cv_lib_db=-ldb4
30525         fi
30526 fi
30527
30528         if test $ol_cv_lib_db = no ; then
30529         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30530 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30531 if test "${ol_cv_db_db+set}" = set; then
30532   echo $ECHO_N "(cached) $ECHO_C" >&6
30533 else
30534
30535         ol_DB_LIB=-ldb
30536         ol_LIBS=$LIBS
30537         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30538
30539         cat >conftest.$ac_ext <<_ACEOF
30540 /* confdefs.h.  */
30541 _ACEOF
30542 cat confdefs.h >>conftest.$ac_ext
30543 cat >>conftest.$ac_ext <<_ACEOF
30544 /* end confdefs.h.  */
30545
30546 #ifdef HAVE_DB_185_H
30547 # include <db_185.h>
30548 #else
30549 # include <db.h>
30550 #endif
30551
30552 #ifndef DB_VERSION_MAJOR
30553 # define DB_VERSION_MAJOR 1
30554 #endif
30555
30556 #ifndef NULL
30557 #define NULL ((void*)0)
30558 #endif
30559
30560 int
30561 main ()
30562 {
30563
30564 #if DB_VERSION_MAJOR > 1
30565         {
30566                 char *version;
30567                 int major, minor, patch;
30568
30569                 version = db_version( &major, &minor, &patch );
30570
30571                 if( major != DB_VERSION_MAJOR ||
30572                         minor < DB_VERSION_MINOR )
30573                 {
30574                         printf("Berkeley DB version mismatch\n"
30575                                 "\theader: %s\n\tlibrary: %s\n",
30576                                 DB_VERSION_STRING, version);
30577                         return 1;
30578                 }
30579         }
30580 #endif
30581
30582 #if DB_VERSION_MAJOR > 2
30583         db_env_create( NULL, 0 );
30584 #elif DB_VERSION_MAJOR > 1
30585         db_appexit( NULL );
30586 #else
30587         (void) dbopen( NULL, 0, 0, 0, NULL);
30588 #endif
30589
30590   ;
30591   return 0;
30592 }
30593 _ACEOF
30594 rm -f conftest.$ac_objext conftest$ac_exeext
30595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30596   (eval $ac_link) 2>conftest.er1
30597   ac_status=$?
30598   grep -v '^ *+' conftest.er1 >conftest.err
30599   rm -f conftest.er1
30600   cat conftest.err >&5
30601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602   (exit $ac_status); } &&
30603          { ac_try='test -z "$ac_c_werror_flag"
30604                          || test ! -s conftest.err'
30605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30606   (eval $ac_try) 2>&5
30607   ac_status=$?
30608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609   (exit $ac_status); }; } &&
30610          { ac_try='test -s conftest$ac_exeext'
30611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30612   (eval $ac_try) 2>&5
30613   ac_status=$?
30614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615   (exit $ac_status); }; }; then
30616   ol_cv_db_db=yes
30617 else
30618   echo "$as_me: failed program was:" >&5
30619 sed 's/^/| /' conftest.$ac_ext >&5
30620
30621 ol_cv_db_db=no
30622 fi
30623 rm -f conftest.err conftest.$ac_objext \
30624       conftest$ac_exeext conftest.$ac_ext
30625
30626         LIBS="$ol_LIBS"
30627
30628 fi
30629 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30630 echo "${ECHO_T}$ol_cv_db_db" >&6
30631
30632         if test $ol_cv_db_db = yes ; then
30633                 ol_cv_lib_db=-ldb
30634         fi
30635 fi
30636
30637
30638 elif test $ol_cv_bdb_major = 3 ; then
30639         if test $ol_cv_lib_db = no ; then
30640         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30641 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30642 if test "${ol_cv_db_db3+set}" = set; then
30643   echo $ECHO_N "(cached) $ECHO_C" >&6
30644 else
30645
30646         ol_DB_LIB=-ldb3
30647         ol_LIBS=$LIBS
30648         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30649
30650         cat >conftest.$ac_ext <<_ACEOF
30651 /* confdefs.h.  */
30652 _ACEOF
30653 cat confdefs.h >>conftest.$ac_ext
30654 cat >>conftest.$ac_ext <<_ACEOF
30655 /* end confdefs.h.  */
30656
30657 #ifdef HAVE_DB_185_H
30658 # include <db_185.h>
30659 #else
30660 # include <db.h>
30661 #endif
30662
30663 #ifndef DB_VERSION_MAJOR
30664 # define DB_VERSION_MAJOR 1
30665 #endif
30666
30667 #ifndef NULL
30668 #define NULL ((void*)0)
30669 #endif
30670
30671 int
30672 main ()
30673 {
30674
30675 #if DB_VERSION_MAJOR > 1
30676         {
30677                 char *version;
30678                 int major, minor, patch;
30679
30680                 version = db_version( &major, &minor, &patch );
30681
30682                 if( major != DB_VERSION_MAJOR ||
30683                         minor < DB_VERSION_MINOR )
30684                 {
30685                         printf("Berkeley DB version mismatch\n"
30686                                 "\theader: %s\n\tlibrary: %s\n",
30687                                 DB_VERSION_STRING, version);
30688                         return 1;
30689                 }
30690         }
30691 #endif
30692
30693 #if DB_VERSION_MAJOR > 2
30694         db_env_create( NULL, 0 );
30695 #elif DB_VERSION_MAJOR > 1
30696         db_appexit( NULL );
30697 #else
30698         (void) dbopen( NULL, 0, 0, 0, NULL);
30699 #endif
30700
30701   ;
30702   return 0;
30703 }
30704 _ACEOF
30705 rm -f conftest.$ac_objext conftest$ac_exeext
30706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30707   (eval $ac_link) 2>conftest.er1
30708   ac_status=$?
30709   grep -v '^ *+' conftest.er1 >conftest.err
30710   rm -f conftest.er1
30711   cat conftest.err >&5
30712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713   (exit $ac_status); } &&
30714          { ac_try='test -z "$ac_c_werror_flag"
30715                          || test ! -s conftest.err'
30716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30717   (eval $ac_try) 2>&5
30718   ac_status=$?
30719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720   (exit $ac_status); }; } &&
30721          { ac_try='test -s conftest$ac_exeext'
30722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30723   (eval $ac_try) 2>&5
30724   ac_status=$?
30725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726   (exit $ac_status); }; }; then
30727   ol_cv_db_db3=yes
30728 else
30729   echo "$as_me: failed program was:" >&5
30730 sed 's/^/| /' conftest.$ac_ext >&5
30731
30732 ol_cv_db_db3=no
30733 fi
30734 rm -f conftest.err conftest.$ac_objext \
30735       conftest$ac_exeext conftest.$ac_ext
30736
30737         LIBS="$ol_LIBS"
30738
30739 fi
30740 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30741 echo "${ECHO_T}$ol_cv_db_db3" >&6
30742
30743         if test $ol_cv_db_db3 = yes ; then
30744                 ol_cv_lib_db=-ldb3
30745         fi
30746 fi
30747
30748         if test $ol_cv_lib_db = no ; then
30749         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30750 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30751 if test "${ol_cv_db_db_3+set}" = set; then
30752   echo $ECHO_N "(cached) $ECHO_C" >&6
30753 else
30754
30755         ol_DB_LIB=-ldb-3
30756         ol_LIBS=$LIBS
30757         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30758
30759         cat >conftest.$ac_ext <<_ACEOF
30760 /* confdefs.h.  */
30761 _ACEOF
30762 cat confdefs.h >>conftest.$ac_ext
30763 cat >>conftest.$ac_ext <<_ACEOF
30764 /* end confdefs.h.  */
30765
30766 #ifdef HAVE_DB_185_H
30767 # include <db_185.h>
30768 #else
30769 # include <db.h>
30770 #endif
30771
30772 #ifndef DB_VERSION_MAJOR
30773 # define DB_VERSION_MAJOR 1
30774 #endif
30775
30776 #ifndef NULL
30777 #define NULL ((void*)0)
30778 #endif
30779
30780 int
30781 main ()
30782 {
30783
30784 #if DB_VERSION_MAJOR > 1
30785         {
30786                 char *version;
30787                 int major, minor, patch;
30788
30789                 version = db_version( &major, &minor, &patch );
30790
30791                 if( major != DB_VERSION_MAJOR ||
30792                         minor < DB_VERSION_MINOR )
30793                 {
30794                         printf("Berkeley DB version mismatch\n"
30795                                 "\theader: %s\n\tlibrary: %s\n",
30796                                 DB_VERSION_STRING, version);
30797                         return 1;
30798                 }
30799         }
30800 #endif
30801
30802 #if DB_VERSION_MAJOR > 2
30803         db_env_create( NULL, 0 );
30804 #elif DB_VERSION_MAJOR > 1
30805         db_appexit( NULL );
30806 #else
30807         (void) dbopen( NULL, 0, 0, 0, NULL);
30808 #endif
30809
30810   ;
30811   return 0;
30812 }
30813 _ACEOF
30814 rm -f conftest.$ac_objext conftest$ac_exeext
30815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30816   (eval $ac_link) 2>conftest.er1
30817   ac_status=$?
30818   grep -v '^ *+' conftest.er1 >conftest.err
30819   rm -f conftest.er1
30820   cat conftest.err >&5
30821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822   (exit $ac_status); } &&
30823          { ac_try='test -z "$ac_c_werror_flag"
30824                          || test ! -s conftest.err'
30825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30826   (eval $ac_try) 2>&5
30827   ac_status=$?
30828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829   (exit $ac_status); }; } &&
30830          { ac_try='test -s conftest$ac_exeext'
30831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30832   (eval $ac_try) 2>&5
30833   ac_status=$?
30834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835   (exit $ac_status); }; }; then
30836   ol_cv_db_db_3=yes
30837 else
30838   echo "$as_me: failed program was:" >&5
30839 sed 's/^/| /' conftest.$ac_ext >&5
30840
30841 ol_cv_db_db_3=no
30842 fi
30843 rm -f conftest.err conftest.$ac_objext \
30844       conftest$ac_exeext conftest.$ac_ext
30845
30846         LIBS="$ol_LIBS"
30847
30848 fi
30849 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30850 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30851
30852         if test $ol_cv_db_db_3 = yes ; then
30853                 ol_cv_lib_db=-ldb-3
30854         fi
30855 fi
30856
30857
30858 elif test $ol_cv_bdb_major = 2 ; then
30859         if test $ol_cv_lib_db = no ; then
30860         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30861 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30862 if test "${ol_cv_db_db2+set}" = set; then
30863   echo $ECHO_N "(cached) $ECHO_C" >&6
30864 else
30865
30866         ol_DB_LIB=-ldb2
30867         ol_LIBS=$LIBS
30868         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30869
30870         cat >conftest.$ac_ext <<_ACEOF
30871 /* confdefs.h.  */
30872 _ACEOF
30873 cat confdefs.h >>conftest.$ac_ext
30874 cat >>conftest.$ac_ext <<_ACEOF
30875 /* end confdefs.h.  */
30876
30877 #ifdef HAVE_DB_185_H
30878 # include <db_185.h>
30879 #else
30880 # include <db.h>
30881 #endif
30882
30883 #ifndef DB_VERSION_MAJOR
30884 # define DB_VERSION_MAJOR 1
30885 #endif
30886
30887 #ifndef NULL
30888 #define NULL ((void*)0)
30889 #endif
30890
30891 int
30892 main ()
30893 {
30894
30895 #if DB_VERSION_MAJOR > 1
30896         {
30897                 char *version;
30898                 int major, minor, patch;
30899
30900                 version = db_version( &major, &minor, &patch );
30901
30902                 if( major != DB_VERSION_MAJOR ||
30903                         minor < DB_VERSION_MINOR )
30904                 {
30905                         printf("Berkeley DB version mismatch\n"
30906                                 "\theader: %s\n\tlibrary: %s\n",
30907                                 DB_VERSION_STRING, version);
30908                         return 1;
30909                 }
30910         }
30911 #endif
30912
30913 #if DB_VERSION_MAJOR > 2
30914         db_env_create( NULL, 0 );
30915 #elif DB_VERSION_MAJOR > 1
30916         db_appexit( NULL );
30917 #else
30918         (void) dbopen( NULL, 0, 0, 0, NULL);
30919 #endif
30920
30921   ;
30922   return 0;
30923 }
30924 _ACEOF
30925 rm -f conftest.$ac_objext conftest$ac_exeext
30926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30927   (eval $ac_link) 2>conftest.er1
30928   ac_status=$?
30929   grep -v '^ *+' conftest.er1 >conftest.err
30930   rm -f conftest.er1
30931   cat conftest.err >&5
30932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933   (exit $ac_status); } &&
30934          { ac_try='test -z "$ac_c_werror_flag"
30935                          || test ! -s conftest.err'
30936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30937   (eval $ac_try) 2>&5
30938   ac_status=$?
30939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940   (exit $ac_status); }; } &&
30941          { ac_try='test -s conftest$ac_exeext'
30942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30943   (eval $ac_try) 2>&5
30944   ac_status=$?
30945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946   (exit $ac_status); }; }; then
30947   ol_cv_db_db2=yes
30948 else
30949   echo "$as_me: failed program was:" >&5
30950 sed 's/^/| /' conftest.$ac_ext >&5
30951
30952 ol_cv_db_db2=no
30953 fi
30954 rm -f conftest.err conftest.$ac_objext \
30955       conftest$ac_exeext conftest.$ac_ext
30956
30957         LIBS="$ol_LIBS"
30958
30959 fi
30960 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30961 echo "${ECHO_T}$ol_cv_db_db2" >&6
30962
30963         if test $ol_cv_db_db2 = yes ; then
30964                 ol_cv_lib_db=-ldb2
30965         fi
30966 fi
30967
30968         if test $ol_cv_lib_db = no ; then
30969         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30970 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30971 if test "${ol_cv_db_db_2+set}" = set; then
30972   echo $ECHO_N "(cached) $ECHO_C" >&6
30973 else
30974
30975         ol_DB_LIB=-ldb-2
30976         ol_LIBS=$LIBS
30977         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30978
30979         cat >conftest.$ac_ext <<_ACEOF
30980 /* confdefs.h.  */
30981 _ACEOF
30982 cat confdefs.h >>conftest.$ac_ext
30983 cat >>conftest.$ac_ext <<_ACEOF
30984 /* end confdefs.h.  */
30985
30986 #ifdef HAVE_DB_185_H
30987 # include <db_185.h>
30988 #else
30989 # include <db.h>
30990 #endif
30991
30992 #ifndef DB_VERSION_MAJOR
30993 # define DB_VERSION_MAJOR 1
30994 #endif
30995
30996 #ifndef NULL
30997 #define NULL ((void*)0)
30998 #endif
30999
31000 int
31001 main ()
31002 {
31003
31004 #if DB_VERSION_MAJOR > 1
31005         {
31006                 char *version;
31007                 int major, minor, patch;
31008
31009                 version = db_version( &major, &minor, &patch );
31010
31011                 if( major != DB_VERSION_MAJOR ||
31012                         minor < DB_VERSION_MINOR )
31013                 {
31014                         printf("Berkeley DB version mismatch\n"
31015                                 "\theader: %s\n\tlibrary: %s\n",
31016                                 DB_VERSION_STRING, version);
31017                         return 1;
31018                 }
31019         }
31020 #endif
31021
31022 #if DB_VERSION_MAJOR > 2
31023         db_env_create( NULL, 0 );
31024 #elif DB_VERSION_MAJOR > 1
31025         db_appexit( NULL );
31026 #else
31027         (void) dbopen( NULL, 0, 0, 0, NULL);
31028 #endif
31029
31030   ;
31031   return 0;
31032 }
31033 _ACEOF
31034 rm -f conftest.$ac_objext conftest$ac_exeext
31035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31036   (eval $ac_link) 2>conftest.er1
31037   ac_status=$?
31038   grep -v '^ *+' conftest.er1 >conftest.err
31039   rm -f conftest.er1
31040   cat conftest.err >&5
31041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042   (exit $ac_status); } &&
31043          { ac_try='test -z "$ac_c_werror_flag"
31044                          || test ! -s conftest.err'
31045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31046   (eval $ac_try) 2>&5
31047   ac_status=$?
31048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31049   (exit $ac_status); }; } &&
31050          { ac_try='test -s conftest$ac_exeext'
31051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31052   (eval $ac_try) 2>&5
31053   ac_status=$?
31054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31055   (exit $ac_status); }; }; then
31056   ol_cv_db_db_2=yes
31057 else
31058   echo "$as_me: failed program was:" >&5
31059 sed 's/^/| /' conftest.$ac_ext >&5
31060
31061 ol_cv_db_db_2=no
31062 fi
31063 rm -f conftest.err conftest.$ac_objext \
31064       conftest$ac_exeext conftest.$ac_ext
31065
31066         LIBS="$ol_LIBS"
31067
31068 fi
31069 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
31070 echo "${ECHO_T}$ol_cv_db_db_2" >&6
31071
31072         if test $ol_cv_db_db_2 = yes ; then
31073                 ol_cv_lib_db=-ldb-2
31074         fi
31075 fi
31076
31077
31078 elif test $ol_cv_bdb_major = 1 ; then
31079         if test $ol_cv_lib_db = no ; then
31080         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
31081 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
31082 if test "${ol_cv_db_db1+set}" = set; then
31083   echo $ECHO_N "(cached) $ECHO_C" >&6
31084 else
31085
31086         ol_DB_LIB=-ldb1
31087         ol_LIBS=$LIBS
31088         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31089
31090         cat >conftest.$ac_ext <<_ACEOF
31091 /* confdefs.h.  */
31092 _ACEOF
31093 cat confdefs.h >>conftest.$ac_ext
31094 cat >>conftest.$ac_ext <<_ACEOF
31095 /* end confdefs.h.  */
31096
31097 #ifdef HAVE_DB_185_H
31098 # include <db_185.h>
31099 #else
31100 # include <db.h>
31101 #endif
31102
31103 #ifndef DB_VERSION_MAJOR
31104 # define DB_VERSION_MAJOR 1
31105 #endif
31106
31107 #ifndef NULL
31108 #define NULL ((void*)0)
31109 #endif
31110
31111 int
31112 main ()
31113 {
31114
31115 #if DB_VERSION_MAJOR > 1
31116         {
31117                 char *version;
31118                 int major, minor, patch;
31119
31120                 version = db_version( &major, &minor, &patch );
31121
31122                 if( major != DB_VERSION_MAJOR ||
31123                         minor < DB_VERSION_MINOR )
31124                 {
31125                         printf("Berkeley DB version mismatch\n"
31126                                 "\theader: %s\n\tlibrary: %s\n",
31127                                 DB_VERSION_STRING, version);
31128                         return 1;
31129                 }
31130         }
31131 #endif
31132
31133 #if DB_VERSION_MAJOR > 2
31134         db_env_create( NULL, 0 );
31135 #elif DB_VERSION_MAJOR > 1
31136         db_appexit( NULL );
31137 #else
31138         (void) dbopen( NULL, 0, 0, 0, NULL);
31139 #endif
31140
31141   ;
31142   return 0;
31143 }
31144 _ACEOF
31145 rm -f conftest.$ac_objext conftest$ac_exeext
31146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31147   (eval $ac_link) 2>conftest.er1
31148   ac_status=$?
31149   grep -v '^ *+' conftest.er1 >conftest.err
31150   rm -f conftest.er1
31151   cat conftest.err >&5
31152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153   (exit $ac_status); } &&
31154          { ac_try='test -z "$ac_c_werror_flag"
31155                          || test ! -s conftest.err'
31156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31157   (eval $ac_try) 2>&5
31158   ac_status=$?
31159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160   (exit $ac_status); }; } &&
31161          { ac_try='test -s conftest$ac_exeext'
31162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31163   (eval $ac_try) 2>&5
31164   ac_status=$?
31165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166   (exit $ac_status); }; }; then
31167   ol_cv_db_db1=yes
31168 else
31169   echo "$as_me: failed program was:" >&5
31170 sed 's/^/| /' conftest.$ac_ext >&5
31171
31172 ol_cv_db_db1=no
31173 fi
31174 rm -f conftest.err conftest.$ac_objext \
31175       conftest$ac_exeext conftest.$ac_ext
31176
31177         LIBS="$ol_LIBS"
31178
31179 fi
31180 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
31181 echo "${ECHO_T}$ol_cv_db_db1" >&6
31182
31183         if test $ol_cv_db_db1 = yes ; then
31184                 ol_cv_lib_db=-ldb1
31185         fi
31186 fi
31187
31188         if test $ol_cv_lib_db = no ; then
31189         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
31190 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
31191 if test "${ol_cv_db_db_1+set}" = set; then
31192   echo $ECHO_N "(cached) $ECHO_C" >&6
31193 else
31194
31195         ol_DB_LIB=-ldb-1
31196         ol_LIBS=$LIBS
31197         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31198
31199         cat >conftest.$ac_ext <<_ACEOF
31200 /* confdefs.h.  */
31201 _ACEOF
31202 cat confdefs.h >>conftest.$ac_ext
31203 cat >>conftest.$ac_ext <<_ACEOF
31204 /* end confdefs.h.  */
31205
31206 #ifdef HAVE_DB_185_H
31207 # include <db_185.h>
31208 #else
31209 # include <db.h>
31210 #endif
31211
31212 #ifndef DB_VERSION_MAJOR
31213 # define DB_VERSION_MAJOR 1
31214 #endif
31215
31216 #ifndef NULL
31217 #define NULL ((void*)0)
31218 #endif
31219
31220 int
31221 main ()
31222 {
31223
31224 #if DB_VERSION_MAJOR > 1
31225         {
31226                 char *version;
31227                 int major, minor, patch;
31228
31229                 version = db_version( &major, &minor, &patch );
31230
31231                 if( major != DB_VERSION_MAJOR ||
31232                         minor < DB_VERSION_MINOR )
31233                 {
31234                         printf("Berkeley DB version mismatch\n"
31235                                 "\theader: %s\n\tlibrary: %s\n",
31236                                 DB_VERSION_STRING, version);
31237                         return 1;
31238                 }
31239         }
31240 #endif
31241
31242 #if DB_VERSION_MAJOR > 2
31243         db_env_create( NULL, 0 );
31244 #elif DB_VERSION_MAJOR > 1
31245         db_appexit( NULL );
31246 #else
31247         (void) dbopen( NULL, 0, 0, 0, NULL);
31248 #endif
31249
31250   ;
31251   return 0;
31252 }
31253 _ACEOF
31254 rm -f conftest.$ac_objext conftest$ac_exeext
31255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31256   (eval $ac_link) 2>conftest.er1
31257   ac_status=$?
31258   grep -v '^ *+' conftest.er1 >conftest.err
31259   rm -f conftest.er1
31260   cat conftest.err >&5
31261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262   (exit $ac_status); } &&
31263          { ac_try='test -z "$ac_c_werror_flag"
31264                          || test ! -s conftest.err'
31265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31266   (eval $ac_try) 2>&5
31267   ac_status=$?
31268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269   (exit $ac_status); }; } &&
31270          { ac_try='test -s conftest$ac_exeext'
31271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31272   (eval $ac_try) 2>&5
31273   ac_status=$?
31274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275   (exit $ac_status); }; }; then
31276   ol_cv_db_db_1=yes
31277 else
31278   echo "$as_me: failed program was:" >&5
31279 sed 's/^/| /' conftest.$ac_ext >&5
31280
31281 ol_cv_db_db_1=no
31282 fi
31283 rm -f conftest.err conftest.$ac_objext \
31284       conftest$ac_exeext conftest.$ac_ext
31285
31286         LIBS="$ol_LIBS"
31287
31288 fi
31289 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31290 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31291
31292         if test $ol_cv_db_db_1 = yes ; then
31293                 ol_cv_lib_db=-ldb-1
31294         fi
31295 fi
31296
31297 fi
31298 if test $ol_cv_lib_db = no ; then
31299         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31300 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31301 if test "${ol_cv_db_none+set}" = set; then
31302   echo $ECHO_N "(cached) $ECHO_C" >&6
31303 else
31304
31305         ol_DB_LIB=
31306         ol_LIBS=$LIBS
31307         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31308
31309         cat >conftest.$ac_ext <<_ACEOF
31310 /* confdefs.h.  */
31311 _ACEOF
31312 cat confdefs.h >>conftest.$ac_ext
31313 cat >>conftest.$ac_ext <<_ACEOF
31314 /* end confdefs.h.  */
31315
31316 #ifdef HAVE_DB_185_H
31317 # include <db_185.h>
31318 #else
31319 # include <db.h>
31320 #endif
31321
31322 #ifndef DB_VERSION_MAJOR
31323 # define DB_VERSION_MAJOR 1
31324 #endif
31325
31326 #ifndef NULL
31327 #define NULL ((void*)0)
31328 #endif
31329
31330 int
31331 main ()
31332 {
31333
31334 #if DB_VERSION_MAJOR > 1
31335         {
31336                 char *version;
31337                 int major, minor, patch;
31338
31339                 version = db_version( &major, &minor, &patch );
31340
31341                 if( major != DB_VERSION_MAJOR ||
31342                         minor < DB_VERSION_MINOR )
31343                 {
31344                         printf("Berkeley DB version mismatch\n"
31345                                 "\theader: %s\n\tlibrary: %s\n",
31346                                 DB_VERSION_STRING, version);
31347                         return 1;
31348                 }
31349         }
31350 #endif
31351
31352 #if DB_VERSION_MAJOR > 2
31353         db_env_create( NULL, 0 );
31354 #elif DB_VERSION_MAJOR > 1
31355         db_appexit( NULL );
31356 #else
31357         (void) dbopen( NULL, 0, 0, 0, NULL);
31358 #endif
31359
31360   ;
31361   return 0;
31362 }
31363 _ACEOF
31364 rm -f conftest.$ac_objext conftest$ac_exeext
31365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31366   (eval $ac_link) 2>conftest.er1
31367   ac_status=$?
31368   grep -v '^ *+' conftest.er1 >conftest.err
31369   rm -f conftest.er1
31370   cat conftest.err >&5
31371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372   (exit $ac_status); } &&
31373          { ac_try='test -z "$ac_c_werror_flag"
31374                          || test ! -s conftest.err'
31375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31376   (eval $ac_try) 2>&5
31377   ac_status=$?
31378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379   (exit $ac_status); }; } &&
31380          { ac_try='test -s conftest$ac_exeext'
31381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31382   (eval $ac_try) 2>&5
31383   ac_status=$?
31384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385   (exit $ac_status); }; }; then
31386   ol_cv_db_none=yes
31387 else
31388   echo "$as_me: failed program was:" >&5
31389 sed 's/^/| /' conftest.$ac_ext >&5
31390
31391 ol_cv_db_none=no
31392 fi
31393 rm -f conftest.err conftest.$ac_objext \
31394       conftest$ac_exeext conftest.$ac_ext
31395
31396         LIBS="$ol_LIBS"
31397
31398 fi
31399 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31400 echo "${ECHO_T}$ol_cv_db_none" >&6
31401
31402         if test $ol_cv_db_none = yes ; then
31403                 ol_cv_lib_db=yes
31404         fi
31405 fi
31406
31407
31408         if test "$ol_cv_lib_db" != no ; then
31409                 ol_cv_berkeley_db=yes
31410                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
31411 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
31412 if test "${ol_cv_berkeley_db_version+set}" = set; then
31413   echo $ECHO_N "(cached) $ECHO_C" >&6
31414 else
31415
31416         ol_LIBS="$LIBS"
31417         LIBS="$LTHREAD_LIBS $LIBS"
31418         if test $ol_cv_lib_db != yes ; then
31419                 LIBS="$ol_cv_lib_db $LIBS"
31420         fi
31421
31422         if test "$cross_compiling" = yes; then
31423   ol_cv_berkeley_db_version=cross
31424 else
31425   cat >conftest.$ac_ext <<_ACEOF
31426 /* confdefs.h.  */
31427 _ACEOF
31428 cat confdefs.h >>conftest.$ac_ext
31429 cat >>conftest.$ac_ext <<_ACEOF
31430 /* end confdefs.h.  */
31431
31432 #ifdef HAVE_DB_185_H
31433         choke me;
31434 #else
31435 #include <db.h>
31436 #endif
31437 #ifndef DB_VERSION_MAJOR
31438 # define DB_VERSION_MAJOR 1
31439 #endif
31440 #ifndef NULL
31441 #define NULL ((void *)0)
31442 #endif
31443 main()
31444 {
31445 #if DB_VERSION_MAJOR > 1
31446         char *version;
31447         int major, minor, patch;
31448
31449         version = db_version( &major, &minor, &patch );
31450
31451         if( major != DB_VERSION_MAJOR ||
31452                 minor != DB_VERSION_MINOR ||
31453                 patch != DB_VERSION_PATCH )
31454         {
31455                 printf("Berkeley DB version mismatch\n"
31456                         "\theader: %s\n\tlibrary: %s\n",
31457                         DB_VERSION_STRING, version);
31458                 return 1;
31459         }
31460 #endif
31461
31462         return 0;
31463 }
31464 _ACEOF
31465 rm -f conftest$ac_exeext
31466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31467   (eval $ac_link) 2>&5
31468   ac_status=$?
31469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
31476   ol_cv_berkeley_db_version=yes
31477 else
31478   echo "$as_me: program exited with status $ac_status" >&5
31479 echo "$as_me: failed program was:" >&5
31480 sed 's/^/| /' conftest.$ac_ext >&5
31481
31482 ( exit $ac_status )
31483 ol_cv_berkeley_db_version=no
31484 fi
31485 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31486 fi
31487
31488         LIBS="$ol_LIBS"
31489
31490 fi
31491 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
31492 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
31493
31494         if test $ol_cv_berkeley_db_version = no ; then
31495                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
31496 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
31497    { (exit 1); exit 1; }; }
31498         fi
31499
31500                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
31501 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
31502 if test "${ol_cv_berkeley_db_thread+set}" = set; then
31503   echo $ECHO_N "(cached) $ECHO_C" >&6
31504 else
31505
31506         ol_LIBS="$LIBS"
31507         LIBS="$LTHREAD_LIBS $LIBS"
31508         if test $ol_cv_lib_db != yes ; then
31509                 LIBS="$ol_cv_lib_db $LIBS"
31510         fi
31511
31512         if test "$cross_compiling" = yes; then
31513   ol_cv_berkeley_db_thread=cross
31514 else
31515   cat >conftest.$ac_ext <<_ACEOF
31516 /* confdefs.h.  */
31517 _ACEOF
31518 cat confdefs.h >>conftest.$ac_ext
31519 cat >>conftest.$ac_ext <<_ACEOF
31520 /* end confdefs.h.  */
31521
31522 #ifdef HAVE_DB_185_H
31523         choke me;
31524 #else
31525 #include <db.h>
31526 #endif
31527 #ifndef NULL
31528 #define NULL ((void *)0)
31529 #endif
31530 main()
31531 {
31532         int rc;
31533         u_int32_t flags = DB_CREATE |
31534 #ifdef DB_PRIVATE
31535                 DB_PRIVATE |
31536 #endif
31537                 DB_THREAD;
31538
31539 #if DB_VERSION_MAJOR > 2
31540         DB_ENV *env = NULL;
31541
31542         rc = db_env_create( &env, 0 );
31543
31544         flags |= DB_INIT_MPOOL;
31545 #ifdef DB_MPOOL_PRIVATE
31546         flags |= DB_MPOOL_PRIVATE;
31547 #endif
31548
31549         if( rc ) {
31550                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31551                 return rc;
31552         }
31553
31554 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
31555         rc = env->open( env, NULL, flags, 0 );
31556 #else
31557         rc = env->open( env, NULL, NULL, flags, 0 );
31558 #endif
31559
31560         if ( rc == 0 ) {
31561                 rc = env->close( env, 0 );
31562         }
31563
31564         if( rc ) {
31565                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31566                 return rc;
31567         }
31568
31569 #else
31570         DB_ENV env;
31571         memset( &env, '\0', sizeof(env) );
31572
31573         rc = db_appinit( NULL, NULL, &env, flags );
31574
31575         if( rc == 0 ) {
31576                 db_appexit( &env );
31577         }
31578
31579         unlink("__db_mpool.share");
31580         unlink("__db_lock.share");
31581 #endif
31582
31583         return rc;
31584 }
31585 _ACEOF
31586 rm -f conftest$ac_exeext
31587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31588   (eval $ac_link) 2>&5
31589   ac_status=$?
31590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31593   (eval $ac_try) 2>&5
31594   ac_status=$?
31595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596   (exit $ac_status); }; }; then
31597   ol_cv_berkeley_db_thread=yes
31598 else
31599   echo "$as_me: program exited with status $ac_status" >&5
31600 echo "$as_me: failed program was:" >&5
31601 sed 's/^/| /' conftest.$ac_ext >&5
31602
31603 ( exit $ac_status )
31604 ol_cv_berkeley_db_thread=no
31605 fi
31606 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31607 fi
31608
31609         LIBS="$ol_LIBS"
31610
31611 fi
31612 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
31613 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
31614
31615         if test $ol_cv_berkeley_db_thread != no ; then
31616
31617 cat >>confdefs.h <<\_ACEOF
31618 #define HAVE_BERKELEY_DB_THREAD 1
31619 _ACEOF
31620
31621         fi
31622
31623         fi
31624 fi
31625
31626
31627         if test $ol_cv_berkeley_db = no ; then
31628                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
31629 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
31630    { (exit 1); exit 1; }; }
31631         fi
31632
31633
31634 cat >>confdefs.h <<\_ACEOF
31635 #define HAVE_BERKELEY_DB 1
31636 _ACEOF
31637
31638
31639                         if test $ol_cv_lib_db != yes ; then
31640                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
31641         fi
31642
31643         echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
31644 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31645 if test "${ol_cv_bdb_compat+set}" = set; then
31646   echo $ECHO_N "(cached) $ECHO_C" >&6
31647 else
31648
31649         cat >conftest.$ac_ext <<_ACEOF
31650 /* confdefs.h.  */
31651 _ACEOF
31652 cat confdefs.h >>conftest.$ac_ext
31653 cat >>conftest.$ac_ext <<_ACEOF
31654 /* end confdefs.h.  */
31655
31656 #include <db.h>
31657
31658  /* this check could be improved */
31659 #ifndef DB_VERSION_MAJOR
31660 #       define DB_VERSION_MAJOR 1
31661 #endif
31662 #ifndef DB_VERSION_MINOR
31663 #       define DB_VERSION_MINOR 0
31664 #endif
31665
31666 /* require 4.2 or later */
31667 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
31668         __db_version_compat
31669 #endif
31670
31671 _ACEOF
31672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31673   $EGREP "__db_version_compat" >/dev/null 2>&1; then
31674   ol_cv_bdb_compat=yes
31675 else
31676   ol_cv_bdb_compat=no
31677 fi
31678 rm -f conftest*
31679
31680 fi
31681 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31682 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31683
31684
31685         if test $ol_cv_bdb_compat != yes ; then
31686                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31687 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31688    { (exit 1); exit 1; }; }
31689         fi
31690
31691         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31692
31693         ol_link_bdb=yes
31694 fi
31695
31696
31697 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31698         BUILD_LIBS_DYNAMIC=shared
31699
31700 cat >>confdefs.h <<\_ACEOF
31701 #define LDAP_LIBS_DYNAMIC 1
31702 _ACEOF
31703
31704         LTSTATIC=""
31705 else
31706         BUILD_LIBS_DYNAMIC=static
31707         LTSTATIC="-static"
31708 fi
31709
31710 if test $ol_enable_wrappers != no ; then
31711
31712 for ac_header in tcpd.h
31713 do
31714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31716   echo "$as_me:$LINENO: checking for $ac_header" >&5
31717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31719   echo $ECHO_N "(cached) $ECHO_C" >&6
31720 fi
31721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31723 else
31724   # Is the header compilable?
31725 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31727 cat >conftest.$ac_ext <<_ACEOF
31728 /* confdefs.h.  */
31729 _ACEOF
31730 cat confdefs.h >>conftest.$ac_ext
31731 cat >>conftest.$ac_ext <<_ACEOF
31732 /* end confdefs.h.  */
31733 $ac_includes_default
31734 #include <$ac_header>
31735 _ACEOF
31736 rm -f conftest.$ac_objext
31737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31738   (eval $ac_compile) 2>conftest.er1
31739   ac_status=$?
31740   grep -v '^ *+' conftest.er1 >conftest.err
31741   rm -f conftest.er1
31742   cat conftest.err >&5
31743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744   (exit $ac_status); } &&
31745          { ac_try='test -z "$ac_c_werror_flag"
31746                          || test ! -s conftest.err'
31747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31748   (eval $ac_try) 2>&5
31749   ac_status=$?
31750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751   (exit $ac_status); }; } &&
31752          { ac_try='test -s conftest.$ac_objext'
31753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31754   (eval $ac_try) 2>&5
31755   ac_status=$?
31756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31757   (exit $ac_status); }; }; then
31758   ac_header_compiler=yes
31759 else
31760   echo "$as_me: failed program was:" >&5
31761 sed 's/^/| /' conftest.$ac_ext >&5
31762
31763 ac_header_compiler=no
31764 fi
31765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31767 echo "${ECHO_T}$ac_header_compiler" >&6
31768
31769 # Is the header present?
31770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31772 cat >conftest.$ac_ext <<_ACEOF
31773 /* confdefs.h.  */
31774 _ACEOF
31775 cat confdefs.h >>conftest.$ac_ext
31776 cat >>conftest.$ac_ext <<_ACEOF
31777 /* end confdefs.h.  */
31778 #include <$ac_header>
31779 _ACEOF
31780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31781   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31782   ac_status=$?
31783   grep -v '^ *+' conftest.er1 >conftest.err
31784   rm -f conftest.er1
31785   cat conftest.err >&5
31786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31787   (exit $ac_status); } >/dev/null; then
31788   if test -s conftest.err; then
31789     ac_cpp_err=$ac_c_preproc_warn_flag
31790     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31791   else
31792     ac_cpp_err=
31793   fi
31794 else
31795   ac_cpp_err=yes
31796 fi
31797 if test -z "$ac_cpp_err"; then
31798   ac_header_preproc=yes
31799 else
31800   echo "$as_me: failed program was:" >&5
31801 sed 's/^/| /' conftest.$ac_ext >&5
31802
31803   ac_header_preproc=no
31804 fi
31805 rm -f conftest.err conftest.$ac_ext
31806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31807 echo "${ECHO_T}$ac_header_preproc" >&6
31808
31809 # So?  What about this header?
31810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31811   yes:no: )
31812     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31816     ac_header_preproc=yes
31817     ;;
31818   no:yes:* )
31819     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31821     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31822 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31823     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31825     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31826 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31829     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31831     (
31832       cat <<\_ASBOX
31833 ## --------------------------------------------- ##
31834 ## Report this to <http://www.openldap.org/its/> ##
31835 ## --------------------------------------------- ##
31836 _ASBOX
31837     ) |
31838       sed "s/^/$as_me: WARNING:     /" >&2
31839     ;;
31840 esac
31841 echo "$as_me:$LINENO: checking for $ac_header" >&5
31842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31844   echo $ECHO_N "(cached) $ECHO_C" >&6
31845 else
31846   eval "$as_ac_Header=\$ac_header_preproc"
31847 fi
31848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31850
31851 fi
31852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31853   cat >>confdefs.h <<_ACEOF
31854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31855 _ACEOF
31856
31857                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31858 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31859                 save_LIBS="$LIBS"
31860                 LIBS="$LIBS -lwrap"
31861                 cat >conftest.$ac_ext <<_ACEOF
31862 /* confdefs.h.  */
31863 _ACEOF
31864 cat confdefs.h >>conftest.$ac_ext
31865 cat >>conftest.$ac_ext <<_ACEOF
31866 /* end confdefs.h.  */
31867
31868 #include <tcpd.h>
31869 int allow_severity = 0;
31870 int deny_severity  = 0;
31871
31872 struct request_info *req;
31873
31874 int
31875 main ()
31876 {
31877
31878 hosts_access(req)
31879
31880   ;
31881   return 0;
31882 }
31883 _ACEOF
31884 rm -f conftest.$ac_objext conftest$ac_exeext
31885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31886   (eval $ac_link) 2>conftest.er1
31887   ac_status=$?
31888   grep -v '^ *+' conftest.er1 >conftest.err
31889   rm -f conftest.er1
31890   cat conftest.err >&5
31891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31892   (exit $ac_status); } &&
31893          { ac_try='test -z "$ac_c_werror_flag"
31894                          || test ! -s conftest.err'
31895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31896   (eval $ac_try) 2>&5
31897   ac_status=$?
31898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899   (exit $ac_status); }; } &&
31900          { ac_try='test -s conftest$ac_exeext'
31901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31902   (eval $ac_try) 2>&5
31903   ac_status=$?
31904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905   (exit $ac_status); }; }; then
31906   echo "$as_me:$LINENO: result: -lwrap" >&5
31907 echo "${ECHO_T}-lwrap" >&6
31908                 have_wrappers=yes
31909                 LIBS="$save_LIBS"
31910 else
31911   echo "$as_me: failed program was:" >&5
31912 sed 's/^/| /' conftest.$ac_ext >&5
31913
31914
31915                                 LIBS="$LIBS -lnsl"
31916                 cat >conftest.$ac_ext <<_ACEOF
31917 /* confdefs.h.  */
31918 _ACEOF
31919 cat confdefs.h >>conftest.$ac_ext
31920 cat >>conftest.$ac_ext <<_ACEOF
31921 /* end confdefs.h.  */
31922
31923 #include <tcpd.h>
31924 int allow_severity = 0;
31925 int deny_severity  = 0;
31926
31927 struct request_info *req;
31928
31929 int
31930 main ()
31931 {
31932
31933 hosts_access(req)
31934
31935   ;
31936   return 0;
31937 }
31938 _ACEOF
31939 rm -f conftest.$ac_objext conftest$ac_exeext
31940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31941   (eval $ac_link) 2>conftest.er1
31942   ac_status=$?
31943   grep -v '^ *+' conftest.er1 >conftest.err
31944   rm -f conftest.er1
31945   cat conftest.err >&5
31946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947   (exit $ac_status); } &&
31948          { ac_try='test -z "$ac_c_werror_flag"
31949                          || test ! -s conftest.err'
31950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31951   (eval $ac_try) 2>&5
31952   ac_status=$?
31953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954   (exit $ac_status); }; } &&
31955          { ac_try='test -s conftest$ac_exeext'
31956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31957   (eval $ac_try) 2>&5
31958   ac_status=$?
31959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960   (exit $ac_status); }; }; then
31961   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31962 echo "${ECHO_T}-lwrap -lnsl" >&6
31963                 have_wrappers=yes
31964                 LIBS="$save_LIBS -lnsl"
31965 else
31966   echo "$as_me: failed program was:" >&5
31967 sed 's/^/| /' conftest.$ac_ext >&5
31968
31969
31970                 echo "$as_me:$LINENO: result: no" >&5
31971 echo "${ECHO_T}no" >&6
31972                 have_wrappers=no
31973                 LIBS=$save_LIBS
31974 fi
31975 rm -f conftest.err conftest.$ac_objext \
31976       conftest$ac_exeext conftest.$ac_ext
31977 fi
31978 rm -f conftest.err conftest.$ac_objext \
31979       conftest$ac_exeext conftest.$ac_ext
31980 else
31981   have_wrappers=no
31982 fi
31983
31984 done
31985
31986
31987         if test $have_wrappers = yes ; then
31988
31989 cat >>confdefs.h <<\_ACEOF
31990 #define HAVE_TCPD 1
31991 _ACEOF
31992
31993                 WRAP_LIBS="-lwrap"
31994         elif test $ol_enable_wrappers = yes ; then
31995                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31996 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31997    { (exit 1); exit 1; }; }
31998         else
31999                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
32000 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
32001                 WRAP_LIBS=""
32002         fi
32003 fi
32004
32005 if test $ol_enable_syslog != no ; then
32006         echo "$as_me:$LINENO: checking for openlog" >&5
32007 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
32008 if test "${ac_cv_func_openlog+set}" = set; then
32009   echo $ECHO_N "(cached) $ECHO_C" >&6
32010 else
32011   cat >conftest.$ac_ext <<_ACEOF
32012 /* confdefs.h.  */
32013 _ACEOF
32014 cat confdefs.h >>conftest.$ac_ext
32015 cat >>conftest.$ac_ext <<_ACEOF
32016 /* end confdefs.h.  */
32017 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
32018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32019 #define openlog innocuous_openlog
32020
32021 /* System header to define __stub macros and hopefully few prototypes,
32022     which can conflict with char openlog (); below.
32023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32024     <limits.h> exists even on freestanding compilers.  */
32025
32026 #ifdef __STDC__
32027 # include <limits.h>
32028 #else
32029 # include <assert.h>
32030 #endif
32031
32032 #undef openlog
32033
32034 /* Override any gcc2 internal prototype to avoid an error.  */
32035 #ifdef __cplusplus
32036 extern "C"
32037 {
32038 #endif
32039 /* We use char because int might match the return type of a gcc2
32040    builtin and then its argument prototype would still apply.  */
32041 char openlog ();
32042 /* The GNU C library defines this for functions which it implements
32043     to always fail with ENOSYS.  Some functions are actually named
32044     something starting with __ and the normal name is an alias.  */
32045 #if defined (__stub_openlog) || defined (__stub___openlog)
32046 choke me
32047 #else
32048 char (*f) () = openlog;
32049 #endif
32050 #ifdef __cplusplus
32051 }
32052 #endif
32053
32054 int
32055 main ()
32056 {
32057 return f != openlog;
32058   ;
32059   return 0;
32060 }
32061 _ACEOF
32062 rm -f conftest.$ac_objext conftest$ac_exeext
32063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32064   (eval $ac_link) 2>conftest.er1
32065   ac_status=$?
32066   grep -v '^ *+' conftest.er1 >conftest.err
32067   rm -f conftest.er1
32068   cat conftest.err >&5
32069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32070   (exit $ac_status); } &&
32071          { ac_try='test -z "$ac_c_werror_flag"
32072                          || test ! -s conftest.err'
32073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32074   (eval $ac_try) 2>&5
32075   ac_status=$?
32076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077   (exit $ac_status); }; } &&
32078          { ac_try='test -s conftest$ac_exeext'
32079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32080   (eval $ac_try) 2>&5
32081   ac_status=$?
32082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083   (exit $ac_status); }; }; then
32084   ac_cv_func_openlog=yes
32085 else
32086   echo "$as_me: failed program was:" >&5
32087 sed 's/^/| /' conftest.$ac_ext >&5
32088
32089 ac_cv_func_openlog=no
32090 fi
32091 rm -f conftest.err conftest.$ac_objext \
32092       conftest$ac_exeext conftest.$ac_ext
32093 fi
32094 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
32095 echo "${ECHO_T}$ac_cv_func_openlog" >&6
32096
32097         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
32098                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
32099 echo "$as_me: error: could not find syslog" >&2;}
32100    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
32101         fi
32102         ol_enable_syslog=$ac_cv_func_openlog
32103 fi
32104
32105 ol_link_sql=no
32106 if test $ol_enable_sql != no ; then
32107
32108
32109 for ac_header in sql.h sqlext.h
32110 do
32111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32113   echo "$as_me:$LINENO: checking for $ac_header" >&5
32114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32116   echo $ECHO_N "(cached) $ECHO_C" >&6
32117 fi
32118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32120 else
32121   # Is the header compilable?
32122 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32124 cat >conftest.$ac_ext <<_ACEOF
32125 /* confdefs.h.  */
32126 _ACEOF
32127 cat confdefs.h >>conftest.$ac_ext
32128 cat >>conftest.$ac_ext <<_ACEOF
32129 /* end confdefs.h.  */
32130 $ac_includes_default
32131 #include <$ac_header>
32132 _ACEOF
32133 rm -f conftest.$ac_objext
32134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32135   (eval $ac_compile) 2>conftest.er1
32136   ac_status=$?
32137   grep -v '^ *+' conftest.er1 >conftest.err
32138   rm -f conftest.er1
32139   cat conftest.err >&5
32140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32141   (exit $ac_status); } &&
32142          { ac_try='test -z "$ac_c_werror_flag"
32143                          || test ! -s conftest.err'
32144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32145   (eval $ac_try) 2>&5
32146   ac_status=$?
32147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32148   (exit $ac_status); }; } &&
32149          { ac_try='test -s conftest.$ac_objext'
32150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32151   (eval $ac_try) 2>&5
32152   ac_status=$?
32153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154   (exit $ac_status); }; }; then
32155   ac_header_compiler=yes
32156 else
32157   echo "$as_me: failed program was:" >&5
32158 sed 's/^/| /' conftest.$ac_ext >&5
32159
32160 ac_header_compiler=no
32161 fi
32162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32164 echo "${ECHO_T}$ac_header_compiler" >&6
32165
32166 # Is the header present?
32167 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32169 cat >conftest.$ac_ext <<_ACEOF
32170 /* confdefs.h.  */
32171 _ACEOF
32172 cat confdefs.h >>conftest.$ac_ext
32173 cat >>conftest.$ac_ext <<_ACEOF
32174 /* end confdefs.h.  */
32175 #include <$ac_header>
32176 _ACEOF
32177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32178   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32179   ac_status=$?
32180   grep -v '^ *+' conftest.er1 >conftest.err
32181   rm -f conftest.er1
32182   cat conftest.err >&5
32183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32184   (exit $ac_status); } >/dev/null; then
32185   if test -s conftest.err; then
32186     ac_cpp_err=$ac_c_preproc_warn_flag
32187     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32188   else
32189     ac_cpp_err=
32190   fi
32191 else
32192   ac_cpp_err=yes
32193 fi
32194 if test -z "$ac_cpp_err"; then
32195   ac_header_preproc=yes
32196 else
32197   echo "$as_me: failed program was:" >&5
32198 sed 's/^/| /' conftest.$ac_ext >&5
32199
32200   ac_header_preproc=no
32201 fi
32202 rm -f conftest.err conftest.$ac_ext
32203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32204 echo "${ECHO_T}$ac_header_preproc" >&6
32205
32206 # So?  What about this header?
32207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32208   yes:no: )
32209     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32213     ac_header_preproc=yes
32214     ;;
32215   no:yes:* )
32216     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32218     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32219 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32220     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32222     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32223 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32226     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32228     (
32229       cat <<\_ASBOX
32230 ## --------------------------------------------- ##
32231 ## Report this to <http://www.openldap.org/its/> ##
32232 ## --------------------------------------------- ##
32233 _ASBOX
32234     ) |
32235       sed "s/^/$as_me: WARNING:     /" >&2
32236     ;;
32237 esac
32238 echo "$as_me:$LINENO: checking for $ac_header" >&5
32239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32241   echo $ECHO_N "(cached) $ECHO_C" >&6
32242 else
32243   eval "$as_ac_Header=\$ac_header_preproc"
32244 fi
32245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32247
32248 fi
32249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32250   cat >>confdefs.h <<_ACEOF
32251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32252 _ACEOF
32253
32254 else
32255
32256                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
32257 echo "$as_me: error: could not locate SQL headers" >&2;}
32258    { (exit 1); exit 1; }; }
32259
32260 fi
32261
32262 done
32263
32264
32265         sql_LIBS="$LIBS"
32266         LIBS="$LTHREAD_LIBS"
32267
32268         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
32269 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
32270 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
32271   echo $ECHO_N "(cached) $ECHO_C" >&6
32272 else
32273   ac_check_lib_save_LIBS=$LIBS
32274 LIBS="-liodbc  $LIBS"
32275 cat >conftest.$ac_ext <<_ACEOF
32276 /* confdefs.h.  */
32277 _ACEOF
32278 cat confdefs.h >>conftest.$ac_ext
32279 cat >>conftest.$ac_ext <<_ACEOF
32280 /* end confdefs.h.  */
32281
32282 /* Override any gcc2 internal prototype to avoid an error.  */
32283 #ifdef __cplusplus
32284 extern "C"
32285 #endif
32286 /* We use char because int might match the return type of a gcc2
32287    builtin and then its argument prototype would still apply.  */
32288 char SQLDriverConnect ();
32289 int
32290 main ()
32291 {
32292 SQLDriverConnect ();
32293   ;
32294   return 0;
32295 }
32296 _ACEOF
32297 rm -f conftest.$ac_objext conftest$ac_exeext
32298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32299   (eval $ac_link) 2>conftest.er1
32300   ac_status=$?
32301   grep -v '^ *+' conftest.er1 >conftest.err
32302   rm -f conftest.er1
32303   cat conftest.err >&5
32304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32305   (exit $ac_status); } &&
32306          { ac_try='test -z "$ac_c_werror_flag"
32307                          || test ! -s conftest.err'
32308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32309   (eval $ac_try) 2>&5
32310   ac_status=$?
32311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312   (exit $ac_status); }; } &&
32313          { ac_try='test -s conftest$ac_exeext'
32314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32315   (eval $ac_try) 2>&5
32316   ac_status=$?
32317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318   (exit $ac_status); }; }; then
32319   ac_cv_lib_iodbc_SQLDriverConnect=yes
32320 else
32321   echo "$as_me: failed program was:" >&5
32322 sed 's/^/| /' conftest.$ac_ext >&5
32323
32324 ac_cv_lib_iodbc_SQLDriverConnect=no
32325 fi
32326 rm -f conftest.err conftest.$ac_objext \
32327       conftest$ac_exeext conftest.$ac_ext
32328 LIBS=$ac_check_lib_save_LIBS
32329 fi
32330 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
32331 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
32332 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
32333   have_iodbc=yes
32334 else
32335   have_iodbc=no
32336 fi
32337
32338         if test $have_iodbc = yes ; then
32339                 ol_link_sql="-liodbc"
32340         else
32341                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
32342 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
32343 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
32344   echo $ECHO_N "(cached) $ECHO_C" >&6
32345 else
32346   ac_check_lib_save_LIBS=$LIBS
32347 LIBS="-lodbc  $LIBS"
32348 cat >conftest.$ac_ext <<_ACEOF
32349 /* confdefs.h.  */
32350 _ACEOF
32351 cat confdefs.h >>conftest.$ac_ext
32352 cat >>conftest.$ac_ext <<_ACEOF
32353 /* end confdefs.h.  */
32354
32355 /* Override any gcc2 internal prototype to avoid an error.  */
32356 #ifdef __cplusplus
32357 extern "C"
32358 #endif
32359 /* We use char because int might match the return type of a gcc2
32360    builtin and then its argument prototype would still apply.  */
32361 char SQLDriverConnect ();
32362 int
32363 main ()
32364 {
32365 SQLDriverConnect ();
32366   ;
32367   return 0;
32368 }
32369 _ACEOF
32370 rm -f conftest.$ac_objext conftest$ac_exeext
32371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32372   (eval $ac_link) 2>conftest.er1
32373   ac_status=$?
32374   grep -v '^ *+' conftest.er1 >conftest.err
32375   rm -f conftest.er1
32376   cat conftest.err >&5
32377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32378   (exit $ac_status); } &&
32379          { ac_try='test -z "$ac_c_werror_flag"
32380                          || test ! -s conftest.err'
32381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32382   (eval $ac_try) 2>&5
32383   ac_status=$?
32384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32385   (exit $ac_status); }; } &&
32386          { ac_try='test -s conftest$ac_exeext'
32387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32388   (eval $ac_try) 2>&5
32389   ac_status=$?
32390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391   (exit $ac_status); }; }; then
32392   ac_cv_lib_odbc_SQLDriverConnect=yes
32393 else
32394   echo "$as_me: failed program was:" >&5
32395 sed 's/^/| /' conftest.$ac_ext >&5
32396
32397 ac_cv_lib_odbc_SQLDriverConnect=no
32398 fi
32399 rm -f conftest.err conftest.$ac_objext \
32400       conftest$ac_exeext conftest.$ac_ext
32401 LIBS=$ac_check_lib_save_LIBS
32402 fi
32403 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
32404 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
32405 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
32406   have_odbc=yes
32407 else
32408   have_odbc=no
32409 fi
32410
32411                 if test $have_odbc = yes ; then
32412                         ol_link_sql="-lodbc"
32413                 fi
32414         fi
32415
32416         LIBS="$sql_LIBS"
32417
32418         if test $ol_link_sql != no ; then
32419                 SLAPD_SQL_LIBS="$ol_link_sql"
32420
32421         elif test $ol_enable_sql != auto ; then
32422                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
32423 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
32424    { (exit 1); exit 1; }; }
32425         fi
32426 fi
32427
32428 ol_icu=no
32429
32430 for ac_header in unicode/utypes.h
32431 do
32432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32434   echo "$as_me:$LINENO: checking for $ac_header" >&5
32435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32437   echo $ECHO_N "(cached) $ECHO_C" >&6
32438 fi
32439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32441 else
32442   # Is the header compilable?
32443 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32445 cat >conftest.$ac_ext <<_ACEOF
32446 /* confdefs.h.  */
32447 _ACEOF
32448 cat confdefs.h >>conftest.$ac_ext
32449 cat >>conftest.$ac_ext <<_ACEOF
32450 /* end confdefs.h.  */
32451 $ac_includes_default
32452 #include <$ac_header>
32453 _ACEOF
32454 rm -f conftest.$ac_objext
32455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32456   (eval $ac_compile) 2>conftest.er1
32457   ac_status=$?
32458   grep -v '^ *+' conftest.er1 >conftest.err
32459   rm -f conftest.er1
32460   cat conftest.err >&5
32461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462   (exit $ac_status); } &&
32463          { ac_try='test -z "$ac_c_werror_flag"
32464                          || test ! -s conftest.err'
32465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32466   (eval $ac_try) 2>&5
32467   ac_status=$?
32468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32469   (exit $ac_status); }; } &&
32470          { ac_try='test -s conftest.$ac_objext'
32471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32472   (eval $ac_try) 2>&5
32473   ac_status=$?
32474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475   (exit $ac_status); }; }; then
32476   ac_header_compiler=yes
32477 else
32478   echo "$as_me: failed program was:" >&5
32479 sed 's/^/| /' conftest.$ac_ext >&5
32480
32481 ac_header_compiler=no
32482 fi
32483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32485 echo "${ECHO_T}$ac_header_compiler" >&6
32486
32487 # Is the header present?
32488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32490 cat >conftest.$ac_ext <<_ACEOF
32491 /* confdefs.h.  */
32492 _ACEOF
32493 cat confdefs.h >>conftest.$ac_ext
32494 cat >>conftest.$ac_ext <<_ACEOF
32495 /* end confdefs.h.  */
32496 #include <$ac_header>
32497 _ACEOF
32498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32499   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32500   ac_status=$?
32501   grep -v '^ *+' conftest.er1 >conftest.err
32502   rm -f conftest.er1
32503   cat conftest.err >&5
32504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505   (exit $ac_status); } >/dev/null; then
32506   if test -s conftest.err; then
32507     ac_cpp_err=$ac_c_preproc_warn_flag
32508     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32509   else
32510     ac_cpp_err=
32511   fi
32512 else
32513   ac_cpp_err=yes
32514 fi
32515 if test -z "$ac_cpp_err"; then
32516   ac_header_preproc=yes
32517 else
32518   echo "$as_me: failed program was:" >&5
32519 sed 's/^/| /' conftest.$ac_ext >&5
32520
32521   ac_header_preproc=no
32522 fi
32523 rm -f conftest.err conftest.$ac_ext
32524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32525 echo "${ECHO_T}$ac_header_preproc" >&6
32526
32527 # So?  What about this header?
32528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32529   yes:no: )
32530     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32534     ac_header_preproc=yes
32535     ;;
32536   no:yes:* )
32537     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32539     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32540 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32541     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32543     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32544 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32547     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32549     (
32550       cat <<\_ASBOX
32551 ## --------------------------------------------- ##
32552 ## Report this to <http://www.openldap.org/its/> ##
32553 ## --------------------------------------------- ##
32554 _ASBOX
32555     ) |
32556       sed "s/^/$as_me: WARNING:     /" >&2
32557     ;;
32558 esac
32559 echo "$as_me:$LINENO: checking for $ac_header" >&5
32560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32562   echo $ECHO_N "(cached) $ECHO_C" >&6
32563 else
32564   eval "$as_ac_Header=\$ac_header_preproc"
32565 fi
32566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32568
32569 fi
32570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32571   cat >>confdefs.h <<_ACEOF
32572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32573 _ACEOF
32574
32575 fi
32576
32577 done
32578
32579 if test $ac_cv_header_unicode_utypes_h = yes ; then
32580                 OL_ICULIBS="-licuuc -licudata"
32581
32582         echo "$as_me:$LINENO: checking for ICU libraries" >&5
32583 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
32584 if test "${ol_cv_lib_icu+set}" = set; then
32585   echo $ECHO_N "(cached) $ECHO_C" >&6
32586 else
32587
32588                 ol_LIBS="$LIBS"
32589                 LIBS="$OL_ICULIBS $LIBS"
32590                 cat >conftest.$ac_ext <<_ACEOF
32591 /* confdefs.h.  */
32592 _ACEOF
32593 cat confdefs.h >>conftest.$ac_ext
32594 cat >>conftest.$ac_ext <<_ACEOF
32595 /* end confdefs.h.  */
32596
32597 #include <unicode/utypes.h>
32598
32599 int
32600 main ()
32601 {
32602
32603 (void) u_errorName(0);
32604
32605   ;
32606   return 0;
32607 }
32608 _ACEOF
32609 rm -f conftest.$ac_objext conftest$ac_exeext
32610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32611   (eval $ac_link) 2>conftest.er1
32612   ac_status=$?
32613   grep -v '^ *+' conftest.er1 >conftest.err
32614   rm -f conftest.er1
32615   cat conftest.err >&5
32616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617   (exit $ac_status); } &&
32618          { ac_try='test -z "$ac_c_werror_flag"
32619                          || test ! -s conftest.err'
32620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32621   (eval $ac_try) 2>&5
32622   ac_status=$?
32623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624   (exit $ac_status); }; } &&
32625          { ac_try='test -s conftest$ac_exeext'
32626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32627   (eval $ac_try) 2>&5
32628   ac_status=$?
32629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630   (exit $ac_status); }; }; then
32631   ol_cv_lib_icu=yes
32632 else
32633   echo "$as_me: failed program was:" >&5
32634 sed 's/^/| /' conftest.$ac_ext >&5
32635
32636 ol_cv_lib_icu=no
32637 fi
32638 rm -f conftest.err conftest.$ac_objext \
32639       conftest$ac_exeext conftest.$ac_ext
32640                 LIBS="$ol_LIBS"
32641
32642 fi
32643 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32644 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32645
32646         if test $ol_cv_lib_icu != no ; then
32647                 ol_icu="$OL_ICULIBS"
32648
32649 cat >>confdefs.h <<\_ACEOF
32650 #define HAVE_ICU 1
32651 _ACEOF
32652
32653         fi
32654 fi
32655
32656 if test "$ol_icu" = no ; then
32657         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32658 echo "$as_me: WARNING: ICU not available" >&2;}
32659 else
32660         ICU_LIBS="$ol_icu"
32661 fi
32662 WITH_SASL=no
32663 ol_link_sasl=no
32664 ol_link_spasswd=no
32665 if test $ol_with_cyrus_sasl != no ; then
32666
32667
32668 for ac_header in sasl/sasl.h sasl.h
32669 do
32670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32672   echo "$as_me:$LINENO: checking for $ac_header" >&5
32673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32675   echo $ECHO_N "(cached) $ECHO_C" >&6
32676 fi
32677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32679 else
32680   # Is the header compilable?
32681 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32683 cat >conftest.$ac_ext <<_ACEOF
32684 /* confdefs.h.  */
32685 _ACEOF
32686 cat confdefs.h >>conftest.$ac_ext
32687 cat >>conftest.$ac_ext <<_ACEOF
32688 /* end confdefs.h.  */
32689 $ac_includes_default
32690 #include <$ac_header>
32691 _ACEOF
32692 rm -f conftest.$ac_objext
32693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32694   (eval $ac_compile) 2>conftest.er1
32695   ac_status=$?
32696   grep -v '^ *+' conftest.er1 >conftest.err
32697   rm -f conftest.er1
32698   cat conftest.err >&5
32699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700   (exit $ac_status); } &&
32701          { ac_try='test -z "$ac_c_werror_flag"
32702                          || test ! -s conftest.err'
32703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32704   (eval $ac_try) 2>&5
32705   ac_status=$?
32706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32707   (exit $ac_status); }; } &&
32708          { ac_try='test -s conftest.$ac_objext'
32709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32710   (eval $ac_try) 2>&5
32711   ac_status=$?
32712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713   (exit $ac_status); }; }; then
32714   ac_header_compiler=yes
32715 else
32716   echo "$as_me: failed program was:" >&5
32717 sed 's/^/| /' conftest.$ac_ext >&5
32718
32719 ac_header_compiler=no
32720 fi
32721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32723 echo "${ECHO_T}$ac_header_compiler" >&6
32724
32725 # Is the header present?
32726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32728 cat >conftest.$ac_ext <<_ACEOF
32729 /* confdefs.h.  */
32730 _ACEOF
32731 cat confdefs.h >>conftest.$ac_ext
32732 cat >>conftest.$ac_ext <<_ACEOF
32733 /* end confdefs.h.  */
32734 #include <$ac_header>
32735 _ACEOF
32736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32737   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32738   ac_status=$?
32739   grep -v '^ *+' conftest.er1 >conftest.err
32740   rm -f conftest.er1
32741   cat conftest.err >&5
32742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32743   (exit $ac_status); } >/dev/null; then
32744   if test -s conftest.err; then
32745     ac_cpp_err=$ac_c_preproc_warn_flag
32746     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32747   else
32748     ac_cpp_err=
32749   fi
32750 else
32751   ac_cpp_err=yes
32752 fi
32753 if test -z "$ac_cpp_err"; then
32754   ac_header_preproc=yes
32755 else
32756   echo "$as_me: failed program was:" >&5
32757 sed 's/^/| /' conftest.$ac_ext >&5
32758
32759   ac_header_preproc=no
32760 fi
32761 rm -f conftest.err conftest.$ac_ext
32762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32763 echo "${ECHO_T}$ac_header_preproc" >&6
32764
32765 # So?  What about this header?
32766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32767   yes:no: )
32768     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32772     ac_header_preproc=yes
32773     ;;
32774   no:yes:* )
32775     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32777     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32778 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32779     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32781     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32782 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32785     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32787     (
32788       cat <<\_ASBOX
32789 ## --------------------------------------------- ##
32790 ## Report this to <http://www.openldap.org/its/> ##
32791 ## --------------------------------------------- ##
32792 _ASBOX
32793     ) |
32794       sed "s/^/$as_me: WARNING:     /" >&2
32795     ;;
32796 esac
32797 echo "$as_me:$LINENO: checking for $ac_header" >&5
32798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32800   echo $ECHO_N "(cached) $ECHO_C" >&6
32801 else
32802   eval "$as_ac_Header=\$ac_header_preproc"
32803 fi
32804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32806
32807 fi
32808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32809   cat >>confdefs.h <<_ACEOF
32810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32811 _ACEOF
32812
32813 fi
32814
32815 done
32816
32817
32818         if test $ac_cv_header_sasl_sasl_h = yes ||
32819            test $ac_cv_header_sasl_h = yes; then
32820                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32821 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32822 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32823   echo $ECHO_N "(cached) $ECHO_C" >&6
32824 else
32825   ac_check_lib_save_LIBS=$LIBS
32826 LIBS="-lsasl2  $LIBS"
32827 cat >conftest.$ac_ext <<_ACEOF
32828 /* confdefs.h.  */
32829 _ACEOF
32830 cat confdefs.h >>conftest.$ac_ext
32831 cat >>conftest.$ac_ext <<_ACEOF
32832 /* end confdefs.h.  */
32833
32834 /* Override any gcc2 internal prototype to avoid an error.  */
32835 #ifdef __cplusplus
32836 extern "C"
32837 #endif
32838 /* We use char because int might match the return type of a gcc2
32839    builtin and then its argument prototype would still apply.  */
32840 char sasl_client_init ();
32841 int
32842 main ()
32843 {
32844 sasl_client_init ();
32845   ;
32846   return 0;
32847 }
32848 _ACEOF
32849 rm -f conftest.$ac_objext conftest$ac_exeext
32850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32851   (eval $ac_link) 2>conftest.er1
32852   ac_status=$?
32853   grep -v '^ *+' conftest.er1 >conftest.err
32854   rm -f conftest.er1
32855   cat conftest.err >&5
32856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857   (exit $ac_status); } &&
32858          { ac_try='test -z "$ac_c_werror_flag"
32859                          || test ! -s conftest.err'
32860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32861   (eval $ac_try) 2>&5
32862   ac_status=$?
32863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864   (exit $ac_status); }; } &&
32865          { ac_try='test -s conftest$ac_exeext'
32866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32867   (eval $ac_try) 2>&5
32868   ac_status=$?
32869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32870   (exit $ac_status); }; }; then
32871   ac_cv_lib_sasl2_sasl_client_init=yes
32872 else
32873   echo "$as_me: failed program was:" >&5
32874 sed 's/^/| /' conftest.$ac_ext >&5
32875
32876 ac_cv_lib_sasl2_sasl_client_init=no
32877 fi
32878 rm -f conftest.err conftest.$ac_objext \
32879       conftest$ac_exeext conftest.$ac_ext
32880 LIBS=$ac_check_lib_save_LIBS
32881 fi
32882 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32883 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32884 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32885   ol_link_sasl="-lsasl2"
32886 else
32887   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32888 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32889 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32890   echo $ECHO_N "(cached) $ECHO_C" >&6
32891 else
32892   ac_check_lib_save_LIBS=$LIBS
32893 LIBS="-lsasl  $LIBS"
32894 cat >conftest.$ac_ext <<_ACEOF
32895 /* confdefs.h.  */
32896 _ACEOF
32897 cat confdefs.h >>conftest.$ac_ext
32898 cat >>conftest.$ac_ext <<_ACEOF
32899 /* end confdefs.h.  */
32900
32901 /* Override any gcc2 internal prototype to avoid an error.  */
32902 #ifdef __cplusplus
32903 extern "C"
32904 #endif
32905 /* We use char because int might match the return type of a gcc2
32906    builtin and then its argument prototype would still apply.  */
32907 char sasl_client_init ();
32908 int
32909 main ()
32910 {
32911 sasl_client_init ();
32912   ;
32913   return 0;
32914 }
32915 _ACEOF
32916 rm -f conftest.$ac_objext conftest$ac_exeext
32917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32918   (eval $ac_link) 2>conftest.er1
32919   ac_status=$?
32920   grep -v '^ *+' conftest.er1 >conftest.err
32921   rm -f conftest.er1
32922   cat conftest.err >&5
32923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924   (exit $ac_status); } &&
32925          { ac_try='test -z "$ac_c_werror_flag"
32926                          || test ! -s conftest.err'
32927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32928   (eval $ac_try) 2>&5
32929   ac_status=$?
32930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32931   (exit $ac_status); }; } &&
32932          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
32938   ac_cv_lib_sasl_sasl_client_init=yes
32939 else
32940   echo "$as_me: failed program was:" >&5
32941 sed 's/^/| /' conftest.$ac_ext >&5
32942
32943 ac_cv_lib_sasl_sasl_client_init=no
32944 fi
32945 rm -f conftest.err conftest.$ac_objext \
32946       conftest$ac_exeext conftest.$ac_ext
32947 LIBS=$ac_check_lib_save_LIBS
32948 fi
32949 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32950 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32951 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32952   ol_link_sasl="-lsasl"
32953 fi
32954
32955 fi
32956
32957         fi
32958
32959         if test $ol_link_sasl = no ; then
32960                 if test $ol_with_cyrus_sasl != auto ; then
32961                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32962 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32963    { (exit 1); exit 1; }; }
32964                 else
32965                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32966 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32967                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32968 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32969                         if test $ol_link_tls = no ; then
32970                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32971 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32972                         fi
32973                 fi
32974         else
32975                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32976 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32977 if test "${ol_cv_sasl_compat+set}" = set; then
32978   echo $ECHO_N "(cached) $ECHO_C" >&6
32979 else
32980
32981         cat >conftest.$ac_ext <<_ACEOF
32982 /* confdefs.h.  */
32983 _ACEOF
32984 cat confdefs.h >>conftest.$ac_ext
32985 cat >>conftest.$ac_ext <<_ACEOF
32986 /* end confdefs.h.  */
32987
32988 #ifdef HAVE_SASL_SASL_H
32989 #include <sasl/sasl.h>
32990 #else
32991 #include <sasl.h>
32992 #endif
32993
32994 /* Require 2.1.15+ */
32995 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
32996         char *__sasl_compat = "2.2+ or better okay (we guess)";
32997 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
32998         && SASL_VERSION_STEP >=15
32999         char *__sasl_compat = "2.1.15+ or better okay";
33000 #endif
33001
33002 _ACEOF
33003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33004   $EGREP "__sasl_compat" >/dev/null 2>&1; then
33005   ol_cv_sasl_compat=yes
33006 else
33007   ol_cv_sasl_compat=no
33008 fi
33009 rm -f conftest*
33010
33011 fi
33012 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
33013 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
33014
33015                 if test $ol_cv_sasl_compat = no ; then
33016                         ol_link_sasl=no
33017                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
33018 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
33019    { (exit 1); exit 1; }; }
33020                 fi
33021
33022
33023 cat >>confdefs.h <<\_ACEOF
33024 #define HAVE_CYRUS_SASL 1
33025 _ACEOF
33026
33027                 SASL_LIBS="$ol_link_sasl"
33028                 if test $ol_enable_spasswd != no ; then
33029                         ol_link_spasswd=yes
33030                 fi
33031
33032                 ac_save_LIBS="$LIBS"
33033                 LIBS="$LIBS $ol_link_sasl"
33034                 echo "$as_me:$LINENO: checking for sasl_version" >&5
33035 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
33036 if test "${ac_cv_func_sasl_version+set}" = set; then
33037   echo $ECHO_N "(cached) $ECHO_C" >&6
33038 else
33039   cat >conftest.$ac_ext <<_ACEOF
33040 /* confdefs.h.  */
33041 _ACEOF
33042 cat confdefs.h >>conftest.$ac_ext
33043 cat >>conftest.$ac_ext <<_ACEOF
33044 /* end confdefs.h.  */
33045 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
33046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33047 #define sasl_version innocuous_sasl_version
33048
33049 /* System header to define __stub macros and hopefully few prototypes,
33050     which can conflict with char sasl_version (); below.
33051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33052     <limits.h> exists even on freestanding compilers.  */
33053
33054 #ifdef __STDC__
33055 # include <limits.h>
33056 #else
33057 # include <assert.h>
33058 #endif
33059
33060 #undef sasl_version
33061
33062 /* Override any gcc2 internal prototype to avoid an error.  */
33063 #ifdef __cplusplus
33064 extern "C"
33065 {
33066 #endif
33067 /* We use char because int might match the return type of a gcc2
33068    builtin and then its argument prototype would still apply.  */
33069 char sasl_version ();
33070 /* The GNU C library defines this for functions which it implements
33071     to always fail with ENOSYS.  Some functions are actually named
33072     something starting with __ and the normal name is an alias.  */
33073 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
33074 choke me
33075 #else
33076 char (*f) () = sasl_version;
33077 #endif
33078 #ifdef __cplusplus
33079 }
33080 #endif
33081
33082 int
33083 main ()
33084 {
33085 return f != sasl_version;
33086   ;
33087   return 0;
33088 }
33089 _ACEOF
33090 rm -f conftest.$ac_objext conftest$ac_exeext
33091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33092   (eval $ac_link) 2>conftest.er1
33093   ac_status=$?
33094   grep -v '^ *+' conftest.er1 >conftest.err
33095   rm -f conftest.er1
33096   cat conftest.err >&5
33097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33098   (exit $ac_status); } &&
33099          { ac_try='test -z "$ac_c_werror_flag"
33100                          || test ! -s conftest.err'
33101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33102   (eval $ac_try) 2>&5
33103   ac_status=$?
33104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105   (exit $ac_status); }; } &&
33106          { ac_try='test -s conftest$ac_exeext'
33107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33108   (eval $ac_try) 2>&5
33109   ac_status=$?
33110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111   (exit $ac_status); }; }; then
33112   ac_cv_func_sasl_version=yes
33113 else
33114   echo "$as_me: failed program was:" >&5
33115 sed 's/^/| /' conftest.$ac_ext >&5
33116
33117 ac_cv_func_sasl_version=no
33118 fi
33119 rm -f conftest.err conftest.$ac_objext \
33120       conftest$ac_exeext conftest.$ac_ext
33121 fi
33122 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
33123 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
33124 if test $ac_cv_func_sasl_version = yes; then
33125
33126 cat >>confdefs.h <<\_ACEOF
33127 #define HAVE_SASL_VERSION 1
33128 _ACEOF
33129
33130 fi
33131
33132                 LIBS="$ac_save_LIBS"
33133
33134                 WITH_SASL=yes
33135         fi
33136
33137 else
33138         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
33139 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
33140         if test $ol_link_tls = no ; then
33141                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
33142 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
33143         fi
33144 fi
33145
33146 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
33147         dev=no
33148         if test -r /dev/urandom ; then
33149                 dev="/dev/urandom";
33150         elif test -r /idev/urandom ; then
33151                 dev="/idev/urandom";
33152         elif test -r /dev/srandom ; then
33153                 dev="/dev/srandom";
33154         elif test -r /dev/random ; then
33155                 dev="/dev/random";
33156         elif test -r /idev/random ; then
33157                 dev="/idev/random";
33158         fi
33159
33160         if test $dev != no ; then
33161
33162 cat >>confdefs.h <<_ACEOF
33163 #define URANDOM_DEVICE "$dev"
33164 _ACEOF
33165
33166         fi
33167 fi
33168
33169 ol_link_fetch=no
33170 if test $ol_with_fetch != no ; then
33171         ol_LIBS=$LIBS
33172 LIBS="-lfetch -lcom_err $LIBS"
33173 echo "$as_me:$LINENO: checking fetch(3) library" >&5
33174 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
33175 if test "${ol_cv_lib_fetch+set}" = set; then
33176   echo $ECHO_N "(cached) $ECHO_C" >&6
33177 else
33178
33179         cat >conftest.$ac_ext <<_ACEOF
33180 /* confdefs.h.  */
33181 _ACEOF
33182 cat confdefs.h >>conftest.$ac_ext
33183 cat >>conftest.$ac_ext <<_ACEOF
33184 /* end confdefs.h.  */
33185
33186 #include <sys/param.h>
33187 #include <stdio.h>
33188 #include <fetch.h>
33189 int
33190 main ()
33191 {
33192 struct url *u = fetchParseURL("file:///");
33193   ;
33194   return 0;
33195 }
33196 _ACEOF
33197 rm -f conftest.$ac_objext conftest$ac_exeext
33198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33199   (eval $ac_link) 2>conftest.er1
33200   ac_status=$?
33201   grep -v '^ *+' conftest.er1 >conftest.err
33202   rm -f conftest.er1
33203   cat conftest.err >&5
33204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205   (exit $ac_status); } &&
33206          { ac_try='test -z "$ac_c_werror_flag"
33207                          || test ! -s conftest.err'
33208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33209   (eval $ac_try) 2>&5
33210   ac_status=$?
33211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33212   (exit $ac_status); }; } &&
33213          { ac_try='test -s conftest$ac_exeext'
33214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33215   (eval $ac_try) 2>&5
33216   ac_status=$?
33217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218   (exit $ac_status); }; }; then
33219   ol_cv_lib_fetch=yes
33220 else
33221   echo "$as_me: failed program was:" >&5
33222 sed 's/^/| /' conftest.$ac_ext >&5
33223
33224 ol_cv_lib_fetch=no
33225 fi
33226 rm -f conftest.err conftest.$ac_objext \
33227       conftest$ac_exeext conftest.$ac_ext
33228 fi
33229 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
33230 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
33231 LIBS=$ol_LIBS
33232 if test $ol_cv_lib_fetch != no ; then
33233         ol_link_fetch="-lfetch -lcom_err"
33234
33235 cat >>confdefs.h <<\_ACEOF
33236 #define HAVE_FETCH 1
33237 _ACEOF
33238
33239 fi
33240
33241
33242         if test $ol_cv_lib_fetch != no ; then
33243                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
33244                 ol_link_fetch=freebsd
33245
33246         elif test $ol_with_fetch != auto ; then
33247                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
33248 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
33249    { (exit 1); exit 1; }; }
33250         fi
33251 fi
33252
33253 if test $ol_enable_crypt != no ; then
33254         save_LIBS="$LIBS"
33255         LIBS="$TLS_LIBS $LIBS"
33256
33257         echo "$as_me:$LINENO: checking for crypt" >&5
33258 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
33259 if test "${ac_cv_func_crypt+set}" = set; then
33260   echo $ECHO_N "(cached) $ECHO_C" >&6
33261 else
33262   cat >conftest.$ac_ext <<_ACEOF
33263 /* confdefs.h.  */
33264 _ACEOF
33265 cat confdefs.h >>conftest.$ac_ext
33266 cat >>conftest.$ac_ext <<_ACEOF
33267 /* end confdefs.h.  */
33268 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
33269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33270 #define crypt innocuous_crypt
33271
33272 /* System header to define __stub macros and hopefully few prototypes,
33273     which can conflict with char crypt (); below.
33274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33275     <limits.h> exists even on freestanding compilers.  */
33276
33277 #ifdef __STDC__
33278 # include <limits.h>
33279 #else
33280 # include <assert.h>
33281 #endif
33282
33283 #undef crypt
33284
33285 /* Override any gcc2 internal prototype to avoid an error.  */
33286 #ifdef __cplusplus
33287 extern "C"
33288 {
33289 #endif
33290 /* We use char because int might match the return type of a gcc2
33291    builtin and then its argument prototype would still apply.  */
33292 char crypt ();
33293 /* The GNU C library defines this for functions which it implements
33294     to always fail with ENOSYS.  Some functions are actually named
33295     something starting with __ and the normal name is an alias.  */
33296 #if defined (__stub_crypt) || defined (__stub___crypt)
33297 choke me
33298 #else
33299 char (*f) () = crypt;
33300 #endif
33301 #ifdef __cplusplus
33302 }
33303 #endif
33304
33305 int
33306 main ()
33307 {
33308 return f != crypt;
33309   ;
33310   return 0;
33311 }
33312 _ACEOF
33313 rm -f conftest.$ac_objext conftest$ac_exeext
33314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33315   (eval $ac_link) 2>conftest.er1
33316   ac_status=$?
33317   grep -v '^ *+' conftest.er1 >conftest.err
33318   rm -f conftest.er1
33319   cat conftest.err >&5
33320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321   (exit $ac_status); } &&
33322          { ac_try='test -z "$ac_c_werror_flag"
33323                          || test ! -s conftest.err'
33324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33325   (eval $ac_try) 2>&5
33326   ac_status=$?
33327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33328   (exit $ac_status); }; } &&
33329          { ac_try='test -s conftest$ac_exeext'
33330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33331   (eval $ac_try) 2>&5
33332   ac_status=$?
33333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334   (exit $ac_status); }; }; then
33335   ac_cv_func_crypt=yes
33336 else
33337   echo "$as_me: failed program was:" >&5
33338 sed 's/^/| /' conftest.$ac_ext >&5
33339
33340 ac_cv_func_crypt=no
33341 fi
33342 rm -f conftest.err conftest.$ac_objext \
33343       conftest$ac_exeext conftest.$ac_ext
33344 fi
33345 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
33346 echo "${ECHO_T}$ac_cv_func_crypt" >&6
33347 if test $ac_cv_func_crypt = yes; then
33348   have_crypt=yes
33349 else
33350
33351                 LIBS="$save_LIBS"
33352                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
33353 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
33354 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
33355   echo $ECHO_N "(cached) $ECHO_C" >&6
33356 else
33357   ac_check_lib_save_LIBS=$LIBS
33358 LIBS="-lcrypt  $LIBS"
33359 cat >conftest.$ac_ext <<_ACEOF
33360 /* confdefs.h.  */
33361 _ACEOF
33362 cat confdefs.h >>conftest.$ac_ext
33363 cat >>conftest.$ac_ext <<_ACEOF
33364 /* end confdefs.h.  */
33365
33366 /* Override any gcc2 internal prototype to avoid an error.  */
33367 #ifdef __cplusplus
33368 extern "C"
33369 #endif
33370 /* We use char because int might match the return type of a gcc2
33371    builtin and then its argument prototype would still apply.  */
33372 char crypt ();
33373 int
33374 main ()
33375 {
33376 crypt ();
33377   ;
33378   return 0;
33379 }
33380 _ACEOF
33381 rm -f conftest.$ac_objext conftest$ac_exeext
33382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33383   (eval $ac_link) 2>conftest.er1
33384   ac_status=$?
33385   grep -v '^ *+' conftest.er1 >conftest.err
33386   rm -f conftest.er1
33387   cat conftest.err >&5
33388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389   (exit $ac_status); } &&
33390          { ac_try='test -z "$ac_c_werror_flag"
33391                          || test ! -s conftest.err'
33392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33393   (eval $ac_try) 2>&5
33394   ac_status=$?
33395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396   (exit $ac_status); }; } &&
33397          { ac_try='test -s conftest$ac_exeext'
33398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33399   (eval $ac_try) 2>&5
33400   ac_status=$?
33401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33402   (exit $ac_status); }; }; then
33403   ac_cv_lib_crypt_crypt=yes
33404 else
33405   echo "$as_me: failed program was:" >&5
33406 sed 's/^/| /' conftest.$ac_ext >&5
33407
33408 ac_cv_lib_crypt_crypt=no
33409 fi
33410 rm -f conftest.err conftest.$ac_objext \
33411       conftest$ac_exeext conftest.$ac_ext
33412 LIBS=$ac_check_lib_save_LIBS
33413 fi
33414 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
33415 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
33416 if test $ac_cv_lib_crypt_crypt = yes; then
33417   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
33418                         have_crypt=yes
33419 else
33420   have_crypt=no
33421 fi
33422
33423 fi
33424
33425
33426         LIBS="$save_LIBS"
33427
33428         if test $have_crypt = yes ; then
33429
33430 cat >>confdefs.h <<\_ACEOF
33431 #define HAVE_CRYPT 1
33432 _ACEOF
33433
33434         else
33435                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
33436 echo "$as_me: WARNING: could not find crypt" >&2;}
33437                 if test $ol_enable_crypt = yes ; then
33438                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
33439 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
33440    { (exit 1); exit 1; }; }
33441                 fi
33442
33443                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
33444 echo "$as_me: WARNING: disabling crypt support" >&2;}
33445                 ol_enable_crypt=no
33446         fi
33447 fi
33448
33449 if test $ol_enable_proctitle != no ; then
33450         echo "$as_me:$LINENO: checking for setproctitle" >&5
33451 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
33452 if test "${ac_cv_func_setproctitle+set}" = set; then
33453   echo $ECHO_N "(cached) $ECHO_C" >&6
33454 else
33455   cat >conftest.$ac_ext <<_ACEOF
33456 /* confdefs.h.  */
33457 _ACEOF
33458 cat confdefs.h >>conftest.$ac_ext
33459 cat >>conftest.$ac_ext <<_ACEOF
33460 /* end confdefs.h.  */
33461 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
33462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33463 #define setproctitle innocuous_setproctitle
33464
33465 /* System header to define __stub macros and hopefully few prototypes,
33466     which can conflict with char setproctitle (); below.
33467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33468     <limits.h> exists even on freestanding compilers.  */
33469
33470 #ifdef __STDC__
33471 # include <limits.h>
33472 #else
33473 # include <assert.h>
33474 #endif
33475
33476 #undef setproctitle
33477
33478 /* Override any gcc2 internal prototype to avoid an error.  */
33479 #ifdef __cplusplus
33480 extern "C"
33481 {
33482 #endif
33483 /* We use char because int might match the return type of a gcc2
33484    builtin and then its argument prototype would still apply.  */
33485 char setproctitle ();
33486 /* The GNU C library defines this for functions which it implements
33487     to always fail with ENOSYS.  Some functions are actually named
33488     something starting with __ and the normal name is an alias.  */
33489 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
33490 choke me
33491 #else
33492 char (*f) () = setproctitle;
33493 #endif
33494 #ifdef __cplusplus
33495 }
33496 #endif
33497
33498 int
33499 main ()
33500 {
33501 return f != setproctitle;
33502   ;
33503   return 0;
33504 }
33505 _ACEOF
33506 rm -f conftest.$ac_objext conftest$ac_exeext
33507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33508   (eval $ac_link) 2>conftest.er1
33509   ac_status=$?
33510   grep -v '^ *+' conftest.er1 >conftest.err
33511   rm -f conftest.er1
33512   cat conftest.err >&5
33513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514   (exit $ac_status); } &&
33515          { ac_try='test -z "$ac_c_werror_flag"
33516                          || test ! -s conftest.err'
33517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33518   (eval $ac_try) 2>&5
33519   ac_status=$?
33520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521   (exit $ac_status); }; } &&
33522          { ac_try='test -s conftest$ac_exeext'
33523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33524   (eval $ac_try) 2>&5
33525   ac_status=$?
33526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527   (exit $ac_status); }; }; then
33528   ac_cv_func_setproctitle=yes
33529 else
33530   echo "$as_me: failed program was:" >&5
33531 sed 's/^/| /' conftest.$ac_ext >&5
33532
33533 ac_cv_func_setproctitle=no
33534 fi
33535 rm -f conftest.err conftest.$ac_objext \
33536       conftest$ac_exeext conftest.$ac_ext
33537 fi
33538 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
33539 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
33540 if test $ac_cv_func_setproctitle = yes; then
33541   have_setproctitle=yes
33542 else
33543
33544                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
33545 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
33546 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
33547   echo $ECHO_N "(cached) $ECHO_C" >&6
33548 else
33549   ac_check_lib_save_LIBS=$LIBS
33550 LIBS="-lutil  $LIBS"
33551 cat >conftest.$ac_ext <<_ACEOF
33552 /* confdefs.h.  */
33553 _ACEOF
33554 cat confdefs.h >>conftest.$ac_ext
33555 cat >>conftest.$ac_ext <<_ACEOF
33556 /* end confdefs.h.  */
33557
33558 /* Override any gcc2 internal prototype to avoid an error.  */
33559 #ifdef __cplusplus
33560 extern "C"
33561 #endif
33562 /* We use char because int might match the return type of a gcc2
33563    builtin and then its argument prototype would still apply.  */
33564 char setproctitle ();
33565 int
33566 main ()
33567 {
33568 setproctitle ();
33569   ;
33570   return 0;
33571 }
33572 _ACEOF
33573 rm -f conftest.$ac_objext conftest$ac_exeext
33574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33575   (eval $ac_link) 2>conftest.er1
33576   ac_status=$?
33577   grep -v '^ *+' conftest.er1 >conftest.err
33578   rm -f conftest.er1
33579   cat conftest.err >&5
33580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581   (exit $ac_status); } &&
33582          { ac_try='test -z "$ac_c_werror_flag"
33583                          || test ! -s conftest.err'
33584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33585   (eval $ac_try) 2>&5
33586   ac_status=$?
33587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588   (exit $ac_status); }; } &&
33589          { ac_try='test -s conftest$ac_exeext'
33590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33591   (eval $ac_try) 2>&5
33592   ac_status=$?
33593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594   (exit $ac_status); }; }; then
33595   ac_cv_lib_util_setproctitle=yes
33596 else
33597   echo "$as_me: failed program was:" >&5
33598 sed 's/^/| /' conftest.$ac_ext >&5
33599
33600 ac_cv_lib_util_setproctitle=no
33601 fi
33602 rm -f conftest.err conftest.$ac_objext \
33603       conftest$ac_exeext conftest.$ac_ext
33604 LIBS=$ac_check_lib_save_LIBS
33605 fi
33606 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
33607 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
33608 if test $ac_cv_lib_util_setproctitle = yes; then
33609   have_setproctitle=yes
33610                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
33611 else
33612   have_setproctitle=no
33613                         case $LIBOBJS in
33614     "setproctitle.$ac_objext"   | \
33615   *" setproctitle.$ac_objext"   | \
33616     "setproctitle.$ac_objext "* | \
33617   *" setproctitle.$ac_objext "* ) ;;
33618   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
33619 esac
33620
33621                         LIBSRCS="$LIBSRCS setproctitle.c"
33622 fi
33623
33624 fi
33625
33626
33627         if test $have_setproctitle = yes ; then
33628
33629 cat >>confdefs.h <<\_ACEOF
33630 #define HAVE_SETPROCTITLE 1
33631 _ACEOF
33632
33633         fi
33634 fi
33635
33636 if test $ol_enable_slp != no ; then
33637
33638 for ac_header in slp.h
33639 do
33640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33642   echo "$as_me:$LINENO: checking for $ac_header" >&5
33643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33645   echo $ECHO_N "(cached) $ECHO_C" >&6
33646 fi
33647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33649 else
33650   # Is the header compilable?
33651 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33653 cat >conftest.$ac_ext <<_ACEOF
33654 /* confdefs.h.  */
33655 _ACEOF
33656 cat confdefs.h >>conftest.$ac_ext
33657 cat >>conftest.$ac_ext <<_ACEOF
33658 /* end confdefs.h.  */
33659 $ac_includes_default
33660 #include <$ac_header>
33661 _ACEOF
33662 rm -f conftest.$ac_objext
33663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33664   (eval $ac_compile) 2>conftest.er1
33665   ac_status=$?
33666   grep -v '^ *+' conftest.er1 >conftest.err
33667   rm -f conftest.er1
33668   cat conftest.err >&5
33669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670   (exit $ac_status); } &&
33671          { ac_try='test -z "$ac_c_werror_flag"
33672                          || test ! -s conftest.err'
33673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33674   (eval $ac_try) 2>&5
33675   ac_status=$?
33676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33677   (exit $ac_status); }; } &&
33678          { ac_try='test -s conftest.$ac_objext'
33679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33680   (eval $ac_try) 2>&5
33681   ac_status=$?
33682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683   (exit $ac_status); }; }; then
33684   ac_header_compiler=yes
33685 else
33686   echo "$as_me: failed program was:" >&5
33687 sed 's/^/| /' conftest.$ac_ext >&5
33688
33689 ac_header_compiler=no
33690 fi
33691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33693 echo "${ECHO_T}$ac_header_compiler" >&6
33694
33695 # Is the header present?
33696 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33698 cat >conftest.$ac_ext <<_ACEOF
33699 /* confdefs.h.  */
33700 _ACEOF
33701 cat confdefs.h >>conftest.$ac_ext
33702 cat >>conftest.$ac_ext <<_ACEOF
33703 /* end confdefs.h.  */
33704 #include <$ac_header>
33705 _ACEOF
33706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33707   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33708   ac_status=$?
33709   grep -v '^ *+' conftest.er1 >conftest.err
33710   rm -f conftest.er1
33711   cat conftest.err >&5
33712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713   (exit $ac_status); } >/dev/null; then
33714   if test -s conftest.err; then
33715     ac_cpp_err=$ac_c_preproc_warn_flag
33716     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33717   else
33718     ac_cpp_err=
33719   fi
33720 else
33721   ac_cpp_err=yes
33722 fi
33723 if test -z "$ac_cpp_err"; then
33724   ac_header_preproc=yes
33725 else
33726   echo "$as_me: failed program was:" >&5
33727 sed 's/^/| /' conftest.$ac_ext >&5
33728
33729   ac_header_preproc=no
33730 fi
33731 rm -f conftest.err conftest.$ac_ext
33732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33733 echo "${ECHO_T}$ac_header_preproc" >&6
33734
33735 # So?  What about this header?
33736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33737   yes:no: )
33738     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33742     ac_header_preproc=yes
33743     ;;
33744   no:yes:* )
33745     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33747     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33748 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33749     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33751     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33752 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33755     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33757     (
33758       cat <<\_ASBOX
33759 ## --------------------------------------------- ##
33760 ## Report this to <http://www.openldap.org/its/> ##
33761 ## --------------------------------------------- ##
33762 _ASBOX
33763     ) |
33764       sed "s/^/$as_me: WARNING:     /" >&2
33765     ;;
33766 esac
33767 echo "$as_me:$LINENO: checking for $ac_header" >&5
33768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33770   echo $ECHO_N "(cached) $ECHO_C" >&6
33771 else
33772   eval "$as_ac_Header=\$ac_header_preproc"
33773 fi
33774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33776
33777 fi
33778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33779   cat >>confdefs.h <<_ACEOF
33780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33781 _ACEOF
33782
33783 fi
33784
33785 done
33786
33787
33788         if test $ac_cv_header_slp_h = yes ; then
33789                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33790 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33791 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33792   echo $ECHO_N "(cached) $ECHO_C" >&6
33793 else
33794   ac_check_lib_save_LIBS=$LIBS
33795 LIBS="-lslp  $LIBS"
33796 cat >conftest.$ac_ext <<_ACEOF
33797 /* confdefs.h.  */
33798 _ACEOF
33799 cat confdefs.h >>conftest.$ac_ext
33800 cat >>conftest.$ac_ext <<_ACEOF
33801 /* end confdefs.h.  */
33802
33803 /* Override any gcc2 internal prototype to avoid an error.  */
33804 #ifdef __cplusplus
33805 extern "C"
33806 #endif
33807 /* We use char because int might match the return type of a gcc2
33808    builtin and then its argument prototype would still apply.  */
33809 char SLPOpen ();
33810 int
33811 main ()
33812 {
33813 SLPOpen ();
33814   ;
33815   return 0;
33816 }
33817 _ACEOF
33818 rm -f conftest.$ac_objext conftest$ac_exeext
33819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33820   (eval $ac_link) 2>conftest.er1
33821   ac_status=$?
33822   grep -v '^ *+' conftest.er1 >conftest.err
33823   rm -f conftest.er1
33824   cat conftest.err >&5
33825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33826   (exit $ac_status); } &&
33827          { ac_try='test -z "$ac_c_werror_flag"
33828                          || test ! -s conftest.err'
33829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33830   (eval $ac_try) 2>&5
33831   ac_status=$?
33832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833   (exit $ac_status); }; } &&
33834          { ac_try='test -s conftest$ac_exeext'
33835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33836   (eval $ac_try) 2>&5
33837   ac_status=$?
33838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33839   (exit $ac_status); }; }; then
33840   ac_cv_lib_slp_SLPOpen=yes
33841 else
33842   echo "$as_me: failed program was:" >&5
33843 sed 's/^/| /' conftest.$ac_ext >&5
33844
33845 ac_cv_lib_slp_SLPOpen=no
33846 fi
33847 rm -f conftest.err conftest.$ac_objext \
33848       conftest$ac_exeext conftest.$ac_ext
33849 LIBS=$ac_check_lib_save_LIBS
33850 fi
33851 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33852 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33853 if test $ac_cv_lib_slp_SLPOpen = yes; then
33854   have_slp=yes
33855 else
33856   have_slp=no
33857 fi
33858
33859                 if test $have_slp = yes ; then
33860
33861 cat >>confdefs.h <<\_ACEOF
33862 #define HAVE_SLP 1
33863 _ACEOF
33864
33865                         SLAPD_SLP_LIBS=-lslp
33866                 fi
33867
33868         elif test $ol_enable_slp = yes ; then
33869                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33870 echo "$as_me: error: SLP not found" >&2;}
33871    { (exit 1); exit 1; }; }
33872         fi
33873 fi
33874
33875
33876 echo "$as_me:$LINENO: checking for mode_t" >&5
33877 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33878 if test "${ac_cv_type_mode_t+set}" = set; then
33879   echo $ECHO_N "(cached) $ECHO_C" >&6
33880 else
33881   cat >conftest.$ac_ext <<_ACEOF
33882 /* confdefs.h.  */
33883 _ACEOF
33884 cat confdefs.h >>conftest.$ac_ext
33885 cat >>conftest.$ac_ext <<_ACEOF
33886 /* end confdefs.h.  */
33887 $ac_includes_default
33888 int
33889 main ()
33890 {
33891 if ((mode_t *) 0)
33892   return 0;
33893 if (sizeof (mode_t))
33894   return 0;
33895   ;
33896   return 0;
33897 }
33898 _ACEOF
33899 rm -f conftest.$ac_objext
33900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33901   (eval $ac_compile) 2>conftest.er1
33902   ac_status=$?
33903   grep -v '^ *+' conftest.er1 >conftest.err
33904   rm -f conftest.er1
33905   cat conftest.err >&5
33906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33907   (exit $ac_status); } &&
33908          { ac_try='test -z "$ac_c_werror_flag"
33909                          || test ! -s conftest.err'
33910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33911   (eval $ac_try) 2>&5
33912   ac_status=$?
33913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33914   (exit $ac_status); }; } &&
33915          { ac_try='test -s conftest.$ac_objext'
33916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33917   (eval $ac_try) 2>&5
33918   ac_status=$?
33919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920   (exit $ac_status); }; }; then
33921   ac_cv_type_mode_t=yes
33922 else
33923   echo "$as_me: failed program was:" >&5
33924 sed 's/^/| /' conftest.$ac_ext >&5
33925
33926 ac_cv_type_mode_t=no
33927 fi
33928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33929 fi
33930 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33931 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33932 if test $ac_cv_type_mode_t = yes; then
33933   :
33934 else
33935
33936 cat >>confdefs.h <<_ACEOF
33937 #define mode_t int
33938 _ACEOF
33939
33940 fi
33941
33942 echo "$as_me:$LINENO: checking for off_t" >&5
33943 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33944 if test "${ac_cv_type_off_t+set}" = set; then
33945   echo $ECHO_N "(cached) $ECHO_C" >&6
33946 else
33947   cat >conftest.$ac_ext <<_ACEOF
33948 /* confdefs.h.  */
33949 _ACEOF
33950 cat confdefs.h >>conftest.$ac_ext
33951 cat >>conftest.$ac_ext <<_ACEOF
33952 /* end confdefs.h.  */
33953 $ac_includes_default
33954 int
33955 main ()
33956 {
33957 if ((off_t *) 0)
33958   return 0;
33959 if (sizeof (off_t))
33960   return 0;
33961   ;
33962   return 0;
33963 }
33964 _ACEOF
33965 rm -f conftest.$ac_objext
33966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33967   (eval $ac_compile) 2>conftest.er1
33968   ac_status=$?
33969   grep -v '^ *+' conftest.er1 >conftest.err
33970   rm -f conftest.er1
33971   cat conftest.err >&5
33972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973   (exit $ac_status); } &&
33974          { ac_try='test -z "$ac_c_werror_flag"
33975                          || test ! -s conftest.err'
33976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33977   (eval $ac_try) 2>&5
33978   ac_status=$?
33979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33980   (exit $ac_status); }; } &&
33981          { ac_try='test -s conftest.$ac_objext'
33982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33983   (eval $ac_try) 2>&5
33984   ac_status=$?
33985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986   (exit $ac_status); }; }; then
33987   ac_cv_type_off_t=yes
33988 else
33989   echo "$as_me: failed program was:" >&5
33990 sed 's/^/| /' conftest.$ac_ext >&5
33991
33992 ac_cv_type_off_t=no
33993 fi
33994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33995 fi
33996 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33997 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33998 if test $ac_cv_type_off_t = yes; then
33999   :
34000 else
34001
34002 cat >>confdefs.h <<_ACEOF
34003 #define off_t long
34004 _ACEOF
34005
34006 fi
34007
34008 echo "$as_me:$LINENO: checking for pid_t" >&5
34009 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
34010 if test "${ac_cv_type_pid_t+set}" = set; then
34011   echo $ECHO_N "(cached) $ECHO_C" >&6
34012 else
34013   cat >conftest.$ac_ext <<_ACEOF
34014 /* confdefs.h.  */
34015 _ACEOF
34016 cat confdefs.h >>conftest.$ac_ext
34017 cat >>conftest.$ac_ext <<_ACEOF
34018 /* end confdefs.h.  */
34019 $ac_includes_default
34020 int
34021 main ()
34022 {
34023 if ((pid_t *) 0)
34024   return 0;
34025 if (sizeof (pid_t))
34026   return 0;
34027   ;
34028   return 0;
34029 }
34030 _ACEOF
34031 rm -f conftest.$ac_objext
34032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34033   (eval $ac_compile) 2>conftest.er1
34034   ac_status=$?
34035   grep -v '^ *+' conftest.er1 >conftest.err
34036   rm -f conftest.er1
34037   cat conftest.err >&5
34038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039   (exit $ac_status); } &&
34040          { ac_try='test -z "$ac_c_werror_flag"
34041                          || test ! -s conftest.err'
34042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34043   (eval $ac_try) 2>&5
34044   ac_status=$?
34045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34046   (exit $ac_status); }; } &&
34047          { ac_try='test -s conftest.$ac_objext'
34048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34049   (eval $ac_try) 2>&5
34050   ac_status=$?
34051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34052   (exit $ac_status); }; }; then
34053   ac_cv_type_pid_t=yes
34054 else
34055   echo "$as_me: failed program was:" >&5
34056 sed 's/^/| /' conftest.$ac_ext >&5
34057
34058 ac_cv_type_pid_t=no
34059 fi
34060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34061 fi
34062 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34063 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
34064 if test $ac_cv_type_pid_t = yes; then
34065   :
34066 else
34067
34068 cat >>confdefs.h <<_ACEOF
34069 #define pid_t int
34070 _ACEOF
34071
34072 fi
34073
34074 echo "$as_me:$LINENO: checking for ssize_t" >&5
34075 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34076 if test "${ac_cv_type_ssize_t+set}" = set; then
34077   echo $ECHO_N "(cached) $ECHO_C" >&6
34078 else
34079   cat >conftest.$ac_ext <<_ACEOF
34080 /* confdefs.h.  */
34081 _ACEOF
34082 cat confdefs.h >>conftest.$ac_ext
34083 cat >>conftest.$ac_ext <<_ACEOF
34084 /* end confdefs.h.  */
34085 $ac_includes_default
34086 int
34087 main ()
34088 {
34089 if ((ssize_t *) 0)
34090   return 0;
34091 if (sizeof (ssize_t))
34092   return 0;
34093   ;
34094   return 0;
34095 }
34096 _ACEOF
34097 rm -f conftest.$ac_objext
34098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34099   (eval $ac_compile) 2>conftest.er1
34100   ac_status=$?
34101   grep -v '^ *+' conftest.er1 >conftest.err
34102   rm -f conftest.er1
34103   cat conftest.err >&5
34104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34105   (exit $ac_status); } &&
34106          { ac_try='test -z "$ac_c_werror_flag"
34107                          || test ! -s conftest.err'
34108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34109   (eval $ac_try) 2>&5
34110   ac_status=$?
34111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34112   (exit $ac_status); }; } &&
34113          { ac_try='test -s conftest.$ac_objext'
34114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34115   (eval $ac_try) 2>&5
34116   ac_status=$?
34117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118   (exit $ac_status); }; }; then
34119   ac_cv_type_ssize_t=yes
34120 else
34121   echo "$as_me: failed program was:" >&5
34122 sed 's/^/| /' conftest.$ac_ext >&5
34123
34124 ac_cv_type_ssize_t=no
34125 fi
34126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34127 fi
34128 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34129 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34130 if test $ac_cv_type_ssize_t = yes; then
34131   :
34132 else
34133
34134 cat >>confdefs.h <<_ACEOF
34135 #define ssize_t signed int
34136 _ACEOF
34137
34138 fi
34139
34140 echo "$as_me:$LINENO: checking for caddr_t" >&5
34141 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
34142 if test "${ac_cv_type_caddr_t+set}" = set; then
34143   echo $ECHO_N "(cached) $ECHO_C" >&6
34144 else
34145   cat >conftest.$ac_ext <<_ACEOF
34146 /* confdefs.h.  */
34147 _ACEOF
34148 cat confdefs.h >>conftest.$ac_ext
34149 cat >>conftest.$ac_ext <<_ACEOF
34150 /* end confdefs.h.  */
34151 $ac_includes_default
34152 int
34153 main ()
34154 {
34155 if ((caddr_t *) 0)
34156   return 0;
34157 if (sizeof (caddr_t))
34158   return 0;
34159   ;
34160   return 0;
34161 }
34162 _ACEOF
34163 rm -f conftest.$ac_objext
34164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34165   (eval $ac_compile) 2>conftest.er1
34166   ac_status=$?
34167   grep -v '^ *+' conftest.er1 >conftest.err
34168   rm -f conftest.er1
34169   cat conftest.err >&5
34170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34171   (exit $ac_status); } &&
34172          { ac_try='test -z "$ac_c_werror_flag"
34173                          || test ! -s conftest.err'
34174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34175   (eval $ac_try) 2>&5
34176   ac_status=$?
34177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34178   (exit $ac_status); }; } &&
34179          { ac_try='test -s conftest.$ac_objext'
34180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34181   (eval $ac_try) 2>&5
34182   ac_status=$?
34183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184   (exit $ac_status); }; }; then
34185   ac_cv_type_caddr_t=yes
34186 else
34187   echo "$as_me: failed program was:" >&5
34188 sed 's/^/| /' conftest.$ac_ext >&5
34189
34190 ac_cv_type_caddr_t=no
34191 fi
34192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34193 fi
34194 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
34195 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
34196 if test $ac_cv_type_caddr_t = yes; then
34197   :
34198 else
34199
34200 cat >>confdefs.h <<_ACEOF
34201 #define caddr_t char *
34202 _ACEOF
34203
34204 fi
34205
34206 echo "$as_me:$LINENO: checking for size_t" >&5
34207 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34208 if test "${ac_cv_type_size_t+set}" = set; then
34209   echo $ECHO_N "(cached) $ECHO_C" >&6
34210 else
34211   cat >conftest.$ac_ext <<_ACEOF
34212 /* confdefs.h.  */
34213 _ACEOF
34214 cat confdefs.h >>conftest.$ac_ext
34215 cat >>conftest.$ac_ext <<_ACEOF
34216 /* end confdefs.h.  */
34217 $ac_includes_default
34218 int
34219 main ()
34220 {
34221 if ((size_t *) 0)
34222   return 0;
34223 if (sizeof (size_t))
34224   return 0;
34225   ;
34226   return 0;
34227 }
34228 _ACEOF
34229 rm -f conftest.$ac_objext
34230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34231   (eval $ac_compile) 2>conftest.er1
34232   ac_status=$?
34233   grep -v '^ *+' conftest.er1 >conftest.err
34234   rm -f conftest.er1
34235   cat conftest.err >&5
34236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34237   (exit $ac_status); } &&
34238          { ac_try='test -z "$ac_c_werror_flag"
34239                          || test ! -s conftest.err'
34240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34241   (eval $ac_try) 2>&5
34242   ac_status=$?
34243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244   (exit $ac_status); }; } &&
34245          { ac_try='test -s conftest.$ac_objext'
34246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34247   (eval $ac_try) 2>&5
34248   ac_status=$?
34249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250   (exit $ac_status); }; }; then
34251   ac_cv_type_size_t=yes
34252 else
34253   echo "$as_me: failed program was:" >&5
34254 sed 's/^/| /' conftest.$ac_ext >&5
34255
34256 ac_cv_type_size_t=no
34257 fi
34258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34259 fi
34260 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34261 echo "${ECHO_T}$ac_cv_type_size_t" >&6
34262 if test $ac_cv_type_size_t = yes; then
34263   :
34264 else
34265
34266 cat >>confdefs.h <<_ACEOF
34267 #define size_t unsigned
34268 _ACEOF
34269
34270 fi
34271
34272
34273 echo "$as_me:$LINENO: checking for long long" >&5
34274 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34275 if test "${ac_cv_type_long_long+set}" = set; then
34276   echo $ECHO_N "(cached) $ECHO_C" >&6
34277 else
34278   cat >conftest.$ac_ext <<_ACEOF
34279 /* confdefs.h.  */
34280 _ACEOF
34281 cat confdefs.h >>conftest.$ac_ext
34282 cat >>conftest.$ac_ext <<_ACEOF
34283 /* end confdefs.h.  */
34284 $ac_includes_default
34285 int
34286 main ()
34287 {
34288 if ((long long *) 0)
34289   return 0;
34290 if (sizeof (long long))
34291   return 0;
34292   ;
34293   return 0;
34294 }
34295 _ACEOF
34296 rm -f conftest.$ac_objext
34297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34298   (eval $ac_compile) 2>conftest.er1
34299   ac_status=$?
34300   grep -v '^ *+' conftest.er1 >conftest.err
34301   rm -f conftest.er1
34302   cat conftest.err >&5
34303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34304   (exit $ac_status); } &&
34305          { ac_try='test -z "$ac_c_werror_flag"
34306                          || test ! -s conftest.err'
34307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34308   (eval $ac_try) 2>&5
34309   ac_status=$?
34310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34311   (exit $ac_status); }; } &&
34312          { ac_try='test -s conftest.$ac_objext'
34313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34314   (eval $ac_try) 2>&5
34315   ac_status=$?
34316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34317   (exit $ac_status); }; }; then
34318   ac_cv_type_long_long=yes
34319 else
34320   echo "$as_me: failed program was:" >&5
34321 sed 's/^/| /' conftest.$ac_ext >&5
34322
34323 ac_cv_type_long_long=no
34324 fi
34325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34326 fi
34327 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34328 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34329 if test $ac_cv_type_long_long = yes; then
34330
34331 cat >>confdefs.h <<_ACEOF
34332 #define HAVE_LONG_LONG 1
34333 _ACEOF
34334
34335
34336 fi
34337
34338 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
34339 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
34340 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
34341   echo $ECHO_N "(cached) $ECHO_C" >&6
34342 else
34343   cat >conftest.$ac_ext <<_ACEOF
34344 /* confdefs.h.  */
34345 _ACEOF
34346 cat confdefs.h >>conftest.$ac_ext
34347 cat >>conftest.$ac_ext <<_ACEOF
34348 /* end confdefs.h.  */
34349 $ac_includes_default
34350 int
34351 main ()
34352 {
34353 if ((ptrdiff_t *) 0)
34354   return 0;
34355 if (sizeof (ptrdiff_t))
34356   return 0;
34357   ;
34358   return 0;
34359 }
34360 _ACEOF
34361 rm -f conftest.$ac_objext
34362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34363   (eval $ac_compile) 2>conftest.er1
34364   ac_status=$?
34365   grep -v '^ *+' conftest.er1 >conftest.err
34366   rm -f conftest.er1
34367   cat conftest.err >&5
34368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34369   (exit $ac_status); } &&
34370          { ac_try='test -z "$ac_c_werror_flag"
34371                          || test ! -s conftest.err'
34372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34373   (eval $ac_try) 2>&5
34374   ac_status=$?
34375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34376   (exit $ac_status); }; } &&
34377          { ac_try='test -s conftest.$ac_objext'
34378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34379   (eval $ac_try) 2>&5
34380   ac_status=$?
34381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382   (exit $ac_status); }; }; then
34383   ac_cv_type_ptrdiff_t=yes
34384 else
34385   echo "$as_me: failed program was:" >&5
34386 sed 's/^/| /' conftest.$ac_ext >&5
34387
34388 ac_cv_type_ptrdiff_t=no
34389 fi
34390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34391 fi
34392 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34393 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
34394 if test $ac_cv_type_ptrdiff_t = yes; then
34395
34396 cat >>confdefs.h <<_ACEOF
34397 #define HAVE_PTRDIFF_T 1
34398 _ACEOF
34399
34400
34401 fi
34402
34403
34404 echo "$as_me:$LINENO: checking for socklen_t" >&5
34405 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
34406 if test "${ac_cv_type_socklen_t+set}" = set; then
34407   echo $ECHO_N "(cached) $ECHO_C" >&6
34408 else
34409   cat >conftest.$ac_ext <<_ACEOF
34410 /* confdefs.h.  */
34411 _ACEOF
34412 cat confdefs.h >>conftest.$ac_ext
34413 cat >>conftest.$ac_ext <<_ACEOF
34414 /* end confdefs.h.  */
34415 $ac_includes_default
34416 #ifdef HAVE_SYS_SOCKET_H
34417 #include <sys/socket.h>
34418 #endif
34419
34420
34421 int
34422 main ()
34423 {
34424 if ((socklen_t *) 0)
34425   return 0;
34426 if (sizeof (socklen_t))
34427   return 0;
34428   ;
34429   return 0;
34430 }
34431 _ACEOF
34432 rm -f conftest.$ac_objext
34433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34434   (eval $ac_compile) 2>conftest.er1
34435   ac_status=$?
34436   grep -v '^ *+' conftest.er1 >conftest.err
34437   rm -f conftest.er1
34438   cat conftest.err >&5
34439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440   (exit $ac_status); } &&
34441          { ac_try='test -z "$ac_c_werror_flag"
34442                          || test ! -s conftest.err'
34443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34444   (eval $ac_try) 2>&5
34445   ac_status=$?
34446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34447   (exit $ac_status); }; } &&
34448          { ac_try='test -s conftest.$ac_objext'
34449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34450   (eval $ac_try) 2>&5
34451   ac_status=$?
34452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34453   (exit $ac_status); }; }; then
34454   ac_cv_type_socklen_t=yes
34455 else
34456   echo "$as_me: failed program was:" >&5
34457 sed 's/^/| /' conftest.$ac_ext >&5
34458
34459 ac_cv_type_socklen_t=no
34460 fi
34461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34462 fi
34463 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
34464 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
34465 if test $ac_cv_type_socklen_t = yes; then
34466   :
34467 else
34468
34469 cat >>confdefs.h <<_ACEOF
34470 #define socklen_t int
34471 _ACEOF
34472
34473 fi
34474
34475
34476 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34477 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34478 if test "${ac_cv_type_signal+set}" = set; then
34479   echo $ECHO_N "(cached) $ECHO_C" >&6
34480 else
34481   cat >conftest.$ac_ext <<_ACEOF
34482 /* confdefs.h.  */
34483 _ACEOF
34484 cat confdefs.h >>conftest.$ac_ext
34485 cat >>conftest.$ac_ext <<_ACEOF
34486 /* end confdefs.h.  */
34487 #include <sys/types.h>
34488 #include <signal.h>
34489 #ifdef signal
34490 # undef signal
34491 #endif
34492 #ifdef __cplusplus
34493 extern "C" void (*signal (int, void (*)(int)))(int);
34494 #else
34495 void (*signal ()) ();
34496 #endif
34497
34498 int
34499 main ()
34500 {
34501 int i;
34502   ;
34503   return 0;
34504 }
34505 _ACEOF
34506 rm -f conftest.$ac_objext
34507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34508   (eval $ac_compile) 2>conftest.er1
34509   ac_status=$?
34510   grep -v '^ *+' conftest.er1 >conftest.err
34511   rm -f conftest.er1
34512   cat conftest.err >&5
34513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34514   (exit $ac_status); } &&
34515          { ac_try='test -z "$ac_c_werror_flag"
34516                          || test ! -s conftest.err'
34517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34518   (eval $ac_try) 2>&5
34519   ac_status=$?
34520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521   (exit $ac_status); }; } &&
34522          { ac_try='test -s conftest.$ac_objext'
34523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34524   (eval $ac_try) 2>&5
34525   ac_status=$?
34526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527   (exit $ac_status); }; }; then
34528   ac_cv_type_signal=void
34529 else
34530   echo "$as_me: failed program was:" >&5
34531 sed 's/^/| /' conftest.$ac_ext >&5
34532
34533 ac_cv_type_signal=int
34534 fi
34535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34536 fi
34537 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34538 echo "${ECHO_T}$ac_cv_type_signal" >&6
34539
34540 cat >>confdefs.h <<_ACEOF
34541 #define RETSIGTYPE $ac_cv_type_signal
34542 _ACEOF
34543
34544
34545
34546 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
34547 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
34548 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
34549   echo $ECHO_N "(cached) $ECHO_C" >&6
34550 else
34551   cat >conftest.$ac_ext <<_ACEOF
34552 /* confdefs.h.  */
34553 _ACEOF
34554 cat confdefs.h >>conftest.$ac_ext
34555 cat >>conftest.$ac_ext <<_ACEOF
34556 /* end confdefs.h.  */
34557 $ac_includes_default
34558 #include <signal.h>
34559
34560
34561 int
34562 main ()
34563 {
34564 if ((sig_atomic_t *) 0)
34565   return 0;
34566 if (sizeof (sig_atomic_t))
34567   return 0;
34568   ;
34569   return 0;
34570 }
34571 _ACEOF
34572 rm -f conftest.$ac_objext
34573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34574   (eval $ac_compile) 2>conftest.er1
34575   ac_status=$?
34576   grep -v '^ *+' conftest.er1 >conftest.err
34577   rm -f conftest.er1
34578   cat conftest.err >&5
34579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580   (exit $ac_status); } &&
34581          { ac_try='test -z "$ac_c_werror_flag"
34582                          || test ! -s conftest.err'
34583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34584   (eval $ac_try) 2>&5
34585   ac_status=$?
34586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34587   (exit $ac_status); }; } &&
34588          { ac_try='test -s conftest.$ac_objext'
34589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34590   (eval $ac_try) 2>&5
34591   ac_status=$?
34592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34593   (exit $ac_status); }; }; then
34594   ac_cv_type_sig_atomic_t=yes
34595 else
34596   echo "$as_me: failed program was:" >&5
34597 sed 's/^/| /' conftest.$ac_ext >&5
34598
34599 ac_cv_type_sig_atomic_t=no
34600 fi
34601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34602 fi
34603 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
34604 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
34605 if test $ac_cv_type_sig_atomic_t = yes; then
34606   :
34607 else
34608
34609 cat >>confdefs.h <<_ACEOF
34610 #define sig_atomic_t int
34611 _ACEOF
34612
34613 fi
34614
34615
34616 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34617 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34618 if test "${ac_cv_type_uid_t+set}" = set; then
34619   echo $ECHO_N "(cached) $ECHO_C" >&6
34620 else
34621   cat >conftest.$ac_ext <<_ACEOF
34622 /* confdefs.h.  */
34623 _ACEOF
34624 cat confdefs.h >>conftest.$ac_ext
34625 cat >>conftest.$ac_ext <<_ACEOF
34626 /* end confdefs.h.  */
34627 #include <sys/types.h>
34628
34629 _ACEOF
34630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34631   $EGREP "uid_t" >/dev/null 2>&1; then
34632   ac_cv_type_uid_t=yes
34633 else
34634   ac_cv_type_uid_t=no
34635 fi
34636 rm -f conftest*
34637
34638 fi
34639 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34640 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34641 if test $ac_cv_type_uid_t = no; then
34642
34643 cat >>confdefs.h <<\_ACEOF
34644 #define uid_t int
34645 _ACEOF
34646
34647
34648 cat >>confdefs.h <<\_ACEOF
34649 #define gid_t int
34650 _ACEOF
34651
34652 fi
34653
34654
34655 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34656 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34657 if test "${ac_cv_header_time+set}" = set; then
34658   echo $ECHO_N "(cached) $ECHO_C" >&6
34659 else
34660   cat >conftest.$ac_ext <<_ACEOF
34661 /* confdefs.h.  */
34662 _ACEOF
34663 cat confdefs.h >>conftest.$ac_ext
34664 cat >>conftest.$ac_ext <<_ACEOF
34665 /* end confdefs.h.  */
34666 #include <sys/types.h>
34667 #include <sys/time.h>
34668 #include <time.h>
34669
34670 int
34671 main ()
34672 {
34673 if ((struct tm *) 0)
34674 return 0;
34675   ;
34676   return 0;
34677 }
34678 _ACEOF
34679 rm -f conftest.$ac_objext
34680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34681   (eval $ac_compile) 2>conftest.er1
34682   ac_status=$?
34683   grep -v '^ *+' conftest.er1 >conftest.err
34684   rm -f conftest.er1
34685   cat conftest.err >&5
34686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34687   (exit $ac_status); } &&
34688          { ac_try='test -z "$ac_c_werror_flag"
34689                          || test ! -s conftest.err'
34690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34691   (eval $ac_try) 2>&5
34692   ac_status=$?
34693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694   (exit $ac_status); }; } &&
34695          { ac_try='test -s conftest.$ac_objext'
34696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34697   (eval $ac_try) 2>&5
34698   ac_status=$?
34699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34700   (exit $ac_status); }; }; then
34701   ac_cv_header_time=yes
34702 else
34703   echo "$as_me: failed program was:" >&5
34704 sed 's/^/| /' conftest.$ac_ext >&5
34705
34706 ac_cv_header_time=no
34707 fi
34708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34709 fi
34710 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34711 echo "${ECHO_T}$ac_cv_header_time" >&6
34712 if test $ac_cv_header_time = yes; then
34713
34714 cat >>confdefs.h <<\_ACEOF
34715 #define TIME_WITH_SYS_TIME 1
34716 _ACEOF
34717
34718 fi
34719
34720 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34721 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34722 if test "${ac_cv_struct_tm+set}" = set; then
34723   echo $ECHO_N "(cached) $ECHO_C" >&6
34724 else
34725   cat >conftest.$ac_ext <<_ACEOF
34726 /* confdefs.h.  */
34727 _ACEOF
34728 cat confdefs.h >>conftest.$ac_ext
34729 cat >>conftest.$ac_ext <<_ACEOF
34730 /* end confdefs.h.  */
34731 #include <sys/types.h>
34732 #include <time.h>
34733
34734 int
34735 main ()
34736 {
34737 struct tm *tp; tp->tm_sec;
34738   ;
34739   return 0;
34740 }
34741 _ACEOF
34742 rm -f conftest.$ac_objext
34743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34744   (eval $ac_compile) 2>conftest.er1
34745   ac_status=$?
34746   grep -v '^ *+' conftest.er1 >conftest.err
34747   rm -f conftest.er1
34748   cat conftest.err >&5
34749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34750   (exit $ac_status); } &&
34751          { ac_try='test -z "$ac_c_werror_flag"
34752                          || test ! -s conftest.err'
34753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34754   (eval $ac_try) 2>&5
34755   ac_status=$?
34756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34757   (exit $ac_status); }; } &&
34758          { ac_try='test -s conftest.$ac_objext'
34759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34760   (eval $ac_try) 2>&5
34761   ac_status=$?
34762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763   (exit $ac_status); }; }; then
34764   ac_cv_struct_tm=time.h
34765 else
34766   echo "$as_me: failed program was:" >&5
34767 sed 's/^/| /' conftest.$ac_ext >&5
34768
34769 ac_cv_struct_tm=sys/time.h
34770 fi
34771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34772 fi
34773 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34774 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34775 if test $ac_cv_struct_tm = sys/time.h; then
34776
34777 cat >>confdefs.h <<\_ACEOF
34778 #define TM_IN_SYS_TIME 1
34779 _ACEOF
34780
34781 fi
34782
34783 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34784 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34785 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34786   echo $ECHO_N "(cached) $ECHO_C" >&6
34787 else
34788   cat >conftest.$ac_ext <<_ACEOF
34789 /* confdefs.h.  */
34790 _ACEOF
34791 cat confdefs.h >>conftest.$ac_ext
34792 cat >>conftest.$ac_ext <<_ACEOF
34793 /* end confdefs.h.  */
34794 $ac_includes_default
34795 int
34796 main ()
34797 {
34798 static struct stat ac_aggr;
34799 if (ac_aggr.st_blksize)
34800 return 0;
34801   ;
34802   return 0;
34803 }
34804 _ACEOF
34805 rm -f conftest.$ac_objext
34806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34807   (eval $ac_compile) 2>conftest.er1
34808   ac_status=$?
34809   grep -v '^ *+' conftest.er1 >conftest.err
34810   rm -f conftest.er1
34811   cat conftest.err >&5
34812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34813   (exit $ac_status); } &&
34814          { ac_try='test -z "$ac_c_werror_flag"
34815                          || test ! -s conftest.err'
34816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34817   (eval $ac_try) 2>&5
34818   ac_status=$?
34819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34820   (exit $ac_status); }; } &&
34821          { ac_try='test -s conftest.$ac_objext'
34822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34823   (eval $ac_try) 2>&5
34824   ac_status=$?
34825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826   (exit $ac_status); }; }; then
34827   ac_cv_member_struct_stat_st_blksize=yes
34828 else
34829   echo "$as_me: failed program was:" >&5
34830 sed 's/^/| /' conftest.$ac_ext >&5
34831
34832 cat >conftest.$ac_ext <<_ACEOF
34833 /* confdefs.h.  */
34834 _ACEOF
34835 cat confdefs.h >>conftest.$ac_ext
34836 cat >>conftest.$ac_ext <<_ACEOF
34837 /* end confdefs.h.  */
34838 $ac_includes_default
34839 int
34840 main ()
34841 {
34842 static struct stat ac_aggr;
34843 if (sizeof ac_aggr.st_blksize)
34844 return 0;
34845   ;
34846   return 0;
34847 }
34848 _ACEOF
34849 rm -f conftest.$ac_objext
34850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34851   (eval $ac_compile) 2>conftest.er1
34852   ac_status=$?
34853   grep -v '^ *+' conftest.er1 >conftest.err
34854   rm -f conftest.er1
34855   cat conftest.err >&5
34856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857   (exit $ac_status); } &&
34858          { ac_try='test -z "$ac_c_werror_flag"
34859                          || test ! -s conftest.err'
34860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34861   (eval $ac_try) 2>&5
34862   ac_status=$?
34863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34864   (exit $ac_status); }; } &&
34865          { ac_try='test -s conftest.$ac_objext'
34866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34867   (eval $ac_try) 2>&5
34868   ac_status=$?
34869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870   (exit $ac_status); }; }; then
34871   ac_cv_member_struct_stat_st_blksize=yes
34872 else
34873   echo "$as_me: failed program was:" >&5
34874 sed 's/^/| /' conftest.$ac_ext >&5
34875
34876 ac_cv_member_struct_stat_st_blksize=no
34877 fi
34878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34879 fi
34880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34881 fi
34882 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34883 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34884 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34885
34886 cat >>confdefs.h <<_ACEOF
34887 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34888 _ACEOF
34889
34890
34891 fi
34892
34893 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34894 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34895 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34896   echo $ECHO_N "(cached) $ECHO_C" >&6
34897 else
34898   cat >conftest.$ac_ext <<_ACEOF
34899 /* confdefs.h.  */
34900 _ACEOF
34901 cat confdefs.h >>conftest.$ac_ext
34902 cat >>conftest.$ac_ext <<_ACEOF
34903 /* end confdefs.h.  */
34904 $ac_includes_default
34905 #include <pwd.h>
34906
34907 int
34908 main ()
34909 {
34910 static struct passwd ac_aggr;
34911 if (ac_aggr.pw_gecos)
34912 return 0;
34913   ;
34914   return 0;
34915 }
34916 _ACEOF
34917 rm -f conftest.$ac_objext
34918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34919   (eval $ac_compile) 2>conftest.er1
34920   ac_status=$?
34921   grep -v '^ *+' conftest.er1 >conftest.err
34922   rm -f conftest.er1
34923   cat conftest.err >&5
34924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925   (exit $ac_status); } &&
34926          { ac_try='test -z "$ac_c_werror_flag"
34927                          || test ! -s conftest.err'
34928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34929   (eval $ac_try) 2>&5
34930   ac_status=$?
34931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932   (exit $ac_status); }; } &&
34933          { ac_try='test -s conftest.$ac_objext'
34934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34935   (eval $ac_try) 2>&5
34936   ac_status=$?
34937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938   (exit $ac_status); }; }; then
34939   ac_cv_member_struct_passwd_pw_gecos=yes
34940 else
34941   echo "$as_me: failed program was:" >&5
34942 sed 's/^/| /' conftest.$ac_ext >&5
34943
34944 cat >conftest.$ac_ext <<_ACEOF
34945 /* confdefs.h.  */
34946 _ACEOF
34947 cat confdefs.h >>conftest.$ac_ext
34948 cat >>conftest.$ac_ext <<_ACEOF
34949 /* end confdefs.h.  */
34950 $ac_includes_default
34951 #include <pwd.h>
34952
34953 int
34954 main ()
34955 {
34956 static struct passwd ac_aggr;
34957 if (sizeof ac_aggr.pw_gecos)
34958 return 0;
34959   ;
34960   return 0;
34961 }
34962 _ACEOF
34963 rm -f conftest.$ac_objext
34964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34965   (eval $ac_compile) 2>conftest.er1
34966   ac_status=$?
34967   grep -v '^ *+' conftest.er1 >conftest.err
34968   rm -f conftest.er1
34969   cat conftest.err >&5
34970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34971   (exit $ac_status); } &&
34972          { ac_try='test -z "$ac_c_werror_flag"
34973                          || test ! -s conftest.err'
34974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34975   (eval $ac_try) 2>&5
34976   ac_status=$?
34977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34978   (exit $ac_status); }; } &&
34979          { ac_try='test -s conftest.$ac_objext'
34980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34981   (eval $ac_try) 2>&5
34982   ac_status=$?
34983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984   (exit $ac_status); }; }; then
34985   ac_cv_member_struct_passwd_pw_gecos=yes
34986 else
34987   echo "$as_me: failed program was:" >&5
34988 sed 's/^/| /' conftest.$ac_ext >&5
34989
34990 ac_cv_member_struct_passwd_pw_gecos=no
34991 fi
34992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34993 fi
34994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34995 fi
34996 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34997 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34998 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34999
35000 cat >>confdefs.h <<_ACEOF
35001 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
35002 _ACEOF
35003
35004
35005 fi
35006
35007 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
35008 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
35009 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
35010   echo $ECHO_N "(cached) $ECHO_C" >&6
35011 else
35012   cat >conftest.$ac_ext <<_ACEOF
35013 /* confdefs.h.  */
35014 _ACEOF
35015 cat confdefs.h >>conftest.$ac_ext
35016 cat >>conftest.$ac_ext <<_ACEOF
35017 /* end confdefs.h.  */
35018 $ac_includes_default
35019 #include <pwd.h>
35020
35021 int
35022 main ()
35023 {
35024 static struct passwd ac_aggr;
35025 if (ac_aggr.pw_passwd)
35026 return 0;
35027   ;
35028   return 0;
35029 }
35030 _ACEOF
35031 rm -f conftest.$ac_objext
35032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35033   (eval $ac_compile) 2>conftest.er1
35034   ac_status=$?
35035   grep -v '^ *+' conftest.er1 >conftest.err
35036   rm -f conftest.er1
35037   cat conftest.err >&5
35038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35039   (exit $ac_status); } &&
35040          { ac_try='test -z "$ac_c_werror_flag"
35041                          || test ! -s conftest.err'
35042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35043   (eval $ac_try) 2>&5
35044   ac_status=$?
35045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046   (exit $ac_status); }; } &&
35047          { ac_try='test -s conftest.$ac_objext'
35048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35049   (eval $ac_try) 2>&5
35050   ac_status=$?
35051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052   (exit $ac_status); }; }; then
35053   ac_cv_member_struct_passwd_pw_passwd=yes
35054 else
35055   echo "$as_me: failed program was:" >&5
35056 sed 's/^/| /' conftest.$ac_ext >&5
35057
35058 cat >conftest.$ac_ext <<_ACEOF
35059 /* confdefs.h.  */
35060 _ACEOF
35061 cat confdefs.h >>conftest.$ac_ext
35062 cat >>conftest.$ac_ext <<_ACEOF
35063 /* end confdefs.h.  */
35064 $ac_includes_default
35065 #include <pwd.h>
35066
35067 int
35068 main ()
35069 {
35070 static struct passwd ac_aggr;
35071 if (sizeof ac_aggr.pw_passwd)
35072 return 0;
35073   ;
35074   return 0;
35075 }
35076 _ACEOF
35077 rm -f conftest.$ac_objext
35078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35079   (eval $ac_compile) 2>conftest.er1
35080   ac_status=$?
35081   grep -v '^ *+' conftest.er1 >conftest.err
35082   rm -f conftest.er1
35083   cat conftest.err >&5
35084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35085   (exit $ac_status); } &&
35086          { ac_try='test -z "$ac_c_werror_flag"
35087                          || test ! -s conftest.err'
35088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35089   (eval $ac_try) 2>&5
35090   ac_status=$?
35091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35092   (exit $ac_status); }; } &&
35093          { ac_try='test -s conftest.$ac_objext'
35094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35095   (eval $ac_try) 2>&5
35096   ac_status=$?
35097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35098   (exit $ac_status); }; }; then
35099   ac_cv_member_struct_passwd_pw_passwd=yes
35100 else
35101   echo "$as_me: failed program was:" >&5
35102 sed 's/^/| /' conftest.$ac_ext >&5
35103
35104 ac_cv_member_struct_passwd_pw_passwd=no
35105 fi
35106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35107 fi
35108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35109 fi
35110 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
35111 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
35112 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
35113
35114 cat >>confdefs.h <<_ACEOF
35115 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
35116 _ACEOF
35117
35118
35119 fi
35120
35121
35122 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
35123 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
35124 if test "${ol_cv_c_upper_lower+set}" = set; then
35125   echo $ECHO_N "(cached) $ECHO_C" >&6
35126 else
35127
35128         if test "$cross_compiling" = yes; then
35129   ol_cv_c_upper_lower=safe
35130 else
35131   cat >conftest.$ac_ext <<_ACEOF
35132 /* confdefs.h.  */
35133 _ACEOF
35134 cat confdefs.h >>conftest.$ac_ext
35135 cat >>conftest.$ac_ext <<_ACEOF
35136 /* end confdefs.h.  */
35137
35138 #include <ctype.h>
35139 main()
35140 {
35141         if ('C' == toupper('C'))
35142                 exit(0);
35143         else
35144                 exit(1);
35145 }
35146 _ACEOF
35147 rm -f conftest$ac_exeext
35148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35149   (eval $ac_link) 2>&5
35150   ac_status=$?
35151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35154   (eval $ac_try) 2>&5
35155   ac_status=$?
35156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157   (exit $ac_status); }; }; then
35158   ol_cv_c_upper_lower=no
35159 else
35160   echo "$as_me: program exited with status $ac_status" >&5
35161 echo "$as_me: failed program was:" >&5
35162 sed 's/^/| /' conftest.$ac_ext >&5
35163
35164 ( exit $ac_status )
35165 ol_cv_c_upper_lower=yes
35166 fi
35167 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35168 fi
35169 fi
35170 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
35171 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
35172 if test $ol_cv_c_upper_lower != no ; then
35173
35174 cat >>confdefs.h <<\_ACEOF
35175 #define C_UPPER_LOWER 1
35176 _ACEOF
35177
35178 fi
35179
35180 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
35181 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
35182 if test "${ac_cv_c_const+set}" = set; then
35183   echo $ECHO_N "(cached) $ECHO_C" >&6
35184 else
35185   cat >conftest.$ac_ext <<_ACEOF
35186 /* confdefs.h.  */
35187 _ACEOF
35188 cat confdefs.h >>conftest.$ac_ext
35189 cat >>conftest.$ac_ext <<_ACEOF
35190 /* end confdefs.h.  */
35191
35192 int
35193 main ()
35194 {
35195 /* FIXME: Include the comments suggested by Paul. */
35196 #ifndef __cplusplus
35197   /* Ultrix mips cc rejects this.  */
35198   typedef int charset[2];
35199   const charset x;
35200   /* SunOS 4.1.1 cc rejects this.  */
35201   char const *const *ccp;
35202   char **p;
35203   /* NEC SVR4.0.2 mips cc rejects this.  */
35204   struct point {int x, y;};
35205   static struct point const zero = {0,0};
35206   /* AIX XL C 1.02.0.0 rejects this.
35207      It does not let you subtract one const X* pointer from another in
35208      an arm of an if-expression whose if-part is not a constant
35209      expression */
35210   const char *g = "string";
35211   ccp = &g + (g ? g-g : 0);
35212   /* HPUX 7.0 cc rejects these. */
35213   ++ccp;
35214   p = (char**) ccp;
35215   ccp = (char const *const *) p;
35216   { /* SCO 3.2v4 cc rejects this.  */
35217     char *t;
35218     char const *s = 0 ? (char *) 0 : (char const *) 0;
35219
35220     *t++ = 0;
35221   }
35222   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
35223     int x[] = {25, 17};
35224     const int *foo = &x[0];
35225     ++foo;
35226   }
35227   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
35228     typedef const int *iptr;
35229     iptr p = 0;
35230     ++p;
35231   }
35232   { /* AIX XL C 1.02.0.0 rejects this saying
35233        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35234     struct s { int j; const int *ap[3]; };
35235     struct s *b; b->j = 5;
35236   }
35237   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35238     const int foo = 10;
35239   }
35240 #endif
35241
35242   ;
35243   return 0;
35244 }
35245 _ACEOF
35246 rm -f conftest.$ac_objext
35247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35248   (eval $ac_compile) 2>conftest.er1
35249   ac_status=$?
35250   grep -v '^ *+' conftest.er1 >conftest.err
35251   rm -f conftest.er1
35252   cat conftest.err >&5
35253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254   (exit $ac_status); } &&
35255          { ac_try='test -z "$ac_c_werror_flag"
35256                          || test ! -s conftest.err'
35257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35258   (eval $ac_try) 2>&5
35259   ac_status=$?
35260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35261   (exit $ac_status); }; } &&
35262          { ac_try='test -s conftest.$ac_objext'
35263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35264   (eval $ac_try) 2>&5
35265   ac_status=$?
35266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35267   (exit $ac_status); }; }; then
35268   ac_cv_c_const=yes
35269 else
35270   echo "$as_me: failed program was:" >&5
35271 sed 's/^/| /' conftest.$ac_ext >&5
35272
35273 ac_cv_c_const=no
35274 fi
35275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35276 fi
35277 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35278 echo "${ECHO_T}$ac_cv_c_const" >&6
35279 if test $ac_cv_c_const = no; then
35280
35281 cat >>confdefs.h <<\_ACEOF
35282 #define const
35283 _ACEOF
35284
35285 fi
35286
35287 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
35288 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
35289 if test "${ol_cv_c_volatile+set}" = set; then
35290   echo $ECHO_N "(cached) $ECHO_C" >&6
35291 else
35292   cat >conftest.$ac_ext <<_ACEOF
35293 /* confdefs.h.  */
35294 _ACEOF
35295 cat confdefs.h >>conftest.$ac_ext
35296 cat >>conftest.$ac_ext <<_ACEOF
35297 /* end confdefs.h.  */
35298 int x, y, z;
35299 int
35300 main ()
35301 {
35302 volatile int a; int * volatile b = x ? &y : &z;
35303       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
35304       *b = 0;
35305   ;
35306   return 0;
35307 }
35308 _ACEOF
35309 rm -f conftest.$ac_objext
35310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35311   (eval $ac_compile) 2>conftest.er1
35312   ac_status=$?
35313   grep -v '^ *+' conftest.er1 >conftest.err
35314   rm -f conftest.er1
35315   cat conftest.err >&5
35316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317   (exit $ac_status); } &&
35318          { ac_try='test -z "$ac_c_werror_flag"
35319                          || test ! -s conftest.err'
35320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35321   (eval $ac_try) 2>&5
35322   ac_status=$?
35323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35324   (exit $ac_status); }; } &&
35325          { ac_try='test -s conftest.$ac_objext'
35326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35327   (eval $ac_try) 2>&5
35328   ac_status=$?
35329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35330   (exit $ac_status); }; }; then
35331   ol_cv_c_volatile=yes
35332 else
35333   echo "$as_me: failed program was:" >&5
35334 sed 's/^/| /' conftest.$ac_ext >&5
35335
35336 ol_cv_c_volatile=no
35337 fi
35338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35339 fi
35340 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
35341 echo "${ECHO_T}$ol_cv_c_volatile" >&6
35342   if test $ol_cv_c_volatile = yes; then
35343     :
35344   else
35345
35346 cat >>confdefs.h <<\_ACEOF
35347 #define volatile
35348 _ACEOF
35349
35350   fi
35351
35352
35353 if test $cross_compiling = yes ; then
35354         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
35355 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
35356
35357 cat >>confdefs.h <<\_ACEOF
35358 #define CROSS_COMPILING 1
35359 _ACEOF
35360
35361 else
35362         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
35363 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
35364 if test "${ac_cv_c_bigendian+set}" = set; then
35365   echo $ECHO_N "(cached) $ECHO_C" >&6
35366 else
35367   # See if sys/param.h defines the BYTE_ORDER macro.
35368 cat >conftest.$ac_ext <<_ACEOF
35369 /* confdefs.h.  */
35370 _ACEOF
35371 cat confdefs.h >>conftest.$ac_ext
35372 cat >>conftest.$ac_ext <<_ACEOF
35373 /* end confdefs.h.  */
35374 #include <sys/types.h>
35375 #include <sys/param.h>
35376
35377 int
35378 main ()
35379 {
35380 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
35381  bogus endian macros
35382 #endif
35383
35384   ;
35385   return 0;
35386 }
35387 _ACEOF
35388 rm -f conftest.$ac_objext
35389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35390   (eval $ac_compile) 2>conftest.er1
35391   ac_status=$?
35392   grep -v '^ *+' conftest.er1 >conftest.err
35393   rm -f conftest.er1
35394   cat conftest.err >&5
35395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396   (exit $ac_status); } &&
35397          { ac_try='test -z "$ac_c_werror_flag"
35398                          || test ! -s conftest.err'
35399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35400   (eval $ac_try) 2>&5
35401   ac_status=$?
35402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35403   (exit $ac_status); }; } &&
35404          { ac_try='test -s conftest.$ac_objext'
35405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35406   (eval $ac_try) 2>&5
35407   ac_status=$?
35408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35409   (exit $ac_status); }; }; then
35410   # It does; now see whether it defined to BIG_ENDIAN or not.
35411 cat >conftest.$ac_ext <<_ACEOF
35412 /* confdefs.h.  */
35413 _ACEOF
35414 cat confdefs.h >>conftest.$ac_ext
35415 cat >>conftest.$ac_ext <<_ACEOF
35416 /* end confdefs.h.  */
35417 #include <sys/types.h>
35418 #include <sys/param.h>
35419
35420 int
35421 main ()
35422 {
35423 #if BYTE_ORDER != BIG_ENDIAN
35424  not big endian
35425 #endif
35426
35427   ;
35428   return 0;
35429 }
35430 _ACEOF
35431 rm -f conftest.$ac_objext
35432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35433   (eval $ac_compile) 2>conftest.er1
35434   ac_status=$?
35435   grep -v '^ *+' conftest.er1 >conftest.err
35436   rm -f conftest.er1
35437   cat conftest.err >&5
35438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35439   (exit $ac_status); } &&
35440          { ac_try='test -z "$ac_c_werror_flag"
35441                          || test ! -s conftest.err'
35442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35443   (eval $ac_try) 2>&5
35444   ac_status=$?
35445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446   (exit $ac_status); }; } &&
35447          { ac_try='test -s conftest.$ac_objext'
35448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35449   (eval $ac_try) 2>&5
35450   ac_status=$?
35451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35452   (exit $ac_status); }; }; then
35453   ac_cv_c_bigendian=yes
35454 else
35455   echo "$as_me: failed program was:" >&5
35456 sed 's/^/| /' conftest.$ac_ext >&5
35457
35458 ac_cv_c_bigendian=no
35459 fi
35460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35461 else
35462   echo "$as_me: failed program was:" >&5
35463 sed 's/^/| /' conftest.$ac_ext >&5
35464
35465 # It does not; compile a test program.
35466 if test "$cross_compiling" = yes; then
35467   # try to guess the endianness by grepping values into an object file
35468   ac_cv_c_bigendian=unknown
35469   cat >conftest.$ac_ext <<_ACEOF
35470 /* confdefs.h.  */
35471 _ACEOF
35472 cat confdefs.h >>conftest.$ac_ext
35473 cat >>conftest.$ac_ext <<_ACEOF
35474 /* end confdefs.h.  */
35475 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35476 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35477 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
35478 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35479 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35480 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
35481 int
35482 main ()
35483 {
35484  _ascii (); _ebcdic ();
35485   ;
35486   return 0;
35487 }
35488 _ACEOF
35489 rm -f conftest.$ac_objext
35490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35491   (eval $ac_compile) 2>conftest.er1
35492   ac_status=$?
35493   grep -v '^ *+' conftest.er1 >conftest.err
35494   rm -f conftest.er1
35495   cat conftest.err >&5
35496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497   (exit $ac_status); } &&
35498          { ac_try='test -z "$ac_c_werror_flag"
35499                          || test ! -s conftest.err'
35500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35501   (eval $ac_try) 2>&5
35502   ac_status=$?
35503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35504   (exit $ac_status); }; } &&
35505          { ac_try='test -s conftest.$ac_objext'
35506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35507   (eval $ac_try) 2>&5
35508   ac_status=$?
35509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35510   (exit $ac_status); }; }; then
35511   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
35512   ac_cv_c_bigendian=yes
35513 fi
35514 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35515   if test "$ac_cv_c_bigendian" = unknown; then
35516     ac_cv_c_bigendian=no
35517   else
35518     # finding both strings is unlikely to happen, but who knows?
35519     ac_cv_c_bigendian=unknown
35520   fi
35521 fi
35522 else
35523   echo "$as_me: failed program was:" >&5
35524 sed 's/^/| /' conftest.$ac_ext >&5
35525
35526 fi
35527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35528 else
35529   cat >conftest.$ac_ext <<_ACEOF
35530 /* confdefs.h.  */
35531 _ACEOF
35532 cat confdefs.h >>conftest.$ac_ext
35533 cat >>conftest.$ac_ext <<_ACEOF
35534 /* end confdefs.h.  */
35535 int
35536 main ()
35537 {
35538   /* Are we little or big endian?  From Harbison&Steele.  */
35539   union
35540   {
35541     long l;
35542     char c[sizeof (long)];
35543   } u;
35544   u.l = 1;
35545   exit (u.c[sizeof (long) - 1] == 1);
35546 }
35547 _ACEOF
35548 rm -f conftest$ac_exeext
35549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35550   (eval $ac_link) 2>&5
35551   ac_status=$?
35552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35555   (eval $ac_try) 2>&5
35556   ac_status=$?
35557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558   (exit $ac_status); }; }; then
35559   ac_cv_c_bigendian=no
35560 else
35561   echo "$as_me: program exited with status $ac_status" >&5
35562 echo "$as_me: failed program was:" >&5
35563 sed 's/^/| /' conftest.$ac_ext >&5
35564
35565 ( exit $ac_status )
35566 ac_cv_c_bigendian=yes
35567 fi
35568 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35569 fi
35570 fi
35571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35572 fi
35573 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
35574 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
35575 case $ac_cv_c_bigendian in
35576   yes)
35577
35578 cat >>confdefs.h <<\_ACEOF
35579 #define WORDS_BIGENDIAN 1
35580 _ACEOF
35581  ;;
35582   no)
35583      ;;
35584   *)
35585     { { echo "$as_me:$LINENO: error: unknown endianness
35586 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35587 echo "$as_me: error: unknown endianness
35588 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35589    { (exit 1); exit 1; }; } ;;
35590 esac
35591
35592 fi
35593
35594 echo "$as_me:$LINENO: checking for short" >&5
35595 echo $ECHO_N "checking for short... $ECHO_C" >&6
35596 if test "${ac_cv_type_short+set}" = set; then
35597   echo $ECHO_N "(cached) $ECHO_C" >&6
35598 else
35599   cat >conftest.$ac_ext <<_ACEOF
35600 /* confdefs.h.  */
35601 _ACEOF
35602 cat confdefs.h >>conftest.$ac_ext
35603 cat >>conftest.$ac_ext <<_ACEOF
35604 /* end confdefs.h.  */
35605 $ac_includes_default
35606 int
35607 main ()
35608 {
35609 if ((short *) 0)
35610   return 0;
35611 if (sizeof (short))
35612   return 0;
35613   ;
35614   return 0;
35615 }
35616 _ACEOF
35617 rm -f conftest.$ac_objext
35618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35619   (eval $ac_compile) 2>conftest.er1
35620   ac_status=$?
35621   grep -v '^ *+' conftest.er1 >conftest.err
35622   rm -f conftest.er1
35623   cat conftest.err >&5
35624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625   (exit $ac_status); } &&
35626          { ac_try='test -z "$ac_c_werror_flag"
35627                          || test ! -s conftest.err'
35628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35629   (eval $ac_try) 2>&5
35630   ac_status=$?
35631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35632   (exit $ac_status); }; } &&
35633          { ac_try='test -s conftest.$ac_objext'
35634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35635   (eval $ac_try) 2>&5
35636   ac_status=$?
35637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35638   (exit $ac_status); }; }; then
35639   ac_cv_type_short=yes
35640 else
35641   echo "$as_me: failed program was:" >&5
35642 sed 's/^/| /' conftest.$ac_ext >&5
35643
35644 ac_cv_type_short=no
35645 fi
35646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35647 fi
35648 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35649 echo "${ECHO_T}$ac_cv_type_short" >&6
35650
35651 echo "$as_me:$LINENO: checking size of short" >&5
35652 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35653 if test "${ac_cv_sizeof_short+set}" = set; then
35654   echo $ECHO_N "(cached) $ECHO_C" >&6
35655 else
35656   if test "$ac_cv_type_short" = yes; then
35657   # The cast to unsigned long works around a bug in the HP C Compiler
35658   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35659   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35660   # This bug is HP SR number 8606223364.
35661   if test "$cross_compiling" = yes; then
35662   # Depending upon the size, compute the lo and hi bounds.
35663 cat >conftest.$ac_ext <<_ACEOF
35664 /* confdefs.h.  */
35665 _ACEOF
35666 cat confdefs.h >>conftest.$ac_ext
35667 cat >>conftest.$ac_ext <<_ACEOF
35668 /* end confdefs.h.  */
35669 $ac_includes_default
35670 int
35671 main ()
35672 {
35673 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35674 test_array [0] = 0
35675
35676   ;
35677   return 0;
35678 }
35679 _ACEOF
35680 rm -f conftest.$ac_objext
35681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35682   (eval $ac_compile) 2>conftest.er1
35683   ac_status=$?
35684   grep -v '^ *+' conftest.er1 >conftest.err
35685   rm -f conftest.er1
35686   cat conftest.err >&5
35687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35688   (exit $ac_status); } &&
35689          { ac_try='test -z "$ac_c_werror_flag"
35690                          || test ! -s conftest.err'
35691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35692   (eval $ac_try) 2>&5
35693   ac_status=$?
35694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695   (exit $ac_status); }; } &&
35696          { ac_try='test -s conftest.$ac_objext'
35697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35698   (eval $ac_try) 2>&5
35699   ac_status=$?
35700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35701   (exit $ac_status); }; }; then
35702   ac_lo=0 ac_mid=0
35703   while :; do
35704     cat >conftest.$ac_ext <<_ACEOF
35705 /* confdefs.h.  */
35706 _ACEOF
35707 cat confdefs.h >>conftest.$ac_ext
35708 cat >>conftest.$ac_ext <<_ACEOF
35709 /* end confdefs.h.  */
35710 $ac_includes_default
35711 int
35712 main ()
35713 {
35714 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35715 test_array [0] = 0
35716
35717   ;
35718   return 0;
35719 }
35720 _ACEOF
35721 rm -f conftest.$ac_objext
35722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35723   (eval $ac_compile) 2>conftest.er1
35724   ac_status=$?
35725   grep -v '^ *+' conftest.er1 >conftest.err
35726   rm -f conftest.er1
35727   cat conftest.err >&5
35728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35729   (exit $ac_status); } &&
35730          { ac_try='test -z "$ac_c_werror_flag"
35731                          || test ! -s conftest.err'
35732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35733   (eval $ac_try) 2>&5
35734   ac_status=$?
35735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35736   (exit $ac_status); }; } &&
35737          { ac_try='test -s conftest.$ac_objext'
35738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35739   (eval $ac_try) 2>&5
35740   ac_status=$?
35741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35742   (exit $ac_status); }; }; then
35743   ac_hi=$ac_mid; break
35744 else
35745   echo "$as_me: failed program was:" >&5
35746 sed 's/^/| /' conftest.$ac_ext >&5
35747
35748 ac_lo=`expr $ac_mid + 1`
35749                     if test $ac_lo -le $ac_mid; then
35750                       ac_lo= ac_hi=
35751                       break
35752                     fi
35753                     ac_mid=`expr 2 '*' $ac_mid + 1`
35754 fi
35755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35756   done
35757 else
35758   echo "$as_me: failed program was:" >&5
35759 sed 's/^/| /' conftest.$ac_ext >&5
35760
35761 cat >conftest.$ac_ext <<_ACEOF
35762 /* confdefs.h.  */
35763 _ACEOF
35764 cat confdefs.h >>conftest.$ac_ext
35765 cat >>conftest.$ac_ext <<_ACEOF
35766 /* end confdefs.h.  */
35767 $ac_includes_default
35768 int
35769 main ()
35770 {
35771 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35772 test_array [0] = 0
35773
35774   ;
35775   return 0;
35776 }
35777 _ACEOF
35778 rm -f conftest.$ac_objext
35779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35780   (eval $ac_compile) 2>conftest.er1
35781   ac_status=$?
35782   grep -v '^ *+' conftest.er1 >conftest.err
35783   rm -f conftest.er1
35784   cat conftest.err >&5
35785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35786   (exit $ac_status); } &&
35787          { ac_try='test -z "$ac_c_werror_flag"
35788                          || test ! -s conftest.err'
35789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35790   (eval $ac_try) 2>&5
35791   ac_status=$?
35792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35793   (exit $ac_status); }; } &&
35794          { ac_try='test -s conftest.$ac_objext'
35795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35796   (eval $ac_try) 2>&5
35797   ac_status=$?
35798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35799   (exit $ac_status); }; }; then
35800   ac_hi=-1 ac_mid=-1
35801   while :; do
35802     cat >conftest.$ac_ext <<_ACEOF
35803 /* confdefs.h.  */
35804 _ACEOF
35805 cat confdefs.h >>conftest.$ac_ext
35806 cat >>conftest.$ac_ext <<_ACEOF
35807 /* end confdefs.h.  */
35808 $ac_includes_default
35809 int
35810 main ()
35811 {
35812 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35813 test_array [0] = 0
35814
35815   ;
35816   return 0;
35817 }
35818 _ACEOF
35819 rm -f conftest.$ac_objext
35820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35821   (eval $ac_compile) 2>conftest.er1
35822   ac_status=$?
35823   grep -v '^ *+' conftest.er1 >conftest.err
35824   rm -f conftest.er1
35825   cat conftest.err >&5
35826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35827   (exit $ac_status); } &&
35828          { ac_try='test -z "$ac_c_werror_flag"
35829                          || test ! -s conftest.err'
35830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35831   (eval $ac_try) 2>&5
35832   ac_status=$?
35833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35834   (exit $ac_status); }; } &&
35835          { ac_try='test -s conftest.$ac_objext'
35836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35837   (eval $ac_try) 2>&5
35838   ac_status=$?
35839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35840   (exit $ac_status); }; }; then
35841   ac_lo=$ac_mid; break
35842 else
35843   echo "$as_me: failed program was:" >&5
35844 sed 's/^/| /' conftest.$ac_ext >&5
35845
35846 ac_hi=`expr '(' $ac_mid ')' - 1`
35847                        if test $ac_mid -le $ac_hi; then
35848                          ac_lo= ac_hi=
35849                          break
35850                        fi
35851                        ac_mid=`expr 2 '*' $ac_mid`
35852 fi
35853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35854   done
35855 else
35856   echo "$as_me: failed program was:" >&5
35857 sed 's/^/| /' conftest.$ac_ext >&5
35858
35859 ac_lo= ac_hi=
35860 fi
35861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35862 fi
35863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35864 # Binary search between lo and hi bounds.
35865 while test "x$ac_lo" != "x$ac_hi"; do
35866   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35867   cat >conftest.$ac_ext <<_ACEOF
35868 /* confdefs.h.  */
35869 _ACEOF
35870 cat confdefs.h >>conftest.$ac_ext
35871 cat >>conftest.$ac_ext <<_ACEOF
35872 /* end confdefs.h.  */
35873 $ac_includes_default
35874 int
35875 main ()
35876 {
35877 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35878 test_array [0] = 0
35879
35880   ;
35881   return 0;
35882 }
35883 _ACEOF
35884 rm -f conftest.$ac_objext
35885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35886   (eval $ac_compile) 2>conftest.er1
35887   ac_status=$?
35888   grep -v '^ *+' conftest.er1 >conftest.err
35889   rm -f conftest.er1
35890   cat conftest.err >&5
35891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35892   (exit $ac_status); } &&
35893          { ac_try='test -z "$ac_c_werror_flag"
35894                          || test ! -s conftest.err'
35895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35896   (eval $ac_try) 2>&5
35897   ac_status=$?
35898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35899   (exit $ac_status); }; } &&
35900          { ac_try='test -s conftest.$ac_objext'
35901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35902   (eval $ac_try) 2>&5
35903   ac_status=$?
35904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35905   (exit $ac_status); }; }; then
35906   ac_hi=$ac_mid
35907 else
35908   echo "$as_me: failed program was:" >&5
35909 sed 's/^/| /' conftest.$ac_ext >&5
35910
35911 ac_lo=`expr '(' $ac_mid ')' + 1`
35912 fi
35913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35914 done
35915 case $ac_lo in
35916 ?*) ac_cv_sizeof_short=$ac_lo;;
35917 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35918 See \`config.log' for more details." >&5
35919 echo "$as_me: error: cannot compute sizeof (short), 77
35920 See \`config.log' for more details." >&2;}
35921    { (exit 1); exit 1; }; } ;;
35922 esac
35923 else
35924   if test "$cross_compiling" = yes; then
35925   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35926 See \`config.log' for more details." >&5
35927 echo "$as_me: error: cannot run test program while cross compiling
35928 See \`config.log' for more details." >&2;}
35929    { (exit 1); exit 1; }; }
35930 else
35931   cat >conftest.$ac_ext <<_ACEOF
35932 /* confdefs.h.  */
35933 _ACEOF
35934 cat confdefs.h >>conftest.$ac_ext
35935 cat >>conftest.$ac_ext <<_ACEOF
35936 /* end confdefs.h.  */
35937 $ac_includes_default
35938 long longval () { return (long) (sizeof (short)); }
35939 unsigned long ulongval () { return (long) (sizeof (short)); }
35940 #include <stdio.h>
35941 #include <stdlib.h>
35942 int
35943 main ()
35944 {
35945
35946   FILE *f = fopen ("conftest.val", "w");
35947   if (! f)
35948     exit (1);
35949   if (((long) (sizeof (short))) < 0)
35950     {
35951       long i = longval ();
35952       if (i != ((long) (sizeof (short))))
35953         exit (1);
35954       fprintf (f, "%ld\n", i);
35955     }
35956   else
35957     {
35958       unsigned long i = ulongval ();
35959       if (i != ((long) (sizeof (short))))
35960         exit (1);
35961       fprintf (f, "%lu\n", i);
35962     }
35963   exit (ferror (f) || fclose (f) != 0);
35964
35965   ;
35966   return 0;
35967 }
35968 _ACEOF
35969 rm -f conftest$ac_exeext
35970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35971   (eval $ac_link) 2>&5
35972   ac_status=$?
35973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35976   (eval $ac_try) 2>&5
35977   ac_status=$?
35978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979   (exit $ac_status); }; }; then
35980   ac_cv_sizeof_short=`cat conftest.val`
35981 else
35982   echo "$as_me: program exited with status $ac_status" >&5
35983 echo "$as_me: failed program was:" >&5
35984 sed 's/^/| /' conftest.$ac_ext >&5
35985
35986 ( exit $ac_status )
35987 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35988 See \`config.log' for more details." >&5
35989 echo "$as_me: error: cannot compute sizeof (short), 77
35990 See \`config.log' for more details." >&2;}
35991    { (exit 1); exit 1; }; }
35992 fi
35993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35994 fi
35995 fi
35996 rm -f conftest.val
35997 else
35998   ac_cv_sizeof_short=0
35999 fi
36000 fi
36001 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
36002 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
36003 cat >>confdefs.h <<_ACEOF
36004 #define SIZEOF_SHORT $ac_cv_sizeof_short
36005 _ACEOF
36006
36007
36008 echo "$as_me:$LINENO: checking for int" >&5
36009 echo $ECHO_N "checking for int... $ECHO_C" >&6
36010 if test "${ac_cv_type_int+set}" = set; then
36011   echo $ECHO_N "(cached) $ECHO_C" >&6
36012 else
36013   cat >conftest.$ac_ext <<_ACEOF
36014 /* confdefs.h.  */
36015 _ACEOF
36016 cat confdefs.h >>conftest.$ac_ext
36017 cat >>conftest.$ac_ext <<_ACEOF
36018 /* end confdefs.h.  */
36019 $ac_includes_default
36020 int
36021 main ()
36022 {
36023 if ((int *) 0)
36024   return 0;
36025 if (sizeof (int))
36026   return 0;
36027   ;
36028   return 0;
36029 }
36030 _ACEOF
36031 rm -f conftest.$ac_objext
36032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36033   (eval $ac_compile) 2>conftest.er1
36034   ac_status=$?
36035   grep -v '^ *+' conftest.er1 >conftest.err
36036   rm -f conftest.er1
36037   cat conftest.err >&5
36038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36039   (exit $ac_status); } &&
36040          { ac_try='test -z "$ac_c_werror_flag"
36041                          || test ! -s conftest.err'
36042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36043   (eval $ac_try) 2>&5
36044   ac_status=$?
36045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36046   (exit $ac_status); }; } &&
36047          { ac_try='test -s conftest.$ac_objext'
36048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36049   (eval $ac_try) 2>&5
36050   ac_status=$?
36051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36052   (exit $ac_status); }; }; then
36053   ac_cv_type_int=yes
36054 else
36055   echo "$as_me: failed program was:" >&5
36056 sed 's/^/| /' conftest.$ac_ext >&5
36057
36058 ac_cv_type_int=no
36059 fi
36060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36061 fi
36062 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
36063 echo "${ECHO_T}$ac_cv_type_int" >&6
36064
36065 echo "$as_me:$LINENO: checking size of int" >&5
36066 echo $ECHO_N "checking size of int... $ECHO_C" >&6
36067 if test "${ac_cv_sizeof_int+set}" = set; then
36068   echo $ECHO_N "(cached) $ECHO_C" >&6
36069 else
36070   if test "$ac_cv_type_int" = yes; then
36071   # The cast to unsigned long works around a bug in the HP C Compiler
36072   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36073   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36074   # This bug is HP SR number 8606223364.
36075   if test "$cross_compiling" = yes; then
36076   # Depending upon the size, compute the lo and hi bounds.
36077 cat >conftest.$ac_ext <<_ACEOF
36078 /* confdefs.h.  */
36079 _ACEOF
36080 cat confdefs.h >>conftest.$ac_ext
36081 cat >>conftest.$ac_ext <<_ACEOF
36082 /* end confdefs.h.  */
36083 $ac_includes_default
36084 int
36085 main ()
36086 {
36087 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
36088 test_array [0] = 0
36089
36090   ;
36091   return 0;
36092 }
36093 _ACEOF
36094 rm -f conftest.$ac_objext
36095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36096   (eval $ac_compile) 2>conftest.er1
36097   ac_status=$?
36098   grep -v '^ *+' conftest.er1 >conftest.err
36099   rm -f conftest.er1
36100   cat conftest.err >&5
36101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36102   (exit $ac_status); } &&
36103          { ac_try='test -z "$ac_c_werror_flag"
36104                          || test ! -s conftest.err'
36105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36106   (eval $ac_try) 2>&5
36107   ac_status=$?
36108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36109   (exit $ac_status); }; } &&
36110          { ac_try='test -s conftest.$ac_objext'
36111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36112   (eval $ac_try) 2>&5
36113   ac_status=$?
36114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36115   (exit $ac_status); }; }; then
36116   ac_lo=0 ac_mid=0
36117   while :; do
36118     cat >conftest.$ac_ext <<_ACEOF
36119 /* confdefs.h.  */
36120 _ACEOF
36121 cat confdefs.h >>conftest.$ac_ext
36122 cat >>conftest.$ac_ext <<_ACEOF
36123 /* end confdefs.h.  */
36124 $ac_includes_default
36125 int
36126 main ()
36127 {
36128 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36129 test_array [0] = 0
36130
36131   ;
36132   return 0;
36133 }
36134 _ACEOF
36135 rm -f conftest.$ac_objext
36136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36137   (eval $ac_compile) 2>conftest.er1
36138   ac_status=$?
36139   grep -v '^ *+' conftest.er1 >conftest.err
36140   rm -f conftest.er1
36141   cat conftest.err >&5
36142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36143   (exit $ac_status); } &&
36144          { ac_try='test -z "$ac_c_werror_flag"
36145                          || test ! -s conftest.err'
36146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36147   (eval $ac_try) 2>&5
36148   ac_status=$?
36149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150   (exit $ac_status); }; } &&
36151          { ac_try='test -s conftest.$ac_objext'
36152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36153   (eval $ac_try) 2>&5
36154   ac_status=$?
36155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36156   (exit $ac_status); }; }; then
36157   ac_hi=$ac_mid; break
36158 else
36159   echo "$as_me: failed program was:" >&5
36160 sed 's/^/| /' conftest.$ac_ext >&5
36161
36162 ac_lo=`expr $ac_mid + 1`
36163                     if test $ac_lo -le $ac_mid; then
36164                       ac_lo= ac_hi=
36165                       break
36166                     fi
36167                     ac_mid=`expr 2 '*' $ac_mid + 1`
36168 fi
36169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36170   done
36171 else
36172   echo "$as_me: failed program was:" >&5
36173 sed 's/^/| /' conftest.$ac_ext >&5
36174
36175 cat >conftest.$ac_ext <<_ACEOF
36176 /* confdefs.h.  */
36177 _ACEOF
36178 cat confdefs.h >>conftest.$ac_ext
36179 cat >>conftest.$ac_ext <<_ACEOF
36180 /* end confdefs.h.  */
36181 $ac_includes_default
36182 int
36183 main ()
36184 {
36185 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
36186 test_array [0] = 0
36187
36188   ;
36189   return 0;
36190 }
36191 _ACEOF
36192 rm -f conftest.$ac_objext
36193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36194   (eval $ac_compile) 2>conftest.er1
36195   ac_status=$?
36196   grep -v '^ *+' conftest.er1 >conftest.err
36197   rm -f conftest.er1
36198   cat conftest.err >&5
36199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36200   (exit $ac_status); } &&
36201          { ac_try='test -z "$ac_c_werror_flag"
36202                          || test ! -s conftest.err'
36203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36204   (eval $ac_try) 2>&5
36205   ac_status=$?
36206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36207   (exit $ac_status); }; } &&
36208          { ac_try='test -s conftest.$ac_objext'
36209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36210   (eval $ac_try) 2>&5
36211   ac_status=$?
36212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36213   (exit $ac_status); }; }; then
36214   ac_hi=-1 ac_mid=-1
36215   while :; do
36216     cat >conftest.$ac_ext <<_ACEOF
36217 /* confdefs.h.  */
36218 _ACEOF
36219 cat confdefs.h >>conftest.$ac_ext
36220 cat >>conftest.$ac_ext <<_ACEOF
36221 /* end confdefs.h.  */
36222 $ac_includes_default
36223 int
36224 main ()
36225 {
36226 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
36227 test_array [0] = 0
36228
36229   ;
36230   return 0;
36231 }
36232 _ACEOF
36233 rm -f conftest.$ac_objext
36234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36235   (eval $ac_compile) 2>conftest.er1
36236   ac_status=$?
36237   grep -v '^ *+' conftest.er1 >conftest.err
36238   rm -f conftest.er1
36239   cat conftest.err >&5
36240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241   (exit $ac_status); } &&
36242          { ac_try='test -z "$ac_c_werror_flag"
36243                          || test ! -s conftest.err'
36244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36245   (eval $ac_try) 2>&5
36246   ac_status=$?
36247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36248   (exit $ac_status); }; } &&
36249          { ac_try='test -s conftest.$ac_objext'
36250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36251   (eval $ac_try) 2>&5
36252   ac_status=$?
36253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36254   (exit $ac_status); }; }; then
36255   ac_lo=$ac_mid; break
36256 else
36257   echo "$as_me: failed program was:" >&5
36258 sed 's/^/| /' conftest.$ac_ext >&5
36259
36260 ac_hi=`expr '(' $ac_mid ')' - 1`
36261                        if test $ac_mid -le $ac_hi; then
36262                          ac_lo= ac_hi=
36263                          break
36264                        fi
36265                        ac_mid=`expr 2 '*' $ac_mid`
36266 fi
36267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36268   done
36269 else
36270   echo "$as_me: failed program was:" >&5
36271 sed 's/^/| /' conftest.$ac_ext >&5
36272
36273 ac_lo= ac_hi=
36274 fi
36275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36276 fi
36277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36278 # Binary search between lo and hi bounds.
36279 while test "x$ac_lo" != "x$ac_hi"; do
36280   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36281   cat >conftest.$ac_ext <<_ACEOF
36282 /* confdefs.h.  */
36283 _ACEOF
36284 cat confdefs.h >>conftest.$ac_ext
36285 cat >>conftest.$ac_ext <<_ACEOF
36286 /* end confdefs.h.  */
36287 $ac_includes_default
36288 int
36289 main ()
36290 {
36291 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36292 test_array [0] = 0
36293
36294   ;
36295   return 0;
36296 }
36297 _ACEOF
36298 rm -f conftest.$ac_objext
36299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36300   (eval $ac_compile) 2>conftest.er1
36301   ac_status=$?
36302   grep -v '^ *+' conftest.er1 >conftest.err
36303   rm -f conftest.er1
36304   cat conftest.err >&5
36305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36306   (exit $ac_status); } &&
36307          { ac_try='test -z "$ac_c_werror_flag"
36308                          || test ! -s conftest.err'
36309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36310   (eval $ac_try) 2>&5
36311   ac_status=$?
36312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36313   (exit $ac_status); }; } &&
36314          { ac_try='test -s conftest.$ac_objext'
36315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36316   (eval $ac_try) 2>&5
36317   ac_status=$?
36318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36319   (exit $ac_status); }; }; then
36320   ac_hi=$ac_mid
36321 else
36322   echo "$as_me: failed program was:" >&5
36323 sed 's/^/| /' conftest.$ac_ext >&5
36324
36325 ac_lo=`expr '(' $ac_mid ')' + 1`
36326 fi
36327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36328 done
36329 case $ac_lo in
36330 ?*) ac_cv_sizeof_int=$ac_lo;;
36331 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36332 See \`config.log' for more details." >&5
36333 echo "$as_me: error: cannot compute sizeof (int), 77
36334 See \`config.log' for more details." >&2;}
36335    { (exit 1); exit 1; }; } ;;
36336 esac
36337 else
36338   if test "$cross_compiling" = yes; then
36339   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36340 See \`config.log' for more details." >&5
36341 echo "$as_me: error: cannot run test program while cross compiling
36342 See \`config.log' for more details." >&2;}
36343    { (exit 1); exit 1; }; }
36344 else
36345   cat >conftest.$ac_ext <<_ACEOF
36346 /* confdefs.h.  */
36347 _ACEOF
36348 cat confdefs.h >>conftest.$ac_ext
36349 cat >>conftest.$ac_ext <<_ACEOF
36350 /* end confdefs.h.  */
36351 $ac_includes_default
36352 long longval () { return (long) (sizeof (int)); }
36353 unsigned long ulongval () { return (long) (sizeof (int)); }
36354 #include <stdio.h>
36355 #include <stdlib.h>
36356 int
36357 main ()
36358 {
36359
36360   FILE *f = fopen ("conftest.val", "w");
36361   if (! f)
36362     exit (1);
36363   if (((long) (sizeof (int))) < 0)
36364     {
36365       long i = longval ();
36366       if (i != ((long) (sizeof (int))))
36367         exit (1);
36368       fprintf (f, "%ld\n", i);
36369     }
36370   else
36371     {
36372       unsigned long i = ulongval ();
36373       if (i != ((long) (sizeof (int))))
36374         exit (1);
36375       fprintf (f, "%lu\n", i);
36376     }
36377   exit (ferror (f) || fclose (f) != 0);
36378
36379   ;
36380   return 0;
36381 }
36382 _ACEOF
36383 rm -f conftest$ac_exeext
36384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36385   (eval $ac_link) 2>&5
36386   ac_status=$?
36387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36390   (eval $ac_try) 2>&5
36391   ac_status=$?
36392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393   (exit $ac_status); }; }; then
36394   ac_cv_sizeof_int=`cat conftest.val`
36395 else
36396   echo "$as_me: program exited with status $ac_status" >&5
36397 echo "$as_me: failed program was:" >&5
36398 sed 's/^/| /' conftest.$ac_ext >&5
36399
36400 ( exit $ac_status )
36401 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36402 See \`config.log' for more details." >&5
36403 echo "$as_me: error: cannot compute sizeof (int), 77
36404 See \`config.log' for more details." >&2;}
36405    { (exit 1); exit 1; }; }
36406 fi
36407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36408 fi
36409 fi
36410 rm -f conftest.val
36411 else
36412   ac_cv_sizeof_int=0
36413 fi
36414 fi
36415 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36416 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
36417 cat >>confdefs.h <<_ACEOF
36418 #define SIZEOF_INT $ac_cv_sizeof_int
36419 _ACEOF
36420
36421
36422 echo "$as_me:$LINENO: checking for long" >&5
36423 echo $ECHO_N "checking for long... $ECHO_C" >&6
36424 if test "${ac_cv_type_long+set}" = set; then
36425   echo $ECHO_N "(cached) $ECHO_C" >&6
36426 else
36427   cat >conftest.$ac_ext <<_ACEOF
36428 /* confdefs.h.  */
36429 _ACEOF
36430 cat confdefs.h >>conftest.$ac_ext
36431 cat >>conftest.$ac_ext <<_ACEOF
36432 /* end confdefs.h.  */
36433 $ac_includes_default
36434 int
36435 main ()
36436 {
36437 if ((long *) 0)
36438   return 0;
36439 if (sizeof (long))
36440   return 0;
36441   ;
36442   return 0;
36443 }
36444 _ACEOF
36445 rm -f conftest.$ac_objext
36446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36447   (eval $ac_compile) 2>conftest.er1
36448   ac_status=$?
36449   grep -v '^ *+' conftest.er1 >conftest.err
36450   rm -f conftest.er1
36451   cat conftest.err >&5
36452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36453   (exit $ac_status); } &&
36454          { ac_try='test -z "$ac_c_werror_flag"
36455                          || test ! -s conftest.err'
36456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36457   (eval $ac_try) 2>&5
36458   ac_status=$?
36459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36460   (exit $ac_status); }; } &&
36461          { ac_try='test -s conftest.$ac_objext'
36462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36463   (eval $ac_try) 2>&5
36464   ac_status=$?
36465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36466   (exit $ac_status); }; }; then
36467   ac_cv_type_long=yes
36468 else
36469   echo "$as_me: failed program was:" >&5
36470 sed 's/^/| /' conftest.$ac_ext >&5
36471
36472 ac_cv_type_long=no
36473 fi
36474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36475 fi
36476 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36477 echo "${ECHO_T}$ac_cv_type_long" >&6
36478
36479 echo "$as_me:$LINENO: checking size of long" >&5
36480 echo $ECHO_N "checking size of long... $ECHO_C" >&6
36481 if test "${ac_cv_sizeof_long+set}" = set; then
36482   echo $ECHO_N "(cached) $ECHO_C" >&6
36483 else
36484   if test "$ac_cv_type_long" = yes; then
36485   # The cast to unsigned long works around a bug in the HP C Compiler
36486   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36487   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36488   # This bug is HP SR number 8606223364.
36489   if test "$cross_compiling" = yes; then
36490   # Depending upon the size, compute the lo and hi bounds.
36491 cat >conftest.$ac_ext <<_ACEOF
36492 /* confdefs.h.  */
36493 _ACEOF
36494 cat confdefs.h >>conftest.$ac_ext
36495 cat >>conftest.$ac_ext <<_ACEOF
36496 /* end confdefs.h.  */
36497 $ac_includes_default
36498 int
36499 main ()
36500 {
36501 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
36502 test_array [0] = 0
36503
36504   ;
36505   return 0;
36506 }
36507 _ACEOF
36508 rm -f conftest.$ac_objext
36509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36510   (eval $ac_compile) 2>conftest.er1
36511   ac_status=$?
36512   grep -v '^ *+' conftest.er1 >conftest.err
36513   rm -f conftest.er1
36514   cat conftest.err >&5
36515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36516   (exit $ac_status); } &&
36517          { ac_try='test -z "$ac_c_werror_flag"
36518                          || test ! -s conftest.err'
36519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36520   (eval $ac_try) 2>&5
36521   ac_status=$?
36522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36523   (exit $ac_status); }; } &&
36524          { ac_try='test -s conftest.$ac_objext'
36525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36526   (eval $ac_try) 2>&5
36527   ac_status=$?
36528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36529   (exit $ac_status); }; }; then
36530   ac_lo=0 ac_mid=0
36531   while :; do
36532     cat >conftest.$ac_ext <<_ACEOF
36533 /* confdefs.h.  */
36534 _ACEOF
36535 cat confdefs.h >>conftest.$ac_ext
36536 cat >>conftest.$ac_ext <<_ACEOF
36537 /* end confdefs.h.  */
36538 $ac_includes_default
36539 int
36540 main ()
36541 {
36542 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36543 test_array [0] = 0
36544
36545   ;
36546   return 0;
36547 }
36548 _ACEOF
36549 rm -f conftest.$ac_objext
36550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36551   (eval $ac_compile) 2>conftest.er1
36552   ac_status=$?
36553   grep -v '^ *+' conftest.er1 >conftest.err
36554   rm -f conftest.er1
36555   cat conftest.err >&5
36556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557   (exit $ac_status); } &&
36558          { ac_try='test -z "$ac_c_werror_flag"
36559                          || test ! -s conftest.err'
36560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36561   (eval $ac_try) 2>&5
36562   ac_status=$?
36563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36564   (exit $ac_status); }; } &&
36565          { ac_try='test -s conftest.$ac_objext'
36566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36567   (eval $ac_try) 2>&5
36568   ac_status=$?
36569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36570   (exit $ac_status); }; }; then
36571   ac_hi=$ac_mid; break
36572 else
36573   echo "$as_me: failed program was:" >&5
36574 sed 's/^/| /' conftest.$ac_ext >&5
36575
36576 ac_lo=`expr $ac_mid + 1`
36577                     if test $ac_lo -le $ac_mid; then
36578                       ac_lo= ac_hi=
36579                       break
36580                     fi
36581                     ac_mid=`expr 2 '*' $ac_mid + 1`
36582 fi
36583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36584   done
36585 else
36586   echo "$as_me: failed program was:" >&5
36587 sed 's/^/| /' conftest.$ac_ext >&5
36588
36589 cat >conftest.$ac_ext <<_ACEOF
36590 /* confdefs.h.  */
36591 _ACEOF
36592 cat confdefs.h >>conftest.$ac_ext
36593 cat >>conftest.$ac_ext <<_ACEOF
36594 /* end confdefs.h.  */
36595 $ac_includes_default
36596 int
36597 main ()
36598 {
36599 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
36600 test_array [0] = 0
36601
36602   ;
36603   return 0;
36604 }
36605 _ACEOF
36606 rm -f conftest.$ac_objext
36607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36608   (eval $ac_compile) 2>conftest.er1
36609   ac_status=$?
36610   grep -v '^ *+' conftest.er1 >conftest.err
36611   rm -f conftest.er1
36612   cat conftest.err >&5
36613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36614   (exit $ac_status); } &&
36615          { ac_try='test -z "$ac_c_werror_flag"
36616                          || test ! -s conftest.err'
36617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36618   (eval $ac_try) 2>&5
36619   ac_status=$?
36620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36621   (exit $ac_status); }; } &&
36622          { ac_try='test -s conftest.$ac_objext'
36623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36624   (eval $ac_try) 2>&5
36625   ac_status=$?
36626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36627   (exit $ac_status); }; }; then
36628   ac_hi=-1 ac_mid=-1
36629   while :; do
36630     cat >conftest.$ac_ext <<_ACEOF
36631 /* confdefs.h.  */
36632 _ACEOF
36633 cat confdefs.h >>conftest.$ac_ext
36634 cat >>conftest.$ac_ext <<_ACEOF
36635 /* end confdefs.h.  */
36636 $ac_includes_default
36637 int
36638 main ()
36639 {
36640 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36641 test_array [0] = 0
36642
36643   ;
36644   return 0;
36645 }
36646 _ACEOF
36647 rm -f conftest.$ac_objext
36648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36649   (eval $ac_compile) 2>conftest.er1
36650   ac_status=$?
36651   grep -v '^ *+' conftest.er1 >conftest.err
36652   rm -f conftest.er1
36653   cat conftest.err >&5
36654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36655   (exit $ac_status); } &&
36656          { ac_try='test -z "$ac_c_werror_flag"
36657                          || test ! -s conftest.err'
36658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36659   (eval $ac_try) 2>&5
36660   ac_status=$?
36661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662   (exit $ac_status); }; } &&
36663          { ac_try='test -s conftest.$ac_objext'
36664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36665   (eval $ac_try) 2>&5
36666   ac_status=$?
36667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36668   (exit $ac_status); }; }; then
36669   ac_lo=$ac_mid; break
36670 else
36671   echo "$as_me: failed program was:" >&5
36672 sed 's/^/| /' conftest.$ac_ext >&5
36673
36674 ac_hi=`expr '(' $ac_mid ')' - 1`
36675                        if test $ac_mid -le $ac_hi; then
36676                          ac_lo= ac_hi=
36677                          break
36678                        fi
36679                        ac_mid=`expr 2 '*' $ac_mid`
36680 fi
36681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36682   done
36683 else
36684   echo "$as_me: failed program was:" >&5
36685 sed 's/^/| /' conftest.$ac_ext >&5
36686
36687 ac_lo= ac_hi=
36688 fi
36689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36690 fi
36691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36692 # Binary search between lo and hi bounds.
36693 while test "x$ac_lo" != "x$ac_hi"; do
36694   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36695   cat >conftest.$ac_ext <<_ACEOF
36696 /* confdefs.h.  */
36697 _ACEOF
36698 cat confdefs.h >>conftest.$ac_ext
36699 cat >>conftest.$ac_ext <<_ACEOF
36700 /* end confdefs.h.  */
36701 $ac_includes_default
36702 int
36703 main ()
36704 {
36705 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36706 test_array [0] = 0
36707
36708   ;
36709   return 0;
36710 }
36711 _ACEOF
36712 rm -f conftest.$ac_objext
36713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36714   (eval $ac_compile) 2>conftest.er1
36715   ac_status=$?
36716   grep -v '^ *+' conftest.er1 >conftest.err
36717   rm -f conftest.er1
36718   cat conftest.err >&5
36719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36720   (exit $ac_status); } &&
36721          { ac_try='test -z "$ac_c_werror_flag"
36722                          || test ! -s conftest.err'
36723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36724   (eval $ac_try) 2>&5
36725   ac_status=$?
36726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727   (exit $ac_status); }; } &&
36728          { ac_try='test -s conftest.$ac_objext'
36729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36730   (eval $ac_try) 2>&5
36731   ac_status=$?
36732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36733   (exit $ac_status); }; }; then
36734   ac_hi=$ac_mid
36735 else
36736   echo "$as_me: failed program was:" >&5
36737 sed 's/^/| /' conftest.$ac_ext >&5
36738
36739 ac_lo=`expr '(' $ac_mid ')' + 1`
36740 fi
36741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36742 done
36743 case $ac_lo in
36744 ?*) ac_cv_sizeof_long=$ac_lo;;
36745 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36746 See \`config.log' for more details." >&5
36747 echo "$as_me: error: cannot compute sizeof (long), 77
36748 See \`config.log' for more details." >&2;}
36749    { (exit 1); exit 1; }; } ;;
36750 esac
36751 else
36752   if test "$cross_compiling" = yes; then
36753   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36754 See \`config.log' for more details." >&5
36755 echo "$as_me: error: cannot run test program while cross compiling
36756 See \`config.log' for more details." >&2;}
36757    { (exit 1); exit 1; }; }
36758 else
36759   cat >conftest.$ac_ext <<_ACEOF
36760 /* confdefs.h.  */
36761 _ACEOF
36762 cat confdefs.h >>conftest.$ac_ext
36763 cat >>conftest.$ac_ext <<_ACEOF
36764 /* end confdefs.h.  */
36765 $ac_includes_default
36766 long longval () { return (long) (sizeof (long)); }
36767 unsigned long ulongval () { return (long) (sizeof (long)); }
36768 #include <stdio.h>
36769 #include <stdlib.h>
36770 int
36771 main ()
36772 {
36773
36774   FILE *f = fopen ("conftest.val", "w");
36775   if (! f)
36776     exit (1);
36777   if (((long) (sizeof (long))) < 0)
36778     {
36779       long i = longval ();
36780       if (i != ((long) (sizeof (long))))
36781         exit (1);
36782       fprintf (f, "%ld\n", i);
36783     }
36784   else
36785     {
36786       unsigned long i = ulongval ();
36787       if (i != ((long) (sizeof (long))))
36788         exit (1);
36789       fprintf (f, "%lu\n", i);
36790     }
36791   exit (ferror (f) || fclose (f) != 0);
36792
36793   ;
36794   return 0;
36795 }
36796 _ACEOF
36797 rm -f conftest$ac_exeext
36798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36799   (eval $ac_link) 2>&5
36800   ac_status=$?
36801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36804   (eval $ac_try) 2>&5
36805   ac_status=$?
36806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36807   (exit $ac_status); }; }; then
36808   ac_cv_sizeof_long=`cat conftest.val`
36809 else
36810   echo "$as_me: program exited with status $ac_status" >&5
36811 echo "$as_me: failed program was:" >&5
36812 sed 's/^/| /' conftest.$ac_ext >&5
36813
36814 ( exit $ac_status )
36815 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36816 See \`config.log' for more details." >&5
36817 echo "$as_me: error: cannot compute sizeof (long), 77
36818 See \`config.log' for more details." >&2;}
36819    { (exit 1); exit 1; }; }
36820 fi
36821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36822 fi
36823 fi
36824 rm -f conftest.val
36825 else
36826   ac_cv_sizeof_long=0
36827 fi
36828 fi
36829 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36830 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36831 cat >>confdefs.h <<_ACEOF
36832 #define SIZEOF_LONG $ac_cv_sizeof_long
36833 _ACEOF
36834
36835
36836 echo "$as_me:$LINENO: checking for long long" >&5
36837 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36838 if test "${ac_cv_type_long_long+set}" = set; then
36839   echo $ECHO_N "(cached) $ECHO_C" >&6
36840 else
36841   cat >conftest.$ac_ext <<_ACEOF
36842 /* confdefs.h.  */
36843 _ACEOF
36844 cat confdefs.h >>conftest.$ac_ext
36845 cat >>conftest.$ac_ext <<_ACEOF
36846 /* end confdefs.h.  */
36847 $ac_includes_default
36848 int
36849 main ()
36850 {
36851 if ((long long *) 0)
36852   return 0;
36853 if (sizeof (long long))
36854   return 0;
36855   ;
36856   return 0;
36857 }
36858 _ACEOF
36859 rm -f conftest.$ac_objext
36860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36861   (eval $ac_compile) 2>conftest.er1
36862   ac_status=$?
36863   grep -v '^ *+' conftest.er1 >conftest.err
36864   rm -f conftest.er1
36865   cat conftest.err >&5
36866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36867   (exit $ac_status); } &&
36868          { ac_try='test -z "$ac_c_werror_flag"
36869                          || test ! -s conftest.err'
36870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36871   (eval $ac_try) 2>&5
36872   ac_status=$?
36873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874   (exit $ac_status); }; } &&
36875          { ac_try='test -s conftest.$ac_objext'
36876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36877   (eval $ac_try) 2>&5
36878   ac_status=$?
36879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36880   (exit $ac_status); }; }; then
36881   ac_cv_type_long_long=yes
36882 else
36883   echo "$as_me: failed program was:" >&5
36884 sed 's/^/| /' conftest.$ac_ext >&5
36885
36886 ac_cv_type_long_long=no
36887 fi
36888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36889 fi
36890 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36891 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36892
36893 echo "$as_me:$LINENO: checking size of long long" >&5
36894 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36895 if test "${ac_cv_sizeof_long_long+set}" = set; then
36896   echo $ECHO_N "(cached) $ECHO_C" >&6
36897 else
36898   if test "$ac_cv_type_long_long" = yes; then
36899   # The cast to unsigned long works around a bug in the HP C Compiler
36900   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36901   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36902   # This bug is HP SR number 8606223364.
36903   if test "$cross_compiling" = yes; then
36904   # Depending upon the size, compute the lo and hi bounds.
36905 cat >conftest.$ac_ext <<_ACEOF
36906 /* confdefs.h.  */
36907 _ACEOF
36908 cat confdefs.h >>conftest.$ac_ext
36909 cat >>conftest.$ac_ext <<_ACEOF
36910 /* end confdefs.h.  */
36911 $ac_includes_default
36912 int
36913 main ()
36914 {
36915 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36916 test_array [0] = 0
36917
36918   ;
36919   return 0;
36920 }
36921 _ACEOF
36922 rm -f conftest.$ac_objext
36923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36924   (eval $ac_compile) 2>conftest.er1
36925   ac_status=$?
36926   grep -v '^ *+' conftest.er1 >conftest.err
36927   rm -f conftest.er1
36928   cat conftest.err >&5
36929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36930   (exit $ac_status); } &&
36931          { ac_try='test -z "$ac_c_werror_flag"
36932                          || test ! -s conftest.err'
36933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36934   (eval $ac_try) 2>&5
36935   ac_status=$?
36936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36937   (exit $ac_status); }; } &&
36938          { ac_try='test -s conftest.$ac_objext'
36939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36940   (eval $ac_try) 2>&5
36941   ac_status=$?
36942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943   (exit $ac_status); }; }; then
36944   ac_lo=0 ac_mid=0
36945   while :; do
36946     cat >conftest.$ac_ext <<_ACEOF
36947 /* confdefs.h.  */
36948 _ACEOF
36949 cat confdefs.h >>conftest.$ac_ext
36950 cat >>conftest.$ac_ext <<_ACEOF
36951 /* end confdefs.h.  */
36952 $ac_includes_default
36953 int
36954 main ()
36955 {
36956 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36957 test_array [0] = 0
36958
36959   ;
36960   return 0;
36961 }
36962 _ACEOF
36963 rm -f conftest.$ac_objext
36964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36965   (eval $ac_compile) 2>conftest.er1
36966   ac_status=$?
36967   grep -v '^ *+' conftest.er1 >conftest.err
36968   rm -f conftest.er1
36969   cat conftest.err >&5
36970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36971   (exit $ac_status); } &&
36972          { ac_try='test -z "$ac_c_werror_flag"
36973                          || test ! -s conftest.err'
36974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36975   (eval $ac_try) 2>&5
36976   ac_status=$?
36977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36978   (exit $ac_status); }; } &&
36979          { ac_try='test -s conftest.$ac_objext'
36980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36981   (eval $ac_try) 2>&5
36982   ac_status=$?
36983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36984   (exit $ac_status); }; }; then
36985   ac_hi=$ac_mid; break
36986 else
36987   echo "$as_me: failed program was:" >&5
36988 sed 's/^/| /' conftest.$ac_ext >&5
36989
36990 ac_lo=`expr $ac_mid + 1`
36991                     if test $ac_lo -le $ac_mid; then
36992                       ac_lo= ac_hi=
36993                       break
36994                     fi
36995                     ac_mid=`expr 2 '*' $ac_mid + 1`
36996 fi
36997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36998   done
36999 else
37000   echo "$as_me: failed program was:" >&5
37001 sed 's/^/| /' conftest.$ac_ext >&5
37002
37003 cat >conftest.$ac_ext <<_ACEOF
37004 /* confdefs.h.  */
37005 _ACEOF
37006 cat confdefs.h >>conftest.$ac_ext
37007 cat >>conftest.$ac_ext <<_ACEOF
37008 /* end confdefs.h.  */
37009 $ac_includes_default
37010 int
37011 main ()
37012 {
37013 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
37014 test_array [0] = 0
37015
37016   ;
37017   return 0;
37018 }
37019 _ACEOF
37020 rm -f conftest.$ac_objext
37021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37022   (eval $ac_compile) 2>conftest.er1
37023   ac_status=$?
37024   grep -v '^ *+' conftest.er1 >conftest.err
37025   rm -f conftest.er1
37026   cat conftest.err >&5
37027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37028   (exit $ac_status); } &&
37029          { ac_try='test -z "$ac_c_werror_flag"
37030                          || test ! -s conftest.err'
37031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37032   (eval $ac_try) 2>&5
37033   ac_status=$?
37034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37035   (exit $ac_status); }; } &&
37036          { ac_try='test -s conftest.$ac_objext'
37037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37038   (eval $ac_try) 2>&5
37039   ac_status=$?
37040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37041   (exit $ac_status); }; }; then
37042   ac_hi=-1 ac_mid=-1
37043   while :; do
37044     cat >conftest.$ac_ext <<_ACEOF
37045 /* confdefs.h.  */
37046 _ACEOF
37047 cat confdefs.h >>conftest.$ac_ext
37048 cat >>conftest.$ac_ext <<_ACEOF
37049 /* end confdefs.h.  */
37050 $ac_includes_default
37051 int
37052 main ()
37053 {
37054 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
37055 test_array [0] = 0
37056
37057   ;
37058   return 0;
37059 }
37060 _ACEOF
37061 rm -f conftest.$ac_objext
37062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37063   (eval $ac_compile) 2>conftest.er1
37064   ac_status=$?
37065   grep -v '^ *+' conftest.er1 >conftest.err
37066   rm -f conftest.er1
37067   cat conftest.err >&5
37068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37069   (exit $ac_status); } &&
37070          { ac_try='test -z "$ac_c_werror_flag"
37071                          || test ! -s conftest.err'
37072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37073   (eval $ac_try) 2>&5
37074   ac_status=$?
37075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37076   (exit $ac_status); }; } &&
37077          { ac_try='test -s conftest.$ac_objext'
37078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37079   (eval $ac_try) 2>&5
37080   ac_status=$?
37081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082   (exit $ac_status); }; }; then
37083   ac_lo=$ac_mid; break
37084 else
37085   echo "$as_me: failed program was:" >&5
37086 sed 's/^/| /' conftest.$ac_ext >&5
37087
37088 ac_hi=`expr '(' $ac_mid ')' - 1`
37089                        if test $ac_mid -le $ac_hi; then
37090                          ac_lo= ac_hi=
37091                          break
37092                        fi
37093                        ac_mid=`expr 2 '*' $ac_mid`
37094 fi
37095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37096   done
37097 else
37098   echo "$as_me: failed program was:" >&5
37099 sed 's/^/| /' conftest.$ac_ext >&5
37100
37101 ac_lo= ac_hi=
37102 fi
37103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37104 fi
37105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37106 # Binary search between lo and hi bounds.
37107 while test "x$ac_lo" != "x$ac_hi"; do
37108   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37109   cat >conftest.$ac_ext <<_ACEOF
37110 /* confdefs.h.  */
37111 _ACEOF
37112 cat confdefs.h >>conftest.$ac_ext
37113 cat >>conftest.$ac_ext <<_ACEOF
37114 /* end confdefs.h.  */
37115 $ac_includes_default
37116 int
37117 main ()
37118 {
37119 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
37120 test_array [0] = 0
37121
37122   ;
37123   return 0;
37124 }
37125 _ACEOF
37126 rm -f conftest.$ac_objext
37127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37128   (eval $ac_compile) 2>conftest.er1
37129   ac_status=$?
37130   grep -v '^ *+' conftest.er1 >conftest.err
37131   rm -f conftest.er1
37132   cat conftest.err >&5
37133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37134   (exit $ac_status); } &&
37135          { ac_try='test -z "$ac_c_werror_flag"
37136                          || test ! -s conftest.err'
37137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37138   (eval $ac_try) 2>&5
37139   ac_status=$?
37140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141   (exit $ac_status); }; } &&
37142          { ac_try='test -s conftest.$ac_objext'
37143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37144   (eval $ac_try) 2>&5
37145   ac_status=$?
37146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37147   (exit $ac_status); }; }; then
37148   ac_hi=$ac_mid
37149 else
37150   echo "$as_me: failed program was:" >&5
37151 sed 's/^/| /' conftest.$ac_ext >&5
37152
37153 ac_lo=`expr '(' $ac_mid ')' + 1`
37154 fi
37155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37156 done
37157 case $ac_lo in
37158 ?*) ac_cv_sizeof_long_long=$ac_lo;;
37159 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37160 See \`config.log' for more details." >&5
37161 echo "$as_me: error: cannot compute sizeof (long long), 77
37162 See \`config.log' for more details." >&2;}
37163    { (exit 1); exit 1; }; } ;;
37164 esac
37165 else
37166   if test "$cross_compiling" = yes; then
37167   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37168 See \`config.log' for more details." >&5
37169 echo "$as_me: error: cannot run test program while cross compiling
37170 See \`config.log' for more details." >&2;}
37171    { (exit 1); exit 1; }; }
37172 else
37173   cat >conftest.$ac_ext <<_ACEOF
37174 /* confdefs.h.  */
37175 _ACEOF
37176 cat confdefs.h >>conftest.$ac_ext
37177 cat >>conftest.$ac_ext <<_ACEOF
37178 /* end confdefs.h.  */
37179 $ac_includes_default
37180 long longval () { return (long) (sizeof (long long)); }
37181 unsigned long ulongval () { return (long) (sizeof (long long)); }
37182 #include <stdio.h>
37183 #include <stdlib.h>
37184 int
37185 main ()
37186 {
37187
37188   FILE *f = fopen ("conftest.val", "w");
37189   if (! f)
37190     exit (1);
37191   if (((long) (sizeof (long long))) < 0)
37192     {
37193       long i = longval ();
37194       if (i != ((long) (sizeof (long long))))
37195         exit (1);
37196       fprintf (f, "%ld\n", i);
37197     }
37198   else
37199     {
37200       unsigned long i = ulongval ();
37201       if (i != ((long) (sizeof (long long))))
37202         exit (1);
37203       fprintf (f, "%lu\n", i);
37204     }
37205   exit (ferror (f) || fclose (f) != 0);
37206
37207   ;
37208   return 0;
37209 }
37210 _ACEOF
37211 rm -f conftest$ac_exeext
37212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37213   (eval $ac_link) 2>&5
37214   ac_status=$?
37215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37218   (eval $ac_try) 2>&5
37219   ac_status=$?
37220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37221   (exit $ac_status); }; }; then
37222   ac_cv_sizeof_long_long=`cat conftest.val`
37223 else
37224   echo "$as_me: program exited with status $ac_status" >&5
37225 echo "$as_me: failed program was:" >&5
37226 sed 's/^/| /' conftest.$ac_ext >&5
37227
37228 ( exit $ac_status )
37229 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37230 See \`config.log' for more details." >&5
37231 echo "$as_me: error: cannot compute sizeof (long long), 77
37232 See \`config.log' for more details." >&2;}
37233    { (exit 1); exit 1; }; }
37234 fi
37235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37236 fi
37237 fi
37238 rm -f conftest.val
37239 else
37240   ac_cv_sizeof_long_long=0
37241 fi
37242 fi
37243 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
37244 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
37245 cat >>confdefs.h <<_ACEOF
37246 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
37247 _ACEOF
37248
37249
37250 echo "$as_me:$LINENO: checking for wchar_t" >&5
37251 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
37252 if test "${ac_cv_type_wchar_t+set}" = set; then
37253   echo $ECHO_N "(cached) $ECHO_C" >&6
37254 else
37255   cat >conftest.$ac_ext <<_ACEOF
37256 /* confdefs.h.  */
37257 _ACEOF
37258 cat confdefs.h >>conftest.$ac_ext
37259 cat >>conftest.$ac_ext <<_ACEOF
37260 /* end confdefs.h.  */
37261 $ac_includes_default
37262 int
37263 main ()
37264 {
37265 if ((wchar_t *) 0)
37266   return 0;
37267 if (sizeof (wchar_t))
37268   return 0;
37269   ;
37270   return 0;
37271 }
37272 _ACEOF
37273 rm -f conftest.$ac_objext
37274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37275   (eval $ac_compile) 2>conftest.er1
37276   ac_status=$?
37277   grep -v '^ *+' conftest.er1 >conftest.err
37278   rm -f conftest.er1
37279   cat conftest.err >&5
37280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37281   (exit $ac_status); } &&
37282          { ac_try='test -z "$ac_c_werror_flag"
37283                          || test ! -s conftest.err'
37284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37285   (eval $ac_try) 2>&5
37286   ac_status=$?
37287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37288   (exit $ac_status); }; } &&
37289          { ac_try='test -s conftest.$ac_objext'
37290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37291   (eval $ac_try) 2>&5
37292   ac_status=$?
37293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294   (exit $ac_status); }; }; then
37295   ac_cv_type_wchar_t=yes
37296 else
37297   echo "$as_me: failed program was:" >&5
37298 sed 's/^/| /' conftest.$ac_ext >&5
37299
37300 ac_cv_type_wchar_t=no
37301 fi
37302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37303 fi
37304 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
37305 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
37306
37307 echo "$as_me:$LINENO: checking size of wchar_t" >&5
37308 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
37309 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
37310   echo $ECHO_N "(cached) $ECHO_C" >&6
37311 else
37312   if test "$ac_cv_type_wchar_t" = yes; then
37313   # The cast to unsigned long works around a bug in the HP C Compiler
37314   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37315   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37316   # This bug is HP SR number 8606223364.
37317   if test "$cross_compiling" = yes; then
37318   # Depending upon the size, compute the lo and hi bounds.
37319 cat >conftest.$ac_ext <<_ACEOF
37320 /* confdefs.h.  */
37321 _ACEOF
37322 cat confdefs.h >>conftest.$ac_ext
37323 cat >>conftest.$ac_ext <<_ACEOF
37324 /* end confdefs.h.  */
37325 $ac_includes_default
37326 int
37327 main ()
37328 {
37329 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
37330 test_array [0] = 0
37331
37332   ;
37333   return 0;
37334 }
37335 _ACEOF
37336 rm -f conftest.$ac_objext
37337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37338   (eval $ac_compile) 2>conftest.er1
37339   ac_status=$?
37340   grep -v '^ *+' conftest.er1 >conftest.err
37341   rm -f conftest.er1
37342   cat conftest.err >&5
37343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37344   (exit $ac_status); } &&
37345          { ac_try='test -z "$ac_c_werror_flag"
37346                          || test ! -s conftest.err'
37347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37348   (eval $ac_try) 2>&5
37349   ac_status=$?
37350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37351   (exit $ac_status); }; } &&
37352          { ac_try='test -s conftest.$ac_objext'
37353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37354   (eval $ac_try) 2>&5
37355   ac_status=$?
37356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37357   (exit $ac_status); }; }; then
37358   ac_lo=0 ac_mid=0
37359   while :; do
37360     cat >conftest.$ac_ext <<_ACEOF
37361 /* confdefs.h.  */
37362 _ACEOF
37363 cat confdefs.h >>conftest.$ac_ext
37364 cat >>conftest.$ac_ext <<_ACEOF
37365 /* end confdefs.h.  */
37366 $ac_includes_default
37367 int
37368 main ()
37369 {
37370 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37371 test_array [0] = 0
37372
37373   ;
37374   return 0;
37375 }
37376 _ACEOF
37377 rm -f conftest.$ac_objext
37378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37379   (eval $ac_compile) 2>conftest.er1
37380   ac_status=$?
37381   grep -v '^ *+' conftest.er1 >conftest.err
37382   rm -f conftest.er1
37383   cat conftest.err >&5
37384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37385   (exit $ac_status); } &&
37386          { ac_try='test -z "$ac_c_werror_flag"
37387                          || test ! -s conftest.err'
37388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37389   (eval $ac_try) 2>&5
37390   ac_status=$?
37391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37392   (exit $ac_status); }; } &&
37393          { ac_try='test -s conftest.$ac_objext'
37394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37395   (eval $ac_try) 2>&5
37396   ac_status=$?
37397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37398   (exit $ac_status); }; }; then
37399   ac_hi=$ac_mid; break
37400 else
37401   echo "$as_me: failed program was:" >&5
37402 sed 's/^/| /' conftest.$ac_ext >&5
37403
37404 ac_lo=`expr $ac_mid + 1`
37405                     if test $ac_lo -le $ac_mid; then
37406                       ac_lo= ac_hi=
37407                       break
37408                     fi
37409                     ac_mid=`expr 2 '*' $ac_mid + 1`
37410 fi
37411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37412   done
37413 else
37414   echo "$as_me: failed program was:" >&5
37415 sed 's/^/| /' conftest.$ac_ext >&5
37416
37417 cat >conftest.$ac_ext <<_ACEOF
37418 /* confdefs.h.  */
37419 _ACEOF
37420 cat confdefs.h >>conftest.$ac_ext
37421 cat >>conftest.$ac_ext <<_ACEOF
37422 /* end confdefs.h.  */
37423 $ac_includes_default
37424 int
37425 main ()
37426 {
37427 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
37428 test_array [0] = 0
37429
37430   ;
37431   return 0;
37432 }
37433 _ACEOF
37434 rm -f conftest.$ac_objext
37435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37436   (eval $ac_compile) 2>conftest.er1
37437   ac_status=$?
37438   grep -v '^ *+' conftest.er1 >conftest.err
37439   rm -f conftest.er1
37440   cat conftest.err >&5
37441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442   (exit $ac_status); } &&
37443          { ac_try='test -z "$ac_c_werror_flag"
37444                          || test ! -s conftest.err'
37445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37446   (eval $ac_try) 2>&5
37447   ac_status=$?
37448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37449   (exit $ac_status); }; } &&
37450          { ac_try='test -s conftest.$ac_objext'
37451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37452   (eval $ac_try) 2>&5
37453   ac_status=$?
37454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37455   (exit $ac_status); }; }; then
37456   ac_hi=-1 ac_mid=-1
37457   while :; do
37458     cat >conftest.$ac_ext <<_ACEOF
37459 /* confdefs.h.  */
37460 _ACEOF
37461 cat confdefs.h >>conftest.$ac_ext
37462 cat >>conftest.$ac_ext <<_ACEOF
37463 /* end confdefs.h.  */
37464 $ac_includes_default
37465 int
37466 main ()
37467 {
37468 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
37469 test_array [0] = 0
37470
37471   ;
37472   return 0;
37473 }
37474 _ACEOF
37475 rm -f conftest.$ac_objext
37476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37477   (eval $ac_compile) 2>conftest.er1
37478   ac_status=$?
37479   grep -v '^ *+' conftest.er1 >conftest.err
37480   rm -f conftest.er1
37481   cat conftest.err >&5
37482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37483   (exit $ac_status); } &&
37484          { ac_try='test -z "$ac_c_werror_flag"
37485                          || test ! -s conftest.err'
37486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37487   (eval $ac_try) 2>&5
37488   ac_status=$?
37489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37490   (exit $ac_status); }; } &&
37491          { ac_try='test -s conftest.$ac_objext'
37492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37493   (eval $ac_try) 2>&5
37494   ac_status=$?
37495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37496   (exit $ac_status); }; }; then
37497   ac_lo=$ac_mid; break
37498 else
37499   echo "$as_me: failed program was:" >&5
37500 sed 's/^/| /' conftest.$ac_ext >&5
37501
37502 ac_hi=`expr '(' $ac_mid ')' - 1`
37503                        if test $ac_mid -le $ac_hi; then
37504                          ac_lo= ac_hi=
37505                          break
37506                        fi
37507                        ac_mid=`expr 2 '*' $ac_mid`
37508 fi
37509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37510   done
37511 else
37512   echo "$as_me: failed program was:" >&5
37513 sed 's/^/| /' conftest.$ac_ext >&5
37514
37515 ac_lo= ac_hi=
37516 fi
37517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37518 fi
37519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37520 # Binary search between lo and hi bounds.
37521 while test "x$ac_lo" != "x$ac_hi"; do
37522   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37523   cat >conftest.$ac_ext <<_ACEOF
37524 /* confdefs.h.  */
37525 _ACEOF
37526 cat confdefs.h >>conftest.$ac_ext
37527 cat >>conftest.$ac_ext <<_ACEOF
37528 /* end confdefs.h.  */
37529 $ac_includes_default
37530 int
37531 main ()
37532 {
37533 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37534 test_array [0] = 0
37535
37536   ;
37537   return 0;
37538 }
37539 _ACEOF
37540 rm -f conftest.$ac_objext
37541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37542   (eval $ac_compile) 2>conftest.er1
37543   ac_status=$?
37544   grep -v '^ *+' conftest.er1 >conftest.err
37545   rm -f conftest.er1
37546   cat conftest.err >&5
37547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37548   (exit $ac_status); } &&
37549          { ac_try='test -z "$ac_c_werror_flag"
37550                          || test ! -s conftest.err'
37551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37552   (eval $ac_try) 2>&5
37553   ac_status=$?
37554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37555   (exit $ac_status); }; } &&
37556          { ac_try='test -s conftest.$ac_objext'
37557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37558   (eval $ac_try) 2>&5
37559   ac_status=$?
37560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37561   (exit $ac_status); }; }; then
37562   ac_hi=$ac_mid
37563 else
37564   echo "$as_me: failed program was:" >&5
37565 sed 's/^/| /' conftest.$ac_ext >&5
37566
37567 ac_lo=`expr '(' $ac_mid ')' + 1`
37568 fi
37569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37570 done
37571 case $ac_lo in
37572 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
37573 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37574 See \`config.log' for more details." >&5
37575 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37576 See \`config.log' for more details." >&2;}
37577    { (exit 1); exit 1; }; } ;;
37578 esac
37579 else
37580   if test "$cross_compiling" = yes; then
37581   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37582 See \`config.log' for more details." >&5
37583 echo "$as_me: error: cannot run test program while cross compiling
37584 See \`config.log' for more details." >&2;}
37585    { (exit 1); exit 1; }; }
37586 else
37587   cat >conftest.$ac_ext <<_ACEOF
37588 /* confdefs.h.  */
37589 _ACEOF
37590 cat confdefs.h >>conftest.$ac_ext
37591 cat >>conftest.$ac_ext <<_ACEOF
37592 /* end confdefs.h.  */
37593 $ac_includes_default
37594 long longval () { return (long) (sizeof (wchar_t)); }
37595 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
37596 #include <stdio.h>
37597 #include <stdlib.h>
37598 int
37599 main ()
37600 {
37601
37602   FILE *f = fopen ("conftest.val", "w");
37603   if (! f)
37604     exit (1);
37605   if (((long) (sizeof (wchar_t))) < 0)
37606     {
37607       long i = longval ();
37608       if (i != ((long) (sizeof (wchar_t))))
37609         exit (1);
37610       fprintf (f, "%ld\n", i);
37611     }
37612   else
37613     {
37614       unsigned long i = ulongval ();
37615       if (i != ((long) (sizeof (wchar_t))))
37616         exit (1);
37617       fprintf (f, "%lu\n", i);
37618     }
37619   exit (ferror (f) || fclose (f) != 0);
37620
37621   ;
37622   return 0;
37623 }
37624 _ACEOF
37625 rm -f conftest$ac_exeext
37626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37627   (eval $ac_link) 2>&5
37628   ac_status=$?
37629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37632   (eval $ac_try) 2>&5
37633   ac_status=$?
37634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37635   (exit $ac_status); }; }; then
37636   ac_cv_sizeof_wchar_t=`cat conftest.val`
37637 else
37638   echo "$as_me: program exited with status $ac_status" >&5
37639 echo "$as_me: failed program was:" >&5
37640 sed 's/^/| /' conftest.$ac_ext >&5
37641
37642 ( exit $ac_status )
37643 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37644 See \`config.log' for more details." >&5
37645 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37646 See \`config.log' for more details." >&2;}
37647    { (exit 1); exit 1; }; }
37648 fi
37649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37650 fi
37651 fi
37652 rm -f conftest.val
37653 else
37654   ac_cv_sizeof_wchar_t=0
37655 fi
37656 fi
37657 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37658 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37659 cat >>confdefs.h <<_ACEOF
37660 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37661 _ACEOF
37662
37663
37664
37665 if test "$ac_cv_sizeof_int" -lt 4 ; then
37666         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37667 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37668
37669
37670 cat >>confdefs.h <<\_ACEOF
37671 #define LBER_INT_T long
37672 _ACEOF
37673
37674 else
37675
37676 cat >>confdefs.h <<\_ACEOF
37677 #define LBER_INT_T int
37678 _ACEOF
37679
37680 fi
37681
37682
37683 cat >>confdefs.h <<\_ACEOF
37684 #define LBER_LEN_T long
37685 _ACEOF
37686
37687
37688 cat >>confdefs.h <<\_ACEOF
37689 #define LBER_SOCKET_T int
37690 _ACEOF
37691
37692
37693 cat >>confdefs.h <<\_ACEOF
37694 #define LBER_TAG_T long
37695 _ACEOF
37696
37697
37698 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37699         if test $ac_cv_sizeof_long_long -gt 4 ; then
37700                 ol_with_mp=longlong
37701
37702 cat >>confdefs.h <<\_ACEOF
37703 #define USE_MP_LONG_LONG 1
37704 _ACEOF
37705
37706         elif test $ol_with_mp = longlong ; then
37707                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37708 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37709    { (exit 1); exit 1; }; }
37710         fi
37711 fi
37712 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37713         if test $ac_cv_sizeof_long -gt 4 ; then
37714                 ol_with_mp=long
37715
37716 cat >>confdefs.h <<\_ACEOF
37717 #define USE_MP_LONG 1
37718 _ACEOF
37719
37720         elif test $ol_with_mp = long ; then
37721                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37722 echo "$as_me: error: long unusable for multiple precision" >&2;}
37723    { (exit 1); exit 1; }; }
37724         fi
37725 fi
37726 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37727
37728 for ac_header in openssl/bn.h
37729 do
37730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37732   echo "$as_me:$LINENO: checking for $ac_header" >&5
37733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37735   echo $ECHO_N "(cached) $ECHO_C" >&6
37736 fi
37737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37739 else
37740   # Is the header compilable?
37741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37743 cat >conftest.$ac_ext <<_ACEOF
37744 /* confdefs.h.  */
37745 _ACEOF
37746 cat confdefs.h >>conftest.$ac_ext
37747 cat >>conftest.$ac_ext <<_ACEOF
37748 /* end confdefs.h.  */
37749 $ac_includes_default
37750 #include <$ac_header>
37751 _ACEOF
37752 rm -f conftest.$ac_objext
37753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37754   (eval $ac_compile) 2>conftest.er1
37755   ac_status=$?
37756   grep -v '^ *+' conftest.er1 >conftest.err
37757   rm -f conftest.er1
37758   cat conftest.err >&5
37759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37760   (exit $ac_status); } &&
37761          { ac_try='test -z "$ac_c_werror_flag"
37762                          || test ! -s conftest.err'
37763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37764   (eval $ac_try) 2>&5
37765   ac_status=$?
37766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37767   (exit $ac_status); }; } &&
37768          { ac_try='test -s conftest.$ac_objext'
37769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37770   (eval $ac_try) 2>&5
37771   ac_status=$?
37772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773   (exit $ac_status); }; }; then
37774   ac_header_compiler=yes
37775 else
37776   echo "$as_me: failed program was:" >&5
37777 sed 's/^/| /' conftest.$ac_ext >&5
37778
37779 ac_header_compiler=no
37780 fi
37781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37783 echo "${ECHO_T}$ac_header_compiler" >&6
37784
37785 # Is the header present?
37786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37788 cat >conftest.$ac_ext <<_ACEOF
37789 /* confdefs.h.  */
37790 _ACEOF
37791 cat confdefs.h >>conftest.$ac_ext
37792 cat >>conftest.$ac_ext <<_ACEOF
37793 /* end confdefs.h.  */
37794 #include <$ac_header>
37795 _ACEOF
37796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37798   ac_status=$?
37799   grep -v '^ *+' conftest.er1 >conftest.err
37800   rm -f conftest.er1
37801   cat conftest.err >&5
37802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37803   (exit $ac_status); } >/dev/null; then
37804   if test -s conftest.err; then
37805     ac_cpp_err=$ac_c_preproc_warn_flag
37806     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37807   else
37808     ac_cpp_err=
37809   fi
37810 else
37811   ac_cpp_err=yes
37812 fi
37813 if test -z "$ac_cpp_err"; then
37814   ac_header_preproc=yes
37815 else
37816   echo "$as_me: failed program was:" >&5
37817 sed 's/^/| /' conftest.$ac_ext >&5
37818
37819   ac_header_preproc=no
37820 fi
37821 rm -f conftest.err conftest.$ac_ext
37822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37823 echo "${ECHO_T}$ac_header_preproc" >&6
37824
37825 # So?  What about this header?
37826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37827   yes:no: )
37828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37832     ac_header_preproc=yes
37833     ;;
37834   no:yes:* )
37835     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37837     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37838 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37839     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37841     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37842 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37845     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37847     (
37848       cat <<\_ASBOX
37849 ## --------------------------------------------- ##
37850 ## Report this to <http://www.openldap.org/its/> ##
37851 ## --------------------------------------------- ##
37852 _ASBOX
37853     ) |
37854       sed "s/^/$as_me: WARNING:     /" >&2
37855     ;;
37856 esac
37857 echo "$as_me:$LINENO: checking for $ac_header" >&5
37858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37860   echo $ECHO_N "(cached) $ECHO_C" >&6
37861 else
37862   eval "$as_ac_Header=\$ac_header_preproc"
37863 fi
37864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37866
37867 fi
37868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37869   cat >>confdefs.h <<_ACEOF
37870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37871 _ACEOF
37872
37873 fi
37874
37875 done
37876
37877
37878 for ac_header in openssl/crypto.h
37879 do
37880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37882   echo "$as_me:$LINENO: checking for $ac_header" >&5
37883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37885   echo $ECHO_N "(cached) $ECHO_C" >&6
37886 fi
37887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37889 else
37890   # Is the header compilable?
37891 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37893 cat >conftest.$ac_ext <<_ACEOF
37894 /* confdefs.h.  */
37895 _ACEOF
37896 cat confdefs.h >>conftest.$ac_ext
37897 cat >>conftest.$ac_ext <<_ACEOF
37898 /* end confdefs.h.  */
37899 $ac_includes_default
37900 #include <$ac_header>
37901 _ACEOF
37902 rm -f conftest.$ac_objext
37903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37904   (eval $ac_compile) 2>conftest.er1
37905   ac_status=$?
37906   grep -v '^ *+' conftest.er1 >conftest.err
37907   rm -f conftest.er1
37908   cat conftest.err >&5
37909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37910   (exit $ac_status); } &&
37911          { ac_try='test -z "$ac_c_werror_flag"
37912                          || test ! -s conftest.err'
37913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37914   (eval $ac_try) 2>&5
37915   ac_status=$?
37916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37917   (exit $ac_status); }; } &&
37918          { ac_try='test -s conftest.$ac_objext'
37919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37920   (eval $ac_try) 2>&5
37921   ac_status=$?
37922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37923   (exit $ac_status); }; }; then
37924   ac_header_compiler=yes
37925 else
37926   echo "$as_me: failed program was:" >&5
37927 sed 's/^/| /' conftest.$ac_ext >&5
37928
37929 ac_header_compiler=no
37930 fi
37931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37933 echo "${ECHO_T}$ac_header_compiler" >&6
37934
37935 # Is the header present?
37936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37938 cat >conftest.$ac_ext <<_ACEOF
37939 /* confdefs.h.  */
37940 _ACEOF
37941 cat confdefs.h >>conftest.$ac_ext
37942 cat >>conftest.$ac_ext <<_ACEOF
37943 /* end confdefs.h.  */
37944 #include <$ac_header>
37945 _ACEOF
37946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37948   ac_status=$?
37949   grep -v '^ *+' conftest.er1 >conftest.err
37950   rm -f conftest.er1
37951   cat conftest.err >&5
37952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37953   (exit $ac_status); } >/dev/null; then
37954   if test -s conftest.err; then
37955     ac_cpp_err=$ac_c_preproc_warn_flag
37956     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37957   else
37958     ac_cpp_err=
37959   fi
37960 else
37961   ac_cpp_err=yes
37962 fi
37963 if test -z "$ac_cpp_err"; then
37964   ac_header_preproc=yes
37965 else
37966   echo "$as_me: failed program was:" >&5
37967 sed 's/^/| /' conftest.$ac_ext >&5
37968
37969   ac_header_preproc=no
37970 fi
37971 rm -f conftest.err conftest.$ac_ext
37972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37973 echo "${ECHO_T}$ac_header_preproc" >&6
37974
37975 # So?  What about this header?
37976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37977   yes:no: )
37978     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37982     ac_header_preproc=yes
37983     ;;
37984   no:yes:* )
37985     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37987     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37988 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37989     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37991     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37992 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37995     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37997     (
37998       cat <<\_ASBOX
37999 ## --------------------------------------------- ##
38000 ## Report this to <http://www.openldap.org/its/> ##
38001 ## --------------------------------------------- ##
38002 _ASBOX
38003     ) |
38004       sed "s/^/$as_me: WARNING:     /" >&2
38005     ;;
38006 esac
38007 echo "$as_me:$LINENO: checking for $ac_header" >&5
38008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38010   echo $ECHO_N "(cached) $ECHO_C" >&6
38011 else
38012   eval "$as_ac_Header=\$ac_header_preproc"
38013 fi
38014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38016
38017 fi
38018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38019   cat >>confdefs.h <<_ACEOF
38020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38021 _ACEOF
38022
38023 fi
38024
38025 done
38026
38027         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
38028                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
38029                 test "$ol_with_tls" = "found" ; then
38030                 ol_with_mp=bignum
38031
38032 cat >>confdefs.h <<\_ACEOF
38033 #define USE_MP_BIGNUM 1
38034 _ACEOF
38035
38036         elif test $ol_with_mp = bignum ; then
38037                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
38038 echo "$as_me: error: bignum not available" >&2;}
38039    { (exit 1); exit 1; }; }
38040         fi
38041 fi
38042 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
38043
38044 for ac_header in gmp.h
38045 do
38046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38048   echo "$as_me:$LINENO: checking for $ac_header" >&5
38049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38051   echo $ECHO_N "(cached) $ECHO_C" >&6
38052 fi
38053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38055 else
38056   # Is the header compilable?
38057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38059 cat >conftest.$ac_ext <<_ACEOF
38060 /* confdefs.h.  */
38061 _ACEOF
38062 cat confdefs.h >>conftest.$ac_ext
38063 cat >>conftest.$ac_ext <<_ACEOF
38064 /* end confdefs.h.  */
38065 $ac_includes_default
38066 #include <$ac_header>
38067 _ACEOF
38068 rm -f conftest.$ac_objext
38069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38070   (eval $ac_compile) 2>conftest.er1
38071   ac_status=$?
38072   grep -v '^ *+' conftest.er1 >conftest.err
38073   rm -f conftest.er1
38074   cat conftest.err >&5
38075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38076   (exit $ac_status); } &&
38077          { ac_try='test -z "$ac_c_werror_flag"
38078                          || test ! -s conftest.err'
38079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38080   (eval $ac_try) 2>&5
38081   ac_status=$?
38082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38083   (exit $ac_status); }; } &&
38084          { ac_try='test -s conftest.$ac_objext'
38085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38086   (eval $ac_try) 2>&5
38087   ac_status=$?
38088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38089   (exit $ac_status); }; }; then
38090   ac_header_compiler=yes
38091 else
38092   echo "$as_me: failed program was:" >&5
38093 sed 's/^/| /' conftest.$ac_ext >&5
38094
38095 ac_header_compiler=no
38096 fi
38097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38099 echo "${ECHO_T}$ac_header_compiler" >&6
38100
38101 # Is the header present?
38102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38104 cat >conftest.$ac_ext <<_ACEOF
38105 /* confdefs.h.  */
38106 _ACEOF
38107 cat confdefs.h >>conftest.$ac_ext
38108 cat >>conftest.$ac_ext <<_ACEOF
38109 /* end confdefs.h.  */
38110 #include <$ac_header>
38111 _ACEOF
38112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38113   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38114   ac_status=$?
38115   grep -v '^ *+' conftest.er1 >conftest.err
38116   rm -f conftest.er1
38117   cat conftest.err >&5
38118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38119   (exit $ac_status); } >/dev/null; then
38120   if test -s conftest.err; then
38121     ac_cpp_err=$ac_c_preproc_warn_flag
38122     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38123   else
38124     ac_cpp_err=
38125   fi
38126 else
38127   ac_cpp_err=yes
38128 fi
38129 if test -z "$ac_cpp_err"; then
38130   ac_header_preproc=yes
38131 else
38132   echo "$as_me: failed program was:" >&5
38133 sed 's/^/| /' conftest.$ac_ext >&5
38134
38135   ac_header_preproc=no
38136 fi
38137 rm -f conftest.err conftest.$ac_ext
38138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38139 echo "${ECHO_T}$ac_header_preproc" >&6
38140
38141 # So?  What about this header?
38142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38143   yes:no: )
38144     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38148     ac_header_preproc=yes
38149     ;;
38150   no:yes:* )
38151     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38153     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38154 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38155     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38157     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38158 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38161     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38163     (
38164       cat <<\_ASBOX
38165 ## --------------------------------------------- ##
38166 ## Report this to <http://www.openldap.org/its/> ##
38167 ## --------------------------------------------- ##
38168 _ASBOX
38169     ) |
38170       sed "s/^/$as_me: WARNING:     /" >&2
38171     ;;
38172 esac
38173 echo "$as_me:$LINENO: checking for $ac_header" >&5
38174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38176   echo $ECHO_N "(cached) $ECHO_C" >&6
38177 else
38178   eval "$as_ac_Header=\$ac_header_preproc"
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
38183 fi
38184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38185   cat >>confdefs.h <<_ACEOF
38186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38187 _ACEOF
38188
38189 fi
38190
38191 done
38192
38193
38194 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38195 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38196 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38197   echo $ECHO_N "(cached) $ECHO_C" >&6
38198 else
38199   ac_check_lib_save_LIBS=$LIBS
38200 LIBS="-lgmp  $LIBS"
38201 cat >conftest.$ac_ext <<_ACEOF
38202 /* confdefs.h.  */
38203 _ACEOF
38204 cat confdefs.h >>conftest.$ac_ext
38205 cat >>conftest.$ac_ext <<_ACEOF
38206 /* end confdefs.h.  */
38207
38208 /* Override any gcc2 internal prototype to avoid an error.  */
38209 #ifdef __cplusplus
38210 extern "C"
38211 #endif
38212 /* We use char because int might match the return type of a gcc2
38213    builtin and then its argument prototype would still apply.  */
38214 char __gmpz_add_ui ();
38215 int
38216 main ()
38217 {
38218 __gmpz_add_ui ();
38219   ;
38220   return 0;
38221 }
38222 _ACEOF
38223 rm -f conftest.$ac_objext conftest$ac_exeext
38224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38225   (eval $ac_link) 2>conftest.er1
38226   ac_status=$?
38227   grep -v '^ *+' conftest.er1 >conftest.err
38228   rm -f conftest.er1
38229   cat conftest.err >&5
38230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38231   (exit $ac_status); } &&
38232          { ac_try='test -z "$ac_c_werror_flag"
38233                          || test ! -s conftest.err'
38234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38235   (eval $ac_try) 2>&5
38236   ac_status=$?
38237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38238   (exit $ac_status); }; } &&
38239          { ac_try='test -s conftest$ac_exeext'
38240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38241   (eval $ac_try) 2>&5
38242   ac_status=$?
38243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38244   (exit $ac_status); }; }; then
38245   ac_cv_lib_gmp___gmpz_add_ui=yes
38246 else
38247   echo "$as_me: failed program was:" >&5
38248 sed 's/^/| /' conftest.$ac_ext >&5
38249
38250 ac_cv_lib_gmp___gmpz_add_ui=no
38251 fi
38252 rm -f conftest.err conftest.$ac_objext \
38253       conftest$ac_exeext conftest.$ac_ext
38254 LIBS=$ac_check_lib_save_LIBS
38255 fi
38256 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38257 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38258 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38259   cat >>confdefs.h <<_ACEOF
38260 #define HAVE_LIBGMP 1
38261 _ACEOF
38262
38263   LIBS="-lgmp $LIBS"
38264
38265 fi
38266
38267         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
38268
38269 cat >>confdefs.h <<\_ACEOF
38270 #define USE_MP_GMP 1
38271 _ACEOF
38272
38273                 ol_with_mp=gmp
38274         elif test $ol_with_mp = gmp ; then
38275                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
38276 echo "$as_me: error: gmp not available" >&2;}
38277    { (exit 1); exit 1; }; }
38278         fi
38279 fi
38280 if test $ol_with_mp = auto ; then
38281         ol_with_mp=no
38282 fi
38283
38284 echo "$as_me:$LINENO: checking for working memcmp" >&5
38285 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
38286 if test "${ac_cv_func_memcmp_working+set}" = set; then
38287   echo $ECHO_N "(cached) $ECHO_C" >&6
38288 else
38289   if test "$cross_compiling" = yes; then
38290   ac_cv_func_memcmp_working=no
38291 else
38292   cat >conftest.$ac_ext <<_ACEOF
38293 /* confdefs.h.  */
38294 _ACEOF
38295 cat confdefs.h >>conftest.$ac_ext
38296 cat >>conftest.$ac_ext <<_ACEOF
38297 /* end confdefs.h.  */
38298 $ac_includes_default
38299 int
38300 main ()
38301 {
38302
38303   /* Some versions of memcmp are not 8-bit clean.  */
38304   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
38305   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
38306     exit (1);
38307
38308   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
38309      or more and with at least one buffer not starting on a 4-byte boundary.
38310      William Lewis provided this test program.   */
38311   {
38312     char foo[21];
38313     char bar[21];
38314     int i;
38315     for (i = 0; i < 4; i++)
38316       {
38317         char *a = foo + i;
38318         char *b = bar + i;
38319         strcpy (a, "--------01111111");
38320         strcpy (b, "--------10000000");
38321         if (memcmp (a, b, 16) >= 0)
38322           exit (1);
38323       }
38324     exit (0);
38325   }
38326
38327   ;
38328   return 0;
38329 }
38330 _ACEOF
38331 rm -f conftest$ac_exeext
38332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38333   (eval $ac_link) 2>&5
38334   ac_status=$?
38335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38336   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38338   (eval $ac_try) 2>&5
38339   ac_status=$?
38340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341   (exit $ac_status); }; }; then
38342   ac_cv_func_memcmp_working=yes
38343 else
38344   echo "$as_me: program exited with status $ac_status" >&5
38345 echo "$as_me: failed program was:" >&5
38346 sed 's/^/| /' conftest.$ac_ext >&5
38347
38348 ( exit $ac_status )
38349 ac_cv_func_memcmp_working=no
38350 fi
38351 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38352 fi
38353 fi
38354 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
38355 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
38356 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
38357     "memcmp.$ac_objext"   | \
38358   *" memcmp.$ac_objext"   | \
38359     "memcmp.$ac_objext "* | \
38360   *" memcmp.$ac_objext "* ) ;;
38361   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
38362 esac
38363
38364
38365
38366 if test $ac_cv_func_memcmp_working = no ; then
38367
38368 cat >>confdefs.h <<\_ACEOF
38369 #define NEED_MEMCMP_REPLACEMENT 1
38370 _ACEOF
38371
38372 fi
38373
38374
38375 for ac_func in strftime
38376 do
38377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38378 echo "$as_me:$LINENO: checking for $ac_func" >&5
38379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38380 if eval "test \"\${$as_ac_var+set}\" = set"; then
38381   echo $ECHO_N "(cached) $ECHO_C" >&6
38382 else
38383   cat >conftest.$ac_ext <<_ACEOF
38384 /* confdefs.h.  */
38385 _ACEOF
38386 cat confdefs.h >>conftest.$ac_ext
38387 cat >>conftest.$ac_ext <<_ACEOF
38388 /* end confdefs.h.  */
38389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38390    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38391 #define $ac_func innocuous_$ac_func
38392
38393 /* System header to define __stub macros and hopefully few prototypes,
38394     which can conflict with char $ac_func (); below.
38395     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38396     <limits.h> exists even on freestanding compilers.  */
38397
38398 #ifdef __STDC__
38399 # include <limits.h>
38400 #else
38401 # include <assert.h>
38402 #endif
38403
38404 #undef $ac_func
38405
38406 /* Override any gcc2 internal prototype to avoid an error.  */
38407 #ifdef __cplusplus
38408 extern "C"
38409 {
38410 #endif
38411 /* We use char because int might match the return type of a gcc2
38412    builtin and then its argument prototype would still apply.  */
38413 char $ac_func ();
38414 /* The GNU C library defines this for functions which it implements
38415     to always fail with ENOSYS.  Some functions are actually named
38416     something starting with __ and the normal name is an alias.  */
38417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38418 choke me
38419 #else
38420 char (*f) () = $ac_func;
38421 #endif
38422 #ifdef __cplusplus
38423 }
38424 #endif
38425
38426 int
38427 main ()
38428 {
38429 return f != $ac_func;
38430   ;
38431   return 0;
38432 }
38433 _ACEOF
38434 rm -f conftest.$ac_objext conftest$ac_exeext
38435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38436   (eval $ac_link) 2>conftest.er1
38437   ac_status=$?
38438   grep -v '^ *+' conftest.er1 >conftest.err
38439   rm -f conftest.er1
38440   cat conftest.err >&5
38441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38442   (exit $ac_status); } &&
38443          { ac_try='test -z "$ac_c_werror_flag"
38444                          || test ! -s conftest.err'
38445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38446   (eval $ac_try) 2>&5
38447   ac_status=$?
38448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38449   (exit $ac_status); }; } &&
38450          { ac_try='test -s conftest$ac_exeext'
38451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38452   (eval $ac_try) 2>&5
38453   ac_status=$?
38454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38455   (exit $ac_status); }; }; then
38456   eval "$as_ac_var=yes"
38457 else
38458   echo "$as_me: failed program was:" >&5
38459 sed 's/^/| /' conftest.$ac_ext >&5
38460
38461 eval "$as_ac_var=no"
38462 fi
38463 rm -f conftest.err conftest.$ac_objext \
38464       conftest$ac_exeext conftest.$ac_ext
38465 fi
38466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38468 if test `eval echo '${'$as_ac_var'}'` = yes; then
38469   cat >>confdefs.h <<_ACEOF
38470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38471 _ACEOF
38472
38473 else
38474   # strftime is in -lintl on SCO UNIX.
38475 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38476 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
38477 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38478   echo $ECHO_N "(cached) $ECHO_C" >&6
38479 else
38480   ac_check_lib_save_LIBS=$LIBS
38481 LIBS="-lintl  $LIBS"
38482 cat >conftest.$ac_ext <<_ACEOF
38483 /* confdefs.h.  */
38484 _ACEOF
38485 cat confdefs.h >>conftest.$ac_ext
38486 cat >>conftest.$ac_ext <<_ACEOF
38487 /* end confdefs.h.  */
38488
38489 /* Override any gcc2 internal prototype to avoid an error.  */
38490 #ifdef __cplusplus
38491 extern "C"
38492 #endif
38493 /* We use char because int might match the return type of a gcc2
38494    builtin and then its argument prototype would still apply.  */
38495 char strftime ();
38496 int
38497 main ()
38498 {
38499 strftime ();
38500   ;
38501   return 0;
38502 }
38503 _ACEOF
38504 rm -f conftest.$ac_objext conftest$ac_exeext
38505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38506   (eval $ac_link) 2>conftest.er1
38507   ac_status=$?
38508   grep -v '^ *+' conftest.er1 >conftest.err
38509   rm -f conftest.er1
38510   cat conftest.err >&5
38511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38512   (exit $ac_status); } &&
38513          { ac_try='test -z "$ac_c_werror_flag"
38514                          || test ! -s conftest.err'
38515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38516   (eval $ac_try) 2>&5
38517   ac_status=$?
38518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38519   (exit $ac_status); }; } &&
38520          { ac_try='test -s conftest$ac_exeext'
38521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38522   (eval $ac_try) 2>&5
38523   ac_status=$?
38524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38525   (exit $ac_status); }; }; then
38526   ac_cv_lib_intl_strftime=yes
38527 else
38528   echo "$as_me: failed program was:" >&5
38529 sed 's/^/| /' conftest.$ac_ext >&5
38530
38531 ac_cv_lib_intl_strftime=no
38532 fi
38533 rm -f conftest.err conftest.$ac_objext \
38534       conftest$ac_exeext conftest.$ac_ext
38535 LIBS=$ac_check_lib_save_LIBS
38536 fi
38537 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38538 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
38539 if test $ac_cv_lib_intl_strftime = yes; then
38540   cat >>confdefs.h <<\_ACEOF
38541 #define HAVE_STRFTIME 1
38542 _ACEOF
38543
38544 LIBS="-lintl $LIBS"
38545 fi
38546
38547 fi
38548 done
38549
38550
38551 echo "$as_me:$LINENO: checking for inet_aton()" >&5
38552 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
38553 if test "${ol_cv_func_inet_aton+set}" = set; then
38554   echo $ECHO_N "(cached) $ECHO_C" >&6
38555 else
38556   cat >conftest.$ac_ext <<_ACEOF
38557 /* confdefs.h.  */
38558 _ACEOF
38559 cat confdefs.h >>conftest.$ac_ext
38560 cat >>conftest.$ac_ext <<_ACEOF
38561 /* end confdefs.h.  */
38562
38563 #ifdef HAVE_SYS_TYPES_H
38564 #       include <sys/types.h>
38565 #endif
38566 #ifdef HAVE_SYS_SOCKET_H
38567 #       include <sys/socket.h>
38568 #       ifdef HAVE_SYS_SELECT_H
38569 #               include <sys/select.h>
38570 #       endif
38571 #       include <netinet/in.h>
38572 #       ifdef HAVE_ARPA_INET_H
38573 #               include <arpa/inet.h>
38574 #       endif
38575 #endif
38576
38577 int
38578 main ()
38579 {
38580 struct in_addr in;
38581 int rc = inet_aton( "255.255.255.255", &in );
38582   ;
38583   return 0;
38584 }
38585 _ACEOF
38586 rm -f conftest.$ac_objext conftest$ac_exeext
38587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38588   (eval $ac_link) 2>conftest.er1
38589   ac_status=$?
38590   grep -v '^ *+' conftest.er1 >conftest.err
38591   rm -f conftest.er1
38592   cat conftest.err >&5
38593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38594   (exit $ac_status); } &&
38595          { ac_try='test -z "$ac_c_werror_flag"
38596                          || test ! -s conftest.err'
38597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38598   (eval $ac_try) 2>&5
38599   ac_status=$?
38600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601   (exit $ac_status); }; } &&
38602          { ac_try='test -s conftest$ac_exeext'
38603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38604   (eval $ac_try) 2>&5
38605   ac_status=$?
38606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38607   (exit $ac_status); }; }; then
38608   ol_cv_func_inet_aton=yes
38609 else
38610   echo "$as_me: failed program was:" >&5
38611 sed 's/^/| /' conftest.$ac_ext >&5
38612
38613 ol_cv_func_inet_aton=no
38614 fi
38615 rm -f conftest.err conftest.$ac_objext \
38616       conftest$ac_exeext conftest.$ac_ext
38617 fi
38618 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
38619 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
38620   if test $ol_cv_func_inet_aton != no; then
38621
38622 cat >>confdefs.h <<\_ACEOF
38623 #define HAVE_INET_ATON 1
38624 _ACEOF
38625
38626   fi
38627
38628
38629 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38630 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38631 if test "${ac_cv_func__spawnlp+set}" = set; then
38632   echo $ECHO_N "(cached) $ECHO_C" >&6
38633 else
38634   cat >conftest.$ac_ext <<_ACEOF
38635 /* confdefs.h.  */
38636 _ACEOF
38637 cat confdefs.h >>conftest.$ac_ext
38638 cat >>conftest.$ac_ext <<_ACEOF
38639 /* end confdefs.h.  */
38640 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38642 #define _spawnlp innocuous__spawnlp
38643
38644 /* System header to define __stub macros and hopefully few prototypes,
38645     which can conflict with char _spawnlp (); below.
38646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38647     <limits.h> exists even on freestanding compilers.  */
38648
38649 #ifdef __STDC__
38650 # include <limits.h>
38651 #else
38652 # include <assert.h>
38653 #endif
38654
38655 #undef _spawnlp
38656
38657 /* Override any gcc2 internal prototype to avoid an error.  */
38658 #ifdef __cplusplus
38659 extern "C"
38660 {
38661 #endif
38662 /* We use char because int might match the return type of a gcc2
38663    builtin and then its argument prototype would still apply.  */
38664 char _spawnlp ();
38665 /* The GNU C library defines this for functions which it implements
38666     to always fail with ENOSYS.  Some functions are actually named
38667     something starting with __ and the normal name is an alias.  */
38668 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38669 choke me
38670 #else
38671 char (*f) () = _spawnlp;
38672 #endif
38673 #ifdef __cplusplus
38674 }
38675 #endif
38676
38677 int
38678 main ()
38679 {
38680 return f != _spawnlp;
38681   ;
38682   return 0;
38683 }
38684 _ACEOF
38685 rm -f conftest.$ac_objext conftest$ac_exeext
38686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38687   (eval $ac_link) 2>conftest.er1
38688   ac_status=$?
38689   grep -v '^ *+' conftest.er1 >conftest.err
38690   rm -f conftest.er1
38691   cat conftest.err >&5
38692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38693   (exit $ac_status); } &&
38694          { ac_try='test -z "$ac_c_werror_flag"
38695                          || test ! -s conftest.err'
38696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38697   (eval $ac_try) 2>&5
38698   ac_status=$?
38699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700   (exit $ac_status); }; } &&
38701          { ac_try='test -s conftest$ac_exeext'
38702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38703   (eval $ac_try) 2>&5
38704   ac_status=$?
38705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38706   (exit $ac_status); }; }; then
38707   ac_cv_func__spawnlp=yes
38708 else
38709   echo "$as_me: failed program was:" >&5
38710 sed 's/^/| /' conftest.$ac_ext >&5
38711
38712 ac_cv_func__spawnlp=no
38713 fi
38714 rm -f conftest.err conftest.$ac_objext \
38715       conftest$ac_exeext conftest.$ac_ext
38716 fi
38717 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38718 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38719 if test $ac_cv_func__spawnlp = yes; then
38720
38721 cat >>confdefs.h <<\_ACEOF
38722 #define HAVE_SPAWNLP 1
38723 _ACEOF
38724
38725 fi
38726
38727
38728 echo "$as_me:$LINENO: checking for _snprintf" >&5
38729 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38730 if test "${ac_cv_func__snprintf+set}" = set; then
38731   echo $ECHO_N "(cached) $ECHO_C" >&6
38732 else
38733   cat >conftest.$ac_ext <<_ACEOF
38734 /* confdefs.h.  */
38735 _ACEOF
38736 cat confdefs.h >>conftest.$ac_ext
38737 cat >>conftest.$ac_ext <<_ACEOF
38738 /* end confdefs.h.  */
38739 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38741 #define _snprintf innocuous__snprintf
38742
38743 /* System header to define __stub macros and hopefully few prototypes,
38744     which can conflict with char _snprintf (); below.
38745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38746     <limits.h> exists even on freestanding compilers.  */
38747
38748 #ifdef __STDC__
38749 # include <limits.h>
38750 #else
38751 # include <assert.h>
38752 #endif
38753
38754 #undef _snprintf
38755
38756 /* Override any gcc2 internal prototype to avoid an error.  */
38757 #ifdef __cplusplus
38758 extern "C"
38759 {
38760 #endif
38761 /* We use char because int might match the return type of a gcc2
38762    builtin and then its argument prototype would still apply.  */
38763 char _snprintf ();
38764 /* The GNU C library defines this for functions which it implements
38765     to always fail with ENOSYS.  Some functions are actually named
38766     something starting with __ and the normal name is an alias.  */
38767 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38768 choke me
38769 #else
38770 char (*f) () = _snprintf;
38771 #endif
38772 #ifdef __cplusplus
38773 }
38774 #endif
38775
38776 int
38777 main ()
38778 {
38779 return f != _snprintf;
38780   ;
38781   return 0;
38782 }
38783 _ACEOF
38784 rm -f conftest.$ac_objext conftest$ac_exeext
38785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38786   (eval $ac_link) 2>conftest.er1
38787   ac_status=$?
38788   grep -v '^ *+' conftest.er1 >conftest.err
38789   rm -f conftest.er1
38790   cat conftest.err >&5
38791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792   (exit $ac_status); } &&
38793          { ac_try='test -z "$ac_c_werror_flag"
38794                          || test ! -s conftest.err'
38795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38796   (eval $ac_try) 2>&5
38797   ac_status=$?
38798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38799   (exit $ac_status); }; } &&
38800          { ac_try='test -s conftest$ac_exeext'
38801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38802   (eval $ac_try) 2>&5
38803   ac_status=$?
38804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38805   (exit $ac_status); }; }; then
38806   ac_cv_func__snprintf=yes
38807 else
38808   echo "$as_me: failed program was:" >&5
38809 sed 's/^/| /' conftest.$ac_ext >&5
38810
38811 ac_cv_func__snprintf=no
38812 fi
38813 rm -f conftest.err conftest.$ac_objext \
38814       conftest$ac_exeext conftest.$ac_ext
38815 fi
38816 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38817 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38818 if test $ac_cv_func__snprintf = yes; then
38819   ac_cv_func_snprintf=yes
38820
38821 cat >>confdefs.h <<\_ACEOF
38822 #define snprintf _snprintf
38823 _ACEOF
38824
38825
38826 fi
38827
38828
38829 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38830 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38831 if test "${ac_cv_func__vsnprintf+set}" = set; then
38832   echo $ECHO_N "(cached) $ECHO_C" >&6
38833 else
38834   cat >conftest.$ac_ext <<_ACEOF
38835 /* confdefs.h.  */
38836 _ACEOF
38837 cat confdefs.h >>conftest.$ac_ext
38838 cat >>conftest.$ac_ext <<_ACEOF
38839 /* end confdefs.h.  */
38840 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38842 #define _vsnprintf innocuous__vsnprintf
38843
38844 /* System header to define __stub macros and hopefully few prototypes,
38845     which can conflict with char _vsnprintf (); below.
38846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38847     <limits.h> exists even on freestanding compilers.  */
38848
38849 #ifdef __STDC__
38850 # include <limits.h>
38851 #else
38852 # include <assert.h>
38853 #endif
38854
38855 #undef _vsnprintf
38856
38857 /* Override any gcc2 internal prototype to avoid an error.  */
38858 #ifdef __cplusplus
38859 extern "C"
38860 {
38861 #endif
38862 /* We use char because int might match the return type of a gcc2
38863    builtin and then its argument prototype would still apply.  */
38864 char _vsnprintf ();
38865 /* The GNU C library defines this for functions which it implements
38866     to always fail with ENOSYS.  Some functions are actually named
38867     something starting with __ and the normal name is an alias.  */
38868 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38869 choke me
38870 #else
38871 char (*f) () = _vsnprintf;
38872 #endif
38873 #ifdef __cplusplus
38874 }
38875 #endif
38876
38877 int
38878 main ()
38879 {
38880 return f != _vsnprintf;
38881   ;
38882   return 0;
38883 }
38884 _ACEOF
38885 rm -f conftest.$ac_objext conftest$ac_exeext
38886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38887   (eval $ac_link) 2>conftest.er1
38888   ac_status=$?
38889   grep -v '^ *+' conftest.er1 >conftest.err
38890   rm -f conftest.er1
38891   cat conftest.err >&5
38892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38893   (exit $ac_status); } &&
38894          { ac_try='test -z "$ac_c_werror_flag"
38895                          || test ! -s conftest.err'
38896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38897   (eval $ac_try) 2>&5
38898   ac_status=$?
38899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38900   (exit $ac_status); }; } &&
38901          { ac_try='test -s conftest$ac_exeext'
38902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38903   (eval $ac_try) 2>&5
38904   ac_status=$?
38905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38906   (exit $ac_status); }; }; then
38907   ac_cv_func__vsnprintf=yes
38908 else
38909   echo "$as_me: failed program was:" >&5
38910 sed 's/^/| /' conftest.$ac_ext >&5
38911
38912 ac_cv_func__vsnprintf=no
38913 fi
38914 rm -f conftest.err conftest.$ac_objext \
38915       conftest$ac_exeext conftest.$ac_ext
38916 fi
38917 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38918 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38919 if test $ac_cv_func__vsnprintf = yes; then
38920   ac_cv_func_vsnprintf=yes
38921
38922 cat >>confdefs.h <<\_ACEOF
38923 #define vsnprintf _vsnprintf
38924 _ACEOF
38925
38926
38927 fi
38928
38929
38930
38931 for ac_func in vprintf
38932 do
38933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38934 echo "$as_me:$LINENO: checking for $ac_func" >&5
38935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38936 if eval "test \"\${$as_ac_var+set}\" = set"; then
38937   echo $ECHO_N "(cached) $ECHO_C" >&6
38938 else
38939   cat >conftest.$ac_ext <<_ACEOF
38940 /* confdefs.h.  */
38941 _ACEOF
38942 cat confdefs.h >>conftest.$ac_ext
38943 cat >>conftest.$ac_ext <<_ACEOF
38944 /* end confdefs.h.  */
38945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38947 #define $ac_func innocuous_$ac_func
38948
38949 /* System header to define __stub macros and hopefully few prototypes,
38950     which can conflict with char $ac_func (); below.
38951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38952     <limits.h> exists even on freestanding compilers.  */
38953
38954 #ifdef __STDC__
38955 # include <limits.h>
38956 #else
38957 # include <assert.h>
38958 #endif
38959
38960 #undef $ac_func
38961
38962 /* Override any gcc2 internal prototype to avoid an error.  */
38963 #ifdef __cplusplus
38964 extern "C"
38965 {
38966 #endif
38967 /* We use char because int might match the return type of a gcc2
38968    builtin and then its argument prototype would still apply.  */
38969 char $ac_func ();
38970 /* The GNU C library defines this for functions which it implements
38971     to always fail with ENOSYS.  Some functions are actually named
38972     something starting with __ and the normal name is an alias.  */
38973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38974 choke me
38975 #else
38976 char (*f) () = $ac_func;
38977 #endif
38978 #ifdef __cplusplus
38979 }
38980 #endif
38981
38982 int
38983 main ()
38984 {
38985 return f != $ac_func;
38986   ;
38987   return 0;
38988 }
38989 _ACEOF
38990 rm -f conftest.$ac_objext conftest$ac_exeext
38991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38992   (eval $ac_link) 2>conftest.er1
38993   ac_status=$?
38994   grep -v '^ *+' conftest.er1 >conftest.err
38995   rm -f conftest.er1
38996   cat conftest.err >&5
38997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38998   (exit $ac_status); } &&
38999          { ac_try='test -z "$ac_c_werror_flag"
39000                          || test ! -s conftest.err'
39001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39002   (eval $ac_try) 2>&5
39003   ac_status=$?
39004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39005   (exit $ac_status); }; } &&
39006          { ac_try='test -s conftest$ac_exeext'
39007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39008   (eval $ac_try) 2>&5
39009   ac_status=$?
39010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39011   (exit $ac_status); }; }; then
39012   eval "$as_ac_var=yes"
39013 else
39014   echo "$as_me: failed program was:" >&5
39015 sed 's/^/| /' conftest.$ac_ext >&5
39016
39017 eval "$as_ac_var=no"
39018 fi
39019 rm -f conftest.err conftest.$ac_objext \
39020       conftest$ac_exeext conftest.$ac_ext
39021 fi
39022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39024 if test `eval echo '${'$as_ac_var'}'` = yes; then
39025   cat >>confdefs.h <<_ACEOF
39026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39027 _ACEOF
39028
39029 echo "$as_me:$LINENO: checking for _doprnt" >&5
39030 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
39031 if test "${ac_cv_func__doprnt+set}" = set; then
39032   echo $ECHO_N "(cached) $ECHO_C" >&6
39033 else
39034   cat >conftest.$ac_ext <<_ACEOF
39035 /* confdefs.h.  */
39036 _ACEOF
39037 cat confdefs.h >>conftest.$ac_ext
39038 cat >>conftest.$ac_ext <<_ACEOF
39039 /* end confdefs.h.  */
39040 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39042 #define _doprnt innocuous__doprnt
39043
39044 /* System header to define __stub macros and hopefully few prototypes,
39045     which can conflict with char _doprnt (); below.
39046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39047     <limits.h> exists even on freestanding compilers.  */
39048
39049 #ifdef __STDC__
39050 # include <limits.h>
39051 #else
39052 # include <assert.h>
39053 #endif
39054
39055 #undef _doprnt
39056
39057 /* Override any gcc2 internal prototype to avoid an error.  */
39058 #ifdef __cplusplus
39059 extern "C"
39060 {
39061 #endif
39062 /* We use char because int might match the return type of a gcc2
39063    builtin and then its argument prototype would still apply.  */
39064 char _doprnt ();
39065 /* The GNU C library defines this for functions which it implements
39066     to always fail with ENOSYS.  Some functions are actually named
39067     something starting with __ and the normal name is an alias.  */
39068 #if defined (__stub__doprnt) || defined (__stub____doprnt)
39069 choke me
39070 #else
39071 char (*f) () = _doprnt;
39072 #endif
39073 #ifdef __cplusplus
39074 }
39075 #endif
39076
39077 int
39078 main ()
39079 {
39080 return f != _doprnt;
39081   ;
39082   return 0;
39083 }
39084 _ACEOF
39085 rm -f conftest.$ac_objext conftest$ac_exeext
39086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39087   (eval $ac_link) 2>conftest.er1
39088   ac_status=$?
39089   grep -v '^ *+' conftest.er1 >conftest.err
39090   rm -f conftest.er1
39091   cat conftest.err >&5
39092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39093   (exit $ac_status); } &&
39094          { ac_try='test -z "$ac_c_werror_flag"
39095                          || test ! -s conftest.err'
39096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39097   (eval $ac_try) 2>&5
39098   ac_status=$?
39099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39100   (exit $ac_status); }; } &&
39101          { ac_try='test -s conftest$ac_exeext'
39102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39103   (eval $ac_try) 2>&5
39104   ac_status=$?
39105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39106   (exit $ac_status); }; }; then
39107   ac_cv_func__doprnt=yes
39108 else
39109   echo "$as_me: failed program was:" >&5
39110 sed 's/^/| /' conftest.$ac_ext >&5
39111
39112 ac_cv_func__doprnt=no
39113 fi
39114 rm -f conftest.err conftest.$ac_objext \
39115       conftest$ac_exeext conftest.$ac_ext
39116 fi
39117 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39118 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
39119 if test $ac_cv_func__doprnt = yes; then
39120
39121 cat >>confdefs.h <<\_ACEOF
39122 #define HAVE_DOPRNT 1
39123 _ACEOF
39124
39125 fi
39126
39127 fi
39128 done
39129
39130
39131
39132 if test $ac_cv_func_vprintf = yes ; then
39133
39134
39135 for ac_func in snprintf vsnprintf
39136 do
39137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39138 echo "$as_me:$LINENO: checking for $ac_func" >&5
39139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39140 if eval "test \"\${$as_ac_var+set}\" = set"; then
39141   echo $ECHO_N "(cached) $ECHO_C" >&6
39142 else
39143   cat >conftest.$ac_ext <<_ACEOF
39144 /* confdefs.h.  */
39145 _ACEOF
39146 cat confdefs.h >>conftest.$ac_ext
39147 cat >>conftest.$ac_ext <<_ACEOF
39148 /* end confdefs.h.  */
39149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39151 #define $ac_func innocuous_$ac_func
39152
39153 /* System header to define __stub macros and hopefully few prototypes,
39154     which can conflict with char $ac_func (); below.
39155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39156     <limits.h> exists even on freestanding compilers.  */
39157
39158 #ifdef __STDC__
39159 # include <limits.h>
39160 #else
39161 # include <assert.h>
39162 #endif
39163
39164 #undef $ac_func
39165
39166 /* Override any gcc2 internal prototype to avoid an error.  */
39167 #ifdef __cplusplus
39168 extern "C"
39169 {
39170 #endif
39171 /* We use char because int might match the return type of a gcc2
39172    builtin and then its argument prototype would still apply.  */
39173 char $ac_func ();
39174 /* The GNU C library defines this for functions which it implements
39175     to always fail with ENOSYS.  Some functions are actually named
39176     something starting with __ and the normal name is an alias.  */
39177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39178 choke me
39179 #else
39180 char (*f) () = $ac_func;
39181 #endif
39182 #ifdef __cplusplus
39183 }
39184 #endif
39185
39186 int
39187 main ()
39188 {
39189 return f != $ac_func;
39190   ;
39191   return 0;
39192 }
39193 _ACEOF
39194 rm -f conftest.$ac_objext conftest$ac_exeext
39195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39196   (eval $ac_link) 2>conftest.er1
39197   ac_status=$?
39198   grep -v '^ *+' conftest.er1 >conftest.err
39199   rm -f conftest.er1
39200   cat conftest.err >&5
39201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39202   (exit $ac_status); } &&
39203          { ac_try='test -z "$ac_c_werror_flag"
39204                          || test ! -s conftest.err'
39205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39206   (eval $ac_try) 2>&5
39207   ac_status=$?
39208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39209   (exit $ac_status); }; } &&
39210          { ac_try='test -s conftest$ac_exeext'
39211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39212   (eval $ac_try) 2>&5
39213   ac_status=$?
39214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39215   (exit $ac_status); }; }; then
39216   eval "$as_ac_var=yes"
39217 else
39218   echo "$as_me: failed program was:" >&5
39219 sed 's/^/| /' conftest.$ac_ext >&5
39220
39221 eval "$as_ac_var=no"
39222 fi
39223 rm -f conftest.err conftest.$ac_objext \
39224       conftest$ac_exeext conftest.$ac_ext
39225 fi
39226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39228 if test `eval echo '${'$as_ac_var'}'` = yes; then
39229   cat >>confdefs.h <<_ACEOF
39230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39231 _ACEOF
39232
39233 fi
39234 done
39235
39236 fi
39237
39238
39239
39240
39241
39242
39243
39244
39245
39246
39247
39248
39249
39250
39251
39252
39253
39254
39255
39256
39257
39258
39259
39260
39261
39262
39263
39264
39265
39266
39267
39268
39269
39270
39271
39272
39273
39274
39275
39276
39277
39278
39279
39280
39281
39282
39283
39284
39285
39286
39287
39288
39289
39290
39291
39292
39293 for ac_func in \
39294         bcopy                   \
39295         closesocket             \
39296         chroot                  \
39297         endgrent                \
39298         endpwent                \
39299         fcntl                   \
39300         flock                   \
39301         fstat                   \
39302         getdtablesize           \
39303         getgrgid                \
39304         gethostname             \
39305         getpass                 \
39306         getpassphrase           \
39307         getpwuid                \
39308         getpwnam                \
39309         getspnam                \
39310         gettimeofday            \
39311         initgroups              \
39312         inet_ntoa_b             \
39313         ioctl                   \
39314         lockf                   \
39315         memcpy                  \
39316         memmove                 \
39317         memrchr                 \
39318         mkstemp                 \
39319         mktemp                  \
39320         pipe                    \
39321         read                    \
39322         recv                    \
39323         recvfrom                \
39324         setpwfile               \
39325         setgid                  \
39326         setegid                 \
39327         setsid                  \
39328         setuid                  \
39329         seteuid                 \
39330         signal                  \
39331         strdup                  \
39332         strpbrk                 \
39333         strrchr                 \
39334         strsep                  \
39335         strstr                  \
39336         strtol                  \
39337         strtoul                 \
39338         strtoq                  \
39339         strtouq                 \
39340         strtoll                 \
39341         strspn                  \
39342         sysconf                 \
39343         waitpid                 \
39344         wait4                   \
39345         write                   \
39346         send                    \
39347         sendmsg                 \
39348         sendto                  \
39349
39350 do
39351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39352 echo "$as_me:$LINENO: checking for $ac_func" >&5
39353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39354 if eval "test \"\${$as_ac_var+set}\" = set"; then
39355   echo $ECHO_N "(cached) $ECHO_C" >&6
39356 else
39357   cat >conftest.$ac_ext <<_ACEOF
39358 /* confdefs.h.  */
39359 _ACEOF
39360 cat confdefs.h >>conftest.$ac_ext
39361 cat >>conftest.$ac_ext <<_ACEOF
39362 /* end confdefs.h.  */
39363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39365 #define $ac_func innocuous_$ac_func
39366
39367 /* System header to define __stub macros and hopefully few prototypes,
39368     which can conflict with char $ac_func (); below.
39369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39370     <limits.h> exists even on freestanding compilers.  */
39371
39372 #ifdef __STDC__
39373 # include <limits.h>
39374 #else
39375 # include <assert.h>
39376 #endif
39377
39378 #undef $ac_func
39379
39380 /* Override any gcc2 internal prototype to avoid an error.  */
39381 #ifdef __cplusplus
39382 extern "C"
39383 {
39384 #endif
39385 /* We use char because int might match the return type of a gcc2
39386    builtin and then its argument prototype would still apply.  */
39387 char $ac_func ();
39388 /* The GNU C library defines this for functions which it implements
39389     to always fail with ENOSYS.  Some functions are actually named
39390     something starting with __ and the normal name is an alias.  */
39391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39392 choke me
39393 #else
39394 char (*f) () = $ac_func;
39395 #endif
39396 #ifdef __cplusplus
39397 }
39398 #endif
39399
39400 int
39401 main ()
39402 {
39403 return f != $ac_func;
39404   ;
39405   return 0;
39406 }
39407 _ACEOF
39408 rm -f conftest.$ac_objext conftest$ac_exeext
39409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39410   (eval $ac_link) 2>conftest.er1
39411   ac_status=$?
39412   grep -v '^ *+' conftest.er1 >conftest.err
39413   rm -f conftest.er1
39414   cat conftest.err >&5
39415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39416   (exit $ac_status); } &&
39417          { ac_try='test -z "$ac_c_werror_flag"
39418                          || test ! -s conftest.err'
39419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39420   (eval $ac_try) 2>&5
39421   ac_status=$?
39422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39423   (exit $ac_status); }; } &&
39424          { ac_try='test -s conftest$ac_exeext'
39425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39426   (eval $ac_try) 2>&5
39427   ac_status=$?
39428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39429   (exit $ac_status); }; }; then
39430   eval "$as_ac_var=yes"
39431 else
39432   echo "$as_me: failed program was:" >&5
39433 sed 's/^/| /' conftest.$ac_ext >&5
39434
39435 eval "$as_ac_var=no"
39436 fi
39437 rm -f conftest.err conftest.$ac_objext \
39438       conftest$ac_exeext conftest.$ac_ext
39439 fi
39440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39442 if test `eval echo '${'$as_ac_var'}'` = yes; then
39443   cat >>confdefs.h <<_ACEOF
39444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39445 _ACEOF
39446
39447 fi
39448 done
39449
39450
39451
39452
39453 for ac_func in getopt getpeereid
39454 do
39455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39456 echo "$as_me:$LINENO: checking for $ac_func" >&5
39457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39458 if eval "test \"\${$as_ac_var+set}\" = set"; then
39459   echo $ECHO_N "(cached) $ECHO_C" >&6
39460 else
39461   cat >conftest.$ac_ext <<_ACEOF
39462 /* confdefs.h.  */
39463 _ACEOF
39464 cat confdefs.h >>conftest.$ac_ext
39465 cat >>conftest.$ac_ext <<_ACEOF
39466 /* end confdefs.h.  */
39467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39469 #define $ac_func innocuous_$ac_func
39470
39471 /* System header to define __stub macros and hopefully few prototypes,
39472     which can conflict with char $ac_func (); below.
39473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39474     <limits.h> exists even on freestanding compilers.  */
39475
39476 #ifdef __STDC__
39477 # include <limits.h>
39478 #else
39479 # include <assert.h>
39480 #endif
39481
39482 #undef $ac_func
39483
39484 /* Override any gcc2 internal prototype to avoid an error.  */
39485 #ifdef __cplusplus
39486 extern "C"
39487 {
39488 #endif
39489 /* We use char because int might match the return type of a gcc2
39490    builtin and then its argument prototype would still apply.  */
39491 char $ac_func ();
39492 /* The GNU C library defines this for functions which it implements
39493     to always fail with ENOSYS.  Some functions are actually named
39494     something starting with __ and the normal name is an alias.  */
39495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39496 choke me
39497 #else
39498 char (*f) () = $ac_func;
39499 #endif
39500 #ifdef __cplusplus
39501 }
39502 #endif
39503
39504 int
39505 main ()
39506 {
39507 return f != $ac_func;
39508   ;
39509   return 0;
39510 }
39511 _ACEOF
39512 rm -f conftest.$ac_objext conftest$ac_exeext
39513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39514   (eval $ac_link) 2>conftest.er1
39515   ac_status=$?
39516   grep -v '^ *+' conftest.er1 >conftest.err
39517   rm -f conftest.er1
39518   cat conftest.err >&5
39519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39520   (exit $ac_status); } &&
39521          { ac_try='test -z "$ac_c_werror_flag"
39522                          || test ! -s conftest.err'
39523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39524   (eval $ac_try) 2>&5
39525   ac_status=$?
39526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39527   (exit $ac_status); }; } &&
39528          { ac_try='test -s conftest$ac_exeext'
39529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39530   (eval $ac_try) 2>&5
39531   ac_status=$?
39532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39533   (exit $ac_status); }; }; then
39534   eval "$as_ac_var=yes"
39535 else
39536   echo "$as_me: failed program was:" >&5
39537 sed 's/^/| /' conftest.$ac_ext >&5
39538
39539 eval "$as_ac_var=no"
39540 fi
39541 rm -f conftest.err conftest.$ac_objext \
39542       conftest$ac_exeext conftest.$ac_ext
39543 fi
39544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39546 if test `eval echo '${'$as_ac_var'}'` = yes; then
39547   cat >>confdefs.h <<_ACEOF
39548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39549 _ACEOF
39550
39551 else
39552   case $LIBOBJS in
39553     "$ac_func.$ac_objext"   | \
39554   *" $ac_func.$ac_objext"   | \
39555     "$ac_func.$ac_objext "* | \
39556   *" $ac_func.$ac_objext "* ) ;;
39557   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39558 esac
39559
39560 fi
39561 done
39562
39563
39564
39565 if test "$ac_cv_func_getopt" != yes; then
39566         LIBSRCS="$LIBSRCS getopt.c"
39567 fi
39568
39569 if test "$ac_cv_func_getpeereid" != yes; then
39570
39571 for ac_func in getpeerucred
39572 do
39573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39574 echo "$as_me:$LINENO: checking for $ac_func" >&5
39575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39576 if eval "test \"\${$as_ac_var+set}\" = set"; then
39577   echo $ECHO_N "(cached) $ECHO_C" >&6
39578 else
39579   cat >conftest.$ac_ext <<_ACEOF
39580 /* confdefs.h.  */
39581 _ACEOF
39582 cat confdefs.h >>conftest.$ac_ext
39583 cat >>conftest.$ac_ext <<_ACEOF
39584 /* end confdefs.h.  */
39585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39587 #define $ac_func innocuous_$ac_func
39588
39589 /* System header to define __stub macros and hopefully few prototypes,
39590     which can conflict with char $ac_func (); below.
39591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39592     <limits.h> exists even on freestanding compilers.  */
39593
39594 #ifdef __STDC__
39595 # include <limits.h>
39596 #else
39597 # include <assert.h>
39598 #endif
39599
39600 #undef $ac_func
39601
39602 /* Override any gcc2 internal prototype to avoid an error.  */
39603 #ifdef __cplusplus
39604 extern "C"
39605 {
39606 #endif
39607 /* We use char because int might match the return type of a gcc2
39608    builtin and then its argument prototype would still apply.  */
39609 char $ac_func ();
39610 /* The GNU C library defines this for functions which it implements
39611     to always fail with ENOSYS.  Some functions are actually named
39612     something starting with __ and the normal name is an alias.  */
39613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39614 choke me
39615 #else
39616 char (*f) () = $ac_func;
39617 #endif
39618 #ifdef __cplusplus
39619 }
39620 #endif
39621
39622 int
39623 main ()
39624 {
39625 return f != $ac_func;
39626   ;
39627   return 0;
39628 }
39629 _ACEOF
39630 rm -f conftest.$ac_objext conftest$ac_exeext
39631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39632   (eval $ac_link) 2>conftest.er1
39633   ac_status=$?
39634   grep -v '^ *+' conftest.er1 >conftest.err
39635   rm -f conftest.er1
39636   cat conftest.err >&5
39637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39638   (exit $ac_status); } &&
39639          { ac_try='test -z "$ac_c_werror_flag"
39640                          || test ! -s conftest.err'
39641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39642   (eval $ac_try) 2>&5
39643   ac_status=$?
39644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39645   (exit $ac_status); }; } &&
39646          { ac_try='test -s conftest$ac_exeext'
39647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39648   (eval $ac_try) 2>&5
39649   ac_status=$?
39650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39651   (exit $ac_status); }; }; then
39652   eval "$as_ac_var=yes"
39653 else
39654   echo "$as_me: failed program was:" >&5
39655 sed 's/^/| /' conftest.$ac_ext >&5
39656
39657 eval "$as_ac_var=no"
39658 fi
39659 rm -f conftest.err conftest.$ac_objext \
39660       conftest$ac_exeext conftest.$ac_ext
39661 fi
39662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39664 if test `eval echo '${'$as_ac_var'}'` = yes; then
39665   cat >>confdefs.h <<_ACEOF
39666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39667 _ACEOF
39668
39669 fi
39670 done
39671
39672         if test "$ac_cv_func_getpeerucred" != yes ; then
39673                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39674 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39675 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39676   echo $ECHO_N "(cached) $ECHO_C" >&6
39677 else
39678   cat >conftest.$ac_ext <<_ACEOF
39679 /* confdefs.h.  */
39680 _ACEOF
39681 cat confdefs.h >>conftest.$ac_ext
39682 cat >>conftest.$ac_ext <<_ACEOF
39683 /* end confdefs.h.  */
39684 $ac_includes_default
39685 #ifdef HAVE_SYS_SOCKET_H
39686 #include <sys/socket.h>
39687 #endif
39688
39689 int
39690 main ()
39691 {
39692 static struct msghdr ac_aggr;
39693 if (ac_aggr.msg_accrightslen)
39694 return 0;
39695   ;
39696   return 0;
39697 }
39698 _ACEOF
39699 rm -f conftest.$ac_objext
39700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39701   (eval $ac_compile) 2>conftest.er1
39702   ac_status=$?
39703   grep -v '^ *+' conftest.er1 >conftest.err
39704   rm -f conftest.er1
39705   cat conftest.err >&5
39706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39707   (exit $ac_status); } &&
39708          { ac_try='test -z "$ac_c_werror_flag"
39709                          || test ! -s conftest.err'
39710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39711   (eval $ac_try) 2>&5
39712   ac_status=$?
39713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39714   (exit $ac_status); }; } &&
39715          { ac_try='test -s conftest.$ac_objext'
39716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39717   (eval $ac_try) 2>&5
39718   ac_status=$?
39719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39720   (exit $ac_status); }; }; then
39721   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39722 else
39723   echo "$as_me: failed program was:" >&5
39724 sed 's/^/| /' conftest.$ac_ext >&5
39725
39726 cat >conftest.$ac_ext <<_ACEOF
39727 /* confdefs.h.  */
39728 _ACEOF
39729 cat confdefs.h >>conftest.$ac_ext
39730 cat >>conftest.$ac_ext <<_ACEOF
39731 /* end confdefs.h.  */
39732 $ac_includes_default
39733 #ifdef HAVE_SYS_SOCKET_H
39734 #include <sys/socket.h>
39735 #endif
39736
39737 int
39738 main ()
39739 {
39740 static struct msghdr ac_aggr;
39741 if (sizeof ac_aggr.msg_accrightslen)
39742 return 0;
39743   ;
39744   return 0;
39745 }
39746 _ACEOF
39747 rm -f conftest.$ac_objext
39748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39749   (eval $ac_compile) 2>conftest.er1
39750   ac_status=$?
39751   grep -v '^ *+' conftest.er1 >conftest.err
39752   rm -f conftest.er1
39753   cat conftest.err >&5
39754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39755   (exit $ac_status); } &&
39756          { ac_try='test -z "$ac_c_werror_flag"
39757                          || test ! -s conftest.err'
39758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39759   (eval $ac_try) 2>&5
39760   ac_status=$?
39761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39762   (exit $ac_status); }; } &&
39763          { ac_try='test -s conftest.$ac_objext'
39764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39765   (eval $ac_try) 2>&5
39766   ac_status=$?
39767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39768   (exit $ac_status); }; }; then
39769   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39770 else
39771   echo "$as_me: failed program was:" >&5
39772 sed 's/^/| /' conftest.$ac_ext >&5
39773
39774 ac_cv_member_struct_msghdr_msg_accrightslen=no
39775 fi
39776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39777 fi
39778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39779 fi
39780 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39781 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39782 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39783
39784 cat >>confdefs.h <<_ACEOF
39785 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39786 _ACEOF
39787
39788
39789 fi
39790
39791                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39792                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39793 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39794 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39795   echo $ECHO_N "(cached) $ECHO_C" >&6
39796 else
39797   cat >conftest.$ac_ext <<_ACEOF
39798 /* confdefs.h.  */
39799 _ACEOF
39800 cat confdefs.h >>conftest.$ac_ext
39801 cat >>conftest.$ac_ext <<_ACEOF
39802 /* end confdefs.h.  */
39803 $ac_includes_default
39804 #ifdef HAVE_SYS_SOCKET_H
39805 #include <sys/socket.h>
39806 #endif
39807
39808 int
39809 main ()
39810 {
39811 static struct msghdr ac_aggr;
39812 if (ac_aggr.msg_control)
39813 return 0;
39814   ;
39815   return 0;
39816 }
39817 _ACEOF
39818 rm -f conftest.$ac_objext
39819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39820   (eval $ac_compile) 2>conftest.er1
39821   ac_status=$?
39822   grep -v '^ *+' conftest.er1 >conftest.err
39823   rm -f conftest.er1
39824   cat conftest.err >&5
39825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39826   (exit $ac_status); } &&
39827          { ac_try='test -z "$ac_c_werror_flag"
39828                          || test ! -s conftest.err'
39829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39830   (eval $ac_try) 2>&5
39831   ac_status=$?
39832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39833   (exit $ac_status); }; } &&
39834          { ac_try='test -s conftest.$ac_objext'
39835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39836   (eval $ac_try) 2>&5
39837   ac_status=$?
39838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839   (exit $ac_status); }; }; then
39840   ac_cv_member_struct_msghdr_msg_control=yes
39841 else
39842   echo "$as_me: failed program was:" >&5
39843 sed 's/^/| /' conftest.$ac_ext >&5
39844
39845 cat >conftest.$ac_ext <<_ACEOF
39846 /* confdefs.h.  */
39847 _ACEOF
39848 cat confdefs.h >>conftest.$ac_ext
39849 cat >>conftest.$ac_ext <<_ACEOF
39850 /* end confdefs.h.  */
39851 $ac_includes_default
39852 #ifdef HAVE_SYS_SOCKET_H
39853 #include <sys/socket.h>
39854 #endif
39855
39856 int
39857 main ()
39858 {
39859 static struct msghdr ac_aggr;
39860 if (sizeof ac_aggr.msg_control)
39861 return 0;
39862   ;
39863   return 0;
39864 }
39865 _ACEOF
39866 rm -f conftest.$ac_objext
39867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39868   (eval $ac_compile) 2>conftest.er1
39869   ac_status=$?
39870   grep -v '^ *+' conftest.er1 >conftest.err
39871   rm -f conftest.er1
39872   cat conftest.err >&5
39873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39874   (exit $ac_status); } &&
39875          { ac_try='test -z "$ac_c_werror_flag"
39876                          || test ! -s conftest.err'
39877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39878   (eval $ac_try) 2>&5
39879   ac_status=$?
39880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39881   (exit $ac_status); }; } &&
39882          { ac_try='test -s conftest.$ac_objext'
39883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39884   (eval $ac_try) 2>&5
39885   ac_status=$?
39886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39887   (exit $ac_status); }; }; then
39888   ac_cv_member_struct_msghdr_msg_control=yes
39889 else
39890   echo "$as_me: failed program was:" >&5
39891 sed 's/^/| /' conftest.$ac_ext >&5
39892
39893 ac_cv_member_struct_msghdr_msg_control=no
39894 fi
39895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39896 fi
39897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39898 fi
39899 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39900 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39901 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39902
39903 cat >>confdefs.h <<_ACEOF
39904 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39905 _ACEOF
39906
39907
39908 fi
39909
39910                 fi
39911         fi
39912         LIBSRCS="$LIBSRCS getpeereid.c"
39913 fi
39914
39915 if test "$ac_cv_func_snprintf" != yes ||
39916    test "$ac_cv_func_vsnprintf" != yes; then
39917         if test "$ac_cv_func_snprintf" != yes; then
39918
39919 cat >>confdefs.h <<\_ACEOF
39920 #define snprintf ber_pvt_snprintf
39921 _ACEOF
39922
39923         fi
39924         if test "$ac_cv_func_vsnprintf" != yes; then
39925
39926 cat >>confdefs.h <<\_ACEOF
39927 #define vsnprintf ber_pvt_vsnprintf
39928 _ACEOF
39929
39930         fi
39931 fi
39932
39933
39934 if test "$ol_enable_slapi" != no ; then
39935
39936 for ac_header in ltdl.h
39937 do
39938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39940   echo "$as_me:$LINENO: checking for $ac_header" >&5
39941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39943   echo $ECHO_N "(cached) $ECHO_C" >&6
39944 fi
39945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39947 else
39948   # Is the header compilable?
39949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39951 cat >conftest.$ac_ext <<_ACEOF
39952 /* confdefs.h.  */
39953 _ACEOF
39954 cat confdefs.h >>conftest.$ac_ext
39955 cat >>conftest.$ac_ext <<_ACEOF
39956 /* end confdefs.h.  */
39957 $ac_includes_default
39958 #include <$ac_header>
39959 _ACEOF
39960 rm -f conftest.$ac_objext
39961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39962   (eval $ac_compile) 2>conftest.er1
39963   ac_status=$?
39964   grep -v '^ *+' conftest.er1 >conftest.err
39965   rm -f conftest.er1
39966   cat conftest.err >&5
39967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39968   (exit $ac_status); } &&
39969          { ac_try='test -z "$ac_c_werror_flag"
39970                          || test ! -s conftest.err'
39971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39972   (eval $ac_try) 2>&5
39973   ac_status=$?
39974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39975   (exit $ac_status); }; } &&
39976          { ac_try='test -s conftest.$ac_objext'
39977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39978   (eval $ac_try) 2>&5
39979   ac_status=$?
39980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39981   (exit $ac_status); }; }; then
39982   ac_header_compiler=yes
39983 else
39984   echo "$as_me: failed program was:" >&5
39985 sed 's/^/| /' conftest.$ac_ext >&5
39986
39987 ac_header_compiler=no
39988 fi
39989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39991 echo "${ECHO_T}$ac_header_compiler" >&6
39992
39993 # Is the header present?
39994 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39996 cat >conftest.$ac_ext <<_ACEOF
39997 /* confdefs.h.  */
39998 _ACEOF
39999 cat confdefs.h >>conftest.$ac_ext
40000 cat >>conftest.$ac_ext <<_ACEOF
40001 /* end confdefs.h.  */
40002 #include <$ac_header>
40003 _ACEOF
40004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40006   ac_status=$?
40007   grep -v '^ *+' conftest.er1 >conftest.err
40008   rm -f conftest.er1
40009   cat conftest.err >&5
40010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40011   (exit $ac_status); } >/dev/null; then
40012   if test -s conftest.err; then
40013     ac_cpp_err=$ac_c_preproc_warn_flag
40014     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40015   else
40016     ac_cpp_err=
40017   fi
40018 else
40019   ac_cpp_err=yes
40020 fi
40021 if test -z "$ac_cpp_err"; then
40022   ac_header_preproc=yes
40023 else
40024   echo "$as_me: failed program was:" >&5
40025 sed 's/^/| /' conftest.$ac_ext >&5
40026
40027   ac_header_preproc=no
40028 fi
40029 rm -f conftest.err conftest.$ac_ext
40030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40031 echo "${ECHO_T}$ac_header_preproc" >&6
40032
40033 # So?  What about this header?
40034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40035   yes:no: )
40036     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40040     ac_header_preproc=yes
40041     ;;
40042   no:yes:* )
40043     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40045     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40046 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40047     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40049     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40050 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40053     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40055     (
40056       cat <<\_ASBOX
40057 ## --------------------------------------------- ##
40058 ## Report this to <http://www.openldap.org/its/> ##
40059 ## --------------------------------------------- ##
40060 _ASBOX
40061     ) |
40062       sed "s/^/$as_me: WARNING:     /" >&2
40063     ;;
40064 esac
40065 echo "$as_me:$LINENO: checking for $ac_header" >&5
40066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40068   echo $ECHO_N "(cached) $ECHO_C" >&6
40069 else
40070   eval "$as_ac_Header=\$ac_header_preproc"
40071 fi
40072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40074
40075 fi
40076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40077   cat >>confdefs.h <<_ACEOF
40078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40079 _ACEOF
40080
40081 fi
40082
40083 done
40084
40085
40086         if test $ac_cv_header_ltdl_h != yes ; then
40087                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
40088 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
40089    { (exit 1); exit 1; }; }
40090         fi
40091         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
40092 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
40093 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
40094   echo $ECHO_N "(cached) $ECHO_C" >&6
40095 else
40096   ac_check_lib_save_LIBS=$LIBS
40097 LIBS="-lltdl  $LIBS"
40098 cat >conftest.$ac_ext <<_ACEOF
40099 /* confdefs.h.  */
40100 _ACEOF
40101 cat confdefs.h >>conftest.$ac_ext
40102 cat >>conftest.$ac_ext <<_ACEOF
40103 /* end confdefs.h.  */
40104
40105 /* Override any gcc2 internal prototype to avoid an error.  */
40106 #ifdef __cplusplus
40107 extern "C"
40108 #endif
40109 /* We use char because int might match the return type of a gcc2
40110    builtin and then its argument prototype would still apply.  */
40111 char lt_dlinit ();
40112 int
40113 main ()
40114 {
40115 lt_dlinit ();
40116   ;
40117   return 0;
40118 }
40119 _ACEOF
40120 rm -f conftest.$ac_objext conftest$ac_exeext
40121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40122   (eval $ac_link) 2>conftest.er1
40123   ac_status=$?
40124   grep -v '^ *+' conftest.er1 >conftest.err
40125   rm -f conftest.er1
40126   cat conftest.err >&5
40127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40128   (exit $ac_status); } &&
40129          { ac_try='test -z "$ac_c_werror_flag"
40130                          || test ! -s conftest.err'
40131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40132   (eval $ac_try) 2>&5
40133   ac_status=$?
40134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40135   (exit $ac_status); }; } &&
40136          { ac_try='test -s conftest$ac_exeext'
40137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40138   (eval $ac_try) 2>&5
40139   ac_status=$?
40140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40141   (exit $ac_status); }; }; then
40142   ac_cv_lib_ltdl_lt_dlinit=yes
40143 else
40144   echo "$as_me: failed program was:" >&5
40145 sed 's/^/| /' conftest.$ac_ext >&5
40146
40147 ac_cv_lib_ltdl_lt_dlinit=no
40148 fi
40149 rm -f conftest.err conftest.$ac_objext \
40150       conftest$ac_exeext conftest.$ac_ext
40151 LIBS=$ac_check_lib_save_LIBS
40152 fi
40153 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
40154 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
40155 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
40156
40157                 SLAPI_LIBS=-lltdl
40158                 LIBSLAPI=libslapi.a
40159                 LIBSLAPITOOLS=../libslapi.a
40160
40161 cat >>confdefs.h <<\_ACEOF
40162 #define HAVE_LIBLTDL 1
40163 _ACEOF
40164
40165
40166 else
40167   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
40168 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
40169    { (exit 1); exit 1; }; }
40170 fi
40171
40172
40173
40174 cat >>confdefs.h <<\_ACEOF
40175 #define LDAP_SLAPI 1
40176 _ACEOF
40177
40178 fi
40179
40180 if test "$ol_enable_debug" != no ; then
40181         if test "$ol_enable_debug" = traditional; then
40182
40183 cat >>confdefs.h <<\_ACEOF
40184 #define OLD_DEBUG 1
40185 _ACEOF
40186
40187         fi
40188
40189 cat >>confdefs.h <<\_ACEOF
40190 #define LDAP_DEBUG 1
40191 _ACEOF
40192
40193 fi
40194 if test "$ol_enable_syslog" = yes ; then
40195
40196 cat >>confdefs.h <<\_ACEOF
40197 #define LDAP_SYSLOG 1
40198 _ACEOF
40199
40200 fi
40201 if test "$ol_link_kbind" != no ; then
40202
40203 cat >>confdefs.h <<\_ACEOF
40204 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
40205 _ACEOF
40206
40207 fi
40208 if test "$ol_enable_proctitle" != no ; then
40209
40210 cat >>confdefs.h <<\_ACEOF
40211 #define LDAP_PROCTITLE 1
40212 _ACEOF
40213
40214 fi
40215 if test "$ol_enable_referrals" != no ; then
40216
40217 cat >>confdefs.h <<\_ACEOF
40218 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
40219 _ACEOF
40220
40221 fi
40222 if test "$ol_enable_local" != no; then
40223
40224 cat >>confdefs.h <<\_ACEOF
40225 #define LDAP_PF_LOCAL 1
40226 _ACEOF
40227
40228 fi
40229 if test "$ol_link_ipv6" != no; then
40230
40231 cat >>confdefs.h <<\_ACEOF
40232 #define LDAP_PF_INET6 1
40233 _ACEOF
40234
40235 fi
40236 if test "$ol_enable_cleartext" != no ; then
40237
40238 cat >>confdefs.h <<\_ACEOF
40239 #define SLAPD_CLEARTEXT 1
40240 _ACEOF
40241
40242 fi
40243 if test "$ol_enable_crypt" != no ; then
40244
40245 cat >>confdefs.h <<\_ACEOF
40246 #define SLAPD_CRYPT 1
40247 _ACEOF
40248
40249 fi
40250 if test "$ol_link_spasswd" != no ; then
40251
40252 cat >>confdefs.h <<\_ACEOF
40253 #define SLAPD_SPASSWD 1
40254 _ACEOF
40255
40256 fi
40257 if test "$ol_enable_rlookups" != no ; then
40258
40259 cat >>confdefs.h <<\_ACEOF
40260 #define SLAPD_RLOOKUPS 1
40261 _ACEOF
40262
40263 fi
40264 if test "$ol_enable_aci" != no ; then
40265         if test $ol_enable_dynacl = no ; then
40266                 ol_enable_dynacl=yes
40267                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
40268 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
40269         fi
40270         if test "$ol_enable_aci" = mod ; then
40271                 MFLAG=SLAPD_MOD_DYNAMIC
40272                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
40273 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
40274    { (exit 1); exit 1; }; }
40275         else
40276                 MFLAG=SLAPD_MOD_STATIC
40277         fi
40278         WITH_ACI_ENABLED=$ol_enable_aci
40279
40280 cat >>confdefs.h <<_ACEOF
40281 #define SLAPD_ACI_ENABLED $MFLAG
40282 _ACEOF
40283
40284 else
40285         WITH_ACI_ENABLED=no
40286 fi
40287 if test "$ol_enable_dynacl" != no ; then
40288
40289 cat >>confdefs.h <<\_ACEOF
40290 #define SLAP_DYNACL 1
40291 _ACEOF
40292
40293 fi
40294
40295 if test "$ol_link_modules" != no ; then
40296
40297 cat >>confdefs.h <<\_ACEOF
40298 #define SLAPD_MODULES 1
40299 _ACEOF
40300
40301         BUILD_SLAPD=yes
40302         SLAPD_MODULES_LDFLAGS="-dlopen self"
40303 fi
40304
40305
40306 cat >>confdefs.h <<\_ACEOF
40307 #define SLAPD_MOD_STATIC 1
40308 _ACEOF
40309
40310
40311 cat >>confdefs.h <<\_ACEOF
40312 #define SLAPD_MOD_DYNAMIC 2
40313 _ACEOF
40314
40315
40316 if test "$ol_enable_monitor" != no ; then
40317         BUILD_SLAPD=yes
40318         BUILD_MONITOR=$ol_enable_monitor
40319         if test "$ol_enable_monitor" = mod ; then
40320                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
40321                 MFLAG=SLAPD_MOD_DYNAMIC
40322         else
40323                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
40324                 MFLAG=SLAPD_MOD_STATIC
40325         fi
40326
40327 cat >>confdefs.h <<_ACEOF
40328 #define SLAPD_MONITOR $MFLAG
40329 _ACEOF
40330
40331 fi
40332
40333 if test "$ol_enable_bdb" != no ; then
40334         BUILD_SLAPD=yes
40335         BUILD_BDB=$ol_enable_bdb
40336         if test "$ol_enable_bdb" = mod ; then
40337                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
40338                 MFLAG=SLAPD_MOD_DYNAMIC
40339         else
40340                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
40341                 MFLAG=SLAPD_MOD_STATIC
40342         fi
40343
40344 cat >>confdefs.h <<_ACEOF
40345 #define SLAPD_BDB $MFLAG
40346 _ACEOF
40347
40348 fi
40349
40350 if test "$ol_enable_dnssrv" != no ; then
40351         BUILD_SLAPD=yes
40352         BUILD_DNSSRV=$ol_enable_dnssrv
40353         if test "$ol_enable_dnssrv" = mod ; then
40354                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
40355                 MFLAG=SLAPD_MOD_DYNAMIC
40356         else
40357                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
40358                 MFLAG=SLAPD_MOD_STATIC
40359         fi
40360
40361 cat >>confdefs.h <<_ACEOF
40362 #define SLAPD_DNSSRV $MFLAG
40363 _ACEOF
40364
40365 fi
40366
40367 if test "$ol_enable_hdb" != no ; then
40368         BUILD_SLAPD=yes
40369         BUILD_HDB=$ol_enable_hdb
40370         if test "$ol_enable_hdb" = mod ; then
40371                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
40372                 MFLAG=SLAPD_MOD_DYNAMIC
40373         else
40374                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
40375                 MFLAG=SLAPD_MOD_STATIC
40376         fi
40377
40378 cat >>confdefs.h <<_ACEOF
40379 #define SLAPD_HDB $MFLAG
40380 _ACEOF
40381
40382 fi
40383
40384 if test "$ol_enable_ldap" != no ; then
40385         BUILD_SLAPD=yes
40386         BUILD_LDAP=$ol_enable_ldap
40387         if test "$ol_enable_ldap" = mod ; then
40388                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
40389                 MFLAG=SLAPD_MOD_DYNAMIC
40390         else
40391                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
40392                 MFLAG=SLAPD_MOD_STATIC
40393         fi
40394
40395 cat >>confdefs.h <<_ACEOF
40396 #define SLAPD_LDAP $MFLAG
40397 _ACEOF
40398
40399 fi
40400
40401 if test "$ol_enable_meta" != no ; then
40402         BUILD_SLAPD=yes
40403         BUILD_META=$ol_enable_meta
40404         BUILD_REWRITE=yes
40405         if test "$ol_enable_meta" = mod ; then
40406                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40407                 MFLAG=SLAPD_MOD_DYNAMIC
40408         else
40409                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40410                 MFLAG=SLAPD_MOD_STATIC
40411         fi
40412
40413 cat >>confdefs.h <<_ACEOF
40414 #define SLAPD_META $MFLAG
40415 _ACEOF
40416
40417 fi
40418
40419 if test "$ol_enable_null" != no ; then
40420         BUILD_SLAPD=yes
40421         BUILD_NULL=$ol_enable_null
40422         if test "$ol_enable_null" = mod ; then
40423                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40424                 MFLAG=SLAPD_MOD_DYNAMIC
40425         else
40426                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40427                 MFLAG=SLAPD_MOD_STATIC
40428         fi
40429
40430 cat >>confdefs.h <<_ACEOF
40431 #define SLAPD_NULL $MFLAG
40432 _ACEOF
40433
40434 fi
40435
40436 if test "$ol_enable_passwd" != no ; then
40437         BUILD_SLAPD=yes
40438         BUILD_PASSWD=$ol_enable_passwd
40439         if test "$ol_enable_passwd" = mod ; then
40440                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40441                 MFLAG=SLAPD_MOD_DYNAMIC
40442         else
40443                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40444                 MFLAG=SLAPD_MOD_STATIC
40445         fi
40446
40447 cat >>confdefs.h <<_ACEOF
40448 #define SLAPD_PASSWD $MFLAG
40449 _ACEOF
40450
40451 fi
40452
40453 if test "$ol_link_perl" != no ; then
40454         BUILD_SLAPD=yes
40455         BUILD_PERL=$ol_enable_perl
40456         if test "$ol_enable_perl" = mod ; then
40457                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40458                 MFLAG=SLAPD_MOD_DYNAMIC
40459         else
40460                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40461                 MFLAG=SLAPD_MOD_STATIC
40462         fi
40463
40464 cat >>confdefs.h <<_ACEOF
40465 #define SLAPD_PERL $MFLAG
40466 _ACEOF
40467
40468 fi
40469
40470 if test "$ol_enable_relay" != no ; then
40471         BUILD_SLAPD=yes
40472         BUILD_RELAY=$ol_enable_relay
40473         if test "$ol_enable_relay" = mod ; then
40474                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40475                 MFLAG=SLAPD_MOD_DYNAMIC
40476         else
40477                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40478                 MFLAG=SLAPD_MOD_STATIC
40479         fi
40480
40481 cat >>confdefs.h <<_ACEOF
40482 #define SLAPD_RELAY $MFLAG
40483 _ACEOF
40484
40485 fi
40486
40487 if test "$ol_enable_shell" != no ; then
40488         if test "$ol_link_threads" != no ; then
40489                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40490 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40491         fi
40492         BUILD_SLAPD=yes
40493         BUILD_SHELL=$ol_enable_shell
40494         if test "$ol_enable_shell" = mod ; then
40495                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40496                 MFLAG=SLAPD_MOD_DYNAMIC
40497         else
40498                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40499                 MFLAG=SLAPD_MOD_STATIC
40500         fi
40501
40502 cat >>confdefs.h <<_ACEOF
40503 #define SLAPD_SHELL $MFLAG
40504 _ACEOF
40505
40506 fi
40507
40508 if test "$ol_link_sql" != no ; then
40509         BUILD_SLAPD=yes
40510         BUILD_SQL=$ol_enable_sql
40511         if test "$ol_enable_sql" = mod; then
40512                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40513                 MFLAG=SLAPD_MOD_DYNAMIC
40514         else
40515                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40516                 MFLAG=SLAPD_MOD_STATIC
40517         fi
40518
40519 cat >>confdefs.h <<_ACEOF
40520 #define SLAPD_SQL $MFLAG
40521 _ACEOF
40522
40523 fi
40524
40525 if test "$ol_enable_accesslog" != no ; then
40526         BUILD_ACCESSLOG=$ol_enable_accesslog
40527         if test "$ol_enable_accesslog" = mod ; then
40528                 MFLAG=SLAPD_MOD_DYNAMIC
40529                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40530         else
40531                 MFLAG=SLAPD_MOD_STATIC
40532                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40533         fi
40534
40535 cat >>confdefs.h <<_ACEOF
40536 #define SLAPD_OVER_ACCESSLOG $MFLAG
40537 _ACEOF
40538
40539 fi
40540
40541 if test "$ol_enable_auditlog" != no ; then
40542         BUILD_AUDITLOG=$ol_enable_auditlog
40543         if test "$ol_enable_auditlog" = mod ; then
40544                 MFLAG=SLAPD_MOD_DYNAMIC
40545                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40546         else
40547                 MFLAG=SLAPD_MOD_STATIC
40548                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40549         fi
40550
40551 cat >>confdefs.h <<_ACEOF
40552 #define SLAPD_OVER_AUDITLOG $MFLAG
40553 _ACEOF
40554
40555 fi
40556
40557 if test "$ol_enable_constraint" != no ; then
40558         BUILD_CONSTRAINT=$ol_enable_constraint
40559         if test "$ol_enable_constraint" = mod ; then
40560                 MFLAG=SLAPD_MOD_DYNAMIC
40561                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
40562         else
40563                 MFLAG=SLAPD_MOD_STATIC
40564                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
40565         fi
40566
40567 cat >>confdefs.h <<_ACEOF
40568 #define SLAPD_OVER_CONSTRAINT $MFLAG
40569 _ACEOF
40570
40571 fi
40572
40573 if test "$ol_enable_dds" != no ; then
40574         BUILD_DDS=$ol_enable_dds
40575         if test "$ol_enable_dds" = mod ; then
40576                 MFLAG=SLAPD_MOD_DYNAMIC
40577                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40578         else
40579                 MFLAG=SLAPD_MOD_STATIC
40580                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40581         fi
40582
40583 cat >>confdefs.h <<_ACEOF
40584 #define SLAPD_OVER_DDS $MFLAG
40585 _ACEOF
40586
40587 fi
40588
40589 if test "$ol_enable_denyop" != no ; then
40590         BUILD_DENYOP=$ol_enable_denyop
40591         if test "$ol_enable_denyop" = mod ; then
40592                 MFLAG=SLAPD_MOD_DYNAMIC
40593                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
40594         else
40595                 MFLAG=SLAPD_MOD_STATIC
40596                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
40597         fi
40598
40599 cat >>confdefs.h <<_ACEOF
40600 #define SLAPD_OVER_DENYOP $MFLAG
40601 _ACEOF
40602
40603 fi
40604
40605 if test "$ol_enable_dyngroup" != no ; then
40606         BUILD_DYNGROUP=$ol_enable_dyngroup
40607         if test "$ol_enable_dyngroup" = mod ; then
40608                 MFLAG=SLAPD_MOD_DYNAMIC
40609                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40610         else
40611                 MFLAG=SLAPD_MOD_STATIC
40612                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40613         fi
40614
40615 cat >>confdefs.h <<_ACEOF
40616 #define SLAPD_OVER_DYNGROUP $MFLAG
40617 _ACEOF
40618
40619 fi
40620
40621 if test "$ol_enable_dynlist" != no ; then
40622         BUILD_DYNLIST=$ol_enable_dynlist
40623         if test "$ol_enable_dynlist" = mod ; then
40624                 MFLAG=SLAPD_MOD_DYNAMIC
40625                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40626         else
40627                 MFLAG=SLAPD_MOD_STATIC
40628                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40629         fi
40630
40631 cat >>confdefs.h <<_ACEOF
40632 #define SLAPD_OVER_DYNLIST $MFLAG
40633 _ACEOF
40634
40635 fi
40636
40637 if test "$ol_enable_lastmod" != no ; then
40638         BUILD_LASTMOD=$ol_enable_lastmod
40639         if test "$ol_enable_lastmod" = mod ; then
40640                 MFLAG=SLAPD_MOD_DYNAMIC
40641                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
40642         else
40643                 MFLAG=SLAPD_MOD_STATIC
40644                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
40645         fi
40646
40647 cat >>confdefs.h <<_ACEOF
40648 #define SLAPD_OVER_LASTMOD $MFLAG
40649 _ACEOF
40650
40651 fi
40652
40653 if test "$ol_enable_ppolicy" != no ; then
40654         BUILD_PPOLICY=$ol_enable_ppolicy
40655         if test "$ol_enable_ppolicy" = mod ; then
40656                 MFLAG=SLAPD_MOD_DYNAMIC
40657                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40658         else
40659                 MFLAG=SLAPD_MOD_STATIC
40660                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40661         fi
40662
40663 cat >>confdefs.h <<_ACEOF
40664 #define SLAPD_OVER_PPOLICY $MFLAG
40665 _ACEOF
40666
40667 fi
40668
40669 if test "$ol_enable_proxycache" != no ; then
40670         BUILD_PROXYCACHE=$ol_enable_proxycache
40671         if test "$ol_enable_proxycache" = mod ; then
40672                 MFLAG=SLAPD_MOD_DYNAMIC
40673                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40674         else
40675                 MFLAG=SLAPD_MOD_STATIC
40676                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40677         fi
40678
40679 cat >>confdefs.h <<_ACEOF
40680 #define SLAPD_OVER_PROXYCACHE $MFLAG
40681 _ACEOF
40682
40683 fi
40684
40685 if test "$ol_enable_refint" != no ; then
40686         BUILD_REFINT=$ol_enable_refint
40687         if test "$ol_enable_refint" = mod ; then
40688                 MFLAG=SLAPD_MOD_DYNAMIC
40689                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40690         else
40691                 MFLAG=SLAPD_MOD_STATIC
40692                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40693         fi
40694
40695 cat >>confdefs.h <<_ACEOF
40696 #define SLAPD_OVER_REFINT $MFLAG
40697 _ACEOF
40698
40699 fi
40700
40701 if test "$ol_enable_retcode" != no ; then
40702         BUILD_RETCODE=$ol_enable_retcode
40703         if test "$ol_enable_retcode" = mod ; then
40704                 MFLAG=SLAPD_MOD_DYNAMIC
40705                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40706         else
40707                 MFLAG=SLAPD_MOD_STATIC
40708                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40709         fi
40710
40711 cat >>confdefs.h <<_ACEOF
40712 #define SLAPD_OVER_RETCODE $MFLAG
40713 _ACEOF
40714
40715 fi
40716
40717 if test "$ol_enable_rwm" != no ; then
40718         BUILD_REWRITE=yes
40719         BUILD_RWM=$ol_enable_rwm
40720         if test "$ol_enable_rwm" = mod ; then
40721                 MFLAG=SLAPD_MOD_DYNAMIC
40722                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40723         else
40724                 MFLAG=SLAPD_MOD_STATIC
40725                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40726         fi
40727
40728 cat >>confdefs.h <<_ACEOF
40729 #define SLAPD_OVER_RWM $MFLAG
40730 _ACEOF
40731
40732 fi
40733
40734 if test "$ol_enable_seqmod" != no ; then
40735         BUILD_SEQMOD=$ol_enable_seqmod
40736         if test "$ol_enable_seqmod" = mod ; then
40737                 MFLAG=SLAPD_MOD_DYNAMIC
40738                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40739         else
40740                 MFLAG=SLAPD_MOD_STATIC
40741                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40742         fi
40743
40744 cat >>confdefs.h <<_ACEOF
40745 #define SLAPD_OVER_SEQMOD $MFLAG
40746 _ACEOF
40747
40748 fi
40749
40750 if test "$ol_enable_syncprov" != no ; then
40751         BUILD_SYNCPROV=$ol_enable_syncprov
40752         if test "$ol_enable_syncprov" = mod ; then
40753                 MFLAG=SLAPD_MOD_DYNAMIC
40754                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40755         else
40756                 MFLAG=SLAPD_MOD_STATIC
40757                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40758         fi
40759
40760 cat >>confdefs.h <<_ACEOF
40761 #define SLAPD_OVER_SYNCPROV $MFLAG
40762 _ACEOF
40763
40764 fi
40765
40766 if test "$ol_enable_translucent" != no ; then
40767         BUILD_TRANSLUCENT=$ol_enable_translucent
40768         if test "$ol_enable_translucent" = mod ; then
40769                 MFLAG=SLAPD_MOD_DYNAMIC
40770                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40771         else
40772                 MFLAG=SLAPD_MOD_STATIC
40773                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40774         fi
40775
40776 cat >>confdefs.h <<_ACEOF
40777 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40778 _ACEOF
40779
40780 fi
40781
40782 if test "$ol_enable_unique" != no ; then
40783         BUILD_UNIQUE=$ol_enable_unique
40784         if test "$ol_enable_unique" = mod ; then
40785                 MFLAG=SLAPD_MOD_DYNAMIC
40786                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40787         else
40788                 MFLAG=SLAPD_MOD_STATIC
40789                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40790         fi
40791
40792 cat >>confdefs.h <<_ACEOF
40793 #define SLAPD_OVER_UNIQUE $MFLAG
40794 _ACEOF
40795
40796 fi
40797
40798 if test "$ol_enable_valsort" != no ; then
40799         BUILD_VALSORT=$ol_enable_valsort
40800         if test "$ol_enable_valsort" = mod ; then
40801                 MFLAG=SLAPD_MOD_DYNAMIC
40802                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40803         else
40804                 MFLAG=SLAPD_MOD_STATIC
40805                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40806         fi
40807
40808 cat >>confdefs.h <<_ACEOF
40809 #define SLAPD_OVER_VALSORT $MFLAG
40810 _ACEOF
40811
40812 fi
40813
40814 if test "$ol_enable_slurpd" != no &&
40815    test "$ol_link_threads" != no &&
40816    test $BUILD_SLAPD = yes ; then
40817         BUILD_SLURPD=yes
40818 fi
40819
40820 if test "$ol_enable_rewrite" != no ; then
40821
40822 cat >>confdefs.h <<\_ACEOF
40823 #define ENABLE_REWRITE 1
40824 _ACEOF
40825
40826         BUILD_REWRITE=yes
40827 fi
40828
40829 if test "$ol_enable_slapi" != no ; then
40830
40831 cat >>confdefs.h <<\_ACEOF
40832 #define ENABLE_SLAPI 1
40833 _ACEOF
40834
40835         BUILD_SLAPI=yes
40836         SLAPD_SLAPI_DEPEND=libslapi.a
40837 fi
40838
40839
40840
40841 if test "$ac_cv_mingw32" = yes ; then
40842         PLAT=NT
40843         SLAPD_MODULES_LDFLAGS=
40844 else
40845         PLAT=UNIX
40846 fi
40847
40848
40849
40850
40851
40852
40853
40854
40855
40856
40857
40858
40859
40860
40861
40862
40863
40864
40865
40866
40867
40868
40869
40870
40871
40872
40873
40874
40875
40876
40877
40878
40879
40880
40881
40882
40883
40884
40885
40886
40887
40888
40889
40890
40891
40892
40893
40894
40895
40896
40897
40898
40899
40900
40901
40902
40903
40904
40905
40906
40907
40908
40909
40910
40911
40912
40913
40914
40915
40916
40917
40918
40919
40920
40921
40922
40923
40924
40925
40926
40927
40928
40929
40930
40931
40932 # Check whether --with-xxinstall or --without-xxinstall was given.
40933 if test "${with_xxinstall+set}" = set; then
40934   withval="$with_xxinstall"
40935
40936 fi;
40937
40938
40939                                                                                                                                                                                                                                                                                                                                                                                                       ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
40940
40941
40942           ac_config_commands="$ac_config_commands default"
40943
40944
40945
40946 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40947 # Let make expand exec_prefix.
40948 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40949
40950 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40951 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40952 # trailing colons and then remove the whole line if VPATH becomes empty
40953 # (actually we leave an empty line to preserve line numbers).
40954 if test "x$srcdir" = x.; then
40955   ac_vpsub='/^[  ]*VPATH[        ]*=/{
40956 s/:*\$(srcdir):*/:/;
40957 s/:*\${srcdir}:*/:/;
40958 s/:*@srcdir@:*/:/;
40959 s/^\([^=]*=[     ]*\):*/\1/;
40960 s/:*$//;
40961 s/^[^=]*=[       ]*$//;
40962 }'
40963 fi
40964
40965 DEFS=-DHAVE_CONFIG_H
40966
40967 ac_libobjs=
40968 ac_ltlibobjs=
40969 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40970   # 1. Remove the extension, and $U if already installed.
40971   ac_i=`echo "$ac_i" |
40972          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40973   # 2. Add them.
40974   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40975   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40976 done
40977 LIBOBJS=$ac_libobjs
40978
40979 LTLIBOBJS=$ac_ltlibobjs
40980
40981
40982 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40983   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40984 Usually this means the macro was only invoked conditionally." >&5
40985 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40986 Usually this means the macro was only invoked conditionally." >&2;}
40987    { (exit 1); exit 1; }; }
40988 fi
40989 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40990   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40991 Usually this means the macro was only invoked conditionally." >&5
40992 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40993 Usually this means the macro was only invoked conditionally." >&2;}
40994    { (exit 1); exit 1; }; }
40995 fi
40996 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40997   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40998 Usually this means the macro was only invoked conditionally." >&5
40999 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
41000 Usually this means the macro was only invoked conditionally." >&2;}
41001    { (exit 1); exit 1; }; }
41002 fi
41003
41004 : ${CONFIG_STATUS=./config.status}
41005 ac_clean_files_save=$ac_clean_files
41006 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41007 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41008 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41009 cat >$CONFIG_STATUS <<_ACEOF
41010 #! $SHELL
41011 # Generated by $as_me.
41012 # Run this file to recreate the current configuration.
41013 # Compiler output produced by configure, useful for debugging
41014 # configure, is in config.log if it exists.
41015
41016 debug=false
41017 ac_cs_recheck=false
41018 ac_cs_silent=false
41019 SHELL=\${CONFIG_SHELL-$SHELL}
41020 _ACEOF
41021
41022 cat >>$CONFIG_STATUS <<\_ACEOF
41023 ## --------------------- ##
41024 ## M4sh Initialization.  ##
41025 ## --------------------- ##
41026
41027 # Be Bourne compatible
41028 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41029   emulate sh
41030   NULLCMD=:
41031   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41032   # is contrary to our usage.  Disable this feature.
41033   alias -g '${1+"$@"}'='"$@"'
41034 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41035   set -o posix
41036 fi
41037 DUALCASE=1; export DUALCASE # for MKS sh
41038
41039 # Support unset when possible.
41040 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41041   as_unset=unset
41042 else
41043   as_unset=false
41044 fi
41045
41046
41047 # Work around bugs in pre-3.0 UWIN ksh.
41048 $as_unset ENV MAIL MAILPATH
41049 PS1='$ '
41050 PS2='> '
41051 PS4='+ '
41052
41053 # NLS nuisances.
41054 for as_var in \
41055   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41056   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41057   LC_TELEPHONE LC_TIME
41058 do
41059   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41060     eval $as_var=C; export $as_var
41061   else
41062     $as_unset $as_var
41063   fi
41064 done
41065
41066 # Required to use basename.
41067 if expr a : '\(a\)' >/dev/null 2>&1; then
41068   as_expr=expr
41069 else
41070   as_expr=false
41071 fi
41072
41073 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41074   as_basename=basename
41075 else
41076   as_basename=false
41077 fi
41078
41079
41080 # Name of the executable.
41081 as_me=`$as_basename "$0" ||
41082 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41083          X"$0" : 'X\(//\)$' \| \
41084          X"$0" : 'X\(/\)$' \| \
41085          .     : '\(.\)' 2>/dev/null ||
41086 echo X/"$0" |
41087     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41088           /^X\/\(\/\/\)$/{ s//\1/; q; }
41089           /^X\/\(\/\).*/{ s//\1/; q; }
41090           s/.*/./; q'`
41091
41092
41093 # PATH needs CR, and LINENO needs CR and PATH.
41094 # Avoid depending upon Character Ranges.
41095 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41096 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41097 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41098 as_cr_digits='0123456789'
41099 as_cr_alnum=$as_cr_Letters$as_cr_digits
41100
41101 # The user is always right.
41102 if test "${PATH_SEPARATOR+set}" != set; then
41103   echo "#! /bin/sh" >conf$$.sh
41104   echo  "exit 0"   >>conf$$.sh
41105   chmod +x conf$$.sh
41106   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41107     PATH_SEPARATOR=';'
41108   else
41109     PATH_SEPARATOR=:
41110   fi
41111   rm -f conf$$.sh
41112 fi
41113
41114
41115   as_lineno_1=$LINENO
41116   as_lineno_2=$LINENO
41117   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41118   test "x$as_lineno_1" != "x$as_lineno_2" &&
41119   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
41120   # Find who we are.  Look in the path if we contain no path at all
41121   # relative or not.
41122   case $0 in
41123     *[\\/]* ) as_myself=$0 ;;
41124     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41125 for as_dir in $PATH
41126 do
41127   IFS=$as_save_IFS
41128   test -z "$as_dir" && as_dir=.
41129   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41130 done
41131
41132        ;;
41133   esac
41134   # We did not find ourselves, most probably we were run as `sh COMMAND'
41135   # in which case we are not to be found in the path.
41136   if test "x$as_myself" = x; then
41137     as_myself=$0
41138   fi
41139   if test ! -f "$as_myself"; then
41140     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41141 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41142    { (exit 1); exit 1; }; }
41143   fi
41144   case $CONFIG_SHELL in
41145   '')
41146     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41147 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41148 do
41149   IFS=$as_save_IFS
41150   test -z "$as_dir" && as_dir=.
41151   for as_base in sh bash ksh sh5; do
41152          case $as_dir in
41153          /*)
41154            if ("$as_dir/$as_base" -c '
41155   as_lineno_1=$LINENO
41156   as_lineno_2=$LINENO
41157   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41158   test "x$as_lineno_1" != "x$as_lineno_2" &&
41159   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
41160              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41161              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41162              CONFIG_SHELL=$as_dir/$as_base
41163              export CONFIG_SHELL
41164              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41165            fi;;
41166          esac
41167        done
41168 done
41169 ;;
41170   esac
41171
41172   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41173   # uniformly replaced by the line number.  The first 'sed' inserts a
41174   # line-number line before each line; the second 'sed' does the real
41175   # work.  The second script uses 'N' to pair each line-number line
41176   # with the numbered line, and appends trailing '-' during
41177   # substitution so that $LINENO is not a special case at line end.
41178   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41179   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
41180   sed '=' <$as_myself |
41181     sed '
41182       N
41183       s,$,-,
41184       : loop
41185       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41186       t loop
41187       s,-$,,
41188       s,^['$as_cr_digits']*\n,,
41189     ' >$as_me.lineno &&
41190   chmod +x $as_me.lineno ||
41191     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41192 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41193    { (exit 1); exit 1; }; }
41194
41195   # Don't try to exec as it changes $[0], causing all sort of problems
41196   # (the dirname of $[0] is not the place where we might find the
41197   # original and so on.  Autoconf is especially sensible to this).
41198   . ./$as_me.lineno
41199   # Exit status is that of the last command.
41200   exit
41201 }
41202
41203
41204 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41205   *c*,-n*) ECHO_N= ECHO_C='
41206 ' ECHO_T='      ' ;;
41207   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41208   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
41209 esac
41210
41211 if expr a : '\(a\)' >/dev/null 2>&1; then
41212   as_expr=expr
41213 else
41214   as_expr=false
41215 fi
41216
41217 rm -f conf$$ conf$$.exe conf$$.file
41218 echo >conf$$.file
41219 if ln -s conf$$.file conf$$ 2>/dev/null; then
41220   # We could just check for DJGPP; but this test a) works b) is more generic
41221   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41222   if test -f conf$$.exe; then
41223     # Don't use ln at all; we don't have any links
41224     as_ln_s='cp -p'
41225   else
41226     as_ln_s='ln -s'
41227   fi
41228 elif ln conf$$.file conf$$ 2>/dev/null; then
41229   as_ln_s=ln
41230 else
41231   as_ln_s='cp -p'
41232 fi
41233 rm -f conf$$ conf$$.exe conf$$.file
41234
41235 if mkdir -p . 2>/dev/null; then
41236   as_mkdir_p=:
41237 else
41238   test -d ./-p && rmdir ./-p
41239   as_mkdir_p=false
41240 fi
41241
41242 as_executable_p="test -f"
41243
41244 # Sed expression to map a string onto a valid CPP name.
41245 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41246
41247 # Sed expression to map a string onto a valid variable name.
41248 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41249
41250
41251 # IFS
41252 # We need space, tab and new line, in precisely that order.
41253 as_nl='
41254 '
41255 IFS="   $as_nl"
41256
41257 # CDPATH.
41258 $as_unset CDPATH
41259
41260 exec 6>&1
41261
41262 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41263 # report actual input values of CONFIG_FILES etc. instead of their
41264 # values after options handling.  Logging --version etc. is OK.
41265 exec 5>>config.log
41266 {
41267   echo
41268   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41269 ## Running $as_me. ##
41270 _ASBOX
41271 } >&5
41272 cat >&5 <<_CSEOF
41273
41274 This file was extended by $as_me, which was
41275 generated by GNU Autoconf 2.59.  Invocation command line was
41276
41277   CONFIG_FILES    = $CONFIG_FILES
41278   CONFIG_HEADERS  = $CONFIG_HEADERS
41279   CONFIG_LINKS    = $CONFIG_LINKS
41280   CONFIG_COMMANDS = $CONFIG_COMMANDS
41281   $ $0 $@
41282
41283 _CSEOF
41284 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41285 echo >&5
41286 _ACEOF
41287
41288 # Files that config.status was made for.
41289 if test -n "$ac_config_files"; then
41290   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41291 fi
41292
41293 if test -n "$ac_config_headers"; then
41294   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41295 fi
41296
41297 if test -n "$ac_config_links"; then
41298   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41299 fi
41300
41301 if test -n "$ac_config_commands"; then
41302   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41303 fi
41304
41305 cat >>$CONFIG_STATUS <<\_ACEOF
41306
41307 ac_cs_usage="\
41308 \`$as_me' instantiates files from templates according to the
41309 current configuration.
41310
41311 Usage: $0 [OPTIONS] [FILE]...
41312
41313   -h, --help       print this help, then exit
41314   -V, --version    print version number, then exit
41315   -q, --quiet      do not print progress messages
41316   -d, --debug      don't remove temporary files
41317       --recheck    update $as_me by reconfiguring in the same conditions
41318   --file=FILE[:TEMPLATE]
41319                    instantiate the configuration file FILE
41320   --header=FILE[:TEMPLATE]
41321                    instantiate the configuration header FILE
41322
41323 Configuration files:
41324 $config_files
41325
41326 Configuration headers:
41327 $config_headers
41328
41329 Configuration commands:
41330 $config_commands
41331
41332 Report bugs to <bug-autoconf@gnu.org>."
41333 _ACEOF
41334
41335 cat >>$CONFIG_STATUS <<_ACEOF
41336 ac_cs_version="\\
41337 config.status
41338 configured by $0, generated by GNU Autoconf 2.59,
41339   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41340
41341 Copyright (C) 2003 Free Software Foundation, Inc.
41342 This config.status script is free software; the Free Software Foundation
41343 gives unlimited permission to copy, distribute and modify it."
41344 srcdir=$srcdir
41345 INSTALL="$INSTALL"
41346 _ACEOF
41347
41348 cat >>$CONFIG_STATUS <<\_ACEOF
41349 # If no file are specified by the user, then we need to provide default
41350 # value.  By we need to know if files were specified by the user.
41351 ac_need_defaults=:
41352 while test $# != 0
41353 do
41354   case $1 in
41355   --*=*)
41356     ac_option=`expr "x$1" : 'x\([^=]*\)='`
41357     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41358     ac_shift=:
41359     ;;
41360   -*)
41361     ac_option=$1
41362     ac_optarg=$2
41363     ac_shift=shift
41364     ;;
41365   *) # This is not an option, so the user has probably given explicit
41366      # arguments.
41367      ac_option=$1
41368      ac_need_defaults=false;;
41369   esac
41370
41371   case $ac_option in
41372   # Handling of the options.
41373 _ACEOF
41374 cat >>$CONFIG_STATUS <<\_ACEOF
41375   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41376     ac_cs_recheck=: ;;
41377   --version | --vers* | -V )
41378     echo "$ac_cs_version"; exit 0 ;;
41379   --he | --h)
41380     # Conflict between --help and --header
41381     { { echo "$as_me:$LINENO: error: ambiguous option: $1
41382 Try \`$0 --help' for more information." >&5
41383 echo "$as_me: error: ambiguous option: $1
41384 Try \`$0 --help' for more information." >&2;}
41385    { (exit 1); exit 1; }; };;
41386   --help | --hel | -h )
41387     echo "$ac_cs_usage"; exit 0 ;;
41388   --debug | --d* | -d )
41389     debug=: ;;
41390   --file | --fil | --fi | --f )
41391     $ac_shift
41392     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41393     ac_need_defaults=false;;
41394   --header | --heade | --head | --hea )
41395     $ac_shift
41396     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41397     ac_need_defaults=false;;
41398   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41399   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41400     ac_cs_silent=: ;;
41401
41402   # This is an error.
41403   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41404 Try \`$0 --help' for more information." >&5
41405 echo "$as_me: error: unrecognized option: $1
41406 Try \`$0 --help' for more information." >&2;}
41407    { (exit 1); exit 1; }; } ;;
41408
41409   *) ac_config_targets="$ac_config_targets $1" ;;
41410
41411   esac
41412   shift
41413 done
41414
41415 ac_configure_extra_args=
41416
41417 if $ac_cs_silent; then
41418   exec 6>/dev/null
41419   ac_configure_extra_args="$ac_configure_extra_args --silent"
41420 fi
41421
41422 _ACEOF
41423 cat >>$CONFIG_STATUS <<_ACEOF
41424 if \$ac_cs_recheck; then
41425   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41426   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41427 fi
41428
41429 _ACEOF
41430
41431 cat >>$CONFIG_STATUS <<_ACEOF
41432 #
41433 # INIT-COMMANDS section.
41434 #
41435
41436 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41437
41438 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41439 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41440
41441
41442 _ACEOF
41443
41444
41445
41446 cat >>$CONFIG_STATUS <<\_ACEOF
41447 for ac_config_target in $ac_config_targets
41448 do
41449   case "$ac_config_target" in
41450   # Handling of arguments.
41451   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41452   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41453   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41454   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41455   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41456   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41457   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41458   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41459   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41460   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41461   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41462   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41463   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41464   "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" ;;
41465   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41466   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41467   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41468   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41469   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41470   "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" ;;
41471   "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" ;;
41472   "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" ;;
41473   "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" ;;
41474   "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" ;;
41475   "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" ;;
41476   "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" ;;
41477   "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" ;;
41478   "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" ;;
41479   "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" ;;
41480   "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" ;;
41481   "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" ;;
41482   "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" ;;
41483   "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" ;;
41484   "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" ;;
41485   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41486   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
41487   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41488   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41489   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41490   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41491   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41492   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41493   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41494   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41495   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41496 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41497    { (exit 1); exit 1; }; };;
41498   esac
41499 done
41500
41501 # If the user did not use the arguments to specify the items to instantiate,
41502 # then the envvar interface is used.  Set only those that are not.
41503 # We use the long form for the default assignment because of an extremely
41504 # bizarre bug on SunOS 4.1.3.
41505 if $ac_need_defaults; then
41506   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41507   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41508   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41509 fi
41510
41511 # Have a temporary directory for convenience.  Make it in the build tree
41512 # simply because there is no reason to put it here, and in addition,
41513 # creating and moving files from /tmp can sometimes cause problems.
41514 # Create a temporary directory, and hook for its removal unless debugging.
41515 $debug ||
41516 {
41517   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41518   trap '{ (exit 1); exit 1; }' 1 2 13 15
41519 }
41520
41521 # Create a (secure) tmp directory for tmp files.
41522
41523 {
41524   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41525   test -n "$tmp" && test -d "$tmp"
41526 }  ||
41527 {
41528   tmp=./confstat$$-$RANDOM
41529   (umask 077 && mkdir $tmp)
41530 } ||
41531 {
41532    echo "$me: cannot create a temporary directory in ." >&2
41533    { (exit 1); exit 1; }
41534 }
41535
41536 _ACEOF
41537
41538 cat >>$CONFIG_STATUS <<_ACEOF
41539
41540 #
41541 # CONFIG_FILES section.
41542 #
41543
41544 # No need to generate the scripts if there are no CONFIG_FILES.
41545 # This happens for instance when ./config.status config.h
41546 if test -n "\$CONFIG_FILES"; then
41547   # Protect against being on the right side of a sed subst in config.status.
41548   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41549    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41550 s,@SHELL@,$SHELL,;t t
41551 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41552 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41553 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41554 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41555 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41556 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41557 s,@exec_prefix@,$exec_prefix,;t t
41558 s,@prefix@,$prefix,;t t
41559 s,@program_transform_name@,$program_transform_name,;t t
41560 s,@bindir@,$bindir,;t t
41561 s,@sbindir@,$sbindir,;t t
41562 s,@libexecdir@,$libexecdir,;t t
41563 s,@datadir@,$datadir,;t t
41564 s,@sysconfdir@,$sysconfdir,;t t
41565 s,@sharedstatedir@,$sharedstatedir,;t t
41566 s,@localstatedir@,$localstatedir,;t t
41567 s,@libdir@,$libdir,;t t
41568 s,@includedir@,$includedir,;t t
41569 s,@oldincludedir@,$oldincludedir,;t t
41570 s,@infodir@,$infodir,;t t
41571 s,@mandir@,$mandir,;t t
41572 s,@build_alias@,$build_alias,;t t
41573 s,@host_alias@,$host_alias,;t t
41574 s,@target_alias@,$target_alias,;t t
41575 s,@DEFS@,$DEFS,;t t
41576 s,@ECHO_C@,$ECHO_C,;t t
41577 s,@ECHO_N@,$ECHO_N,;t t
41578 s,@ECHO_T@,$ECHO_T,;t t
41579 s,@LIBS@,$LIBS,;t t
41580 s,@build@,$build,;t t
41581 s,@build_cpu@,$build_cpu,;t t
41582 s,@build_vendor@,$build_vendor,;t t
41583 s,@build_os@,$build_os,;t t
41584 s,@host@,$host,;t t
41585 s,@host_cpu@,$host_cpu,;t t
41586 s,@host_vendor@,$host_vendor,;t t
41587 s,@host_os@,$host_os,;t t
41588 s,@target@,$target,;t t
41589 s,@target_cpu@,$target_cpu,;t t
41590 s,@target_vendor@,$target_vendor,;t t
41591 s,@target_os@,$target_os,;t t
41592 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41593 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41594 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41595 s,@CYGPATH_W@,$CYGPATH_W,;t t
41596 s,@PACKAGE@,$PACKAGE,;t t
41597 s,@VERSION@,$VERSION,;t t
41598 s,@ACLOCAL@,$ACLOCAL,;t t
41599 s,@AUTOCONF@,$AUTOCONF,;t t
41600 s,@AUTOMAKE@,$AUTOMAKE,;t t
41601 s,@AUTOHEADER@,$AUTOHEADER,;t t
41602 s,@MAKEINFO@,$MAKEINFO,;t t
41603 s,@install_sh@,$install_sh,;t t
41604 s,@STRIP@,$STRIP,;t t
41605 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41606 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41607 s,@mkdir_p@,$mkdir_p,;t t
41608 s,@AWK@,$AWK,;t t
41609 s,@SET_MAKE@,$SET_MAKE,;t t
41610 s,@am__leading_dot@,$am__leading_dot,;t t
41611 s,@AMTAR@,$AMTAR,;t t
41612 s,@am__tar@,$am__tar,;t t
41613 s,@am__untar@,$am__untar,;t t
41614 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41615 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41616 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41617 s,@top_builddir@,$top_builddir,;t t
41618 s,@ldap_subdir@,$ldap_subdir,;t t
41619 s,@CC@,$CC,;t t
41620 s,@AR@,$AR,;t t
41621 s,@CFLAGS@,$CFLAGS,;t t
41622 s,@LDFLAGS@,$LDFLAGS,;t t
41623 s,@CPPFLAGS@,$CPPFLAGS,;t t
41624 s,@ac_ct_CC@,$ac_ct_CC,;t t
41625 s,@EXEEXT@,$EXEEXT,;t t
41626 s,@OBJEXT@,$OBJEXT,;t t
41627 s,@DEPDIR@,$DEPDIR,;t t
41628 s,@am__include@,$am__include,;t t
41629 s,@am__quote@,$am__quote,;t t
41630 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41631 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41632 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41633 s,@CCDEPMODE@,$CCDEPMODE,;t t
41634 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41635 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41636 s,@EGREP@,$EGREP,;t t
41637 s,@LN_S@,$LN_S,;t t
41638 s,@ECHO@,$ECHO,;t t
41639 s,@ac_ct_AR@,$ac_ct_AR,;t t
41640 s,@RANLIB@,$RANLIB,;t t
41641 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41642 s,@DLLTOOL@,$DLLTOOL,;t t
41643 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41644 s,@AS@,$AS,;t t
41645 s,@ac_ct_AS@,$ac_ct_AS,;t t
41646 s,@OBJDUMP@,$OBJDUMP,;t t
41647 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41648 s,@CPP@,$CPP,;t t
41649 s,@LIBTOOL@,$LIBTOOL,;t t
41650 s,@PERLBIN@,$PERLBIN,;t t
41651 s,@OL_MKDEP@,$OL_MKDEP,;t t
41652 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41653 s,@LTSTATIC@,$LTSTATIC,;t t
41654 s,@LIBOBJS@,$LIBOBJS,;t t
41655 s,@LIBSRCS@,$LIBSRCS,;t t
41656 s,@PLAT@,$PLAT,;t t
41657 s,@WITH_SASL@,$WITH_SASL,;t t
41658 s,@WITH_TLS@,$WITH_TLS,;t t
41659 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41660 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41661 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41662 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41663 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41664 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41665 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41666 s,@BUILD_BDB@,$BUILD_BDB,;t t
41667 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41668 s,@BUILD_HDB@,$BUILD_HDB,;t t
41669 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41670 s,@BUILD_META@,$BUILD_META,;t t
41671 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41672 s,@BUILD_NULL@,$BUILD_NULL,;t t
41673 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41674 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41675 s,@BUILD_PERL@,$BUILD_PERL,;t t
41676 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41677 s,@BUILD_SQL@,$BUILD_SQL,;t t
41678 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41679 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41680 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41681 s,@BUILD_DDS@,$BUILD_DDS,;t t
41682 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41683 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41684 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41685 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41686 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41687 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41688 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41689 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41690 s,@BUILD_RWM@,$BUILD_RWM,;t t
41691 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41692 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41693 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41694 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41695 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41696 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
41697 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41698 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41699 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
41700 s,@BDB_LIBS@,$BDB_LIBS,;t t
41701 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41702 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41703 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41704 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41705 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41706 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41707 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41708 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41709 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41710 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41711 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41712 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41713 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41714 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41715 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41716 s,@SASL_LIBS@,$SASL_LIBS,;t t
41717 s,@TLS_LIBS@,$TLS_LIBS,;t t
41718 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41719 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41720 s,@LIBSLAPI@,$LIBSLAPI,;t t
41721 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41722 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41723 s,@ICU_LIBS@,$ICU_LIBS,;t t
41724 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41725 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41726 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41727 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41728 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41729 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41730 CEOF
41731
41732 _ACEOF
41733
41734   cat >>$CONFIG_STATUS <<\_ACEOF
41735   # Split the substitutions into bite-sized pieces for seds with
41736   # small command number limits, like on Digital OSF/1 and HP-UX.
41737   ac_max_sed_lines=48
41738   ac_sed_frag=1 # Number of current file.
41739   ac_beg=1 # First line for current file.
41740   ac_end=$ac_max_sed_lines # Line after last line for current file.
41741   ac_more_lines=:
41742   ac_sed_cmds=
41743   while $ac_more_lines; do
41744     if test $ac_beg -gt 1; then
41745       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41746     else
41747       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41748     fi
41749     if test ! -s $tmp/subs.frag; then
41750       ac_more_lines=false
41751     else
41752       # The purpose of the label and of the branching condition is to
41753       # speed up the sed processing (if there are no `@' at all, there
41754       # is no need to browse any of the substitutions).
41755       # These are the two extra sed commands mentioned above.
41756       (echo ':t
41757   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41758       if test -z "$ac_sed_cmds"; then
41759         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41760       else
41761         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41762       fi
41763       ac_sed_frag=`expr $ac_sed_frag + 1`
41764       ac_beg=$ac_end
41765       ac_end=`expr $ac_end + $ac_max_sed_lines`
41766     fi
41767   done
41768   if test -z "$ac_sed_cmds"; then
41769     ac_sed_cmds=cat
41770   fi
41771 fi # test -n "$CONFIG_FILES"
41772
41773 _ACEOF
41774 cat >>$CONFIG_STATUS <<\_ACEOF
41775 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41776   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41777   case $ac_file in
41778   - | *:- | *:-:* ) # input from stdin
41779         cat >$tmp/stdin
41780         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41781         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41782   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41783         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41784   * )   ac_file_in=$ac_file.in ;;
41785   esac
41786
41787   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41788   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41789 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41790          X"$ac_file" : 'X\(//\)[^/]' \| \
41791          X"$ac_file" : 'X\(//\)$' \| \
41792          X"$ac_file" : 'X\(/\)' \| \
41793          .     : '\(.\)' 2>/dev/null ||
41794 echo X"$ac_file" |
41795     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41796           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41797           /^X\(\/\/\)$/{ s//\1/; q; }
41798           /^X\(\/\).*/{ s//\1/; q; }
41799           s/.*/./; q'`
41800   { if $as_mkdir_p; then
41801     mkdir -p "$ac_dir"
41802   else
41803     as_dir="$ac_dir"
41804     as_dirs=
41805     while test ! -d "$as_dir"; do
41806       as_dirs="$as_dir $as_dirs"
41807       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41809          X"$as_dir" : 'X\(//\)[^/]' \| \
41810          X"$as_dir" : 'X\(//\)$' \| \
41811          X"$as_dir" : 'X\(/\)' \| \
41812          .     : '\(.\)' 2>/dev/null ||
41813 echo X"$as_dir" |
41814     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41815           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41816           /^X\(\/\/\)$/{ s//\1/; q; }
41817           /^X\(\/\).*/{ s//\1/; q; }
41818           s/.*/./; q'`
41819     done
41820     test ! -n "$as_dirs" || mkdir $as_dirs
41821   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41822 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41823    { (exit 1); exit 1; }; }; }
41824
41825   ac_builddir=.
41826
41827 if test "$ac_dir" != .; then
41828   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41829   # A "../" for each directory in $ac_dir_suffix.
41830   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41831 else
41832   ac_dir_suffix= ac_top_builddir=
41833 fi
41834
41835 case $srcdir in
41836   .)  # No --srcdir option.  We are building in place.
41837     ac_srcdir=.
41838     if test -z "$ac_top_builddir"; then
41839        ac_top_srcdir=.
41840     else
41841        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41842     fi ;;
41843   [\\/]* | ?:[\\/]* )  # Absolute path.
41844     ac_srcdir=$srcdir$ac_dir_suffix;
41845     ac_top_srcdir=$srcdir ;;
41846   *) # Relative path.
41847     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41848     ac_top_srcdir=$ac_top_builddir$srcdir ;;
41849 esac
41850
41851 # Do not use `cd foo && pwd` to compute absolute paths, because
41852 # the directories may not exist.
41853 case `pwd` in
41854 .) ac_abs_builddir="$ac_dir";;
41855 *)
41856   case "$ac_dir" in
41857   .) ac_abs_builddir=`pwd`;;
41858   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41859   *) ac_abs_builddir=`pwd`/"$ac_dir";;
41860   esac;;
41861 esac
41862 case $ac_abs_builddir in
41863 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41864 *)
41865   case ${ac_top_builddir}. in
41866   .) ac_abs_top_builddir=$ac_abs_builddir;;
41867   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41868   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41869   esac;;
41870 esac
41871 case $ac_abs_builddir in
41872 .) ac_abs_srcdir=$ac_srcdir;;
41873 *)
41874   case $ac_srcdir in
41875   .) ac_abs_srcdir=$ac_abs_builddir;;
41876   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41877   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41878   esac;;
41879 esac
41880 case $ac_abs_builddir in
41881 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41882 *)
41883   case $ac_top_srcdir in
41884   .) ac_abs_top_srcdir=$ac_abs_builddir;;
41885   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41886   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41887   esac;;
41888 esac
41889
41890
41891   case $INSTALL in
41892   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41893   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41894   esac
41895
41896   if test x"$ac_file" != x-; then
41897     { echo "$as_me:$LINENO: creating $ac_file" >&5
41898 echo "$as_me: creating $ac_file" >&6;}
41899     rm -f "$ac_file"
41900   fi
41901   # Let's still pretend it is `configure' which instantiates (i.e., don't
41902   # use $as_me), people would be surprised to read:
41903   #    /* config.h.  Generated by config.status.  */
41904   if test x"$ac_file" = x-; then
41905     configure_input=
41906   else
41907     configure_input="$ac_file.  "
41908   fi
41909   configure_input=$configure_input"Generated from `echo $ac_file_in |
41910                                      sed 's,.*/,,'` by configure."
41911
41912   # First look for the input files in the build tree, otherwise in the
41913   # src tree.
41914   ac_file_inputs=`IFS=:
41915     for f in $ac_file_in; do
41916       case $f in
41917       -) echo $tmp/stdin ;;
41918       [\\/$]*)
41919          # Absolute (can't be DOS-style, as IFS=:)
41920          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41921 echo "$as_me: error: cannot find input file: $f" >&2;}
41922    { (exit 1); exit 1; }; }
41923          echo "$f";;
41924       *) # Relative
41925          if test -f "$f"; then
41926            # Build tree
41927            echo "$f"
41928          elif test -f "$srcdir/$f"; then
41929            # Source tree
41930            echo "$srcdir/$f"
41931          else
41932            # /dev/null tree
41933            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41934 echo "$as_me: error: cannot find input file: $f" >&2;}
41935    { (exit 1); exit 1; }; }
41936          fi;;
41937       esac
41938     done` || { (exit 1); exit 1; }
41939 _ACEOF
41940 cat >>$CONFIG_STATUS <<_ACEOF
41941   sed "$ac_vpsub
41942 $extrasub
41943 _ACEOF
41944 cat >>$CONFIG_STATUS <<\_ACEOF
41945 :t
41946 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41947 s,@configure_input@,$configure_input,;t t
41948 s,@srcdir@,$ac_srcdir,;t t
41949 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41950 s,@top_srcdir@,$ac_top_srcdir,;t t
41951 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41952 s,@builddir@,$ac_builddir,;t t
41953 s,@abs_builddir@,$ac_abs_builddir,;t t
41954 s,@top_builddir@,$ac_top_builddir,;t t
41955 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41956 s,@INSTALL@,$ac_INSTALL,;t t
41957 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41958   rm -f $tmp/stdin
41959   if test x"$ac_file" != x-; then
41960     mv $tmp/out $ac_file
41961   else
41962     cat $tmp/out
41963     rm -f $tmp/out
41964   fi
41965
41966 done
41967 _ACEOF
41968 cat >>$CONFIG_STATUS <<\_ACEOF
41969
41970 #
41971 # CONFIG_HEADER section.
41972 #
41973
41974 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41975 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41976 #
41977 # ac_d sets the value in "#define NAME VALUE" lines.
41978 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
41979 ac_dB='[         ].*$,\1#\2'
41980 ac_dC=' '
41981 ac_dD=',;t'
41982 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41983 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
41984 ac_uB='$,\1#\2define\3'
41985 ac_uC=' '
41986 ac_uD=',;t'
41987
41988 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41989   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41990   case $ac_file in
41991   - | *:- | *:-:* ) # input from stdin
41992         cat >$tmp/stdin
41993         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41994         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41995   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41996         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41997   * )   ac_file_in=$ac_file.in ;;
41998   esac
41999
42000   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42001 echo "$as_me: creating $ac_file" >&6;}
42002
42003   # First look for the input files in the build tree, otherwise in the
42004   # src tree.
42005   ac_file_inputs=`IFS=:
42006     for f in $ac_file_in; do
42007       case $f in
42008       -) echo $tmp/stdin ;;
42009       [\\/$]*)
42010          # Absolute (can't be DOS-style, as IFS=:)
42011          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42012 echo "$as_me: error: cannot find input file: $f" >&2;}
42013    { (exit 1); exit 1; }; }
42014          # Do quote $f, to prevent DOS paths from being IFS'd.
42015          echo "$f";;
42016       *) # Relative
42017          if test -f "$f"; then
42018            # Build tree
42019            echo "$f"
42020          elif test -f "$srcdir/$f"; then
42021            # Source tree
42022            echo "$srcdir/$f"
42023          else
42024            # /dev/null tree
42025            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42026 echo "$as_me: error: cannot find input file: $f" >&2;}
42027    { (exit 1); exit 1; }; }
42028          fi;;
42029       esac
42030     done` || { (exit 1); exit 1; }
42031   # Remove the trailing spaces.
42032   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
42033
42034 _ACEOF
42035
42036 # Transform confdefs.h into two sed scripts, `conftest.defines' and
42037 # `conftest.undefs', that substitutes the proper values into
42038 # config.h.in to produce config.h.  The first handles `#define'
42039 # templates, and the second `#undef' templates.
42040 # And first: Protect against being on the right side of a sed subst in
42041 # config.status.  Protect against being in an unquoted here document
42042 # in config.status.
42043 rm -f conftest.defines conftest.undefs
42044 # Using a here document instead of a string reduces the quoting nightmare.
42045 # Putting comments in sed scripts is not portable.
42046 #
42047 # `end' is used to avoid that the second main sed command (meant for
42048 # 0-ary CPP macros) applies to n-ary macro definitions.
42049 # See the Autoconf documentation for `clear'.
42050 cat >confdef2sed.sed <<\_ACEOF
42051 s/[\\&,]/\\&/g
42052 s,[\\$`],\\&,g
42053 t clear
42054 : clear
42055 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
42056 t end
42057 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
42058 : end
42059 _ACEOF
42060 # If some macros were called several times there might be several times
42061 # the same #defines, which is useless.  Nevertheless, we may not want to
42062 # sort them, since we want the *last* AC-DEFINE to be honored.
42063 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42064 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42065 rm -f confdef2sed.sed
42066
42067 # This sed command replaces #undef with comments.  This is necessary, for
42068 # example, in the case of _POSIX_SOURCE, which is predefined and required
42069 # on some systems where configure will not decide to define it.
42070 cat >>conftest.undefs <<\_ACEOF
42071 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
42072 _ACEOF
42073
42074 # Break up conftest.defines because some shells have a limit on the size
42075 # of here documents, and old seds have small limits too (100 cmds).
42076 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
42077 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
42078 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42079 echo '  :' >>$CONFIG_STATUS
42080 rm -f conftest.tail
42081 while grep . conftest.defines >/dev/null
42082 do
42083   # Write a limited-size here document to $tmp/defines.sed.
42084   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42085   # Speed up: don't consider the non `#define' lines.
42086   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
42087   # Work around the forget-to-reset-the-flag bug.
42088   echo 't clr' >>$CONFIG_STATUS
42089   echo ': clr' >>$CONFIG_STATUS
42090   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42091   echo 'CEOF
42092   sed -f $tmp/defines.sed $tmp/in >$tmp/out
42093   rm -f $tmp/in
42094   mv $tmp/out $tmp/in
42095 ' >>$CONFIG_STATUS
42096   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42097   rm -f conftest.defines
42098   mv conftest.tail conftest.defines
42099 done
42100 rm -f conftest.defines
42101 echo '  fi # grep' >>$CONFIG_STATUS
42102 echo >>$CONFIG_STATUS
42103
42104 # Break up conftest.undefs because some shells have a limit on the size
42105 # of here documents, and old seds have small limits too (100 cmds).
42106 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
42107 rm -f conftest.tail
42108 while grep . conftest.undefs >/dev/null
42109 do
42110   # Write a limited-size here document to $tmp/undefs.sed.
42111   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42112   # Speed up: don't consider the non `#undef'
42113   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
42114   # Work around the forget-to-reset-the-flag bug.
42115   echo 't clr' >>$CONFIG_STATUS
42116   echo ': clr' >>$CONFIG_STATUS
42117   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42118   echo 'CEOF
42119   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42120   rm -f $tmp/in
42121   mv $tmp/out $tmp/in
42122 ' >>$CONFIG_STATUS
42123   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42124   rm -f conftest.undefs
42125   mv conftest.tail conftest.undefs
42126 done
42127 rm -f conftest.undefs
42128
42129 cat >>$CONFIG_STATUS <<\_ACEOF
42130   # Let's still pretend it is `configure' which instantiates (i.e., don't
42131   # use $as_me), people would be surprised to read:
42132   #    /* config.h.  Generated by config.status.  */
42133   if test x"$ac_file" = x-; then
42134     echo "/* Generated by configure.  */" >$tmp/config.h
42135   else
42136     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
42137   fi
42138   cat $tmp/in >>$tmp/config.h
42139   rm -f $tmp/in
42140   if test x"$ac_file" != x-; then
42141     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42142       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42143 echo "$as_me: $ac_file is unchanged" >&6;}
42144     else
42145       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42146 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42147          X"$ac_file" : 'X\(//\)[^/]' \| \
42148          X"$ac_file" : 'X\(//\)$' \| \
42149          X"$ac_file" : 'X\(/\)' \| \
42150          .     : '\(.\)' 2>/dev/null ||
42151 echo X"$ac_file" |
42152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42153           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42154           /^X\(\/\/\)$/{ s//\1/; q; }
42155           /^X\(\/\).*/{ s//\1/; q; }
42156           s/.*/./; q'`
42157       { if $as_mkdir_p; then
42158     mkdir -p "$ac_dir"
42159   else
42160     as_dir="$ac_dir"
42161     as_dirs=
42162     while test ! -d "$as_dir"; do
42163       as_dirs="$as_dir $as_dirs"
42164       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42165 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42166          X"$as_dir" : 'X\(//\)[^/]' \| \
42167          X"$as_dir" : 'X\(//\)$' \| \
42168          X"$as_dir" : 'X\(/\)' \| \
42169          .     : '\(.\)' 2>/dev/null ||
42170 echo X"$as_dir" |
42171     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42172           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42173           /^X\(\/\/\)$/{ s//\1/; q; }
42174           /^X\(\/\).*/{ s//\1/; q; }
42175           s/.*/./; q'`
42176     done
42177     test ! -n "$as_dirs" || mkdir $as_dirs
42178   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42179 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42180    { (exit 1); exit 1; }; }; }
42181
42182       rm -f $ac_file
42183       mv $tmp/config.h $ac_file
42184     fi
42185   else
42186     cat $tmp/config.h
42187     rm -f $tmp/config.h
42188   fi
42189 # Compute $ac_file's index in $config_headers.
42190 _am_stamp_count=1
42191 for _am_header in $config_headers :; do
42192   case $_am_header in
42193     $ac_file | $ac_file:* )
42194       break ;;
42195     * )
42196       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42197   esac
42198 done
42199 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42200 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42201          X$ac_file : 'X\(//\)[^/]' \| \
42202          X$ac_file : 'X\(//\)$' \| \
42203          X$ac_file : 'X\(/\)' \| \
42204          .     : '\(.\)' 2>/dev/null ||
42205 echo X$ac_file |
42206     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42207           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42208           /^X\(\/\/\)$/{ s//\1/; q; }
42209           /^X\(\/\).*/{ s//\1/; q; }
42210           s/.*/./; q'`/stamp-h$_am_stamp_count
42211 done
42212 _ACEOF
42213 cat >>$CONFIG_STATUS <<\_ACEOF
42214
42215 #
42216 # CONFIG_COMMANDS section.
42217 #
42218 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42219   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42220   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42221   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42222 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42223          X"$ac_dest" : 'X\(//\)[^/]' \| \
42224          X"$ac_dest" : 'X\(//\)$' \| \
42225          X"$ac_dest" : 'X\(/\)' \| \
42226          .     : '\(.\)' 2>/dev/null ||
42227 echo X"$ac_dest" |
42228     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42229           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42230           /^X\(\/\/\)$/{ s//\1/; q; }
42231           /^X\(\/\).*/{ s//\1/; q; }
42232           s/.*/./; q'`
42233   { if $as_mkdir_p; then
42234     mkdir -p "$ac_dir"
42235   else
42236     as_dir="$ac_dir"
42237     as_dirs=
42238     while test ! -d "$as_dir"; do
42239       as_dirs="$as_dir $as_dirs"
42240       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42241 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42242          X"$as_dir" : 'X\(//\)[^/]' \| \
42243          X"$as_dir" : 'X\(//\)$' \| \
42244          X"$as_dir" : 'X\(/\)' \| \
42245          .     : '\(.\)' 2>/dev/null ||
42246 echo X"$as_dir" |
42247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42248           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42249           /^X\(\/\/\)$/{ s//\1/; q; }
42250           /^X\(\/\).*/{ s//\1/; q; }
42251           s/.*/./; q'`
42252     done
42253     test ! -n "$as_dirs" || mkdir $as_dirs
42254   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42255 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42256    { (exit 1); exit 1; }; }; }
42257
42258   ac_builddir=.
42259
42260 if test "$ac_dir" != .; then
42261   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42262   # A "../" for each directory in $ac_dir_suffix.
42263   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42264 else
42265   ac_dir_suffix= ac_top_builddir=
42266 fi
42267
42268 case $srcdir in
42269   .)  # No --srcdir option.  We are building in place.
42270     ac_srcdir=.
42271     if test -z "$ac_top_builddir"; then
42272        ac_top_srcdir=.
42273     else
42274        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42275     fi ;;
42276   [\\/]* | ?:[\\/]* )  # Absolute path.
42277     ac_srcdir=$srcdir$ac_dir_suffix;
42278     ac_top_srcdir=$srcdir ;;
42279   *) # Relative path.
42280     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42281     ac_top_srcdir=$ac_top_builddir$srcdir ;;
42282 esac
42283
42284 # Do not use `cd foo && pwd` to compute absolute paths, because
42285 # the directories may not exist.
42286 case `pwd` in
42287 .) ac_abs_builddir="$ac_dir";;
42288 *)
42289   case "$ac_dir" in
42290   .) ac_abs_builddir=`pwd`;;
42291   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42292   *) ac_abs_builddir=`pwd`/"$ac_dir";;
42293   esac;;
42294 esac
42295 case $ac_abs_builddir in
42296 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42297 *)
42298   case ${ac_top_builddir}. in
42299   .) ac_abs_top_builddir=$ac_abs_builddir;;
42300   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42301   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42302   esac;;
42303 esac
42304 case $ac_abs_builddir in
42305 .) ac_abs_srcdir=$ac_srcdir;;
42306 *)
42307   case $ac_srcdir in
42308   .) ac_abs_srcdir=$ac_abs_builddir;;
42309   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42310   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42311   esac;;
42312 esac
42313 case $ac_abs_builddir in
42314 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42315 *)
42316   case $ac_top_srcdir in
42317   .) ac_abs_top_srcdir=$ac_abs_builddir;;
42318   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42319   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42320   esac;;
42321 esac
42322
42323
42324   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42325 echo "$as_me: executing $ac_dest commands" >&6;}
42326   case $ac_dest in
42327     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42328   # Strip MF so we end up with the name of the file.
42329   mf=`echo "$mf" | sed -e 's/:.*$//'`
42330   # Check whether this is an Automake generated Makefile or not.
42331   # We used to match only the files named `Makefile.in', but
42332   # some people rename them; so instead we look at the file content.
42333   # Grep'ing the first line is not enough: some people post-process
42334   # each Makefile.in and add a new line on top of each file to say so.
42335   # So let's grep whole file.
42336   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42337     dirpart=`(dirname "$mf") 2>/dev/null ||
42338 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42339          X"$mf" : 'X\(//\)[^/]' \| \
42340          X"$mf" : 'X\(//\)$' \| \
42341          X"$mf" : 'X\(/\)' \| \
42342          .     : '\(.\)' 2>/dev/null ||
42343 echo X"$mf" |
42344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42345           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42346           /^X\(\/\/\)$/{ s//\1/; q; }
42347           /^X\(\/\).*/{ s//\1/; q; }
42348           s/.*/./; q'`
42349   else
42350     continue
42351   fi
42352   # Extract the definition of DEPDIR, am__include, and am__quote
42353   # from the Makefile without running `make'.
42354   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42355   test -z "$DEPDIR" && continue
42356   am__include=`sed -n 's/^am__include = //p' < "$mf"`
42357   test -z "am__include" && continue
42358   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42359   # When using ansi2knr, U may be empty or an underscore; expand it
42360   U=`sed -n 's/^U = //p' < "$mf"`
42361   # Find all dependency output files, they are included files with
42362   # $(DEPDIR) in their names.  We invoke sed twice because it is the
42363   # simplest approach to changing $(DEPDIR) to its actual value in the
42364   # expansion.
42365   for file in `sed -n "
42366     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42367        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42368     # Make sure the directory exists.
42369     test -f "$dirpart/$file" && continue
42370     fdir=`(dirname "$file") 2>/dev/null ||
42371 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42372          X"$file" : 'X\(//\)[^/]' \| \
42373          X"$file" : 'X\(//\)$' \| \
42374          X"$file" : 'X\(/\)' \| \
42375          .     : '\(.\)' 2>/dev/null ||
42376 echo X"$file" |
42377     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42378           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42379           /^X\(\/\/\)$/{ s//\1/; q; }
42380           /^X\(\/\).*/{ s//\1/; q; }
42381           s/.*/./; q'`
42382     { if $as_mkdir_p; then
42383     mkdir -p $dirpart/$fdir
42384   else
42385     as_dir=$dirpart/$fdir
42386     as_dirs=
42387     while test ! -d "$as_dir"; do
42388       as_dirs="$as_dir $as_dirs"
42389       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42390 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42391          X"$as_dir" : 'X\(//\)[^/]' \| \
42392          X"$as_dir" : 'X\(//\)$' \| \
42393          X"$as_dir" : 'X\(/\)' \| \
42394          .     : '\(.\)' 2>/dev/null ||
42395 echo X"$as_dir" |
42396     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42397           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42398           /^X\(\/\/\)$/{ s//\1/; q; }
42399           /^X\(\/\).*/{ s//\1/; q; }
42400           s/.*/./; q'`
42401     done
42402     test ! -n "$as_dirs" || mkdir $as_dirs
42403   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42404 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42405    { (exit 1); exit 1; }; }; }
42406
42407     # echo "creating $dirpart/$file"
42408     echo '# dummy' > "$dirpart/$file"
42409   done
42410 done
42411  ;;
42412     default )
42413 chmod +x tests/run
42414 date > stamp-h
42415 BACKENDSC="servers/slapd/backends.c"
42416 echo "Making $BACKENDSC"
42417 rm -f $BACKENDSC
42418 cat > $BACKENDSC << ENDX
42419 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42420  *
42421  * Copyright 1998-2006 The OpenLDAP Foundation.
42422  * All rights reserved.
42423  *
42424  * Redistribution and use in source and binary forms, with or without
42425  * modification, are permitted only as authorized by the OpenLDAP
42426  * Public License.
42427  *
42428  * A copy of this license is available in the file LICENSE in the
42429  * top-level directory of the distribution or, alternatively, at
42430  * <http://www.OpenLDAP.org/license.html>.
42431  */
42432 /* This file is automatically generated by configure; please do not edit. */
42433
42434 #include "portable.h"
42435 #include "slap.h"
42436
42437 ENDX
42438 if test "${STATIC_BACKENDS}"; then
42439         for b in config ${STATIC_BACKENDS}; do
42440                 bb=`echo "${b}" | sed -e 's/back-//'`
42441                 cat >> $BACKENDSC << ENDX
42442 extern BI_init ${bb}_back_initialize;
42443 ENDX
42444         done
42445
42446         cat >> $BACKENDSC << ENDX
42447
42448 BackendInfo slap_binfo[] = {
42449 ENDX
42450
42451         for b in config ${STATIC_BACKENDS}; do
42452                 bb=`echo "${b}" | sed -e 's/back-//'`
42453                 echo "    Add ${bb} ..."
42454                 cat >> $BACKENDSC << ENDX
42455         { "${bb}", ${bb}_back_initialize },
42456 ENDX
42457         done
42458
42459         cat >> $BACKENDSC << ENDX
42460         { NULL, NULL },
42461 };
42462
42463 /* end of generated file */
42464 ENDX
42465 fi
42466 OVERLAYSC="servers/slapd/overlays/statover.c"
42467 echo "Making $OVERLAYSC"
42468 rm -f $OVERLAYSC
42469 cat > $OVERLAYSC << ENDX
42470 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42471  *
42472  * Copyright 1998-2006 The OpenLDAP Foundation.
42473  * All rights reserved.
42474  *
42475  * Redistribution and use in source and binary forms, with or without
42476  * modification, are permitted only as authorized by the OpenLDAP
42477  * Public License.
42478  *
42479  * A copy of this license is available in the file LICENSE in the
42480  * top-level directory of the distribution or, alternatively, at
42481  * <http://www.OpenLDAP.org/license.html>.
42482  */
42483 /* This file is automatically generated by configure; please do not edit. */
42484
42485 #include "portable.h"
42486 #include "slap.h"
42487
42488 ENDX
42489 if test "${STATIC_OVERLAYS}"; then
42490         for o in ${STATIC_OVERLAYS}; do
42491                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42492                 cat >> $OVERLAYSC << ENDX
42493 extern OV_init ${oo}_initialize;
42494 ENDX
42495         done
42496 fi
42497
42498 cat >> $OVERLAYSC << ENDX
42499
42500 OverlayInit slap_oinfo[] = {
42501 ENDX
42502
42503 if test "${STATIC_OVERLAYS}"; then
42504         for o in ${STATIC_OVERLAYS}; do
42505                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42506                 echo "    Add ${oo} ..."
42507                 cat >> $OVERLAYSC << ENDX
42508         { "${oo}", ${oo}_initialize },
42509 ENDX
42510         done
42511 fi
42512
42513         cat >> $OVERLAYSC << ENDX
42514         { NULL, NULL },
42515 };
42516
42517 /* end of generated file */
42518 ENDX
42519
42520 echo Please run \"make depend\" to build dependencies
42521  ;;
42522   esac
42523 done
42524 _ACEOF
42525
42526 cat >>$CONFIG_STATUS <<\_ACEOF
42527
42528 { (exit 0); exit 0; }
42529 _ACEOF
42530 chmod +x $CONFIG_STATUS
42531 ac_clean_files=$ac_clean_files_save
42532
42533
42534 # configure is writing to config.log, and then calls config.status.
42535 # config.status does its own redirection, appending to config.log.
42536 # Unfortunately, on DOS this fails, as config.log is still kept open
42537 # by configure, so config.status won't be able to write to it; its
42538 # output is simply discarded.  So we exec the FD to /dev/null,
42539 # effectively closing config.log, so it can be properly (re)opened and
42540 # appended to by config.status.  When coming back to configure, we
42541 # need to make the FD available again.
42542 if test "$no_create" != yes; then
42543   ac_cs_success=:
42544   ac_config_status_args=
42545   test "$silent" = yes &&
42546     ac_config_status_args="$ac_config_status_args --quiet"
42547   exec 5>/dev/null
42548   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42549   exec 5>>config.log
42550   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42551   # would make configure fail if this is the last instruction.
42552   $ac_cs_success || { (exit 1); exit 1; }
42553 fi
42554