]> git.sur5r.net Git - openldap/blob - configure
ITS#4949 make config_syslog accumulate across multiple values
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.652 2007/04/05 21:42:20 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293        echo_test_string=`eval $cmd` &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT LDAP_LIBS SLAPD_LIBS BDB_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929
930 #
931 # Report the --help message.
932 #
933 if test "$ac_init_help" = "long"; then
934   # Omit some internal or obsolete options to make the list less imposing.
935   # This message is too long to be a string in the A/UX 3.1 sh.
936   cat <<_ACEOF
937 \`configure' configures this package to adapt to many kinds of systems.
938
939 Usage: $0 [OPTION]... [VAR=VALUE]...
940
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE.  See below for descriptions of some of the useful variables.
943
944 Defaults for the options are specified in brackets.
945
946 Configuration:
947   -h, --help              display this help and exit
948       --help=short        display options specific to this package
949       --help=recursive    display the short help of all the included packages
950   -V, --version           display version information and exit
951   -q, --quiet, --silent   do not print \`checking...' messages
952       --cache-file=FILE   cache test results in FILE [disabled]
953   -C, --config-cache      alias for \`--cache-file=config.cache'
954   -n, --no-create         do not create output files
955       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
956
957 _ACEOF
958
959   cat <<_ACEOF
960 Installation directories:
961   --prefix=PREFIX         install architecture-independent files in PREFIX
962                           [$ac_default_prefix]
963   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
964                           [PREFIX]
965
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
970
971 For better control, use the options below.
972
973 Fine tuning of the installation directories:
974   --bindir=DIR           user executables [EPREFIX/bin]
975   --sbindir=DIR          system admin executables [EPREFIX/sbin]
976   --libexecdir=DIR       program executables [EPREFIX/libexec]
977   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
978   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
979   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
980   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
981   --libdir=DIR           object code libraries [EPREFIX/lib]
982   --includedir=DIR       C header files [PREFIX/include]
983   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
984   --infodir=DIR          info documentation [PREFIX/info]
985   --mandir=DIR           man documentation [PREFIX/man]
986 _ACEOF
987
988   cat <<\_ACEOF
989
990 Program names:
991   --program-prefix=PREFIX            prepend PREFIX to installed program names
992   --program-suffix=SUFFIX            append SUFFIX to installed program names
993   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
994
995 System types:
996   --build=BUILD     configure for building on BUILD [guessed]
997   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
998   --target=TARGET   configure for building compilers for TARGET [HOST]
999 _ACEOF
1000 fi
1001
1002 if test -n "$ac_init_help"; then
1003
1004   cat <<\_ACEOF
1005
1006 Optional Features:
1007   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1008   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1009   --enable-debug          enable debugging no|yes|traditional [yes]
1010   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1011   --enable-syslog         enable syslog support [auto]
1012   --enable-proctitle      enable proctitle support [yes]
1013   --enable-ipv6           enable IPv6 support [auto]
1014   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1015
1016 SLAPD (Standalone LDAP Daemon) Options:
1017   --enable-slapd          enable building slapd [yes]
1018     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1019     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1020     --enable-cleartext    enable cleartext passwords [yes]
1021     --enable-crypt        enable crypt(3) passwords [no]
1022     --enable-lmpasswd     enable LAN Manager passwords [no]
1023     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1024     --enable-modules      enable dynamic module support [no]
1025     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1026     --enable-rlookups     enable reverse lookups of client hostnames [no]
1027     --enable-slapi        enable SLAPI support (experimental) [no]
1028     --enable-slp          enable SLPv2 support [no]
1029     --enable-wrappers     enable tcp wrapper support [no]
1030
1031 SLAPD Backend Options:
1032     --enable-backends     enable all available backends no|yes|mod
1033     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1034     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1035     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1036     --enable-ldap         enable ldap backend no|yes|mod [no]
1037     --enable-meta         enable metadirectory backend no|yes|mod [no]
1038     --enable-monitor      enable monitor backend no|yes|mod [yes]
1039     --enable-null         enable null backend no|yes|mod [no]
1040     --enable-passwd       enable passwd backend no|yes|mod [no]
1041     --enable-perl         enable perl backend no|yes|mod [no]
1042     --enable-relay        enable relay backend no|yes|mod [yes]
1043     --enable-shell        enable shell backend no|yes|mod [no]
1044     --enable-sql          enable sql backend no|yes|mod [no]
1045
1046 SLAPD Overlay Options:
1047     --enable-overlays     enable all available overlays no|yes|mod
1048     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1049     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1050     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1051     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1052     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1053     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1054     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1055     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1056     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1057     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1058     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1059     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1060     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1061     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1062     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1063     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1064
1065 Library Generation & Linking Options
1066   --enable-static[=PKGS]
1067                           build static libraries [default=yes]
1068   --enable-shared[=PKGS]
1069                           build shared libraries [default=yes]
1070   --enable-fast-install[=PKGS]
1071                           optimize for fast installation [default=yes]
1072   --disable-dependency-tracking  speeds up one-time build
1073   --enable-dependency-tracking   do not reject slow dependency extractors
1074   --disable-libtool-lock  avoid locking (might break parallel builds)
1075
1076 Optional Packages:
1077   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1078   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1079   --with-subdir=DIR       change default subdirectory used for installs
1080   --with-cyrus-sasl       with Cyrus SASL support [auto]
1081   --with-fetch            with fetch(3) URL support [auto]
1082   --with-threads          with threads [auto]
1083   --with-tls              with TLS/SSL support [auto]
1084   --with-yielding-select  with implicitly yielding select [auto]
1085   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1086   --with-odbc             with specific ODBC support iodbc|unixodbc|auto [auto]
1087   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1088   --with-pic              try to use only PIC/non-PIC objects [default=use
1089                           both]
1090   --with-tags[=TAGS]
1091                           include additional configurations [automatic]
1092
1093 See INSTALL file for further details.
1094
1095 Some influential environment variables:
1096   CC          C compiler command
1097   CFLAGS      C compiler flags
1098   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1099               nonstandard directory <lib dir>
1100   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1101               headers in a nonstandard directory <include dir>
1102   CPP         C preprocessor
1103
1104 Use these variables to override the choices made by `configure' or to help
1105 it to find libraries and programs with nonstandard names/locations.
1106
1107 _ACEOF
1108 fi
1109
1110 if test "$ac_init_help" = "recursive"; then
1111   # If there are subdirs, report their specific --help.
1112   ac_popdir=`pwd`
1113   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1114     test -d $ac_dir || continue
1115     ac_builddir=.
1116
1117 if test "$ac_dir" != .; then
1118   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1119   # A "../" for each directory in $ac_dir_suffix.
1120   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1121 else
1122   ac_dir_suffix= ac_top_builddir=
1123 fi
1124
1125 case $srcdir in
1126   .)  # No --srcdir option.  We are building in place.
1127     ac_srcdir=.
1128     if test -z "$ac_top_builddir"; then
1129        ac_top_srcdir=.
1130     else
1131        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1132     fi ;;
1133   [\\/]* | ?:[\\/]* )  # Absolute path.
1134     ac_srcdir=$srcdir$ac_dir_suffix;
1135     ac_top_srcdir=$srcdir ;;
1136   *) # Relative path.
1137     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1138     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1139 esac
1140
1141 # Do not use `cd foo && pwd` to compute absolute paths, because
1142 # the directories may not exist.
1143 case `pwd` in
1144 .) ac_abs_builddir="$ac_dir";;
1145 *)
1146   case "$ac_dir" in
1147   .) ac_abs_builddir=`pwd`;;
1148   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1149   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1150   esac;;
1151 esac
1152 case $ac_abs_builddir in
1153 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 *)
1155   case ${ac_top_builddir}. in
1156   .) ac_abs_top_builddir=$ac_abs_builddir;;
1157   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1158   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1159   esac;;
1160 esac
1161 case $ac_abs_builddir in
1162 .) ac_abs_srcdir=$ac_srcdir;;
1163 *)
1164   case $ac_srcdir in
1165   .) ac_abs_srcdir=$ac_abs_builddir;;
1166   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1167   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1168   esac;;
1169 esac
1170 case $ac_abs_builddir in
1171 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 *)
1173   case $ac_top_srcdir in
1174   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1175   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1176   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1177   esac;;
1178 esac
1179
1180     cd $ac_dir
1181     # Check for guested configure; otherwise get Cygnus style configure.
1182     if test -f $ac_srcdir/configure.gnu; then
1183       echo
1184       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1185     elif test -f $ac_srcdir/configure; then
1186       echo
1187       $SHELL $ac_srcdir/configure  --help=recursive
1188     elif test -f $ac_srcdir/configure.ac ||
1189            test -f $ac_srcdir/configure.in; then
1190       echo
1191       $ac_configure --help
1192     else
1193       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1194     fi
1195     cd $ac_popdir
1196   done
1197 fi
1198
1199 test -n "$ac_init_help" && exit 0
1200 if $ac_init_version; then
1201   cat <<\_ACEOF
1202
1203 Copyright (C) 2003 Free Software Foundation, Inc.
1204 This configure script is free software; the Free Software Foundation
1205 gives unlimited permission to copy, distribute and modify it.
1206
1207 Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
1208 Restrictions apply, see COPYRIGHT and LICENSE files.
1209 _ACEOF
1210   exit 0
1211 fi
1212 exec 5>config.log
1213 cat >&5 <<_ACEOF
1214 This file contains any messages produced by compilers while
1215 running configure, to aid debugging if configure makes a mistake.
1216
1217 It was created by $as_me, which was
1218 generated by GNU Autoconf 2.59.  Invocation command line was
1219
1220   $ $0 $@
1221
1222 _ACEOF
1223 {
1224 cat <<_ASUNAME
1225 ## --------- ##
1226 ## Platform. ##
1227 ## --------- ##
1228
1229 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1230 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1231 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1232 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1233 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1234
1235 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1236 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1237
1238 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1239 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1240 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1241 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1242 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1243 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1244 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1245
1246 _ASUNAME
1247
1248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1249 for as_dir in $PATH
1250 do
1251   IFS=$as_save_IFS
1252   test -z "$as_dir" && as_dir=.
1253   echo "PATH: $as_dir"
1254 done
1255
1256 } >&5
1257
1258 cat >&5 <<_ACEOF
1259
1260
1261 ## ----------- ##
1262 ## Core tests. ##
1263 ## ----------- ##
1264
1265 _ACEOF
1266
1267
1268 # Keep a trace of the command line.
1269 # Strip out --no-create and --no-recursion so they do not pile up.
1270 # Strip out --silent because we don't want to record it for future runs.
1271 # Also quote any args containing shell meta-characters.
1272 # Make two passes to allow for proper duplicate-argument suppression.
1273 ac_configure_args=
1274 ac_configure_args0=
1275 ac_configure_args1=
1276 ac_sep=
1277 ac_must_keep_next=false
1278 for ac_pass in 1 2
1279 do
1280   for ac_arg
1281   do
1282     case $ac_arg in
1283     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1284     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285     | -silent | --silent | --silen | --sile | --sil)
1286       continue ;;
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     esac
1290     case $ac_pass in
1291     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1292     2)
1293       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1294       if test $ac_must_keep_next = true; then
1295         ac_must_keep_next=false # Got value, back to normal.
1296       else
1297         case $ac_arg in
1298           *=* | --config-cache | -C | -disable-* | --disable-* \
1299           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1300           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1301           | -with-* | --with-* | -without-* | --without-* | --x)
1302             case "$ac_configure_args0 " in
1303               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1304             esac
1305             ;;
1306           -* ) ac_must_keep_next=true ;;
1307         esac
1308       fi
1309       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1310       # Get rid of the leading space.
1311       ac_sep=" "
1312       ;;
1313     esac
1314   done
1315 done
1316 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1317 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1318
1319 # When interrupted or exit'd, cleanup temporary files, and complete
1320 # config.log.  We remove comments because anyway the quotes in there
1321 # would cause problems or look ugly.
1322 # WARNING: Be sure not to use single quotes in there, as some shells,
1323 # such as our DU 5.0 friend, will then `close' the trap.
1324 trap 'exit_status=$?
1325   # Save into config.log some information that might help in debugging.
1326   {
1327     echo
1328
1329     cat <<\_ASBOX
1330 ## ---------------- ##
1331 ## Cache variables. ##
1332 ## ---------------- ##
1333 _ASBOX
1334     echo
1335     # The following way of writing the cache mishandles newlines in values,
1336 {
1337   (set) 2>&1 |
1338     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1339     *ac_space=\ *)
1340       sed -n \
1341         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1342           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1343       ;;
1344     *)
1345       sed -n \
1346         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1347       ;;
1348     esac;
1349 }
1350     echo
1351
1352     cat <<\_ASBOX
1353 ## ----------------- ##
1354 ## Output variables. ##
1355 ## ----------------- ##
1356 _ASBOX
1357     echo
1358     for ac_var in $ac_subst_vars
1359     do
1360       eval ac_val=$`echo $ac_var`
1361       echo "$ac_var='"'"'$ac_val'"'"'"
1362     done | sort
1363     echo
1364
1365     if test -n "$ac_subst_files"; then
1366       cat <<\_ASBOX
1367 ## ------------- ##
1368 ## Output files. ##
1369 ## ------------- ##
1370 _ASBOX
1371       echo
1372       for ac_var in $ac_subst_files
1373       do
1374         eval ac_val=$`echo $ac_var`
1375         echo "$ac_var='"'"'$ac_val'"'"'"
1376       done | sort
1377       echo
1378     fi
1379
1380     if test -s confdefs.h; then
1381       cat <<\_ASBOX
1382 ## ----------- ##
1383 ## confdefs.h. ##
1384 ## ----------- ##
1385 _ASBOX
1386       echo
1387       sed "/^$/d" confdefs.h | sort
1388       echo
1389     fi
1390     test "$ac_signal" != 0 &&
1391       echo "$as_me: caught signal $ac_signal"
1392     echo "$as_me: exit $exit_status"
1393   } >&5
1394   rm -f core *.core &&
1395   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1396     exit $exit_status
1397      ' 0
1398 for ac_signal in 1 2 13 15; do
1399   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1400 done
1401 ac_signal=0
1402
1403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1404 rm -rf conftest* confdefs.h
1405 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1406 echo >confdefs.h
1407
1408 # Predefined preprocessor variables.
1409
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_NAME "$PACKAGE_NAME"
1412 _ACEOF
1413
1414
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1417 _ACEOF
1418
1419
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1422 _ACEOF
1423
1424
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_STRING "$PACKAGE_STRING"
1427 _ACEOF
1428
1429
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1432 _ACEOF
1433
1434
1435 # Let the site file select an alternate cache file if it wants to.
1436 # Prefer explicitly selected file to automatically selected ones.
1437 if test -z "$CONFIG_SITE"; then
1438   if test "x$prefix" != xNONE; then
1439     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1440   else
1441     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1442   fi
1443 fi
1444 for ac_site_file in $CONFIG_SITE; do
1445   if test -r "$ac_site_file"; then
1446     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1447 echo "$as_me: loading site script $ac_site_file" >&6;}
1448     sed 's/^/| /' "$ac_site_file" >&5
1449     . "$ac_site_file"
1450   fi
1451 done
1452
1453
1454 # Check that the precious variables saved in the cache have kept the same
1455 # value.
1456 ac_cache_corrupted=false
1457 for ac_var in `(set) 2>&1 |
1458                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1459   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1460   eval ac_new_set=\$ac_env_${ac_var}_set
1461   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1462   eval ac_new_val="\$ac_env_${ac_var}_value"
1463   case $ac_old_set,$ac_new_set in
1464     set,)
1465       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1467       ac_cache_corrupted=: ;;
1468     ,set)
1469       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1470 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1471       ac_cache_corrupted=: ;;
1472     ,);;
1473     *)
1474       if test "x$ac_old_val" != "x$ac_new_val"; then
1475         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1476 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1477         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1478 echo "$as_me:   former value:  $ac_old_val" >&2;}
1479         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1480 echo "$as_me:   current value: $ac_new_val" >&2;}
1481         ac_cache_corrupted=:
1482       fi;;
1483   esac
1484   # Pass precious variables to config.status.
1485   if test "$ac_new_set" = set; then
1486     case $ac_new_val in
1487     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1488       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1489     *) ac_arg=$ac_var=$ac_new_val ;;
1490     esac
1491     case " $ac_configure_args " in
1492       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1493       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1494     esac
1495   fi
1496 done
1497 if $ac_cache_corrupted; then
1498   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1499 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1500   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1501 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1502    { (exit 1); exit 1; }; }
1503 fi
1504
1505 ac_ext=c
1506 ac_cpp='$CPP $CPPFLAGS'
1507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553 ac_aux_dir=
1554 for ac_dir in build $srcdir/build; do
1555   if test -f $ac_dir/install-sh; then
1556     ac_aux_dir=$ac_dir
1557     ac_install_sh="$ac_aux_dir/install-sh -c"
1558     break
1559   elif test -f $ac_dir/install.sh; then
1560     ac_aux_dir=$ac_dir
1561     ac_install_sh="$ac_aux_dir/install.sh -c"
1562     break
1563   elif test -f $ac_dir/shtool; then
1564     ac_aux_dir=$ac_dir
1565     ac_install_sh="$ac_aux_dir/shtool install -c"
1566     break
1567   fi
1568 done
1569 if test -z "$ac_aux_dir"; then
1570   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1571 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1572    { (exit 1); exit 1; }; }
1573 fi
1574 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577
1578 eval `$ac_aux_dir/version.sh`
1579 if test -z "$OL_STRING"; then
1580         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1581 echo "$as_me: error: could not determine version" >&2;}
1582    { (exit 1); exit 1; }; }
1583 fi
1584
1585 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1586         ac_cv_shtool="$ac_aux_dir/shtool"
1587 else
1588         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1589 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1590    { (exit 1); exit 1; }; }
1591 fi
1592
1593 SHTOOL="$ac_cv_shtool"
1594
1595 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1596 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1597
1598 OPENLDAP_CVS=""
1599 if test -d $ac_aux_dir/CVS; then
1600         OPENLDAP_CVS="(from CVS sources) "
1601 fi
1602
1603 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1604
1605 # Make sure we can run config.sub.
1606 $ac_config_sub sun4 >/dev/null 2>&1 ||
1607   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1608 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1609    { (exit 1); exit 1; }; }
1610
1611 echo "$as_me:$LINENO: checking build system type" >&5
1612 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1613 if test "${ac_cv_build+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   ac_cv_build_alias=$build_alias
1617 test -z "$ac_cv_build_alias" &&
1618   ac_cv_build_alias=`$ac_config_guess`
1619 test -z "$ac_cv_build_alias" &&
1620   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1621 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1622    { (exit 1); exit 1; }; }
1623 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1624   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1625 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1626    { (exit 1); exit 1; }; }
1627
1628 fi
1629 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1630 echo "${ECHO_T}$ac_cv_build" >&6
1631 build=$ac_cv_build
1632 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1635
1636
1637 echo "$as_me:$LINENO: checking host system type" >&5
1638 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1639 if test "${ac_cv_host+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   ac_cv_host_alias=$host_alias
1643 test -z "$ac_cv_host_alias" &&
1644   ac_cv_host_alias=$ac_cv_build_alias
1645 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1646   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1647 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1648    { (exit 1); exit 1; }; }
1649
1650 fi
1651 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1652 echo "${ECHO_T}$ac_cv_host" >&6
1653 host=$ac_cv_host
1654 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1657
1658
1659 echo "$as_me:$LINENO: checking target system type" >&5
1660 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1661 if test "${ac_cv_target+set}" = set; then
1662   echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664   ac_cv_target_alias=$target_alias
1665 test "x$ac_cv_target_alias" = "x" &&
1666   ac_cv_target_alias=$ac_cv_host_alias
1667 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1668   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1669 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1670    { (exit 1); exit 1; }; }
1671
1672 fi
1673 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1674 echo "${ECHO_T}$ac_cv_target" >&6
1675 target=$ac_cv_target
1676 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1679
1680
1681 # The aliases save the names the user supplied, while $host etc.
1682 # will get canonicalized.
1683 test -n "$target_alias" &&
1684   test "$program_prefix$program_suffix$program_transform_name" = \
1685     NONENONEs,x,x, &&
1686   program_prefix=${target_alias}-
1687
1688 am__api_version="1.9"
1689 # Find a good install program.  We prefer a C program (faster),
1690 # so one script is as good as another.  But avoid the broken or
1691 # incompatible versions:
1692 # SysV /etc/install, /usr/sbin/install
1693 # SunOS /usr/etc/install
1694 # IRIX /sbin/install
1695 # AIX /bin/install
1696 # AmigaOS /C/install, which installs bootblocks on floppy discs
1697 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1698 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1699 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1700 # OS/2's system install, which has a completely different semantic
1701 # ./install, which can be erroneously created by make from ./install.sh.
1702 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1703 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1704 if test -z "$INSTALL"; then
1705 if test "${ac_cv_path_install+set}" = set; then
1706   echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 for as_dir in $PATH
1710 do
1711   IFS=$as_save_IFS
1712   test -z "$as_dir" && as_dir=.
1713   # Account for people who put trailing slashes in PATH elements.
1714 case $as_dir/ in
1715   ./ | .// | /cC/* | \
1716   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1717   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1718   /usr/ucb/* ) ;;
1719   *)
1720     # OSF1 and SCO ODT 3.0 have their own names for install.
1721     # Don't use installbsd from OSF since it installs stuff as root
1722     # by default.
1723     for ac_prog in ginstall scoinst install; do
1724       for ac_exec_ext in '' $ac_executable_extensions; do
1725         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1726           if test $ac_prog = install &&
1727             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1728             # AIX install.  It has an incompatible calling convention.
1729             :
1730           elif test $ac_prog = install &&
1731             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732             # program-specific install script used by HP pwplus--don't use.
1733             :
1734           else
1735             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1736             break 3
1737           fi
1738         fi
1739       done
1740     done
1741     ;;
1742 esac
1743 done
1744
1745
1746 fi
1747   if test "${ac_cv_path_install+set}" = set; then
1748     INSTALL=$ac_cv_path_install
1749   else
1750     # As a last resort, use the slow shell script.  We don't cache a
1751     # path for INSTALL within a source directory, because that will
1752     # break other packages using the cache if that directory is
1753     # removed, or if the path is relative.
1754     INSTALL=$ac_install_sh
1755   fi
1756 fi
1757 echo "$as_me:$LINENO: result: $INSTALL" >&5
1758 echo "${ECHO_T}$INSTALL" >&6
1759
1760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1761 # It thinks the first close brace ends the variable substitution.
1762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1763
1764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1765
1766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1767
1768 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1769 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1770 # Just in case
1771 sleep 1
1772 echo timestamp > conftest.file
1773 # Do `set' in a subshell so we don't clobber the current shell's
1774 # arguments.  Must try -L first in case configure is actually a
1775 # symlink; some systems play weird games with the mod time of symlinks
1776 # (eg FreeBSD returns the mod time of the symlink's containing
1777 # directory).
1778 if (
1779    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1780    if test "$*" = "X"; then
1781       # -L didn't work.
1782       set X `ls -t $srcdir/configure conftest.file`
1783    fi
1784    rm -f conftest.file
1785    if test "$*" != "X $srcdir/configure conftest.file" \
1786       && test "$*" != "X conftest.file $srcdir/configure"; then
1787
1788       # If neither matched, then we have a broken ls.  This can happen
1789       # if, for instance, CONFIG_SHELL is bash and it inherits a
1790       # broken ls alias from the environment.  This has actually
1791       # happened.  Such a system could not be considered "sane".
1792       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1793 alias in your environment" >&5
1794 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1795 alias in your environment" >&2;}
1796    { (exit 1); exit 1; }; }
1797    fi
1798
1799    test "$2" = conftest.file
1800    )
1801 then
1802    # Ok.
1803    :
1804 else
1805    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1806 Check your system clock" >&5
1807 echo "$as_me: error: newly created file is older than distributed files!
1808 Check your system clock" >&2;}
1809    { (exit 1); exit 1; }; }
1810 fi
1811 echo "$as_me:$LINENO: result: yes" >&5
1812 echo "${ECHO_T}yes" >&6
1813 test "$program_prefix" != NONE &&
1814   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1815 # Use a double $ so make ignores it.
1816 test "$program_suffix" != NONE &&
1817   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1818 # Double any \ or $.  echo might interpret backslashes.
1819 # By default was `s,x,x', remove it if useless.
1820 cat <<\_ACEOF >conftest.sed
1821 s/[\\$]/&&/g;s/;s,x,x,$//
1822 _ACEOF
1823 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1824 rm conftest.sed
1825
1826 # expand $ac_aux_dir to an absolute path
1827 am_aux_dir=`cd $ac_aux_dir && pwd`
1828
1829 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1830 # Use eval to expand $SHELL
1831 if eval "$MISSING --run true"; then
1832   am_missing_run="$MISSING --run "
1833 else
1834   am_missing_run=
1835   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1836 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1837 fi
1838
1839 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1840   # We used to keeping the `.' as first argument, in order to
1841   # allow $(mkdir_p) to be used without argument.  As in
1842   #   $(mkdir_p) $(somedir)
1843   # where $(somedir) is conditionally defined.  However this is wrong
1844   # for two reasons:
1845   #  1. if the package is installed by a user who cannot write `.'
1846   #     make install will fail,
1847   #  2. the above comment should most certainly read
1848   #     $(mkdir_p) $(DESTDIR)$(somedir)
1849   #     so it does not work when $(somedir) is undefined and
1850   #     $(DESTDIR) is not.
1851   #  To support the latter case, we have to write
1852   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1853   #  so the `.' trick is pointless.
1854   mkdir_p='mkdir -p --'
1855 else
1856   # On NextStep and OpenStep, the `mkdir' command does not
1857   # recognize any option.  It will interpret all options as
1858   # directories to create, and then abort because `.' already
1859   # exists.
1860   for d in ./-p ./--version;
1861   do
1862     test -d $d && rmdir $d
1863   done
1864   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1865   if test -f "$ac_aux_dir/mkinstalldirs"; then
1866     mkdir_p='$(mkinstalldirs)'
1867   else
1868     mkdir_p='$(install_sh) -d'
1869   fi
1870 fi
1871
1872 for ac_prog in gawk mawk nawk awk
1873 do
1874   # Extract the first word of "$ac_prog", so it can be a program name with args.
1875 set dummy $ac_prog; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_AWK+set}" = set; then
1879   echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881   if test -n "$AWK"; then
1882   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887   IFS=$as_save_IFS
1888   test -z "$as_dir" && as_dir=.
1889   for ac_exec_ext in '' $ac_executable_extensions; do
1890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891     ac_cv_prog_AWK="$ac_prog"
1892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893     break 2
1894   fi
1895 done
1896 done
1897
1898 fi
1899 fi
1900 AWK=$ac_cv_prog_AWK
1901 if test -n "$AWK"; then
1902   echo "$as_me:$LINENO: result: $AWK" >&5
1903 echo "${ECHO_T}$AWK" >&6
1904 else
1905   echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1908
1909   test -n "$AWK" && break
1910 done
1911
1912 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1913 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1914 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1915 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1916   echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918   cat >conftest.make <<\_ACEOF
1919 all:
1920         @echo 'ac_maketemp="$(MAKE)"'
1921 _ACEOF
1922 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1923 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1924 if test -n "$ac_maketemp"; then
1925   eval ac_cv_prog_make_${ac_make}_set=yes
1926 else
1927   eval ac_cv_prog_make_${ac_make}_set=no
1928 fi
1929 rm -f conftest.make
1930 fi
1931 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1932   echo "$as_me:$LINENO: result: yes" >&5
1933 echo "${ECHO_T}yes" >&6
1934   SET_MAKE=
1935 else
1936   echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1938   SET_MAKE="MAKE=${MAKE-make}"
1939 fi
1940
1941 rm -rf .tst 2>/dev/null
1942 mkdir .tst 2>/dev/null
1943 if test -d .tst; then
1944   am__leading_dot=.
1945 else
1946   am__leading_dot=_
1947 fi
1948 rmdir .tst 2>/dev/null
1949
1950 # test to see if srcdir already configured
1951 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1952    test -f $srcdir/config.status; then
1953   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1954 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1955    { (exit 1); exit 1; }; }
1956 fi
1957
1958 # test whether we have cygpath
1959 if test -z "$CYGPATH_W"; then
1960   if (cygpath --version) >/dev/null 2>/dev/null; then
1961     CYGPATH_W='cygpath -w'
1962   else
1963     CYGPATH_W=echo
1964   fi
1965 fi
1966
1967
1968 # Define the identity of the package.
1969  PACKAGE=$OL_PACKAGE
1970  VERSION=$OL_VERSION
1971
1972
1973 # Some tools Automake needs.
1974
1975 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1976
1977
1978 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1979
1980
1981 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1982
1983
1984 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1985
1986
1987 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1988
1989 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1990
1991 # Installed binaries are usually stripped using `strip' when the user
1992 # run `make install-strip'.  However `strip' might not be the right
1993 # tool to use in cross-compilation environments, therefore Automake
1994 # will honor the `STRIP' environment variable to overrule this program.
1995 if test "$cross_compiling" != no; then
1996   if test -n "$ac_tool_prefix"; then
1997   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1998 set dummy ${ac_tool_prefix}strip; ac_word=$2
1999 echo "$as_me:$LINENO: checking for $ac_word" >&5
2000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001 if test "${ac_cv_prog_STRIP+set}" = set; then
2002   echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004   if test -n "$STRIP"; then
2005   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2006 else
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010   IFS=$as_save_IFS
2011   test -z "$as_dir" && as_dir=.
2012   for ac_exec_ext in '' $ac_executable_extensions; do
2013   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016     break 2
2017   fi
2018 done
2019 done
2020
2021 fi
2022 fi
2023 STRIP=$ac_cv_prog_STRIP
2024 if test -n "$STRIP"; then
2025   echo "$as_me:$LINENO: result: $STRIP" >&5
2026 echo "${ECHO_T}$STRIP" >&6
2027 else
2028   echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2030 fi
2031
2032 fi
2033 if test -z "$ac_cv_prog_STRIP"; then
2034   ac_ct_STRIP=$STRIP
2035   # Extract the first word of "strip", so it can be a program name with args.
2036 set dummy strip; ac_word=$2
2037 echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   if test -n "$ac_ct_STRIP"; then
2043   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048   IFS=$as_save_IFS
2049   test -z "$as_dir" && as_dir=.
2050   for ac_exec_ext in '' $ac_executable_extensions; do
2051   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052     ac_cv_prog_ac_ct_STRIP="strip"
2053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054     break 2
2055   fi
2056 done
2057 done
2058
2059   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2060 fi
2061 fi
2062 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2063 if test -n "$ac_ct_STRIP"; then
2064   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2065 echo "${ECHO_T}$ac_ct_STRIP" >&6
2066 else
2067   echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2069 fi
2070
2071   STRIP=$ac_ct_STRIP
2072 else
2073   STRIP="$ac_cv_prog_STRIP"
2074 fi
2075
2076 fi
2077 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2078
2079 # We need awk for the "check" target.  The system "awk" is bad on
2080 # some platforms.
2081 # Always define AMTAR for backward compatibility.
2082
2083 AMTAR=${AMTAR-"${am_missing_run}tar"}
2084
2085 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2086
2087
2088
2089
2090
2091 cat >>confdefs.h <<_ACEOF
2092 #define OPENLDAP_PACKAGE "$PACKAGE"
2093 _ACEOF
2094
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define OPENLDAP_VERSION "$VERSION"
2098 _ACEOF
2099
2100
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define LDAP_VENDOR_VERSION $OL_API_INC
2104 _ACEOF
2105
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2109 _ACEOF
2110
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2114 _ACEOF
2115
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2119 _ACEOF
2120
2121
2122 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2123
2124 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2125
2126 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2127
2128
2129
2130
2131
2132
2133
2134           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2135
2136           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2137
2138           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2139
2140
2141 echo "$as_me:$LINENO: checking configure arguments" >&5
2142 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2143
2144
2145 top_builddir=`pwd`
2146
2147 ldap_subdir="/openldap"
2148
2149
2150 # Check whether --with-subdir or --without-subdir was given.
2151 if test "${with_subdir+set}" = set; then
2152   withval="$with_subdir"
2153   case "$withval" in
2154         no) ldap_subdir=""
2155                 ;;
2156         yes)
2157                 ;;
2158         /*|\\*)
2159                 ldap_subdir="$withval"
2160                 ;;
2161         *)
2162                 ldap_subdir="/$withval"
2163                 ;;
2164 esac
2165
2166 fi;
2167
2168 # OpenLDAP --enable-debug
2169
2170         # Check whether --enable-debug or --disable-debug was given.
2171 if test "${enable_debug+set}" = set; then
2172   enableval="$enable_debug"
2173
2174         ol_arg=invalid
2175         for ol_val in no yes traditional ; do
2176                 if test "$enableval" = "$ol_val" ; then
2177                         ol_arg="$ol_val"
2178                 fi
2179         done
2180         if test "$ol_arg" = "invalid" ; then
2181                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2182 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2183    { (exit 1); exit 1; }; }
2184         fi
2185         ol_enable_debug="$ol_arg"
2186
2187 else
2188         ol_enable_debug=yes
2189 fi;
2190 # end --enable-debug
2191 # OpenLDAP --enable-dynamic
2192
2193         # Check whether --enable-dynamic or --disable-dynamic was given.
2194 if test "${enable_dynamic+set}" = set; then
2195   enableval="$enable_dynamic"
2196
2197         ol_arg=invalid
2198         for ol_val in auto yes no ; do
2199                 if test "$enableval" = "$ol_val" ; then
2200                         ol_arg="$ol_val"
2201                 fi
2202         done
2203         if test "$ol_arg" = "invalid" ; then
2204                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2205 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2206    { (exit 1); exit 1; }; }
2207         fi
2208         ol_enable_dynamic="$ol_arg"
2209
2210 else
2211         ol_enable_dynamic=no
2212 fi;
2213 # end --enable-dynamic
2214 # OpenLDAP --enable-syslog
2215
2216         # Check whether --enable-syslog or --disable-syslog was given.
2217 if test "${enable_syslog+set}" = set; then
2218   enableval="$enable_syslog"
2219
2220         ol_arg=invalid
2221         for ol_val in auto yes no ; do
2222                 if test "$enableval" = "$ol_val" ; then
2223                         ol_arg="$ol_val"
2224                 fi
2225         done
2226         if test "$ol_arg" = "invalid" ; then
2227                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2228 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2229    { (exit 1); exit 1; }; }
2230         fi
2231         ol_enable_syslog="$ol_arg"
2232
2233 else
2234         ol_enable_syslog=auto
2235 fi;
2236 # end --enable-syslog
2237 # OpenLDAP --enable-proctitle
2238
2239         # Check whether --enable-proctitle or --disable-proctitle was given.
2240 if test "${enable_proctitle+set}" = set; then
2241   enableval="$enable_proctitle"
2242
2243         ol_arg=invalid
2244         for ol_val in auto yes no ; do
2245                 if test "$enableval" = "$ol_val" ; then
2246                         ol_arg="$ol_val"
2247                 fi
2248         done
2249         if test "$ol_arg" = "invalid" ; then
2250                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2251 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2252    { (exit 1); exit 1; }; }
2253         fi
2254         ol_enable_proctitle="$ol_arg"
2255
2256 else
2257         ol_enable_proctitle=yes
2258 fi;
2259 # end --enable-proctitle
2260 ol_enable_referrals=${ol_enable_referrals-no}
2261 # OpenLDAP --enable-ipv6
2262
2263         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2264 if test "${enable_ipv6+set}" = set; then
2265   enableval="$enable_ipv6"
2266
2267         ol_arg=invalid
2268         for ol_val in auto yes no ; do
2269                 if test "$enableval" = "$ol_val" ; then
2270                         ol_arg="$ol_val"
2271                 fi
2272         done
2273         if test "$ol_arg" = "invalid" ; then
2274                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2275 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2276    { (exit 1); exit 1; }; }
2277         fi
2278         ol_enable_ipv6="$ol_arg"
2279
2280 else
2281         ol_enable_ipv6=auto
2282 fi;
2283 # end --enable-ipv6
2284 # OpenLDAP --enable-local
2285
2286         # Check whether --enable-local or --disable-local was given.
2287 if test "${enable_local+set}" = set; then
2288   enableval="$enable_local"
2289
2290         ol_arg=invalid
2291         for ol_val in auto yes no ; do
2292                 if test "$enableval" = "$ol_val" ; then
2293                         ol_arg="$ol_val"
2294                 fi
2295         done
2296         if test "$ol_arg" = "invalid" ; then
2297                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2298 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2299    { (exit 1); exit 1; }; }
2300         fi
2301         ol_enable_local="$ol_arg"
2302
2303 else
2304         ol_enable_local=auto
2305 fi;
2306 # end --enable-local
2307
2308 # OpenLDAP --with-cyrus_sasl
2309
2310 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2311 if test "${with_cyrus_sasl+set}" = set; then
2312   withval="$with_cyrus_sasl"
2313
2314         ol_arg=invalid
2315         for ol_val in auto yes no  ; do
2316                 if test "$withval" = "$ol_val" ; then
2317                         ol_arg="$ol_val"
2318                 fi
2319         done
2320         if test "$ol_arg" = "invalid" ; then
2321                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2322 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2323    { (exit 1); exit 1; }; }
2324         fi
2325         ol_with_cyrus_sasl="$ol_arg"
2326
2327 else
2328         ol_with_cyrus_sasl="auto"
2329 fi; # end --with-cyrus_sasl
2330
2331 # OpenLDAP --with-fetch
2332
2333 # Check whether --with-fetch or --without-fetch was given.
2334 if test "${with_fetch+set}" = set; then
2335   withval="$with_fetch"
2336
2337         ol_arg=invalid
2338         for ol_val in auto yes no  ; do
2339                 if test "$withval" = "$ol_val" ; then
2340                         ol_arg="$ol_val"
2341                 fi
2342         done
2343         if test "$ol_arg" = "invalid" ; then
2344                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2345 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2346    { (exit 1); exit 1; }; }
2347         fi
2348         ol_with_fetch="$ol_arg"
2349
2350 else
2351         ol_with_fetch="auto"
2352 fi; # end --with-fetch
2353
2354 # OpenLDAP --with-threads
2355
2356 # Check whether --with-threads or --without-threads was given.
2357 if test "${with_threads+set}" = set; then
2358   withval="$with_threads"
2359
2360         ol_arg=invalid
2361         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2362                 if test "$withval" = "$ol_val" ; then
2363                         ol_arg="$ol_val"
2364                 fi
2365         done
2366         if test "$ol_arg" = "invalid" ; then
2367                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2368 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2369    { (exit 1); exit 1; }; }
2370         fi
2371         ol_with_threads="$ol_arg"
2372
2373 else
2374         ol_with_threads="auto"
2375 fi; # end --with-threads
2376
2377 # OpenLDAP --with-tls
2378
2379 # Check whether --with-tls or --without-tls was given.
2380 if test "${with_tls+set}" = set; then
2381   withval="$with_tls"
2382
2383         ol_arg=invalid
2384         for ol_val in auto openssl yes no  ; do
2385                 if test "$withval" = "$ol_val" ; then
2386                         ol_arg="$ol_val"
2387                 fi
2388         done
2389         if test "$ol_arg" = "invalid" ; then
2390                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2391 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2392    { (exit 1); exit 1; }; }
2393         fi
2394         ol_with_tls="$ol_arg"
2395
2396 else
2397         ol_with_tls="auto"
2398 fi; # end --with-tls
2399
2400 # OpenLDAP --with-yielding_select
2401
2402 # Check whether --with-yielding_select or --without-yielding_select was given.
2403 if test "${with_yielding_select+set}" = set; then
2404   withval="$with_yielding_select"
2405
2406         ol_arg=invalid
2407         for ol_val in auto yes no manual  ; do
2408                 if test "$withval" = "$ol_val" ; then
2409                         ol_arg="$ol_val"
2410                 fi
2411         done
2412         if test "$ol_arg" = "invalid" ; then
2413                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2414 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2415    { (exit 1); exit 1; }; }
2416         fi
2417         ol_with_yielding_select="$ol_arg"
2418
2419 else
2420         ol_with_yielding_select="auto"
2421 fi; # end --with-yielding_select
2422
2423 # OpenLDAP --with-mp
2424
2425 # Check whether --with-mp or --without-mp was given.
2426 if test "${with_mp+set}" = set; then
2427   withval="$with_mp"
2428
2429         ol_arg=invalid
2430         for ol_val in auto longlong long bignum gmp yes no ; do
2431                 if test "$withval" = "$ol_val" ; then
2432                         ol_arg="$ol_val"
2433                 fi
2434         done
2435         if test "$ol_arg" = "invalid" ; then
2436                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2437 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2438    { (exit 1); exit 1; }; }
2439         fi
2440         ol_with_mp="$ol_arg"
2441
2442 else
2443         ol_with_mp="auto"
2444 fi; # end --with-mp
2445
2446 # OpenLDAP --with-odbc
2447
2448 # Check whether --with-odbc or --without-odbc was given.
2449 if test "${with_odbc+set}" = set; then
2450   withval="$with_odbc"
2451
2452         ol_arg=invalid
2453         for ol_val in auto iodbc unixodbc  ; do
2454                 if test "$withval" = "$ol_val" ; then
2455                         ol_arg="$ol_val"
2456                 fi
2457         done
2458         if test "$ol_arg" = "invalid" ; then
2459                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2460 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2461    { (exit 1); exit 1; }; }
2462         fi
2463         ol_with_odbc="$ol_arg"
2464
2465 else
2466         ol_with_odbc="auto"
2467 fi; # end --with-odbc
2468
2469
2470
2471 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2472 if test "${enable_xxslapdoptions+set}" = set; then
2473   enableval="$enable_xxslapdoptions"
2474
2475 fi;
2476 # OpenLDAP --enable-slapd
2477
2478         # Check whether --enable-slapd or --disable-slapd was given.
2479 if test "${enable_slapd+set}" = set; then
2480   enableval="$enable_slapd"
2481
2482         ol_arg=invalid
2483         for ol_val in auto yes no ; do
2484                 if test "$enableval" = "$ol_val" ; then
2485                         ol_arg="$ol_val"
2486                 fi
2487         done
2488         if test "$ol_arg" = "invalid" ; then
2489                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2490 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2491    { (exit 1); exit 1; }; }
2492         fi
2493         ol_enable_slapd="$ol_arg"
2494
2495 else
2496         ol_enable_slapd=yes
2497 fi;
2498 # end --enable-slapd
2499 # OpenLDAP --enable-dynacl
2500
2501         # Check whether --enable-dynacl or --disable-dynacl was given.
2502 if test "${enable_dynacl+set}" = set; then
2503   enableval="$enable_dynacl"
2504
2505         ol_arg=invalid
2506         for ol_val in auto yes no ; do
2507                 if test "$enableval" = "$ol_val" ; then
2508                         ol_arg="$ol_val"
2509                 fi
2510         done
2511         if test "$ol_arg" = "invalid" ; then
2512                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2513 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2514    { (exit 1); exit 1; }; }
2515         fi
2516         ol_enable_dynacl="$ol_arg"
2517
2518 else
2519         ol_enable_dynacl=no
2520 fi;
2521 # end --enable-dynacl
2522 # OpenLDAP --enable-aci
2523
2524         # Check whether --enable-aci or --disable-aci was given.
2525 if test "${enable_aci+set}" = set; then
2526   enableval="$enable_aci"
2527
2528         ol_arg=invalid
2529         for ol_val in no yes mod ; do
2530                 if test "$enableval" = "$ol_val" ; then
2531                         ol_arg="$ol_val"
2532                 fi
2533         done
2534         if test "$ol_arg" = "invalid" ; then
2535                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2536 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2537    { (exit 1); exit 1; }; }
2538         fi
2539         ol_enable_aci="$ol_arg"
2540
2541 else
2542         ol_enable_aci=no
2543 fi;
2544 # end --enable-aci
2545 # OpenLDAP --enable-cleartext
2546
2547         # Check whether --enable-cleartext or --disable-cleartext was given.
2548 if test "${enable_cleartext+set}" = set; then
2549   enableval="$enable_cleartext"
2550
2551         ol_arg=invalid
2552         for ol_val in auto yes no ; do
2553                 if test "$enableval" = "$ol_val" ; then
2554                         ol_arg="$ol_val"
2555                 fi
2556         done
2557         if test "$ol_arg" = "invalid" ; then
2558                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2559 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2560    { (exit 1); exit 1; }; }
2561         fi
2562         ol_enable_cleartext="$ol_arg"
2563
2564 else
2565         ol_enable_cleartext=yes
2566 fi;
2567 # end --enable-cleartext
2568 # OpenLDAP --enable-crypt
2569
2570         # Check whether --enable-crypt or --disable-crypt was given.
2571 if test "${enable_crypt+set}" = set; then
2572   enableval="$enable_crypt"
2573
2574         ol_arg=invalid
2575         for ol_val in auto yes no ; do
2576                 if test "$enableval" = "$ol_val" ; then
2577                         ol_arg="$ol_val"
2578                 fi
2579         done
2580         if test "$ol_arg" = "invalid" ; then
2581                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2582 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2583    { (exit 1); exit 1; }; }
2584         fi
2585         ol_enable_crypt="$ol_arg"
2586
2587 else
2588         ol_enable_crypt=no
2589 fi;
2590 # end --enable-crypt
2591 # OpenLDAP --enable-lmpasswd
2592
2593         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2594 if test "${enable_lmpasswd+set}" = set; then
2595   enableval="$enable_lmpasswd"
2596
2597         ol_arg=invalid
2598         for ol_val in auto yes no ; do
2599                 if test "$enableval" = "$ol_val" ; then
2600                         ol_arg="$ol_val"
2601                 fi
2602         done
2603         if test "$ol_arg" = "invalid" ; then
2604                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2605 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2606    { (exit 1); exit 1; }; }
2607         fi
2608         ol_enable_lmpasswd="$ol_arg"
2609
2610 else
2611         ol_enable_lmpasswd=no
2612 fi;
2613 # end --enable-lmpasswd
2614 # OpenLDAP --enable-spasswd
2615
2616         # Check whether --enable-spasswd or --disable-spasswd was given.
2617 if test "${enable_spasswd+set}" = set; then
2618   enableval="$enable_spasswd"
2619
2620         ol_arg=invalid
2621         for ol_val in auto yes no ; do
2622                 if test "$enableval" = "$ol_val" ; then
2623                         ol_arg="$ol_val"
2624                 fi
2625         done
2626         if test "$ol_arg" = "invalid" ; then
2627                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2628 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2629    { (exit 1); exit 1; }; }
2630         fi
2631         ol_enable_spasswd="$ol_arg"
2632
2633 else
2634         ol_enable_spasswd=no
2635 fi;
2636 # end --enable-spasswd
2637 # OpenLDAP --enable-modules
2638
2639         # Check whether --enable-modules or --disable-modules was given.
2640 if test "${enable_modules+set}" = set; then
2641   enableval="$enable_modules"
2642
2643         ol_arg=invalid
2644         for ol_val in auto yes no ; do
2645                 if test "$enableval" = "$ol_val" ; then
2646                         ol_arg="$ol_val"
2647                 fi
2648         done
2649         if test "$ol_arg" = "invalid" ; then
2650                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2651 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2652    { (exit 1); exit 1; }; }
2653         fi
2654         ol_enable_modules="$ol_arg"
2655
2656 else
2657         ol_enable_modules=no
2658 fi;
2659 # end --enable-modules
2660 # OpenLDAP --enable-rewrite
2661
2662         # Check whether --enable-rewrite or --disable-rewrite was given.
2663 if test "${enable_rewrite+set}" = set; then
2664   enableval="$enable_rewrite"
2665
2666         ol_arg=invalid
2667         for ol_val in auto yes no ; do
2668                 if test "$enableval" = "$ol_val" ; then
2669                         ol_arg="$ol_val"
2670                 fi
2671         done
2672         if test "$ol_arg" = "invalid" ; then
2673                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2674 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2675    { (exit 1); exit 1; }; }
2676         fi
2677         ol_enable_rewrite="$ol_arg"
2678
2679 else
2680         ol_enable_rewrite=auto
2681 fi;
2682 # end --enable-rewrite
2683 # OpenLDAP --enable-rlookups
2684
2685         # Check whether --enable-rlookups or --disable-rlookups was given.
2686 if test "${enable_rlookups+set}" = set; then
2687   enableval="$enable_rlookups"
2688
2689         ol_arg=invalid
2690         for ol_val in auto yes no ; do
2691                 if test "$enableval" = "$ol_val" ; then
2692                         ol_arg="$ol_val"
2693                 fi
2694         done
2695         if test "$ol_arg" = "invalid" ; then
2696                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2697 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2698    { (exit 1); exit 1; }; }
2699         fi
2700         ol_enable_rlookups="$ol_arg"
2701
2702 else
2703         ol_enable_rlookups=no
2704 fi;
2705 # end --enable-rlookups
2706 # OpenLDAP --enable-slapi
2707
2708         # Check whether --enable-slapi or --disable-slapi was given.
2709 if test "${enable_slapi+set}" = set; then
2710   enableval="$enable_slapi"
2711
2712         ol_arg=invalid
2713         for ol_val in auto yes no ; do
2714                 if test "$enableval" = "$ol_val" ; then
2715                         ol_arg="$ol_val"
2716                 fi
2717         done
2718         if test "$ol_arg" = "invalid" ; then
2719                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2720 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2721    { (exit 1); exit 1; }; }
2722         fi
2723         ol_enable_slapi="$ol_arg"
2724
2725 else
2726         ol_enable_slapi=no
2727 fi;
2728 # end --enable-slapi
2729 # OpenLDAP --enable-slp
2730
2731         # Check whether --enable-slp or --disable-slp was given.
2732 if test "${enable_slp+set}" = set; then
2733   enableval="$enable_slp"
2734
2735         ol_arg=invalid
2736         for ol_val in auto yes no ; do
2737                 if test "$enableval" = "$ol_val" ; then
2738                         ol_arg="$ol_val"
2739                 fi
2740         done
2741         if test "$ol_arg" = "invalid" ; then
2742                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2743 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2744    { (exit 1); exit 1; }; }
2745         fi
2746         ol_enable_slp="$ol_arg"
2747
2748 else
2749         ol_enable_slp=no
2750 fi;
2751 # end --enable-slp
2752 # OpenLDAP --enable-wrappers
2753
2754         # Check whether --enable-wrappers or --disable-wrappers was given.
2755 if test "${enable_wrappers+set}" = set; then
2756   enableval="$enable_wrappers"
2757
2758         ol_arg=invalid
2759         for ol_val in auto yes no ; do
2760                 if test "$enableval" = "$ol_val" ; then
2761                         ol_arg="$ol_val"
2762                 fi
2763         done
2764         if test "$ol_arg" = "invalid" ; then
2765                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2766 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2767    { (exit 1); exit 1; }; }
2768         fi
2769         ol_enable_wrappers="$ol_arg"
2770
2771 else
2772         ol_enable_wrappers=no
2773 fi;
2774 # end --enable-wrappers
2775
2776 Backends="bdb \
2777         dnssrv \
2778         hdb \
2779         ldap \
2780         meta \
2781         monitor \
2782         null \
2783         passwd \
2784         perl \
2785         relay \
2786         shell \
2787         sql"
2788
2789 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2790 if test "${enable_xxslapbackends+set}" = set; then
2791   enableval="$enable_xxslapbackends"
2792
2793 fi;
2794
2795 # OpenLDAP --enable-backends
2796
2797         # Check whether --enable-backends or --disable-backends was given.
2798 if test "${enable_backends+set}" = set; then
2799   enableval="$enable_backends"
2800
2801         ol_arg=invalid
2802         for ol_val in no yes mod ; do
2803                 if test "$enableval" = "$ol_val" ; then
2804                         ol_arg="$ol_val"
2805                 fi
2806         done
2807         if test "$ol_arg" = "invalid" ; then
2808                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2809 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2810    { (exit 1); exit 1; }; }
2811         fi
2812         ol_enable_backends="$ol_arg"
2813
2814 fi;
2815 # end --enable-backends
2816 # OpenLDAP --enable-bdb
2817
2818         # Check whether --enable-bdb or --disable-bdb was given.
2819 if test "${enable_bdb+set}" = set; then
2820   enableval="$enable_bdb"
2821
2822         ol_arg=invalid
2823         for ol_val in no yes mod ; do
2824                 if test "$enableval" = "$ol_val" ; then
2825                         ol_arg="$ol_val"
2826                 fi
2827         done
2828         if test "$ol_arg" = "invalid" ; then
2829                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2830 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2831    { (exit 1); exit 1; }; }
2832         fi
2833         ol_enable_bdb="$ol_arg"
2834
2835 else
2836         ol_enable_bdb=${ol_enable_backends:-yes}
2837 fi;
2838 # end --enable-bdb
2839 # OpenLDAP --enable-dnssrv
2840
2841         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2842 if test "${enable_dnssrv+set}" = set; then
2843   enableval="$enable_dnssrv"
2844
2845         ol_arg=invalid
2846         for ol_val in no yes mod ; do
2847                 if test "$enableval" = "$ol_val" ; then
2848                         ol_arg="$ol_val"
2849                 fi
2850         done
2851         if test "$ol_arg" = "invalid" ; then
2852                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2853 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2854    { (exit 1); exit 1; }; }
2855         fi
2856         ol_enable_dnssrv="$ol_arg"
2857
2858 else
2859         ol_enable_dnssrv=${ol_enable_backends:-no}
2860 fi;
2861 # end --enable-dnssrv
2862 # OpenLDAP --enable-hdb
2863
2864         # Check whether --enable-hdb or --disable-hdb was given.
2865 if test "${enable_hdb+set}" = set; then
2866   enableval="$enable_hdb"
2867
2868         ol_arg=invalid
2869         for ol_val in no yes mod ; do
2870                 if test "$enableval" = "$ol_val" ; then
2871                         ol_arg="$ol_val"
2872                 fi
2873         done
2874         if test "$ol_arg" = "invalid" ; then
2875                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2876 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2877    { (exit 1); exit 1; }; }
2878         fi
2879         ol_enable_hdb="$ol_arg"
2880
2881 else
2882         ol_enable_hdb=${ol_enable_backends:-yes}
2883 fi;
2884 # end --enable-hdb
2885 # OpenLDAP --enable-ldap
2886
2887         # Check whether --enable-ldap or --disable-ldap was given.
2888 if test "${enable_ldap+set}" = set; then
2889   enableval="$enable_ldap"
2890
2891         ol_arg=invalid
2892         for ol_val in no yes mod ; do
2893                 if test "$enableval" = "$ol_val" ; then
2894                         ol_arg="$ol_val"
2895                 fi
2896         done
2897         if test "$ol_arg" = "invalid" ; then
2898                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2899 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2900    { (exit 1); exit 1; }; }
2901         fi
2902         ol_enable_ldap="$ol_arg"
2903
2904 else
2905         ol_enable_ldap=${ol_enable_backends:-no}
2906 fi;
2907 # end --enable-ldap
2908 # OpenLDAP --enable-meta
2909
2910         # Check whether --enable-meta or --disable-meta was given.
2911 if test "${enable_meta+set}" = set; then
2912   enableval="$enable_meta"
2913
2914         ol_arg=invalid
2915         for ol_val in no yes mod ; do
2916                 if test "$enableval" = "$ol_val" ; then
2917                         ol_arg="$ol_val"
2918                 fi
2919         done
2920         if test "$ol_arg" = "invalid" ; then
2921                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2922 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2923    { (exit 1); exit 1; }; }
2924         fi
2925         ol_enable_meta="$ol_arg"
2926
2927 else
2928         ol_enable_meta=${ol_enable_backends:-no}
2929 fi;
2930 # end --enable-meta
2931 # OpenLDAP --enable-monitor
2932
2933         # Check whether --enable-monitor or --disable-monitor was given.
2934 if test "${enable_monitor+set}" = set; then
2935   enableval="$enable_monitor"
2936
2937         ol_arg=invalid
2938         for ol_val in no yes mod ; do
2939                 if test "$enableval" = "$ol_val" ; then
2940                         ol_arg="$ol_val"
2941                 fi
2942         done
2943         if test "$ol_arg" = "invalid" ; then
2944                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2945 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2946    { (exit 1); exit 1; }; }
2947         fi
2948         ol_enable_monitor="$ol_arg"
2949
2950 else
2951         ol_enable_monitor=${ol_enable_backends:-yes}
2952 fi;
2953 # end --enable-monitor
2954 # OpenLDAP --enable-null
2955
2956         # Check whether --enable-null or --disable-null was given.
2957 if test "${enable_null+set}" = set; then
2958   enableval="$enable_null"
2959
2960         ol_arg=invalid
2961         for ol_val in no yes mod ; do
2962                 if test "$enableval" = "$ol_val" ; then
2963                         ol_arg="$ol_val"
2964                 fi
2965         done
2966         if test "$ol_arg" = "invalid" ; then
2967                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2968 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2969    { (exit 1); exit 1; }; }
2970         fi
2971         ol_enable_null="$ol_arg"
2972
2973 else
2974         ol_enable_null=${ol_enable_backends:-no}
2975 fi;
2976 # end --enable-null
2977 # OpenLDAP --enable-passwd
2978
2979         # Check whether --enable-passwd or --disable-passwd was given.
2980 if test "${enable_passwd+set}" = set; then
2981   enableval="$enable_passwd"
2982
2983         ol_arg=invalid
2984         for ol_val in no yes mod ; do
2985                 if test "$enableval" = "$ol_val" ; then
2986                         ol_arg="$ol_val"
2987                 fi
2988         done
2989         if test "$ol_arg" = "invalid" ; then
2990                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2991 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2992    { (exit 1); exit 1; }; }
2993         fi
2994         ol_enable_passwd="$ol_arg"
2995
2996 else
2997         ol_enable_passwd=${ol_enable_backends:-no}
2998 fi;
2999 # end --enable-passwd
3000 # OpenLDAP --enable-perl
3001
3002         # Check whether --enable-perl or --disable-perl was given.
3003 if test "${enable_perl+set}" = set; then
3004   enableval="$enable_perl"
3005
3006         ol_arg=invalid
3007         for ol_val in no yes mod ; do
3008                 if test "$enableval" = "$ol_val" ; then
3009                         ol_arg="$ol_val"
3010                 fi
3011         done
3012         if test "$ol_arg" = "invalid" ; then
3013                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3014 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3015    { (exit 1); exit 1; }; }
3016         fi
3017         ol_enable_perl="$ol_arg"
3018
3019 else
3020         ol_enable_perl=${ol_enable_backends:-no}
3021 fi;
3022 # end --enable-perl
3023 # OpenLDAP --enable-relay
3024
3025         # Check whether --enable-relay or --disable-relay was given.
3026 if test "${enable_relay+set}" = set; then
3027   enableval="$enable_relay"
3028
3029         ol_arg=invalid
3030         for ol_val in no yes mod ; do
3031                 if test "$enableval" = "$ol_val" ; then
3032                         ol_arg="$ol_val"
3033                 fi
3034         done
3035         if test "$ol_arg" = "invalid" ; then
3036                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3037 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3038    { (exit 1); exit 1; }; }
3039         fi
3040         ol_enable_relay="$ol_arg"
3041
3042 else
3043         ol_enable_relay=${ol_enable_backends:-yes}
3044 fi;
3045 # end --enable-relay
3046 # OpenLDAP --enable-shell
3047
3048         # Check whether --enable-shell or --disable-shell was given.
3049 if test "${enable_shell+set}" = set; then
3050   enableval="$enable_shell"
3051
3052         ol_arg=invalid
3053         for ol_val in no yes mod ; do
3054                 if test "$enableval" = "$ol_val" ; then
3055                         ol_arg="$ol_val"
3056                 fi
3057         done
3058         if test "$ol_arg" = "invalid" ; then
3059                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3060 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3061    { (exit 1); exit 1; }; }
3062         fi
3063         ol_enable_shell="$ol_arg"
3064
3065 else
3066         ol_enable_shell=${ol_enable_backends:-no}
3067 fi;
3068 # end --enable-shell
3069 # OpenLDAP --enable-sql
3070
3071         # Check whether --enable-sql or --disable-sql was given.
3072 if test "${enable_sql+set}" = set; then
3073   enableval="$enable_sql"
3074
3075         ol_arg=invalid
3076         for ol_val in no yes mod ; do
3077                 if test "$enableval" = "$ol_val" ; then
3078                         ol_arg="$ol_val"
3079                 fi
3080         done
3081         if test "$ol_arg" = "invalid" ; then
3082                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3083 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3084    { (exit 1); exit 1; }; }
3085         fi
3086         ol_enable_sql="$ol_arg"
3087
3088 else
3089         ol_enable_sql=${ol_enable_backends:-no}
3090 fi;
3091 # end --enable-sql
3092
3093 Overlays="accesslog \
3094         auditlog \
3095         constraint \
3096         dds \
3097         dyngroup \
3098         dynlist \
3099         ppolicy \
3100         proxycache \
3101         refint \
3102         retcode \
3103         rwm \
3104         seqmod \
3105         syncprov \
3106         translucent \
3107         unique \
3108         valsort"
3109
3110 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3111 if test "${enable_xxslapoverlays+set}" = set; then
3112   enableval="$enable_xxslapoverlays"
3113
3114 fi;
3115
3116 # OpenLDAP --enable-overlays
3117
3118         # Check whether --enable-overlays or --disable-overlays was given.
3119 if test "${enable_overlays+set}" = set; then
3120   enableval="$enable_overlays"
3121
3122         ol_arg=invalid
3123         for ol_val in no yes mod ; do
3124                 if test "$enableval" = "$ol_val" ; then
3125                         ol_arg="$ol_val"
3126                 fi
3127         done
3128         if test "$ol_arg" = "invalid" ; then
3129                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3130 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3131    { (exit 1); exit 1; }; }
3132         fi
3133         ol_enable_overlays="$ol_arg"
3134
3135 fi;
3136 # end --enable-overlays
3137 # OpenLDAP --enable-accesslog
3138
3139         # Check whether --enable-accesslog or --disable-accesslog was given.
3140 if test "${enable_accesslog+set}" = set; then
3141   enableval="$enable_accesslog"
3142
3143         ol_arg=invalid
3144         for ol_val in no yes mod ; do
3145                 if test "$enableval" = "$ol_val" ; then
3146                         ol_arg="$ol_val"
3147                 fi
3148         done
3149         if test "$ol_arg" = "invalid" ; then
3150                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3151 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3152    { (exit 1); exit 1; }; }
3153         fi
3154         ol_enable_accesslog="$ol_arg"
3155
3156 else
3157         ol_enable_accesslog=${ol_enable_overlays:-no}
3158 fi;
3159 # end --enable-accesslog
3160
3161 # OpenLDAP --enable-auditlog
3162
3163         # Check whether --enable-auditlog or --disable-auditlog was given.
3164 if test "${enable_auditlog+set}" = set; then
3165   enableval="$enable_auditlog"
3166
3167         ol_arg=invalid
3168         for ol_val in no yes mod ; do
3169                 if test "$enableval" = "$ol_val" ; then
3170                         ol_arg="$ol_val"
3171                 fi
3172         done
3173         if test "$ol_arg" = "invalid" ; then
3174                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3175 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3176    { (exit 1); exit 1; }; }
3177         fi
3178         ol_enable_auditlog="$ol_arg"
3179
3180 else
3181         ol_enable_auditlog=${ol_enable_overlays:-no}
3182 fi;
3183 # end --enable-auditlog
3184
3185 # OpenLDAP --enable-constraint
3186
3187         # Check whether --enable-constraint or --disable-constraint was given.
3188 if test "${enable_constraint+set}" = set; then
3189   enableval="$enable_constraint"
3190
3191         ol_arg=invalid
3192         for ol_val in no yes mod ; do
3193                 if test "$enableval" = "$ol_val" ; then
3194                         ol_arg="$ol_val"
3195                 fi
3196         done
3197         if test "$ol_arg" = "invalid" ; then
3198                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3199 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3200    { (exit 1); exit 1; }; }
3201         fi
3202         ol_enable_constraint="$ol_arg"
3203
3204 else
3205         ol_enable_constraint=${ol_enable_overlays:-no}
3206 fi;
3207 # end --enable-constraint
3208
3209 # OpenLDAP --enable-dds
3210
3211         # Check whether --enable-dds or --disable-dds was given.
3212 if test "${enable_dds+set}" = set; then
3213   enableval="$enable_dds"
3214
3215         ol_arg=invalid
3216         for ol_val in no yes mod ; do
3217                 if test "$enableval" = "$ol_val" ; then
3218                         ol_arg="$ol_val"
3219                 fi
3220         done
3221         if test "$ol_arg" = "invalid" ; then
3222                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3223 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3224    { (exit 1); exit 1; }; }
3225         fi
3226         ol_enable_dds="$ol_arg"
3227
3228 else
3229         ol_enable_dds=${ol_enable_overlays:-no}
3230 fi;
3231 # end --enable-dds
3232
3233 # OpenLDAP --enable-dyngroup
3234
3235         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3236 if test "${enable_dyngroup+set}" = set; then
3237   enableval="$enable_dyngroup"
3238
3239         ol_arg=invalid
3240         for ol_val in no yes mod ; do
3241                 if test "$enableval" = "$ol_val" ; then
3242                         ol_arg="$ol_val"
3243                 fi
3244         done
3245         if test "$ol_arg" = "invalid" ; then
3246                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3247 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3248    { (exit 1); exit 1; }; }
3249         fi
3250         ol_enable_dyngroup="$ol_arg"
3251
3252 else
3253         ol_enable_dyngroup=${ol_enable_overlays:-no}
3254 fi;
3255 # end --enable-dyngroup
3256
3257 # OpenLDAP --enable-dynlist
3258
3259         # Check whether --enable-dynlist or --disable-dynlist was given.
3260 if test "${enable_dynlist+set}" = set; then
3261   enableval="$enable_dynlist"
3262
3263         ol_arg=invalid
3264         for ol_val in no yes mod ; do
3265                 if test "$enableval" = "$ol_val" ; then
3266                         ol_arg="$ol_val"
3267                 fi
3268         done
3269         if test "$ol_arg" = "invalid" ; then
3270                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3271 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3272    { (exit 1); exit 1; }; }
3273         fi
3274         ol_enable_dynlist="$ol_arg"
3275
3276 else
3277         ol_enable_dynlist=${ol_enable_overlays:-no}
3278 fi;
3279 # end --enable-dynlist
3280
3281 # OpenLDAP --enable-ppolicy
3282
3283         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3284 if test "${enable_ppolicy+set}" = set; then
3285   enableval="$enable_ppolicy"
3286
3287         ol_arg=invalid
3288         for ol_val in no yes mod ; do
3289                 if test "$enableval" = "$ol_val" ; then
3290                         ol_arg="$ol_val"
3291                 fi
3292         done
3293         if test "$ol_arg" = "invalid" ; then
3294                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3295 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3296    { (exit 1); exit 1; }; }
3297         fi
3298         ol_enable_ppolicy="$ol_arg"
3299
3300 else
3301         ol_enable_ppolicy=${ol_enable_overlays:-no}
3302 fi;
3303 # end --enable-ppolicy
3304
3305 # OpenLDAP --enable-proxycache
3306
3307         # Check whether --enable-proxycache or --disable-proxycache was given.
3308 if test "${enable_proxycache+set}" = set; then
3309   enableval="$enable_proxycache"
3310
3311         ol_arg=invalid
3312         for ol_val in no yes mod ; do
3313                 if test "$enableval" = "$ol_val" ; then
3314                         ol_arg="$ol_val"
3315                 fi
3316         done
3317         if test "$ol_arg" = "invalid" ; then
3318                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3319 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3320    { (exit 1); exit 1; }; }
3321         fi
3322         ol_enable_proxycache="$ol_arg"
3323
3324 else
3325         ol_enable_proxycache=${ol_enable_overlays:-no}
3326 fi;
3327 # end --enable-proxycache
3328
3329 # OpenLDAP --enable-refint
3330
3331         # Check whether --enable-refint or --disable-refint was given.
3332 if test "${enable_refint+set}" = set; then
3333   enableval="$enable_refint"
3334
3335         ol_arg=invalid
3336         for ol_val in no yes mod ; do
3337                 if test "$enableval" = "$ol_val" ; then
3338                         ol_arg="$ol_val"
3339                 fi
3340         done
3341         if test "$ol_arg" = "invalid" ; then
3342                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3343 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3344    { (exit 1); exit 1; }; }
3345         fi
3346         ol_enable_refint="$ol_arg"
3347
3348 else
3349         ol_enable_refint=${ol_enable_overlays:-no}
3350 fi;
3351 # end --enable-refint
3352
3353 # OpenLDAP --enable-retcode
3354
3355         # Check whether --enable-retcode or --disable-retcode was given.
3356 if test "${enable_retcode+set}" = set; then
3357   enableval="$enable_retcode"
3358
3359         ol_arg=invalid
3360         for ol_val in no yes mod ; do
3361                 if test "$enableval" = "$ol_val" ; then
3362                         ol_arg="$ol_val"
3363                 fi
3364         done
3365         if test "$ol_arg" = "invalid" ; then
3366                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3368    { (exit 1); exit 1; }; }
3369         fi
3370         ol_enable_retcode="$ol_arg"
3371
3372 else
3373         ol_enable_retcode=${ol_enable_overlays:-no}
3374 fi;
3375 # end --enable-retcode
3376
3377 # OpenLDAP --enable-rwm
3378
3379         # Check whether --enable-rwm or --disable-rwm was given.
3380 if test "${enable_rwm+set}" = set; then
3381   enableval="$enable_rwm"
3382
3383         ol_arg=invalid
3384         for ol_val in no yes mod ; do
3385                 if test "$enableval" = "$ol_val" ; then
3386                         ol_arg="$ol_val"
3387                 fi
3388         done
3389         if test "$ol_arg" = "invalid" ; then
3390                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3391 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3392    { (exit 1); exit 1; }; }
3393         fi
3394         ol_enable_rwm="$ol_arg"
3395
3396 else
3397         ol_enable_rwm=${ol_enable_overlays:-no}
3398 fi;
3399 # end --enable-rwm
3400
3401 # OpenLDAP --enable-seqmod
3402
3403         # Check whether --enable-seqmod or --disable-seqmod was given.
3404 if test "${enable_seqmod+set}" = set; then
3405   enableval="$enable_seqmod"
3406
3407         ol_arg=invalid
3408         for ol_val in no yes mod ; do
3409                 if test "$enableval" = "$ol_val" ; then
3410                         ol_arg="$ol_val"
3411                 fi
3412         done
3413         if test "$ol_arg" = "invalid" ; then
3414                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3415 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3416    { (exit 1); exit 1; }; }
3417         fi
3418         ol_enable_seqmod="$ol_arg"
3419
3420 else
3421         ol_enable_seqmod=${ol_enable_overlays:-yes}
3422 fi;
3423 # end --enable-seqmod
3424
3425 # OpenLDAP --enable-syncprov
3426
3427         # Check whether --enable-syncprov or --disable-syncprov was given.
3428 if test "${enable_syncprov+set}" = set; then
3429   enableval="$enable_syncprov"
3430
3431         ol_arg=invalid
3432         for ol_val in no yes mod ; do
3433                 if test "$enableval" = "$ol_val" ; then
3434                         ol_arg="$ol_val"
3435                 fi
3436         done
3437         if test "$ol_arg" = "invalid" ; then
3438                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3439 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3440    { (exit 1); exit 1; }; }
3441         fi
3442         ol_enable_syncprov="$ol_arg"
3443
3444 else
3445         ol_enable_syncprov=${ol_enable_overlays:-yes}
3446 fi;
3447 # end --enable-syncprov
3448
3449 # OpenLDAP --enable-translucent
3450
3451         # Check whether --enable-translucent or --disable-translucent was given.
3452 if test "${enable_translucent+set}" = set; then
3453   enableval="$enable_translucent"
3454
3455         ol_arg=invalid
3456         for ol_val in no yes mod ; do
3457                 if test "$enableval" = "$ol_val" ; then
3458                         ol_arg="$ol_val"
3459                 fi
3460         done
3461         if test "$ol_arg" = "invalid" ; then
3462                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3463 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3464    { (exit 1); exit 1; }; }
3465         fi
3466         ol_enable_translucent="$ol_arg"
3467
3468 else
3469         ol_enable_translucent=${ol_enable_overlays:-no}
3470 fi;
3471 # end --enable-translucent
3472
3473 # OpenLDAP --enable-unique
3474
3475         # Check whether --enable-unique or --disable-unique was given.
3476 if test "${enable_unique+set}" = set; then
3477   enableval="$enable_unique"
3478
3479         ol_arg=invalid
3480         for ol_val in no yes mod ; do
3481                 if test "$enableval" = "$ol_val" ; then
3482                         ol_arg="$ol_val"
3483                 fi
3484         done
3485         if test "$ol_arg" = "invalid" ; then
3486                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3487 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3488    { (exit 1); exit 1; }; }
3489         fi
3490         ol_enable_unique="$ol_arg"
3491
3492 else
3493         ol_enable_unique=${ol_enable_overlays:-no}
3494 fi;
3495 # end --enable-unique
3496
3497 # OpenLDAP --enable-valsort
3498
3499         # Check whether --enable-valsort or --disable-valsort was given.
3500 if test "${enable_valsort+set}" = set; then
3501   enableval="$enable_valsort"
3502
3503         ol_arg=invalid
3504         for ol_val in no yes mod ; do
3505                 if test "$enableval" = "$ol_val" ; then
3506                         ol_arg="$ol_val"
3507                 fi
3508         done
3509         if test "$ol_arg" = "invalid" ; then
3510                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3511 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3512    { (exit 1); exit 1; }; }
3513         fi
3514         ol_enable_valsort="$ol_arg"
3515
3516 else
3517         ol_enable_valsort=${ol_enable_overlays:-no}
3518 fi;
3519 # end --enable-valsort
3520
3521
3522 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3523 if test "${enable_xxliboptions+set}" = set; then
3524   enableval="$enable_xxliboptions"
3525
3526 fi;
3527 # Check whether --enable-static or --disable-static was given.
3528 if test "${enable_static+set}" = set; then
3529   enableval="$enable_static"
3530   p=${PACKAGE-default}
3531     case $enableval in
3532     yes) enable_static=yes ;;
3533     no) enable_static=no ;;
3534     *)
3535      enable_static=no
3536       # Look at the argument we got.  We use all the common list separators.
3537       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3538       for pkg in $enableval; do
3539         IFS="$lt_save_ifs"
3540         if test "X$pkg" = "X$p"; then
3541           enable_static=yes
3542         fi
3543       done
3544       IFS="$lt_save_ifs"
3545       ;;
3546     esac
3547 else
3548   enable_static=yes
3549 fi;
3550
3551 # Check whether --enable-shared or --disable-shared was given.
3552 if test "${enable_shared+set}" = set; then
3553   enableval="$enable_shared"
3554   p=${PACKAGE-default}
3555     case $enableval in
3556     yes) enable_shared=yes ;;
3557     no) enable_shared=no ;;
3558     *)
3559       enable_shared=no
3560       # Look at the argument we got.  We use all the common list separators.
3561       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3562       for pkg in $enableval; do
3563         IFS="$lt_save_ifs"
3564         if test "X$pkg" = "X$p"; then
3565           enable_shared=yes
3566         fi
3567       done
3568       IFS="$lt_save_ifs"
3569       ;;
3570     esac
3571 else
3572   enable_shared=yes
3573 fi;
3574
3575
3576
3577 # validate options
3578 if test $ol_enable_slapd = no ; then
3579                 if test $ol_enable_slapi = yes ; then
3580                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3581 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3582         fi
3583         case "$ol_enable_backends" in yes | mod)
3584                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3585 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3586         esac
3587         for i in $Backends; do
3588                 eval "ol_tmp=\$ol_enable_$i"
3589                 if test $ol_tmp != no ; then
3590                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3591 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3592                         eval "ol_enable_$i=no"
3593                 fi
3594         done
3595         if test $ol_enable_modules = yes ; then
3596                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3597 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3598         fi
3599         if test $ol_enable_wrappers = yes ; then
3600                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3601 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3602         fi
3603         if test $ol_enable_rlookups = yes ; then
3604                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3605 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3606         fi
3607         if test $ol_enable_dynacl = yes ; then
3608                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3609 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3610         fi
3611         if test $ol_enable_aci != no ; then
3612                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3613 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3614         fi
3615         if test $ol_enable_rewrite = yes ; then
3616                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3617 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3618         fi
3619                 case "$ol_enable_overlays" in yes | mod)
3620                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3621 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3622         esac
3623         for i in $Overlays; do
3624                 eval "ol_tmp=\$ol_enable_$i"
3625                 if test $ol_tmp != no ; then
3626                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3627 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3628                         eval "ol_enable_$i=no"
3629                 fi
3630         done
3631
3632         # force settings to no
3633         ol_enable_slapi=no
3634
3635         ol_enable_backends=
3636         ol_enable_overlays=
3637         ol_enable_modules=no
3638         ol_enable_rlookups=no
3639         ol_enable_dynacl=no
3640         ol_enable_aci=no
3641         ol_enable_wrappers=no
3642
3643         ol_enable_rewrite=no
3644
3645 elif test $ol_enable_modules != yes &&
3646         test $ol_enable_bdb = no &&
3647         test $ol_enable_dnssrv = no &&
3648         test $ol_enable_hdb = no &&
3649         test $ol_enable_ldap = no &&
3650         test $ol_enable_meta = no &&
3651         test $ol_enable_monitor = no &&
3652         test $ol_enable_null = no &&
3653         test $ol_enable_passwd = no &&
3654         test $ol_enable_perl = no &&
3655         test $ol_enable_relay = no &&
3656         test $ol_enable_shell = no &&
3657         test $ol_enable_sql = no ; then
3658
3659         if test $ol_enable_slapd = yes ; then
3660                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3661 echo "$as_me: error: slapd requires a backend" >&2;}
3662    { (exit 1); exit 1; }; }
3663         else
3664                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3665 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3666                 ol_enable_slapd=no
3667         fi
3668 fi
3669
3670 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3671         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3672 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3673    { (exit 1); exit 1; }; }
3674 fi
3675
3676 if test $ol_enable_lmpasswd = yes ; then
3677         if test $ol_with_tls = no ; then
3678                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3679 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3680    { (exit 1); exit 1; }; }
3681         fi
3682 fi
3683
3684 if test $ol_enable_spasswd = yes ; then
3685         if test $ol_with_cyrus_sasl = no ; then
3686                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3687 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3688    { (exit 1); exit 1; }; }
3689         fi
3690         ol_with_cyrus_sasl=yes
3691 fi
3692
3693 echo "$as_me:$LINENO: result: done" >&5
3694 echo "${ECHO_T}done" >&6
3695
3696 LDAP_LIBS=
3697 BDB_LIBS=
3698 LTHREAD_LIBS=
3699 LUTIL_LIBS=
3700
3701 SLAPD_LIBS=
3702
3703 BUILD_SLAPD=no
3704
3705 BUILD_THREAD=no
3706
3707 BUILD_SLAPI=no
3708 SLAPD_SLAPI_DEPEND=
3709
3710 BUILD_BDB=no
3711 BUILD_DNSSRV=no
3712 BUILD_HDB=no
3713 BUILD_LDAP=no
3714 BUILD_META=no
3715 BUILD_MONITOR=no
3716 BUILD_NULL=no
3717 BUILD_PASSWD=no
3718 BUILD_PERL=no
3719 BUILD_RELAY=no
3720 BUILD_SHELL=no
3721 BUILD_SQL=no
3722
3723 BUILD_ACCESSLOG=no
3724 BUILD_AUDITLOG=no
3725 BUILD_CONSTRAINT=no
3726 BUILD_DDS=no
3727 BUILD_DENYOP=no
3728 BUILD_DYNGROUP=no
3729 BUILD_DYNLIST=no
3730 BUILD_LASTMOD=no
3731 BUILD_PPOLICY=no
3732 BUILD_PROXYCACHE=no
3733 BUILD_REFINT=no
3734 BUILD_RETCODE=no
3735 BUILD_RWM=no
3736 BUILD_SEQMOD=no
3737 BUILD_SYNCPROV=no
3738 BUILD_TRANSLUCENT=no
3739 BUILD_UNIQUE=no
3740 BUILD_VALSORT=no
3741
3742 SLAPD_STATIC_OVERLAYS=
3743 SLAPD_DYNAMIC_OVERLAYS=
3744
3745 SLAPD_MODULES_LDFLAGS=
3746 SLAPD_MODULES_CPPFLAGS=
3747
3748 SLAPD_STATIC_BACKENDS=back-ldif
3749 SLAPD_DYNAMIC_BACKENDS=
3750
3751 SLAPD_PERL_LDFLAGS=
3752 MOD_PERL_LDFLAGS=
3753 PERL_CPPFLAGS=
3754
3755 SLAPD_SQL_LDFLAGS=
3756 SLAPD_SQL_LIBS=
3757 SLAPD_SQL_INCLUDES=
3758
3759 KRB4_LIBS=
3760 KRB5_LIBS=
3761 SASL_LIBS=
3762 TLS_LIBS=
3763 MODULES_LIBS=
3764 SLAPI_LIBS=
3765 LIBSLAPI=
3766 LIBSLAPITOOLS=
3767 AUTH_LIBS=
3768 ICU_LIBS=
3769
3770 SLAPD_SLP_LIBS=
3771 SLAPD_GMP_LIBS=
3772
3773
3774
3775 cat >>confdefs.h <<\_ACEOF
3776 #define HAVE_MKVERSION 1
3777 _ACEOF
3778
3779
3780
3781
3782 ol_aix_threads=no
3783 case "$target" in
3784 *-*-aix*)       if test -z "$CC" ; then
3785                 case "$ol_with_threads" in
3786                 auto | yes |  posix) ol_aix_threads=yes ;;
3787                 esac
3788         fi
3789 ;;
3790 esac
3791
3792 if test $ol_aix_threads = yes ; then
3793         if test -z "${CC}" ; then
3794                 for ac_prog in cc_r xlc_r cc
3795 do
3796   # Extract the first word of "$ac_prog", so it can be a program name with args.
3797 set dummy $ac_prog; ac_word=$2
3798 echo "$as_me:$LINENO: checking for $ac_word" >&5
3799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3800 if test "${ac_cv_prog_CC+set}" = set; then
3801   echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803   if test -n "$CC"; then
3804   ac_cv_prog_CC="$CC" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3808 do
3809   IFS=$as_save_IFS
3810   test -z "$as_dir" && as_dir=.
3811   for ac_exec_ext in '' $ac_executable_extensions; do
3812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813     ac_cv_prog_CC="$ac_prog"
3814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3815     break 2
3816   fi
3817 done
3818 done
3819
3820 fi
3821 fi
3822 CC=$ac_cv_prog_CC
3823 if test -n "$CC"; then
3824   echo "$as_me:$LINENO: result: $CC" >&5
3825 echo "${ECHO_T}$CC" >&6
3826 else
3827   echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6
3829 fi
3830
3831   test -n "$CC" && break
3832 done
3833
3834
3835                 if test "$CC" = cc ; then
3836                                                 if test $ol_with_threads != auto ; then
3837                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3838 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3839    { (exit 1); exit 1; }; }
3840                         else
3841                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3842 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3843                         fi
3844                         ol_with_threads=no
3845                 fi
3846         fi
3847
3848         case ${CC} in cc_r | xlc_r)
3849                 ol_with_threads=posix
3850                 ol_cv_pthread_create=yes
3851                 ;;
3852         esac
3853 fi
3854
3855 if test -z "${CC}"; then
3856         for ac_prog in cc gcc
3857 do
3858   # Extract the first word of "$ac_prog", so it can be a program name with args.
3859 set dummy $ac_prog; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_prog_CC+set}" = set; then
3863   echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865   if test -n "$CC"; then
3866   ac_cv_prog_CC="$CC" # Let the user override the test.
3867 else
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3870 do
3871   IFS=$as_save_IFS
3872   test -z "$as_dir" && as_dir=.
3873   for ac_exec_ext in '' $ac_executable_extensions; do
3874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875     ac_cv_prog_CC="$ac_prog"
3876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877     break 2
3878   fi
3879 done
3880 done
3881
3882 fi
3883 fi
3884 CC=$ac_cv_prog_CC
3885 if test -n "$CC"; then
3886   echo "$as_me:$LINENO: result: $CC" >&5
3887 echo "${ECHO_T}$CC" >&6
3888 else
3889   echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3891 fi
3892
3893   test -n "$CC" && break
3894 done
3895 test -n "$CC" || CC="missing"
3896
3897
3898         if test "${CC}" = "missing" ; then
3899                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3900 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3901    { (exit 1); exit 1; }; }
3902         fi
3903 fi
3904
3905 if test -z "${AR}"; then
3906         for ac_prog in ar gar
3907 do
3908   # Extract the first word of "$ac_prog", so it can be a program name with args.
3909 set dummy $ac_prog; ac_word=$2
3910 echo "$as_me:$LINENO: checking for $ac_word" >&5
3911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3912 if test "${ac_cv_prog_AR+set}" = set; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   if test -n "$AR"; then
3916   ac_cv_prog_AR="$AR" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921   IFS=$as_save_IFS
3922   test -z "$as_dir" && as_dir=.
3923   for ac_exec_ext in '' $ac_executable_extensions; do
3924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925     ac_cv_prog_AR="$ac_prog"
3926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927     break 2
3928   fi
3929 done
3930 done
3931
3932 fi
3933 fi
3934 AR=$ac_cv_prog_AR
3935 if test -n "$AR"; then
3936   echo "$as_me:$LINENO: result: $AR" >&5
3937 echo "${ECHO_T}$AR" >&6
3938 else
3939   echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3941 fi
3942
3943   test -n "$AR" && break
3944 done
3945 test -n "$AR" || AR="missing"
3946
3947
3948         if test "${AR}" = "missing" ; then
3949                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
3950 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
3951    { (exit 1); exit 1; }; }
3952         fi
3953 fi
3954
3955
3956
3957
3958
3959 # Check whether --enable-fast-install or --disable-fast-install was given.
3960 if test "${enable_fast_install+set}" = set; then
3961   enableval="$enable_fast_install"
3962   p=${PACKAGE-default}
3963     case $enableval in
3964     yes) enable_fast_install=yes ;;
3965     no) enable_fast_install=no ;;
3966     *)
3967       enable_fast_install=no
3968       # Look at the argument we got.  We use all the common list separators.
3969       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3970       for pkg in $enableval; do
3971         IFS="$lt_save_ifs"
3972         if test "X$pkg" = "X$p"; then
3973           enable_fast_install=yes
3974         fi
3975       done
3976       IFS="$lt_save_ifs"
3977       ;;
3978     esac
3979 else
3980   enable_fast_install=yes
3981 fi;
3982
3983 DEPDIR="${am__leading_dot}deps"
3984
3985           ac_config_commands="$ac_config_commands depfiles"
3986
3987
3988 am_make=${MAKE-make}
3989 cat > confinc << 'END'
3990 am__doit:
3991         @echo done
3992 .PHONY: am__doit
3993 END
3994 # If we don't find an include directive, just comment out the code.
3995 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3996 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3997 am__include="#"
3998 am__quote=
3999 _am_result=none
4000 # First try GNU make style include.
4001 echo "include confinc" > confmf
4002 # We grep out `Entering directory' and `Leaving directory'
4003 # messages which can occur if `w' ends up in MAKEFLAGS.
4004 # In particular we don't look at `^make:' because GNU make might
4005 # be invoked under some other name (usually "gmake"), in which
4006 # case it prints its new name instead of `make'.
4007 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4008    am__include=include
4009    am__quote=
4010    _am_result=GNU
4011 fi
4012 # Now try BSD make style include.
4013 if test "$am__include" = "#"; then
4014    echo '.include "confinc"' > confmf
4015    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4016       am__include=.include
4017       am__quote="\""
4018       _am_result=BSD
4019    fi
4020 fi
4021
4022
4023 echo "$as_me:$LINENO: result: $_am_result" >&5
4024 echo "${ECHO_T}$_am_result" >&6
4025 rm -f confinc confmf
4026
4027 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4028 if test "${enable_dependency_tracking+set}" = set; then
4029   enableval="$enable_dependency_tracking"
4030
4031 fi;
4032 if test "x$enable_dependency_tracking" != xno; then
4033   am_depcomp="$ac_aux_dir/depcomp"
4034   AMDEPBACKSLASH='\'
4035 fi
4036
4037
4038 if test "x$enable_dependency_tracking" != xno; then
4039   AMDEP_TRUE=
4040   AMDEP_FALSE='#'
4041 else
4042   AMDEP_TRUE='#'
4043   AMDEP_FALSE=
4044 fi
4045
4046
4047
4048 ac_ext=c
4049 ac_cpp='$CPP $CPPFLAGS'
4050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053 if test -n "$ac_tool_prefix"; then
4054   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4055 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4056 echo "$as_me:$LINENO: checking for $ac_word" >&5
4057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4058 if test "${ac_cv_prog_CC+set}" = set; then
4059   echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061   if test -n "$CC"; then
4062   ac_cv_prog_CC="$CC" # Let the user override the test.
4063 else
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH
4066 do
4067   IFS=$as_save_IFS
4068   test -z "$as_dir" && as_dir=.
4069   for ac_exec_ext in '' $ac_executable_extensions; do
4070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4071     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4073     break 2
4074   fi
4075 done
4076 done
4077
4078 fi
4079 fi
4080 CC=$ac_cv_prog_CC
4081 if test -n "$CC"; then
4082   echo "$as_me:$LINENO: result: $CC" >&5
4083 echo "${ECHO_T}$CC" >&6
4084 else
4085   echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6
4087 fi
4088
4089 fi
4090 if test -z "$ac_cv_prog_CC"; then
4091   ac_ct_CC=$CC
4092   # Extract the first word of "gcc", so it can be a program name with args.
4093 set dummy gcc; ac_word=$2
4094 echo "$as_me:$LINENO: checking for $ac_word" >&5
4095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4097   echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099   if test -n "$ac_ct_CC"; then
4100   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4101 else
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH
4104 do
4105   IFS=$as_save_IFS
4106   test -z "$as_dir" && as_dir=.
4107   for ac_exec_ext in '' $ac_executable_extensions; do
4108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4109     ac_cv_prog_ac_ct_CC="gcc"
4110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4111     break 2
4112   fi
4113 done
4114 done
4115
4116 fi
4117 fi
4118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4119 if test -n "$ac_ct_CC"; then
4120   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4121 echo "${ECHO_T}$ac_ct_CC" >&6
4122 else
4123   echo "$as_me:$LINENO: result: no" >&5
4124 echo "${ECHO_T}no" >&6
4125 fi
4126
4127   CC=$ac_ct_CC
4128 else
4129   CC="$ac_cv_prog_CC"
4130 fi
4131
4132 if test -z "$CC"; then
4133   if test -n "$ac_tool_prefix"; then
4134   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4135 set dummy ${ac_tool_prefix}cc; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_prog_CC+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   if test -n "$CC"; then
4142   ac_cv_prog_CC="$CC" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147   IFS=$as_save_IFS
4148   test -z "$as_dir" && as_dir=.
4149   for ac_exec_ext in '' $ac_executable_extensions; do
4150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151     ac_cv_prog_CC="${ac_tool_prefix}cc"
4152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153     break 2
4154   fi
4155 done
4156 done
4157
4158 fi
4159 fi
4160 CC=$ac_cv_prog_CC
4161 if test -n "$CC"; then
4162   echo "$as_me:$LINENO: result: $CC" >&5
4163 echo "${ECHO_T}$CC" >&6
4164 else
4165   echo "$as_me:$LINENO: result: no" >&5
4166 echo "${ECHO_T}no" >&6
4167 fi
4168
4169 fi
4170 if test -z "$ac_cv_prog_CC"; then
4171   ac_ct_CC=$CC
4172   # Extract the first word of "cc", so it can be a program name with args.
4173 set dummy cc; ac_word=$2
4174 echo "$as_me:$LINENO: checking for $ac_word" >&5
4175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4177   echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179   if test -n "$ac_ct_CC"; then
4180   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4184 do
4185   IFS=$as_save_IFS
4186   test -z "$as_dir" && as_dir=.
4187   for ac_exec_ext in '' $ac_executable_extensions; do
4188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189     ac_cv_prog_ac_ct_CC="cc"
4190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4191     break 2
4192   fi
4193 done
4194 done
4195
4196 fi
4197 fi
4198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4199 if test -n "$ac_ct_CC"; then
4200   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4201 echo "${ECHO_T}$ac_ct_CC" >&6
4202 else
4203   echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6
4205 fi
4206
4207   CC=$ac_ct_CC
4208 else
4209   CC="$ac_cv_prog_CC"
4210 fi
4211
4212 fi
4213 if test -z "$CC"; then
4214   # Extract the first word of "cc", so it can be a program name with args.
4215 set dummy cc; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_CC+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   if test -n "$CC"; then
4222   ac_cv_prog_CC="$CC" # Let the user override the test.
4223 else
4224   ac_prog_rejected=no
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228   IFS=$as_save_IFS
4229   test -z "$as_dir" && as_dir=.
4230   for ac_exec_ext in '' $ac_executable_extensions; do
4231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4233        ac_prog_rejected=yes
4234        continue
4235      fi
4236     ac_cv_prog_CC="cc"
4237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4238     break 2
4239   fi
4240 done
4241 done
4242
4243 if test $ac_prog_rejected = yes; then
4244   # We found a bogon in the path, so make sure we never use it.
4245   set dummy $ac_cv_prog_CC
4246   shift
4247   if test $# != 0; then
4248     # We chose a different compiler from the bogus one.
4249     # However, it has the same basename, so the bogon will be chosen
4250     # first if we set CC to just the basename; use the full file name.
4251     shift
4252     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4253   fi
4254 fi
4255 fi
4256 fi
4257 CC=$ac_cv_prog_CC
4258 if test -n "$CC"; then
4259   echo "$as_me:$LINENO: result: $CC" >&5
4260 echo "${ECHO_T}$CC" >&6
4261 else
4262   echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6
4264 fi
4265
4266 fi
4267 if test -z "$CC"; then
4268   if test -n "$ac_tool_prefix"; then
4269   for ac_prog in cl
4270   do
4271     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4273 echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4275 if test "${ac_cv_prog_CC+set}" = set; then
4276   echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278   if test -n "$CC"; then
4279   ac_cv_prog_CC="$CC" # Let the user override the test.
4280 else
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4283 do
4284   IFS=$as_save_IFS
4285   test -z "$as_dir" && as_dir=.
4286   for ac_exec_ext in '' $ac_executable_extensions; do
4287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4288     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290     break 2
4291   fi
4292 done
4293 done
4294
4295 fi
4296 fi
4297 CC=$ac_cv_prog_CC
4298 if test -n "$CC"; then
4299   echo "$as_me:$LINENO: result: $CC" >&5
4300 echo "${ECHO_T}$CC" >&6
4301 else
4302   echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4304 fi
4305
4306     test -n "$CC" && break
4307   done
4308 fi
4309 if test -z "$CC"; then
4310   ac_ct_CC=$CC
4311   for ac_prog in cl
4312 do
4313   # Extract the first word of "$ac_prog", so it can be a program name with args.
4314 set dummy $ac_prog; ac_word=$2
4315 echo "$as_me:$LINENO: checking for $ac_word" >&5
4316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4318   echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320   if test -n "$ac_ct_CC"; then
4321   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4322 else
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     ac_cv_prog_ac_ct_CC="$ac_prog"
4331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4332     break 2
4333   fi
4334 done
4335 done
4336
4337 fi
4338 fi
4339 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4340 if test -n "$ac_ct_CC"; then
4341   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4342 echo "${ECHO_T}$ac_ct_CC" >&6
4343 else
4344   echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4346 fi
4347
4348   test -n "$ac_ct_CC" && break
4349 done
4350
4351   CC=$ac_ct_CC
4352 fi
4353
4354 fi
4355
4356
4357 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4358 See \`config.log' for more details." >&5
4359 echo "$as_me: error: no acceptable C compiler found in \$PATH
4360 See \`config.log' for more details." >&2;}
4361    { (exit 1); exit 1; }; }
4362
4363 # Provide some information about the compiler.
4364 echo "$as_me:$LINENO:" \
4365      "checking for C compiler version" >&5
4366 ac_compiler=`set X $ac_compile; echo $2`
4367 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4368   (eval $ac_compiler --version </dev/null >&5) 2>&5
4369   ac_status=$?
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); }
4372 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4373   (eval $ac_compiler -v </dev/null >&5) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); }
4377 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4378   (eval $ac_compiler -V </dev/null >&5) 2>&5
4379   ac_status=$?
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); }
4382
4383 cat >conftest.$ac_ext <<_ACEOF
4384 /* confdefs.h.  */
4385 _ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h.  */
4389
4390 int
4391 main ()
4392 {
4393
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 ac_clean_files_save=$ac_clean_files
4399 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4400 # Try to create an executable without -o first, disregard a.out.
4401 # It will help us diagnose broken compilers, and finding out an intuition
4402 # of exeext.
4403 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4404 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4405 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4406 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4407   (eval $ac_link_default) 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); }; then
4411   # Find the output, starting from the most likely.  This scheme is
4412 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4413 # resort.
4414
4415 # Be careful to initialize this variable, since it used to be cached.
4416 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4417 ac_cv_exeext=
4418 # b.out is created by i960 compilers.
4419 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4420 do
4421   test -f "$ac_file" || continue
4422   case $ac_file in
4423     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4424         ;;
4425     conftest.$ac_ext )
4426         # This is the source file.
4427         ;;
4428     [ab].out )
4429         # We found the default executable, but exeext='' is most
4430         # certainly right.
4431         break;;
4432     *.* )
4433         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4434         # FIXME: I believe we export ac_cv_exeext for Libtool,
4435         # but it would be cool to find out if it's true.  Does anybody
4436         # maintain Libtool? --akim.
4437         export ac_cv_exeext
4438         break;;
4439     * )
4440         break;;
4441   esac
4442 done
4443 else
4444   echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4446
4447 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4448 See \`config.log' for more details." >&5
4449 echo "$as_me: error: C compiler cannot create executables
4450 See \`config.log' for more details." >&2;}
4451    { (exit 77); exit 77; }; }
4452 fi
4453
4454 ac_exeext=$ac_cv_exeext
4455 echo "$as_me:$LINENO: result: $ac_file" >&5
4456 echo "${ECHO_T}$ac_file" >&6
4457
4458 # Check the compiler produces executables we can run.  If not, either
4459 # the compiler is broken, or we cross compile.
4460 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4461 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4462 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4463 # If not cross compiling, check that we can run a simple program.
4464 if test "$cross_compiling" != yes; then
4465   if { ac_try='./$ac_file'
4466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467   (eval $ac_try) 2>&5
4468   ac_status=$?
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); }; }; then
4471     cross_compiling=no
4472   else
4473     if test "$cross_compiling" = maybe; then
4474         cross_compiling=yes
4475     else
4476         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4477 If you meant to cross compile, use \`--host'.
4478 See \`config.log' for more details." >&5
4479 echo "$as_me: error: cannot run C compiled programs.
4480 If you meant to cross compile, use \`--host'.
4481 See \`config.log' for more details." >&2;}
4482    { (exit 1); exit 1; }; }
4483     fi
4484   fi
4485 fi
4486 echo "$as_me:$LINENO: result: yes" >&5
4487 echo "${ECHO_T}yes" >&6
4488
4489 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4490 ac_clean_files=$ac_clean_files_save
4491 # Check the compiler produces executables we can run.  If not, either
4492 # the compiler is broken, or we cross compile.
4493 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4494 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4495 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4496 echo "${ECHO_T}$cross_compiling" >&6
4497
4498 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4499 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4501   (eval $ac_link) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; then
4505   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4506 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4507 # work properly (i.e., refer to `conftest.exe'), while it won't with
4508 # `rm'.
4509 for ac_file in conftest.exe conftest conftest.*; do
4510   test -f "$ac_file" || continue
4511   case $ac_file in
4512     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4513     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4514           export ac_cv_exeext
4515           break;;
4516     * ) break;;
4517   esac
4518 done
4519 else
4520   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4521 See \`config.log' for more details." >&5
4522 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4523 See \`config.log' for more details." >&2;}
4524    { (exit 1); exit 1; }; }
4525 fi
4526
4527 rm -f conftest$ac_cv_exeext
4528 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4529 echo "${ECHO_T}$ac_cv_exeext" >&6
4530
4531 rm -f conftest.$ac_ext
4532 EXEEXT=$ac_cv_exeext
4533 ac_exeext=$EXEEXT
4534 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4535 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4536 if test "${ac_cv_objext+set}" = set; then
4537   echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539   cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h.  */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h.  */
4545
4546 int
4547 main ()
4548 {
4549
4550   ;
4551   return 0;
4552 }
4553 _ACEOF
4554 rm -f conftest.o conftest.obj
4555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4556   (eval $ac_compile) 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; then
4560   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4561   case $ac_file in
4562     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4563     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4564        break;;
4565   esac
4566 done
4567 else
4568   echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4570
4571 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4572 See \`config.log' for more details." >&5
4573 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4574 See \`config.log' for more details." >&2;}
4575    { (exit 1); exit 1; }; }
4576 fi
4577
4578 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4579 fi
4580 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4581 echo "${ECHO_T}$ac_cv_objext" >&6
4582 OBJEXT=$ac_cv_objext
4583 ac_objext=$OBJEXT
4584 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4585 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4586 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589   cat >conftest.$ac_ext <<_ACEOF
4590 /* confdefs.h.  */
4591 _ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h.  */
4595
4596 int
4597 main ()
4598 {
4599 #ifndef __GNUC__
4600        choke me
4601 #endif
4602
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 rm -f conftest.$ac_objext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609   (eval $ac_compile) 2>conftest.er1
4610   ac_status=$?
4611   grep -v '^ *+' conftest.er1 >conftest.err
4612   rm -f conftest.er1
4613   cat conftest.err >&5
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); } &&
4616          { ac_try='test -z "$ac_c_werror_flag"
4617                          || test ! -s conftest.err'
4618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619   (eval $ac_try) 2>&5
4620   ac_status=$?
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); }; } &&
4623          { ac_try='test -s conftest.$ac_objext'
4624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625   (eval $ac_try) 2>&5
4626   ac_status=$?
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); }; }; then
4629   ac_compiler_gnu=yes
4630 else
4631   echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4633
4634 ac_compiler_gnu=no
4635 fi
4636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4637 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4638
4639 fi
4640 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4641 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4642 GCC=`test $ac_compiler_gnu = yes && echo yes`
4643 ac_test_CFLAGS=${CFLAGS+set}
4644 ac_save_CFLAGS=$CFLAGS
4645 CFLAGS="-g"
4646 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4647 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4648 if test "${ac_cv_prog_cc_g+set}" = set; then
4649   echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651   cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h.  */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h.  */
4657
4658 int
4659 main ()
4660 {
4661
4662   ;
4663   return 0;
4664 }
4665 _ACEOF
4666 rm -f conftest.$ac_objext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668   (eval $ac_compile) 2>conftest.er1
4669   ac_status=$?
4670   grep -v '^ *+' conftest.er1 >conftest.err
4671   rm -f conftest.er1
4672   cat conftest.err >&5
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); } &&
4675          { ac_try='test -z "$ac_c_werror_flag"
4676                          || test ! -s conftest.err'
4677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678   (eval $ac_try) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; } &&
4682          { ac_try='test -s conftest.$ac_objext'
4683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684   (eval $ac_try) 2>&5
4685   ac_status=$?
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); }; }; then
4688   ac_cv_prog_cc_g=yes
4689 else
4690   echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4692
4693 ac_cv_prog_cc_g=no
4694 fi
4695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4696 fi
4697 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4698 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4699 if test "$ac_test_CFLAGS" = set; then
4700   CFLAGS=$ac_save_CFLAGS
4701 elif test $ac_cv_prog_cc_g = yes; then
4702   if test "$GCC" = yes; then
4703     CFLAGS="-g -O2"
4704   else
4705     CFLAGS="-g"
4706   fi
4707 else
4708   if test "$GCC" = yes; then
4709     CFLAGS="-O2"
4710   else
4711     CFLAGS=
4712   fi
4713 fi
4714 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4715 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4716 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4717   echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719   ac_cv_prog_cc_stdc=no
4720 ac_save_CC=$CC
4721 cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h.  */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h.  */
4727 #include <stdarg.h>
4728 #include <stdio.h>
4729 #include <sys/types.h>
4730 #include <sys/stat.h>
4731 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4732 struct buf { int x; };
4733 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4734 static char *e (p, i)
4735      char **p;
4736      int i;
4737 {
4738   return p[i];
4739 }
4740 static char *f (char * (*g) (char **, int), char **p, ...)
4741 {
4742   char *s;
4743   va_list v;
4744   va_start (v,p);
4745   s = g (p, va_arg (v,int));
4746   va_end (v);
4747   return s;
4748 }
4749
4750 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4751    function prototypes and stuff, but not '\xHH' hex character constants.
4752    These don't provoke an error unfortunately, instead are silently treated
4753    as 'x'.  The following induces an error, until -std1 is added to get
4754    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4755    array size at least.  It's necessary to write '\x00'==0 to get something
4756    that's true only with -std1.  */
4757 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4758
4759 int test (int i, double x);
4760 struct s1 {int (*f) (int a);};
4761 struct s2 {int (*f) (double a);};
4762 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4763 int argc;
4764 char **argv;
4765 int
4766 main ()
4767 {
4768 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4769   ;
4770   return 0;
4771 }
4772 _ACEOF
4773 # Don't try gcc -ansi; that turns off useful extensions and
4774 # breaks some systems' header files.
4775 # AIX                   -qlanglvl=ansi
4776 # Ultrix and OSF/1      -std1
4777 # HP-UX 10.20 and later -Ae
4778 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4779 # SVR4                  -Xc -D__EXTENSIONS__
4780 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4781 do
4782   CC="$ac_save_CC $ac_arg"
4783   rm -f conftest.$ac_objext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785   (eval $ac_compile) 2>conftest.er1
4786   ac_status=$?
4787   grep -v '^ *+' conftest.er1 >conftest.err
4788   rm -f conftest.er1
4789   cat conftest.err >&5
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); } &&
4792          { ac_try='test -z "$ac_c_werror_flag"
4793                          || test ! -s conftest.err'
4794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795   (eval $ac_try) 2>&5
4796   ac_status=$?
4797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798   (exit $ac_status); }; } &&
4799          { ac_try='test -s conftest.$ac_objext'
4800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801   (eval $ac_try) 2>&5
4802   ac_status=$?
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); }; }; then
4805   ac_cv_prog_cc_stdc=$ac_arg
4806 break
4807 else
4808   echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4810
4811 fi
4812 rm -f conftest.err conftest.$ac_objext
4813 done
4814 rm -f conftest.$ac_ext conftest.$ac_objext
4815 CC=$ac_save_CC
4816
4817 fi
4818
4819 case "x$ac_cv_prog_cc_stdc" in
4820   x|xno)
4821     echo "$as_me:$LINENO: result: none needed" >&5
4822 echo "${ECHO_T}none needed" >&6 ;;
4823   *)
4824     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4825 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4826     CC="$CC $ac_cv_prog_cc_stdc" ;;
4827 esac
4828
4829 # Some people use a C++ compiler to compile C.  Since we use `exit',
4830 # in C++ we need to declare it.  In case someone uses the same compiler
4831 # for both compiling C and C++ we need to have the C++ compiler decide
4832 # the declaration of exit, since it's the most demanding environment.
4833 cat >conftest.$ac_ext <<_ACEOF
4834 #ifndef __cplusplus
4835   choke me
4836 #endif
4837 _ACEOF
4838 rm -f conftest.$ac_objext
4839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4840   (eval $ac_compile) 2>conftest.er1
4841   ac_status=$?
4842   grep -v '^ *+' conftest.er1 >conftest.err
4843   rm -f conftest.er1
4844   cat conftest.err >&5
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); } &&
4847          { ac_try='test -z "$ac_c_werror_flag"
4848                          || test ! -s conftest.err'
4849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850   (eval $ac_try) 2>&5
4851   ac_status=$?
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); }; } &&
4854          { ac_try='test -s conftest.$ac_objext'
4855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856   (eval $ac_try) 2>&5
4857   ac_status=$?
4858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859   (exit $ac_status); }; }; then
4860   for ac_declaration in \
4861    '' \
4862    'extern "C" void std::exit (int) throw (); using std::exit;' \
4863    'extern "C" void std::exit (int); using std::exit;' \
4864    'extern "C" void exit (int) throw ();' \
4865    'extern "C" void exit (int);' \
4866    'void exit (int);'
4867 do
4868   cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h.  */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h.  */
4874 $ac_declaration
4875 #include <stdlib.h>
4876 int
4877 main ()
4878 {
4879 exit (42);
4880   ;
4881   return 0;
4882 }
4883 _ACEOF
4884 rm -f conftest.$ac_objext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886   (eval $ac_compile) 2>conftest.er1
4887   ac_status=$?
4888   grep -v '^ *+' conftest.er1 >conftest.err
4889   rm -f conftest.er1
4890   cat conftest.err >&5
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } &&
4893          { ac_try='test -z "$ac_c_werror_flag"
4894                          || test ! -s conftest.err'
4895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896   (eval $ac_try) 2>&5
4897   ac_status=$?
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); }; } &&
4900          { ac_try='test -s conftest.$ac_objext'
4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902   (eval $ac_try) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; }; then
4906   :
4907 else
4908   echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4910
4911 continue
4912 fi
4913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4914   cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h.  */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h.  */
4920 $ac_declaration
4921 int
4922 main ()
4923 {
4924 exit (42);
4925   ;
4926   return 0;
4927 }
4928 _ACEOF
4929 rm -f conftest.$ac_objext
4930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4931   (eval $ac_compile) 2>conftest.er1
4932   ac_status=$?
4933   grep -v '^ *+' conftest.er1 >conftest.err
4934   rm -f conftest.er1
4935   cat conftest.err >&5
4936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937   (exit $ac_status); } &&
4938          { ac_try='test -z "$ac_c_werror_flag"
4939                          || test ! -s conftest.err'
4940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941   (eval $ac_try) 2>&5
4942   ac_status=$?
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); }; } &&
4945          { ac_try='test -s conftest.$ac_objext'
4946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947   (eval $ac_try) 2>&5
4948   ac_status=$?
4949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950   (exit $ac_status); }; }; then
4951   break
4952 else
4953   echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 fi
4957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4958 done
4959 rm -f conftest*
4960 if test -n "$ac_declaration"; then
4961   echo '#ifdef __cplusplus' >>confdefs.h
4962   echo $ac_declaration      >>confdefs.h
4963   echo '#endif'             >>confdefs.h
4964 fi
4965
4966 else
4967   echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4969
4970 fi
4971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4972 ac_ext=c
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977
4978 depcc="$CC"   am_compiler_list=
4979
4980 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4981 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4982 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4983   echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4986   # We make a subdir and do the tests there.  Otherwise we can end up
4987   # making bogus files that we don't know about and never remove.  For
4988   # instance it was reported that on HP-UX the gcc test will end up
4989   # making a dummy file named `D' -- because `-MD' means `put the output
4990   # in D'.
4991   mkdir conftest.dir
4992   # Copy depcomp to subdir because otherwise we won't find it if we're
4993   # using a relative directory.
4994   cp "$am_depcomp" conftest.dir
4995   cd conftest.dir
4996   # We will build objects and dependencies in a subdirectory because
4997   # it helps to detect inapplicable dependency modes.  For instance
4998   # both Tru64's cc and ICC support -MD to output dependencies as a
4999   # side effect of compilation, but ICC will put the dependencies in
5000   # the current directory while Tru64 will put them in the object
5001   # directory.
5002   mkdir sub
5003
5004   am_cv_CC_dependencies_compiler_type=none
5005   if test "$am_compiler_list" = ""; then
5006      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5007   fi
5008   for depmode in $am_compiler_list; do
5009     # Setup a source with many dependencies, because some compilers
5010     # like to wrap large dependency lists on column 80 (with \), and
5011     # we should not choose a depcomp mode which is confused by this.
5012     #
5013     # We need to recreate these files for each test, as the compiler may
5014     # overwrite some of them when testing with obscure command lines.
5015     # This happens at least with the AIX C compiler.
5016     : > sub/conftest.c
5017     for i in 1 2 3 4 5 6; do
5018       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5019       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5020       # Solaris 8's {/usr,}/bin/sh.
5021       touch sub/conftst$i.h
5022     done
5023     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5024
5025     case $depmode in
5026     nosideeffect)
5027       # after this tag, mechanisms are not by side-effect, so they'll
5028       # only be used when explicitly requested
5029       if test "x$enable_dependency_tracking" = xyes; then
5030         continue
5031       else
5032         break
5033       fi
5034       ;;
5035     none) break ;;
5036     esac
5037     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5038     # mode.  It turns out that the SunPro C++ compiler does not properly
5039     # handle `-M -o', and we need to detect this.
5040     if depmode=$depmode \
5041        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5042        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5043        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5044          >/dev/null 2>conftest.err &&
5045        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5046        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5047        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5048       # icc doesn't choke on unknown options, it will just issue warnings
5049       # or remarks (even with -Werror).  So we grep stderr for any message
5050       # that says an option was ignored or not supported.
5051       # When given -MP, icc 7.0 and 7.1 complain thusly:
5052       #   icc: Command line warning: ignoring option '-M'; no argument required
5053       # The diagnosis changed in icc 8.0:
5054       #   icc: Command line remark: option '-MP' not supported
5055       if (grep 'ignoring option' conftest.err ||
5056           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5057         am_cv_CC_dependencies_compiler_type=$depmode
5058         break
5059       fi
5060     fi
5061   done
5062
5063   cd ..
5064   rm -rf conftest.dir
5065 else
5066   am_cv_CC_dependencies_compiler_type=none
5067 fi
5068
5069 fi
5070 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5071 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5072 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5073
5074
5075
5076 if
5077   test "x$enable_dependency_tracking" != xno \
5078   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5079   am__fastdepCC_TRUE=
5080   am__fastdepCC_FALSE='#'
5081 else
5082   am__fastdepCC_TRUE='#'
5083   am__fastdepCC_FALSE=
5084 fi
5085
5086
5087 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5088 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5089 if test "${lt_cv_path_SED+set}" = set; then
5090   echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092   # Loop through the user's path and test for sed and gsed.
5093 # Then use that list of sed's as ones to test for truncation.
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5096 do
5097   IFS=$as_save_IFS
5098   test -z "$as_dir" && as_dir=.
5099   for lt_ac_prog in sed gsed; do
5100     for ac_exec_ext in '' $ac_executable_extensions; do
5101       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5102         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5103       fi
5104     done
5105   done
5106 done
5107 lt_ac_max=0
5108 lt_ac_count=0
5109 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5110 # along with /bin/sed that truncates output.
5111 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5112   test ! -f $lt_ac_sed && continue
5113   cat /dev/null > conftest.in
5114   lt_ac_count=0
5115   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5116   # Check for GNU sed and select it if it is found.
5117   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5118     lt_cv_path_SED=$lt_ac_sed
5119     break
5120   fi
5121   while true; do
5122     cat conftest.in conftest.in >conftest.tmp
5123     mv conftest.tmp conftest.in
5124     cp conftest.in conftest.nl
5125     echo >>conftest.nl
5126     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5127     cmp -s conftest.out conftest.nl || break
5128     # 10000 chars as input seems more than enough
5129     test $lt_ac_count -gt 10 && break
5130     lt_ac_count=`expr $lt_ac_count + 1`
5131     if test $lt_ac_count -gt $lt_ac_max; then
5132       lt_ac_max=$lt_ac_count
5133       lt_cv_path_SED=$lt_ac_sed
5134     fi
5135   done
5136 done
5137
5138 fi
5139
5140 SED=$lt_cv_path_SED
5141 echo "$as_me:$LINENO: result: $SED" >&5
5142 echo "${ECHO_T}$SED" >&6
5143
5144 echo "$as_me:$LINENO: checking for egrep" >&5
5145 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5146 if test "${ac_cv_prog_egrep+set}" = set; then
5147   echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5150     then ac_cv_prog_egrep='grep -E'
5151     else ac_cv_prog_egrep='egrep'
5152     fi
5153 fi
5154 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5155 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5156  EGREP=$ac_cv_prog_egrep
5157
5158
5159
5160 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5161 if test "${with_gnu_ld+set}" = set; then
5162   withval="$with_gnu_ld"
5163   test "$withval" = no || with_gnu_ld=yes
5164 else
5165   with_gnu_ld=no
5166 fi;
5167 ac_prog=ld
5168 if test "$GCC" = yes; then
5169   # Check if gcc -print-prog-name=ld gives a path.
5170   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5171 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5172   case $host in
5173   *-*-mingw*)
5174     # gcc leaves a trailing carriage return which upsets mingw
5175     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5176   *)
5177     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5178   esac
5179   case $ac_prog in
5180     # Accept absolute paths.
5181     [\\/]* | ?:[\\/]*)
5182       re_direlt='/[^/][^/]*/\.\./'
5183       # Canonicalize the pathname of ld
5184       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5185       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5186         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5187       done
5188       test -z "$LD" && LD="$ac_prog"
5189       ;;
5190   "")
5191     # If it fails, then pretend we aren't using GCC.
5192     ac_prog=ld
5193     ;;
5194   *)
5195     # If it is relative, then search for the first ld in PATH.
5196     with_gnu_ld=unknown
5197     ;;
5198   esac
5199 elif test "$with_gnu_ld" = yes; then
5200   echo "$as_me:$LINENO: checking for GNU ld" >&5
5201 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5202 else
5203   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5204 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5205 fi
5206 if test "${lt_cv_path_LD+set}" = set; then
5207   echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209   if test -z "$LD"; then
5210   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5211   for ac_dir in $PATH; do
5212     IFS="$lt_save_ifs"
5213     test -z "$ac_dir" && ac_dir=.
5214     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5215       lt_cv_path_LD="$ac_dir/$ac_prog"
5216       # Check to see if the program is GNU ld.  I'd rather use --version,
5217       # but apparently some variants of GNU ld only accept -v.
5218       # Break only if it was the GNU/non-GNU ld that we prefer.
5219       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5220       *GNU* | *'with BFD'*)
5221         test "$with_gnu_ld" != no && break
5222         ;;
5223       *)
5224         test "$with_gnu_ld" != yes && break
5225         ;;
5226       esac
5227     fi
5228   done
5229   IFS="$lt_save_ifs"
5230 else
5231   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5232 fi
5233 fi
5234
5235 LD="$lt_cv_path_LD"
5236 if test -n "$LD"; then
5237   echo "$as_me:$LINENO: result: $LD" >&5
5238 echo "${ECHO_T}$LD" >&6
5239 else
5240   echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6
5242 fi
5243 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5244 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5245    { (exit 1); exit 1; }; }
5246 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5247 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5248 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5249   echo $ECHO_N "(cached) $ECHO_C" >&6
5250 else
5251   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5252 case `$LD -v 2>&1 </dev/null` in
5253 *GNU* | *'with BFD'*)
5254   lt_cv_prog_gnu_ld=yes
5255   ;;
5256 *)
5257   lt_cv_prog_gnu_ld=no
5258   ;;
5259 esac
5260 fi
5261 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5262 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5263 with_gnu_ld=$lt_cv_prog_gnu_ld
5264
5265
5266 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5267 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5268 if test "${lt_cv_ld_reload_flag+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271   lt_cv_ld_reload_flag='-r'
5272 fi
5273 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5274 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5275 reload_flag=$lt_cv_ld_reload_flag
5276 case $reload_flag in
5277 "" | " "*) ;;
5278 *) reload_flag=" $reload_flag" ;;
5279 esac
5280 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5281 case $host_os in
5282   darwin*)
5283     if test "$GCC" = yes; then
5284       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5285     else
5286       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5287     fi
5288     ;;
5289 esac
5290
5291 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5292 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5293 if test "${lt_cv_path_NM+set}" = set; then
5294   echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296   if test -n "$NM"; then
5297   # Let the user override the test.
5298   lt_cv_path_NM="$NM"
5299 else
5300   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5301   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5302     IFS="$lt_save_ifs"
5303     test -z "$ac_dir" && ac_dir=.
5304     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5305     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5306       # Check to see if the nm accepts a BSD-compat flag.
5307       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5308       #   nm: unknown option "B" ignored
5309       # Tru64's nm complains that /dev/null is an invalid object file
5310       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5311       */dev/null* | *'Invalid file or object type'*)
5312         lt_cv_path_NM="$tmp_nm -B"
5313         break
5314         ;;
5315       *)
5316         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5317         */dev/null*)
5318           lt_cv_path_NM="$tmp_nm -p"
5319           break
5320           ;;
5321         *)
5322           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5323           continue # so that we can try to find one that supports BSD flags
5324           ;;
5325         esac
5326       esac
5327     fi
5328   done
5329   IFS="$lt_save_ifs"
5330   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5331 fi
5332 fi
5333 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5334 echo "${ECHO_T}$lt_cv_path_NM" >&6
5335 NM="$lt_cv_path_NM"
5336
5337 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5338 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5339 LN_S=$as_ln_s
5340 if test "$LN_S" = "ln -s"; then
5341   echo "$as_me:$LINENO: result: yes" >&5
5342 echo "${ECHO_T}yes" >&6
5343 else
5344   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5345 echo "${ECHO_T}no, using $LN_S" >&6
5346 fi
5347
5348 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5349 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5350 if test "${lt_cv_deplibs_check_method+set}" = set; then
5351   echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353   lt_cv_file_magic_cmd='$MAGIC_CMD'
5354 lt_cv_file_magic_test_file=
5355 lt_cv_deplibs_check_method='unknown'
5356 # Need to set the preceding variable on all platforms that support
5357 # interlibrary dependencies.
5358 # 'none' -- dependencies not supported.
5359 # `unknown' -- same as none, but documents that we really don't know.
5360 # 'pass_all' -- all dependencies passed with no checks.
5361 # 'test_compile' -- check by making test program.
5362 # 'file_magic [[regex]]' -- check by looking for files in library path
5363 # which responds to the $file_magic_cmd with a given extended regex.
5364 # If you have `file' or equivalent on your system and you're not sure
5365 # whether `pass_all' will *always* work, you probably want this one.
5366
5367 case $host_os in
5368 aix4* | aix5*)
5369   lt_cv_deplibs_check_method=pass_all
5370   ;;
5371
5372 beos*)
5373   lt_cv_deplibs_check_method=pass_all
5374   ;;
5375
5376 bsdi[45]*)
5377   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5378   lt_cv_file_magic_cmd='/usr/bin/file -L'
5379   lt_cv_file_magic_test_file=/shlib/libc.so
5380   ;;
5381
5382 cygwin*)
5383   # func_win32_libid is a shell function defined in ltmain.sh
5384   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5385   lt_cv_file_magic_cmd='func_win32_libid'
5386   ;;
5387
5388 mingw* | pw32*)
5389   # Base MSYS/MinGW do not provide the 'file' command needed by
5390   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5391   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5392   lt_cv_file_magic_cmd='$OBJDUMP -f'
5393   ;;
5394
5395 darwin* | rhapsody*)
5396   lt_cv_deplibs_check_method=pass_all
5397   ;;
5398
5399 freebsd* | kfreebsd*-gnu | dragonfly*)
5400   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5401     case $host_cpu in
5402     i*86 )
5403       # Not sure whether the presence of OpenBSD here was a mistake.
5404       # Let's accept both of them until this is cleared up.
5405       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5406       lt_cv_file_magic_cmd=/usr/bin/file
5407       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5408       ;;
5409     esac
5410   else
5411     lt_cv_deplibs_check_method=pass_all
5412   fi
5413   ;;
5414
5415 gnu*)
5416   lt_cv_deplibs_check_method=pass_all
5417   ;;
5418
5419 hpux10.20* | hpux11*)
5420   lt_cv_file_magic_cmd=/usr/bin/file
5421   case $host_cpu in
5422   ia64*)
5423     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5424     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5425     ;;
5426   hppa*64*)
5427     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]'
5428     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5429     ;;
5430   *)
5431     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5432     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5433     ;;
5434   esac
5435   ;;
5436
5437 irix5* | irix6* | nonstopux*)
5438   case $LD in
5439   *-32|*"-32 ") libmagic=32-bit;;
5440   *-n32|*"-n32 ") libmagic=N32;;
5441   *-64|*"-64 ") libmagic=64-bit;;
5442   *) libmagic=never-match;;
5443   esac
5444   lt_cv_deplibs_check_method=pass_all
5445   ;;
5446
5447 # This must be Linux ELF.
5448 linux*)
5449   lt_cv_deplibs_check_method=pass_all
5450   ;;
5451
5452 netbsd*)
5453   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5454     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5455   else
5456     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5457   fi
5458   ;;
5459
5460 newos6*)
5461   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5462   lt_cv_file_magic_cmd=/usr/bin/file
5463   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5464   ;;
5465
5466 nto-qnx*)
5467   lt_cv_deplibs_check_method=unknown
5468   ;;
5469
5470 openbsd*)
5471   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5472     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5473   else
5474     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5475   fi
5476   ;;
5477
5478 osf3* | osf4* | osf5*)
5479   lt_cv_deplibs_check_method=pass_all
5480   ;;
5481
5482 sco3.2v5*)
5483   lt_cv_deplibs_check_method=pass_all
5484   ;;
5485
5486 solaris*)
5487   lt_cv_deplibs_check_method=pass_all
5488   ;;
5489
5490 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5491   case $host_vendor in
5492   motorola)
5493     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]'
5494     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5495     ;;
5496   ncr)
5497     lt_cv_deplibs_check_method=pass_all
5498     ;;
5499   sequent)
5500     lt_cv_file_magic_cmd='/bin/file'
5501     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5502     ;;
5503   sni)
5504     lt_cv_file_magic_cmd='/bin/file'
5505     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5506     lt_cv_file_magic_test_file=/lib/libc.so
5507     ;;
5508   siemens)
5509     lt_cv_deplibs_check_method=pass_all
5510     ;;
5511   esac
5512   ;;
5513
5514 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5515   lt_cv_deplibs_check_method=pass_all
5516   ;;
5517 esac
5518
5519 fi
5520 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5521 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5522 file_magic_cmd=$lt_cv_file_magic_cmd
5523 deplibs_check_method=$lt_cv_deplibs_check_method
5524 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5525
5526
5527
5528
5529 # If no C compiler was specified, use CC.
5530 LTCC=${LTCC-"$CC"}
5531
5532 # Allow CC to be a program name with arguments.
5533 compiler=$CC
5534
5535
5536 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5537 if test "${enable_libtool_lock+set}" = set; then
5538   enableval="$enable_libtool_lock"
5539
5540 fi;
5541 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5542
5543 # Some flags need to be propagated to the compiler or linker for good
5544 # libtool support.
5545 case $host in
5546 ia64-*-hpux*)
5547   # Find out which ABI we are using.
5548   echo 'int i;' > conftest.$ac_ext
5549   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5550   (eval $ac_compile) 2>&5
5551   ac_status=$?
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); }; then
5554     case `/usr/bin/file conftest.$ac_objext` in
5555     *ELF-32*)
5556       HPUX_IA64_MODE="32"
5557       ;;
5558     *ELF-64*)
5559       HPUX_IA64_MODE="64"
5560       ;;
5561     esac
5562   fi
5563   rm -rf conftest*
5564   ;;
5565 *-*-irix6*)
5566   # Find out which ABI we are using.
5567   echo '#line 5567 "configure"' > conftest.$ac_ext
5568   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5569   (eval $ac_compile) 2>&5
5570   ac_status=$?
5571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572   (exit $ac_status); }; then
5573    if test "$lt_cv_prog_gnu_ld" = yes; then
5574     case `/usr/bin/file conftest.$ac_objext` in
5575     *32-bit*)
5576       LD="${LD-ld} -melf32bsmip"
5577       ;;
5578     *N32*)
5579       LD="${LD-ld} -melf32bmipn32"
5580       ;;
5581     *64-bit*)
5582       LD="${LD-ld} -melf64bmip"
5583       ;;
5584     esac
5585    else
5586     case `/usr/bin/file conftest.$ac_objext` in
5587     *32-bit*)
5588       LD="${LD-ld} -32"
5589       ;;
5590     *N32*)
5591       LD="${LD-ld} -n32"
5592       ;;
5593     *64-bit*)
5594       LD="${LD-ld} -64"
5595       ;;
5596     esac
5597    fi
5598   fi
5599   rm -rf conftest*
5600   ;;
5601
5602 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5603   # Find out which ABI we are using.
5604   echo 'int i;' > conftest.$ac_ext
5605   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606   (eval $ac_compile) 2>&5
5607   ac_status=$?
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); }; then
5610     case `/usr/bin/file conftest.o` in
5611     *32-bit*)
5612       case $host in
5613         x86_64-*linux*)
5614           LD="${LD-ld} -m elf_i386"
5615           ;;
5616         ppc64-*linux*|powerpc64-*linux*)
5617           LD="${LD-ld} -m elf32ppclinux"
5618           ;;
5619         s390x-*linux*)
5620           LD="${LD-ld} -m elf_s390"
5621           ;;
5622         sparc64-*linux*)
5623           LD="${LD-ld} -m elf32_sparc"
5624           ;;
5625       esac
5626       ;;
5627     *64-bit*)
5628       case $host in
5629         x86_64-*linux*)
5630           LD="${LD-ld} -m elf_x86_64"
5631           ;;
5632         ppc*-*linux*|powerpc*-*linux*)
5633           LD="${LD-ld} -m elf64ppc"
5634           ;;
5635         s390*-*linux*)
5636           LD="${LD-ld} -m elf64_s390"
5637           ;;
5638         sparc*-*linux*)
5639           LD="${LD-ld} -m elf64_sparc"
5640           ;;
5641       esac
5642       ;;
5643     esac
5644   fi
5645   rm -rf conftest*
5646   ;;
5647
5648 *-*-sco3.2v5*)
5649   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5650   SAVE_CFLAGS="$CFLAGS"
5651   CFLAGS="$CFLAGS -belf"
5652   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5653 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5654 if test "${lt_cv_cc_needs_belf+set}" = set; then
5655   echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657   ac_ext=c
5658 ac_cpp='$CPP $CPPFLAGS'
5659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5662
5663      cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h.  */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h.  */
5669
5670 int
5671 main ()
5672 {
5673
5674   ;
5675   return 0;
5676 }
5677 _ACEOF
5678 rm -f conftest.$ac_objext conftest$ac_exeext
5679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5680   (eval $ac_link) 2>conftest.er1
5681   ac_status=$?
5682   grep -v '^ *+' conftest.er1 >conftest.err
5683   rm -f conftest.er1
5684   cat conftest.err >&5
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); } &&
5687          { ac_try='test -z "$ac_c_werror_flag"
5688                          || test ! -s conftest.err'
5689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690   (eval $ac_try) 2>&5
5691   ac_status=$?
5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); }; } &&
5694          { ac_try='test -s conftest$ac_exeext'
5695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696   (eval $ac_try) 2>&5
5697   ac_status=$?
5698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699   (exit $ac_status); }; }; then
5700   lt_cv_cc_needs_belf=yes
5701 else
5702   echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5704
5705 lt_cv_cc_needs_belf=no
5706 fi
5707 rm -f conftest.err conftest.$ac_objext \
5708       conftest$ac_exeext conftest.$ac_ext
5709      ac_ext=c
5710 ac_cpp='$CPP $CPPFLAGS'
5711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5714
5715 fi
5716 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5717 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5718   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5719     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5720     CFLAGS="$SAVE_CFLAGS"
5721   fi
5722   ;;
5723 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5724   if test -n "$ac_tool_prefix"; then
5725   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5726 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5727 echo "$as_me:$LINENO: checking for $ac_word" >&5
5728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5729 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5730   echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732   if test -n "$DLLTOOL"; then
5733   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5734 else
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738   IFS=$as_save_IFS
5739   test -z "$as_dir" && as_dir=.
5740   for ac_exec_ext in '' $ac_executable_extensions; do
5741   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5744     break 2
5745   fi
5746 done
5747 done
5748
5749 fi
5750 fi
5751 DLLTOOL=$ac_cv_prog_DLLTOOL
5752 if test -n "$DLLTOOL"; then
5753   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5754 echo "${ECHO_T}$DLLTOOL" >&6
5755 else
5756   echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6
5758 fi
5759
5760 fi
5761 if test -z "$ac_cv_prog_DLLTOOL"; then
5762   ac_ct_DLLTOOL=$DLLTOOL
5763   # Extract the first word of "dlltool", so it can be a program name with args.
5764 set dummy dlltool; ac_word=$2
5765 echo "$as_me:$LINENO: checking for $ac_word" >&5
5766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5767 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5768   echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770   if test -n "$ac_ct_DLLTOOL"; then
5771   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5772 else
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5775 do
5776   IFS=$as_save_IFS
5777   test -z "$as_dir" && as_dir=.
5778   for ac_exec_ext in '' $ac_executable_extensions; do
5779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5782     break 2
5783   fi
5784 done
5785 done
5786
5787   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5788 fi
5789 fi
5790 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5791 if test -n "$ac_ct_DLLTOOL"; then
5792   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5793 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5794 else
5795   echo "$as_me:$LINENO: result: no" >&5
5796 echo "${ECHO_T}no" >&6
5797 fi
5798
5799   DLLTOOL=$ac_ct_DLLTOOL
5800 else
5801   DLLTOOL="$ac_cv_prog_DLLTOOL"
5802 fi
5803
5804   if test -n "$ac_tool_prefix"; then
5805   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5806 set dummy ${ac_tool_prefix}as; ac_word=$2
5807 echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5809 if test "${ac_cv_prog_AS+set}" = set; then
5810   echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812   if test -n "$AS"; then
5813   ac_cv_prog_AS="$AS" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818   IFS=$as_save_IFS
5819   test -z "$as_dir" && as_dir=.
5820   for ac_exec_ext in '' $ac_executable_extensions; do
5821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822     ac_cv_prog_AS="${ac_tool_prefix}as"
5823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824     break 2
5825   fi
5826 done
5827 done
5828
5829 fi
5830 fi
5831 AS=$ac_cv_prog_AS
5832 if test -n "$AS"; then
5833   echo "$as_me:$LINENO: result: $AS" >&5
5834 echo "${ECHO_T}$AS" >&6
5835 else
5836   echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6
5838 fi
5839
5840 fi
5841 if test -z "$ac_cv_prog_AS"; then
5842   ac_ct_AS=$AS
5843   # Extract the first word of "as", so it can be a program name with args.
5844 set dummy as; ac_word=$2
5845 echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5847 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850   if test -n "$ac_ct_AS"; then
5851   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856   IFS=$as_save_IFS
5857   test -z "$as_dir" && as_dir=.
5858   for ac_exec_ext in '' $ac_executable_extensions; do
5859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860     ac_cv_prog_ac_ct_AS="as"
5861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5862     break 2
5863   fi
5864 done
5865 done
5866
5867   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5868 fi
5869 fi
5870 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5871 if test -n "$ac_ct_AS"; then
5872   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5873 echo "${ECHO_T}$ac_ct_AS" >&6
5874 else
5875   echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6
5877 fi
5878
5879   AS=$ac_ct_AS
5880 else
5881   AS="$ac_cv_prog_AS"
5882 fi
5883
5884   if test -n "$ac_tool_prefix"; then
5885   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5886 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5887 echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5889 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   if test -n "$OBJDUMP"; then
5893   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900   for ac_exec_ext in '' $ac_executable_extensions; do
5901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907 done
5908
5909 fi
5910 fi
5911 OBJDUMP=$ac_cv_prog_OBJDUMP
5912 if test -n "$OBJDUMP"; then
5913   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5914 echo "${ECHO_T}$OBJDUMP" >&6
5915 else
5916   echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6
5918 fi
5919
5920 fi
5921 if test -z "$ac_cv_prog_OBJDUMP"; then
5922   ac_ct_OBJDUMP=$OBJDUMP
5923   # Extract the first word of "objdump", so it can be a program name with args.
5924 set dummy objdump; ac_word=$2
5925 echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5927 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5928   echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930   if test -n "$ac_ct_OBJDUMP"; then
5931   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936   IFS=$as_save_IFS
5937   test -z "$as_dir" && as_dir=.
5938   for ac_exec_ext in '' $ac_executable_extensions; do
5939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942     break 2
5943   fi
5944 done
5945 done
5946
5947   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5948 fi
5949 fi
5950 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5951 if test -n "$ac_ct_OBJDUMP"; then
5952   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5953 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5954 else
5955   echo "$as_me:$LINENO: result: no" >&5
5956 echo "${ECHO_T}no" >&6
5957 fi
5958
5959   OBJDUMP=$ac_ct_OBJDUMP
5960 else
5961   OBJDUMP="$ac_cv_prog_OBJDUMP"
5962 fi
5963
5964   ;;
5965
5966 esac
5967
5968 need_locks="$enable_libtool_lock"
5969
5970
5971 ac_ext=c
5972 ac_cpp='$CPP $CPPFLAGS'
5973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5976 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5977 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5978 # On Suns, sometimes $CPP names a directory.
5979 if test -n "$CPP" && test -d "$CPP"; then
5980   CPP=
5981 fi
5982 if test -z "$CPP"; then
5983   if test "${ac_cv_prog_CPP+set}" = set; then
5984   echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986       # Double quotes because CPP needs to be expanded
5987     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5988     do
5989       ac_preproc_ok=false
5990 for ac_c_preproc_warn_flag in '' yes
5991 do
5992   # Use a header file that comes with gcc, so configuring glibc
5993   # with a fresh cross-compiler works.
5994   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5995   # <limits.h> exists even on freestanding compilers.
5996   # On the NeXT, cc -E runs the code through the compiler's parser,
5997   # not just through cpp. "Syntax error" is here to catch this case.
5998   cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h.  */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h.  */
6004 #ifdef __STDC__
6005 # include <limits.h>
6006 #else
6007 # include <assert.h>
6008 #endif
6009                      Syntax error
6010 _ACEOF
6011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6012   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6013   ac_status=$?
6014   grep -v '^ *+' conftest.er1 >conftest.err
6015   rm -f conftest.er1
6016   cat conftest.err >&5
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); } >/dev/null; then
6019   if test -s conftest.err; then
6020     ac_cpp_err=$ac_c_preproc_warn_flag
6021     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6022   else
6023     ac_cpp_err=
6024   fi
6025 else
6026   ac_cpp_err=yes
6027 fi
6028 if test -z "$ac_cpp_err"; then
6029   :
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034   # Broken: fails on valid input.
6035 continue
6036 fi
6037 rm -f conftest.err conftest.$ac_ext
6038
6039   # OK, works on sane cases.  Now check whether non-existent headers
6040   # can be detected and how.
6041   cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h.  */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h.  */
6047 #include <ac_nonexistent.h>
6048 _ACEOF
6049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6051   ac_status=$?
6052   grep -v '^ *+' conftest.er1 >conftest.err
6053   rm -f conftest.er1
6054   cat conftest.err >&5
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); } >/dev/null; then
6057   if test -s conftest.err; then
6058     ac_cpp_err=$ac_c_preproc_warn_flag
6059     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6060   else
6061     ac_cpp_err=
6062   fi
6063 else
6064   ac_cpp_err=yes
6065 fi
6066 if test -z "$ac_cpp_err"; then
6067   # Broken: success on invalid input.
6068 continue
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073   # Passes both tests.
6074 ac_preproc_ok=:
6075 break
6076 fi
6077 rm -f conftest.err conftest.$ac_ext
6078
6079 done
6080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6081 rm -f conftest.err conftest.$ac_ext
6082 if $ac_preproc_ok; then
6083   break
6084 fi
6085
6086     done
6087     ac_cv_prog_CPP=$CPP
6088
6089 fi
6090   CPP=$ac_cv_prog_CPP
6091 else
6092   ac_cv_prog_CPP=$CPP
6093 fi
6094 echo "$as_me:$LINENO: result: $CPP" >&5
6095 echo "${ECHO_T}$CPP" >&6
6096 ac_preproc_ok=false
6097 for ac_c_preproc_warn_flag in '' yes
6098 do
6099   # Use a header file that comes with gcc, so configuring glibc
6100   # with a fresh cross-compiler works.
6101   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6102   # <limits.h> exists even on freestanding compilers.
6103   # On the NeXT, cc -E runs the code through the compiler's parser,
6104   # not just through cpp. "Syntax error" is here to catch this case.
6105   cat >conftest.$ac_ext <<_ACEOF
6106 /* confdefs.h.  */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h.  */
6111 #ifdef __STDC__
6112 # include <limits.h>
6113 #else
6114 # include <assert.h>
6115 #endif
6116                      Syntax error
6117 _ACEOF
6118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6119   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6120   ac_status=$?
6121   grep -v '^ *+' conftest.er1 >conftest.err
6122   rm -f conftest.er1
6123   cat conftest.err >&5
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); } >/dev/null; then
6126   if test -s conftest.err; then
6127     ac_cpp_err=$ac_c_preproc_warn_flag
6128     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6129   else
6130     ac_cpp_err=
6131   fi
6132 else
6133   ac_cpp_err=yes
6134 fi
6135 if test -z "$ac_cpp_err"; then
6136   :
6137 else
6138   echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6140
6141   # Broken: fails on valid input.
6142 continue
6143 fi
6144 rm -f conftest.err conftest.$ac_ext
6145
6146   # OK, works on sane cases.  Now check whether non-existent headers
6147   # can be detected and how.
6148   cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h.  */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h.  */
6154 #include <ac_nonexistent.h>
6155 _ACEOF
6156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6157   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6158   ac_status=$?
6159   grep -v '^ *+' conftest.er1 >conftest.err
6160   rm -f conftest.er1
6161   cat conftest.err >&5
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); } >/dev/null; then
6164   if test -s conftest.err; then
6165     ac_cpp_err=$ac_c_preproc_warn_flag
6166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6167   else
6168     ac_cpp_err=
6169   fi
6170 else
6171   ac_cpp_err=yes
6172 fi
6173 if test -z "$ac_cpp_err"; then
6174   # Broken: success on invalid input.
6175 continue
6176 else
6177   echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180   # Passes both tests.
6181 ac_preproc_ok=:
6182 break
6183 fi
6184 rm -f conftest.err conftest.$ac_ext
6185
6186 done
6187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6188 rm -f conftest.err conftest.$ac_ext
6189 if $ac_preproc_ok; then
6190   :
6191 else
6192   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6193 See \`config.log' for more details." >&5
6194 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6195 See \`config.log' for more details." >&2;}
6196    { (exit 1); exit 1; }; }
6197 fi
6198
6199 ac_ext=c
6200 ac_cpp='$CPP $CPPFLAGS'
6201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6204
6205
6206 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6207 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6208 if test "${ac_cv_header_stdc+set}" = set; then
6209   echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211   cat >conftest.$ac_ext <<_ACEOF
6212 /* confdefs.h.  */
6213 _ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h.  */
6217 #include <stdlib.h>
6218 #include <stdarg.h>
6219 #include <string.h>
6220 #include <float.h>
6221
6222 int
6223 main ()
6224 {
6225
6226   ;
6227   return 0;
6228 }
6229 _ACEOF
6230 rm -f conftest.$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232   (eval $ac_compile) 2>conftest.er1
6233   ac_status=$?
6234   grep -v '^ *+' conftest.er1 >conftest.err
6235   rm -f conftest.er1
6236   cat conftest.err >&5
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); } &&
6239          { ac_try='test -z "$ac_c_werror_flag"
6240                          || test ! -s conftest.err'
6241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242   (eval $ac_try) 2>&5
6243   ac_status=$?
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); }; } &&
6246          { ac_try='test -s conftest.$ac_objext'
6247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248   (eval $ac_try) 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); }; }; then
6252   ac_cv_header_stdc=yes
6253 else
6254   echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 ac_cv_header_stdc=no
6258 fi
6259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6260
6261 if test $ac_cv_header_stdc = yes; then
6262   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6263   cat >conftest.$ac_ext <<_ACEOF
6264 /* confdefs.h.  */
6265 _ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h.  */
6269 #include <string.h>
6270
6271 _ACEOF
6272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6273   $EGREP "memchr" >/dev/null 2>&1; then
6274   :
6275 else
6276   ac_cv_header_stdc=no
6277 fi
6278 rm -f conftest*
6279
6280 fi
6281
6282 if test $ac_cv_header_stdc = yes; then
6283   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6284   cat >conftest.$ac_ext <<_ACEOF
6285 /* confdefs.h.  */
6286 _ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h.  */
6290 #include <stdlib.h>
6291
6292 _ACEOF
6293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6294   $EGREP "free" >/dev/null 2>&1; then
6295   :
6296 else
6297   ac_cv_header_stdc=no
6298 fi
6299 rm -f conftest*
6300
6301 fi
6302
6303 if test $ac_cv_header_stdc = yes; then
6304   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6305   if test "$cross_compiling" = yes; then
6306   :
6307 else
6308   cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h.  */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h.  */
6314 #include <ctype.h>
6315 #if ((' ' & 0x0FF) == 0x020)
6316 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6317 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6318 #else
6319 # define ISLOWER(c) \
6320                    (('a' <= (c) && (c) <= 'i') \
6321                      || ('j' <= (c) && (c) <= 'r') \
6322                      || ('s' <= (c) && (c) <= 'z'))
6323 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6324 #endif
6325
6326 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6327 int
6328 main ()
6329 {
6330   int i;
6331   for (i = 0; i < 256; i++)
6332     if (XOR (islower (i), ISLOWER (i))
6333         || toupper (i) != TOUPPER (i))
6334       exit(2);
6335   exit (0);
6336 }
6337 _ACEOF
6338 rm -f conftest$ac_exeext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6340   (eval $ac_link) 2>&5
6341   ac_status=$?
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345   (eval $ac_try) 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); }; }; then
6349   :
6350 else
6351   echo "$as_me: program exited with status $ac_status" >&5
6352 echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6354
6355 ( exit $ac_status )
6356 ac_cv_header_stdc=no
6357 fi
6358 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6359 fi
6360 fi
6361 fi
6362 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6363 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6364 if test $ac_cv_header_stdc = yes; then
6365
6366 cat >>confdefs.h <<\_ACEOF
6367 #define STDC_HEADERS 1
6368 _ACEOF
6369
6370 fi
6371
6372 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6383                   inttypes.h stdint.h unistd.h
6384 do
6385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6386 echo "$as_me:$LINENO: checking for $ac_header" >&5
6387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6389   echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391   cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h.  */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h.  */
6397 $ac_includes_default
6398
6399 #include <$ac_header>
6400 _ACEOF
6401 rm -f conftest.$ac_objext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403   (eval $ac_compile) 2>conftest.er1
6404   ac_status=$?
6405   grep -v '^ *+' conftest.er1 >conftest.err
6406   rm -f conftest.er1
6407   cat conftest.err >&5
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); } &&
6410          { ac_try='test -z "$ac_c_werror_flag"
6411                          || test ! -s conftest.err'
6412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413   (eval $ac_try) 2>&5
6414   ac_status=$?
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); }; } &&
6417          { ac_try='test -s conftest.$ac_objext'
6418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419   (eval $ac_try) 2>&5
6420   ac_status=$?
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); }; }; then
6423   eval "$as_ac_Header=yes"
6424 else
6425   echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6427
6428 eval "$as_ac_Header=no"
6429 fi
6430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6431 fi
6432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6435   cat >>confdefs.h <<_ACEOF
6436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6437 _ACEOF
6438
6439 fi
6440
6441 done
6442
6443
6444
6445 for ac_header in dlfcn.h
6446 do
6447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6449   echo "$as_me:$LINENO: checking for $ac_header" >&5
6450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6452   echo $ECHO_N "(cached) $ECHO_C" >&6
6453 fi
6454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6456 else
6457   # Is the header compilable?
6458 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6460 cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h.  */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h.  */
6466 $ac_includes_default
6467 #include <$ac_header>
6468 _ACEOF
6469 rm -f conftest.$ac_objext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471   (eval $ac_compile) 2>conftest.er1
6472   ac_status=$?
6473   grep -v '^ *+' conftest.er1 >conftest.err
6474   rm -f conftest.er1
6475   cat conftest.err >&5
6476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477   (exit $ac_status); } &&
6478          { ac_try='test -z "$ac_c_werror_flag"
6479                          || test ! -s conftest.err'
6480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481   (eval $ac_try) 2>&5
6482   ac_status=$?
6483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484   (exit $ac_status); }; } &&
6485          { ac_try='test -s conftest.$ac_objext'
6486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487   (eval $ac_try) 2>&5
6488   ac_status=$?
6489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490   (exit $ac_status); }; }; then
6491   ac_header_compiler=yes
6492 else
6493   echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6495
6496 ac_header_compiler=no
6497 fi
6498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6500 echo "${ECHO_T}$ac_header_compiler" >&6
6501
6502 # Is the header present?
6503 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6505 cat >conftest.$ac_ext <<_ACEOF
6506 /* confdefs.h.  */
6507 _ACEOF
6508 cat confdefs.h >>conftest.$ac_ext
6509 cat >>conftest.$ac_ext <<_ACEOF
6510 /* end confdefs.h.  */
6511 #include <$ac_header>
6512 _ACEOF
6513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6514   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6515   ac_status=$?
6516   grep -v '^ *+' conftest.er1 >conftest.err
6517   rm -f conftest.er1
6518   cat conftest.err >&5
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); } >/dev/null; then
6521   if test -s conftest.err; then
6522     ac_cpp_err=$ac_c_preproc_warn_flag
6523     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6524   else
6525     ac_cpp_err=
6526   fi
6527 else
6528   ac_cpp_err=yes
6529 fi
6530 if test -z "$ac_cpp_err"; then
6531   ac_header_preproc=yes
6532 else
6533   echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6535
6536   ac_header_preproc=no
6537 fi
6538 rm -f conftest.err conftest.$ac_ext
6539 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6540 echo "${ECHO_T}$ac_header_preproc" >&6
6541
6542 # So?  What about this header?
6543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6544   yes:no: )
6545     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6549     ac_header_preproc=yes
6550     ;;
6551   no:yes:* )
6552     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6554     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6555 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6556     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6558     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6559 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6562     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6564     (
6565       cat <<\_ASBOX
6566 ## --------------------------------------------- ##
6567 ## Report this to <http://www.openldap.org/its/> ##
6568 ## --------------------------------------------- ##
6569 _ASBOX
6570     ) |
6571       sed "s/^/$as_me: WARNING:     /" >&2
6572     ;;
6573 esac
6574 echo "$as_me:$LINENO: checking for $ac_header" >&5
6575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   eval "$as_ac_Header=\$ac_header_preproc"
6580 fi
6581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6583
6584 fi
6585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6586   cat >>confdefs.h <<_ACEOF
6587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6588 _ACEOF
6589
6590 fi
6591
6592 done
6593
6594
6595 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6596
6597 # find the maximum length of command line arguments
6598 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6599 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6600 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6601   echo $ECHO_N "(cached) $ECHO_C" >&6
6602 else
6603     i=0
6604   teststring="ABCD"
6605
6606   case $build_os in
6607   msdosdjgpp*)
6608     # On DJGPP, this test can blow up pretty badly due to problems in libc
6609     # (any single argument exceeding 2000 bytes causes a buffer overrun
6610     # during glob expansion).  Even if it were fixed, the result of this
6611     # check would be larger than it should be.
6612     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6613     ;;
6614
6615   gnu*)
6616     # Under GNU Hurd, this test is not required because there is
6617     # no limit to the length of command line arguments.
6618     # Libtool will interpret -1 as no limit whatsoever
6619     lt_cv_sys_max_cmd_len=-1;
6620     ;;
6621
6622   cygwin* | mingw*)
6623     # On Win9x/ME, this test blows up -- it succeeds, but takes
6624     # about 5 minutes as the teststring grows exponentially.
6625     # Worse, since 9x/ME are not pre-emptively multitasking,
6626     # you end up with a "frozen" computer, even though with patience
6627     # the test eventually succeeds (with a max line length of 256k).
6628     # Instead, let's just punt: use the minimum linelength reported by
6629     # all of the supported platforms: 8192 (on NT/2K/XP).
6630     lt_cv_sys_max_cmd_len=8192;
6631     ;;
6632
6633   amigaos*)
6634     # On AmigaOS with pdksh, this test takes hours, literally.
6635     # So we just punt and use a minimum line length of 8192.
6636     lt_cv_sys_max_cmd_len=8192;
6637     ;;
6638
6639   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6640     # This has been around since 386BSD, at least.  Likely further.
6641     if test -x /sbin/sysctl; then
6642       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6643     elif test -x /usr/sbin/sysctl; then
6644       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6645     else
6646       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6647     fi
6648     # And add a safety zone
6649     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6650     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6651     ;;
6652   osf*)
6653     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6654     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6655     # nice to cause kernel panics so lets avoid the loop below.
6656     # First set a reasonable default.
6657     lt_cv_sys_max_cmd_len=16384
6658     #
6659     if test -x /sbin/sysconfig; then
6660       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6661         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6662       esac
6663     fi
6664     ;;
6665   *)
6666     # If test is not a shell built-in, we'll probably end up computing a
6667     # maximum length that is only half of the actual maximum length, but
6668     # we can't tell.
6669     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6670     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6671                = "XX$teststring") >/dev/null 2>&1 &&
6672             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6673             lt_cv_sys_max_cmd_len=$new_result &&
6674             test $i != 17 # 1/2 MB should be enough
6675     do
6676       i=`expr $i + 1`
6677       teststring=$teststring$teststring
6678     done
6679     teststring=
6680     # Add a significant safety factor because C++ compilers can tack on massive
6681     # amounts of additional arguments before passing them to the linker.
6682     # It appears as though 1/2 is a usable value.
6683     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6684     ;;
6685   esac
6686
6687 fi
6688
6689 if test -n $lt_cv_sys_max_cmd_len ; then
6690   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6691 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6692 else
6693   echo "$as_me:$LINENO: result: none" >&5
6694 echo "${ECHO_T}none" >&6
6695 fi
6696
6697
6698
6699
6700 # Check for command to grab the raw symbol name followed by C symbol from nm.
6701 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6702 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6703 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6704   echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706
6707 # These are sane defaults that work on at least a few old systems.
6708 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6709
6710 # Character class describing NM global symbol codes.
6711 symcode='[BCDEGRST]'
6712
6713 # Regexp to match symbols that can be accessed directly from C.
6714 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6715
6716 # Transform an extracted symbol line into a proper C declaration
6717 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6718
6719 # Transform an extracted symbol line into symbol name and symbol address
6720 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'"
6721
6722 # Define system-specific variables.
6723 case $host_os in
6724 aix*)
6725   symcode='[BCDT]'
6726   ;;
6727 cygwin* | mingw* | pw32*)
6728   symcode='[ABCDGISTW]'
6729   ;;
6730 hpux*) # Its linker distinguishes data from code symbols
6731   if test "$host_cpu" = ia64; then
6732     symcode='[ABCDEGRST]'
6733   fi
6734   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6735   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'"
6736   ;;
6737 linux*)
6738   if test "$host_cpu" = ia64; then
6739     symcode='[ABCDGIRSTW]'
6740     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6741     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'"
6742   fi
6743   ;;
6744 irix* | nonstopux*)
6745   symcode='[BCDEGRST]'
6746   ;;
6747 osf*)
6748   symcode='[BCDEGQRST]'
6749   ;;
6750 solaris* | sysv5*)
6751   symcode='[BDRT]'
6752   ;;
6753 sysv4)
6754   symcode='[DFNSTU]'
6755   ;;
6756 esac
6757
6758 # Handle CRLF in mingw tool chain
6759 opt_cr=
6760 case $build_os in
6761 mingw*)
6762   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6763   ;;
6764 esac
6765
6766 # If we're using GNU nm, then use its standard symbol codes.
6767 case `$NM -V 2>&1` in
6768 *GNU* | *'with BFD'*)
6769   symcode='[ABCDGIRSTW]' ;;
6770 esac
6771
6772 # Try without a prefix undercore, then with it.
6773 for ac_symprfx in "" "_"; do
6774
6775   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6776   symxfrm="\\1 $ac_symprfx\\2 \\2"
6777
6778   # Write the raw and C identifiers.
6779   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6780
6781   # Check to see that the pipe works correctly.
6782   pipe_works=no
6783
6784   rm -f conftest*
6785   cat > conftest.$ac_ext <<EOF
6786 #ifdef __cplusplus
6787 extern "C" {
6788 #endif
6789 char nm_test_var;
6790 void nm_test_func(){}
6791 #ifdef __cplusplus
6792 }
6793 #endif
6794 int main(){nm_test_var='a';nm_test_func();return(0);}
6795 EOF
6796
6797   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6798   (eval $ac_compile) 2>&5
6799   ac_status=$?
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); }; then
6802     # Now try to grab the symbols.
6803     nlist=conftest.nm
6804     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6805   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6806   ac_status=$?
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); } && test -s "$nlist"; then
6809       # Try sorting and uniquifying the output.
6810       if sort "$nlist" | uniq > "$nlist"T; then
6811         mv -f "$nlist"T "$nlist"
6812       else
6813         rm -f "$nlist"T
6814       fi
6815
6816       # Make sure that we snagged all the symbols we need.
6817       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6818         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6819           cat <<EOF > conftest.$ac_ext
6820 #ifdef __cplusplus
6821 extern "C" {
6822 #endif
6823
6824 EOF
6825           # Now generate the symbol file.
6826           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6827
6828           cat <<EOF >> conftest.$ac_ext
6829 #if defined (__STDC__) && __STDC__
6830 # define lt_ptr_t void *
6831 #else
6832 # define lt_ptr_t char *
6833 # define const
6834 #endif
6835
6836 /* The mapping between symbol names and symbols. */
6837 const struct {
6838   const char *name;
6839   lt_ptr_t address;
6840 }
6841 lt_preloaded_symbols[] =
6842 {
6843 EOF
6844           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6845           cat <<\EOF >> conftest.$ac_ext
6846   {0, (lt_ptr_t) 0}
6847 };
6848
6849 #ifdef __cplusplus
6850 }
6851 #endif
6852 EOF
6853           # Now try linking the two files.
6854           mv conftest.$ac_objext conftstm.$ac_objext
6855           lt_save_LIBS="$LIBS"
6856           lt_save_CFLAGS="$CFLAGS"
6857           LIBS="conftstm.$ac_objext"
6858           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6859           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6860   (eval $ac_link) 2>&5
6861   ac_status=$?
6862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6864             pipe_works=yes
6865           fi
6866           LIBS="$lt_save_LIBS"
6867           CFLAGS="$lt_save_CFLAGS"
6868         else
6869           echo "cannot find nm_test_func in $nlist" >&5
6870         fi
6871       else
6872         echo "cannot find nm_test_var in $nlist" >&5
6873       fi
6874     else
6875       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6876     fi
6877   else
6878     echo "$progname: failed program was:" >&5
6879     cat conftest.$ac_ext >&5
6880   fi
6881   rm -f conftest* conftst*
6882
6883   # Do not use the global_symbol_pipe unless it works.
6884   if test "$pipe_works" = yes; then
6885     break
6886   else
6887     lt_cv_sys_global_symbol_pipe=
6888   fi
6889 done
6890
6891 fi
6892
6893 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6894   lt_cv_sys_global_symbol_to_cdecl=
6895 fi
6896 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6897   echo "$as_me:$LINENO: result: failed" >&5
6898 echo "${ECHO_T}failed" >&6
6899 else
6900   echo "$as_me:$LINENO: result: ok" >&5
6901 echo "${ECHO_T}ok" >&6
6902 fi
6903
6904 echo "$as_me:$LINENO: checking for objdir" >&5
6905 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6906 if test "${lt_cv_objdir+set}" = set; then
6907   echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909   rm -f .libs 2>/dev/null
6910 mkdir .libs 2>/dev/null
6911 if test -d .libs; then
6912   lt_cv_objdir=.libs
6913 else
6914   # MS-DOS does not allow filenames that begin with a dot.
6915   lt_cv_objdir=_libs
6916 fi
6917 rmdir .libs 2>/dev/null
6918 fi
6919 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6920 echo "${ECHO_T}$lt_cv_objdir" >&6
6921 objdir=$lt_cv_objdir
6922
6923
6924
6925
6926
6927 case $host_os in
6928 aix3*)
6929   # AIX sometimes has problems with the GCC collect2 program.  For some
6930   # reason, if we set the COLLECT_NAMES environment variable, the problems
6931   # vanish in a puff of smoke.
6932   if test "X${COLLECT_NAMES+set}" != Xset; then
6933     COLLECT_NAMES=
6934     export COLLECT_NAMES
6935   fi
6936   ;;
6937 esac
6938
6939 # Sed substitution that helps us do robust quoting.  It backslashifies
6940 # metacharacters that are still active within double-quoted strings.
6941 Xsed='sed -e 1s/^X//'
6942 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6943
6944 # Same as above, but do not quote variable references.
6945 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6946
6947 # Sed substitution to delay expansion of an escaped shell variable in a
6948 # double_quote_subst'ed string.
6949 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6950
6951 # Sed substitution to avoid accidental globbing in evaled expressions
6952 no_glob_subst='s/\*/\\\*/g'
6953
6954 # Constants:
6955 rm="rm -f"
6956
6957 # Global variables:
6958 default_ofile=libtool
6959 can_build_shared=yes
6960
6961 # All known linkers require a `.a' archive for static linking (except MSVC,
6962 # which needs '.lib').
6963 libext=a
6964 ltmain="$ac_aux_dir/ltmain.sh"
6965 ofile="$default_ofile"
6966 with_gnu_ld="$lt_cv_prog_gnu_ld"
6967
6968 if test -n "$ac_tool_prefix"; then
6969   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6970 set dummy ${ac_tool_prefix}ar; ac_word=$2
6971 echo "$as_me:$LINENO: checking for $ac_word" >&5
6972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6973 if test "${ac_cv_prog_AR+set}" = set; then
6974   echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976   if test -n "$AR"; then
6977   ac_cv_prog_AR="$AR" # Let the user override the test.
6978 else
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $PATH
6981 do
6982   IFS=$as_save_IFS
6983   test -z "$as_dir" && as_dir=.
6984   for ac_exec_ext in '' $ac_executable_extensions; do
6985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986     ac_cv_prog_AR="${ac_tool_prefix}ar"
6987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988     break 2
6989   fi
6990 done
6991 done
6992
6993 fi
6994 fi
6995 AR=$ac_cv_prog_AR
6996 if test -n "$AR"; then
6997   echo "$as_me:$LINENO: result: $AR" >&5
6998 echo "${ECHO_T}$AR" >&6
6999 else
7000   echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6
7002 fi
7003
7004 fi
7005 if test -z "$ac_cv_prog_AR"; then
7006   ac_ct_AR=$AR
7007   # Extract the first word of "ar", so it can be a program name with args.
7008 set dummy ar; ac_word=$2
7009 echo "$as_me:$LINENO: checking for $ac_word" >&5
7010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7011 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7012   echo $ECHO_N "(cached) $ECHO_C" >&6
7013 else
7014   if test -n "$ac_ct_AR"; then
7015   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022   for ac_exec_ext in '' $ac_executable_extensions; do
7023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7024     ac_cv_prog_ac_ct_AR="ar"
7025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029 done
7030
7031   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7032 fi
7033 fi
7034 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7035 if test -n "$ac_ct_AR"; then
7036   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7037 echo "${ECHO_T}$ac_ct_AR" >&6
7038 else
7039   echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6
7041 fi
7042
7043   AR=$ac_ct_AR
7044 else
7045   AR="$ac_cv_prog_AR"
7046 fi
7047
7048 if test -n "$ac_tool_prefix"; then
7049   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7050 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7051 echo "$as_me:$LINENO: checking for $ac_word" >&5
7052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7053 if test "${ac_cv_prog_RANLIB+set}" = set; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   if test -n "$RANLIB"; then
7057   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7058 else
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in $PATH
7061 do
7062   IFS=$as_save_IFS
7063   test -z "$as_dir" && as_dir=.
7064   for ac_exec_ext in '' $ac_executable_extensions; do
7065   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7066     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068     break 2
7069   fi
7070 done
7071 done
7072
7073 fi
7074 fi
7075 RANLIB=$ac_cv_prog_RANLIB
7076 if test -n "$RANLIB"; then
7077   echo "$as_me:$LINENO: result: $RANLIB" >&5
7078 echo "${ECHO_T}$RANLIB" >&6
7079 else
7080   echo "$as_me:$LINENO: result: no" >&5
7081 echo "${ECHO_T}no" >&6
7082 fi
7083
7084 fi
7085 if test -z "$ac_cv_prog_RANLIB"; then
7086   ac_ct_RANLIB=$RANLIB
7087   # Extract the first word of "ranlib", so it can be a program name with args.
7088 set dummy ranlib; ac_word=$2
7089 echo "$as_me:$LINENO: checking for $ac_word" >&5
7090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7091 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7092   echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094   if test -n "$ac_ct_RANLIB"; then
7095   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100   IFS=$as_save_IFS
7101   test -z "$as_dir" && as_dir=.
7102   for ac_exec_ext in '' $ac_executable_extensions; do
7103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104     ac_cv_prog_ac_ct_RANLIB="ranlib"
7105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106     break 2
7107   fi
7108 done
7109 done
7110
7111   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7112 fi
7113 fi
7114 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7115 if test -n "$ac_ct_RANLIB"; then
7116   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7117 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7118 else
7119   echo "$as_me:$LINENO: result: no" >&5
7120 echo "${ECHO_T}no" >&6
7121 fi
7122
7123   RANLIB=$ac_ct_RANLIB
7124 else
7125   RANLIB="$ac_cv_prog_RANLIB"
7126 fi
7127
7128 if test -n "$ac_tool_prefix"; then
7129   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7130 set dummy ${ac_tool_prefix}strip; ac_word=$2
7131 echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133 if test "${ac_cv_prog_STRIP+set}" = set; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136   if test -n "$STRIP"; then
7137   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142   IFS=$as_save_IFS
7143   test -z "$as_dir" && as_dir=.
7144   for ac_exec_ext in '' $ac_executable_extensions; do
7145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148     break 2
7149   fi
7150 done
7151 done
7152
7153 fi
7154 fi
7155 STRIP=$ac_cv_prog_STRIP
7156 if test -n "$STRIP"; then
7157   echo "$as_me:$LINENO: result: $STRIP" >&5
7158 echo "${ECHO_T}$STRIP" >&6
7159 else
7160   echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6
7162 fi
7163
7164 fi
7165 if test -z "$ac_cv_prog_STRIP"; then
7166   ac_ct_STRIP=$STRIP
7167   # Extract the first word of "strip", so it can be a program name with args.
7168 set dummy strip; ac_word=$2
7169 echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7171 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7172   echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174   if test -n "$ac_ct_STRIP"; then
7175   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7176 else
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180   IFS=$as_save_IFS
7181   test -z "$as_dir" && as_dir=.
7182   for ac_exec_ext in '' $ac_executable_extensions; do
7183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184     ac_cv_prog_ac_ct_STRIP="strip"
7185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186     break 2
7187   fi
7188 done
7189 done
7190
7191   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7192 fi
7193 fi
7194 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7195 if test -n "$ac_ct_STRIP"; then
7196   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7197 echo "${ECHO_T}$ac_ct_STRIP" >&6
7198 else
7199   echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6
7201 fi
7202
7203   STRIP=$ac_ct_STRIP
7204 else
7205   STRIP="$ac_cv_prog_STRIP"
7206 fi
7207
7208
7209 old_CC="$CC"
7210 old_CFLAGS="$CFLAGS"
7211
7212 # Set sane defaults for various variables
7213 test -z "$AR" && AR=ar
7214 test -z "$AR_FLAGS" && AR_FLAGS=cru
7215 test -z "$AS" && AS=as
7216 test -z "$CC" && CC=cc
7217 test -z "$LTCC" && LTCC=$CC
7218 test -z "$DLLTOOL" && DLLTOOL=dlltool
7219 test -z "$LD" && LD=ld
7220 test -z "$LN_S" && LN_S="ln -s"
7221 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7222 test -z "$NM" && NM=nm
7223 test -z "$SED" && SED=sed
7224 test -z "$OBJDUMP" && OBJDUMP=objdump
7225 test -z "$RANLIB" && RANLIB=:
7226 test -z "$STRIP" && STRIP=:
7227 test -z "$ac_objext" && ac_objext=o
7228
7229 # Determine commands to create old-style static archives.
7230 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7231 old_postinstall_cmds='chmod 644 $oldlib'
7232 old_postuninstall_cmds=
7233
7234 if test -n "$RANLIB"; then
7235   case $host_os in
7236   openbsd*)
7237     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7238     ;;
7239   *)
7240     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7241     ;;
7242   esac
7243   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7244 fi
7245
7246 for cc_temp in $compiler""; do
7247   case $cc_temp in
7248     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7249     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7250     \-*) ;;
7251     *) break;;
7252   esac
7253 done
7254 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7255
7256
7257 # Only perform the check for file, if the check method requires it
7258 case $deplibs_check_method in
7259 file_magic*)
7260   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7261     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7262 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7263 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   case $MAGIC_CMD in
7267 [\\/*] |  ?:[\\/]*)
7268   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7269   ;;
7270 *)
7271   lt_save_MAGIC_CMD="$MAGIC_CMD"
7272   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7273   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7274   for ac_dir in $ac_dummy; do
7275     IFS="$lt_save_ifs"
7276     test -z "$ac_dir" && ac_dir=.
7277     if test -f $ac_dir/${ac_tool_prefix}file; then
7278       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7279       if test -n "$file_magic_test_file"; then
7280         case $deplibs_check_method in
7281         "file_magic "*)
7282           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7283           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7284           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7285             $EGREP "$file_magic_regex" > /dev/null; then
7286             :
7287           else
7288             cat <<EOF 1>&2
7289
7290 *** Warning: the command libtool uses to detect shared libraries,
7291 *** $file_magic_cmd, produces output that libtool cannot recognize.
7292 *** The result is that libtool may fail to recognize shared libraries
7293 *** as such.  This will affect the creation of libtool libraries that
7294 *** depend on shared libraries, but programs linked with such libtool
7295 *** libraries will work regardless of this problem.  Nevertheless, you
7296 *** may want to report the problem to your system manager and/or to
7297 *** bug-libtool@gnu.org
7298
7299 EOF
7300           fi ;;
7301         esac
7302       fi
7303       break
7304     fi
7305   done
7306   IFS="$lt_save_ifs"
7307   MAGIC_CMD="$lt_save_MAGIC_CMD"
7308   ;;
7309 esac
7310 fi
7311
7312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7313 if test -n "$MAGIC_CMD"; then
7314   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7315 echo "${ECHO_T}$MAGIC_CMD" >&6
7316 else
7317   echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6
7319 fi
7320
7321 if test -z "$lt_cv_path_MAGIC_CMD"; then
7322   if test -n "$ac_tool_prefix"; then
7323     echo "$as_me:$LINENO: checking for file" >&5
7324 echo $ECHO_N "checking for file... $ECHO_C" >&6
7325 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7326   echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328   case $MAGIC_CMD in
7329 [\\/*] |  ?:[\\/]*)
7330   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7331   ;;
7332 *)
7333   lt_save_MAGIC_CMD="$MAGIC_CMD"
7334   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7335   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7336   for ac_dir in $ac_dummy; do
7337     IFS="$lt_save_ifs"
7338     test -z "$ac_dir" && ac_dir=.
7339     if test -f $ac_dir/file; then
7340       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7341       if test -n "$file_magic_test_file"; then
7342         case $deplibs_check_method in
7343         "file_magic "*)
7344           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7345           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7346           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7347             $EGREP "$file_magic_regex" > /dev/null; then
7348             :
7349           else
7350             cat <<EOF 1>&2
7351
7352 *** Warning: the command libtool uses to detect shared libraries,
7353 *** $file_magic_cmd, produces output that libtool cannot recognize.
7354 *** The result is that libtool may fail to recognize shared libraries
7355 *** as such.  This will affect the creation of libtool libraries that
7356 *** depend on shared libraries, but programs linked with such libtool
7357 *** libraries will work regardless of this problem.  Nevertheless, you
7358 *** may want to report the problem to your system manager and/or to
7359 *** bug-libtool@gnu.org
7360
7361 EOF
7362           fi ;;
7363         esac
7364       fi
7365       break
7366     fi
7367   done
7368   IFS="$lt_save_ifs"
7369   MAGIC_CMD="$lt_save_MAGIC_CMD"
7370   ;;
7371 esac
7372 fi
7373
7374 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7375 if test -n "$MAGIC_CMD"; then
7376   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7377 echo "${ECHO_T}$MAGIC_CMD" >&6
7378 else
7379   echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6
7381 fi
7382
7383   else
7384     MAGIC_CMD=:
7385   fi
7386 fi
7387
7388   fi
7389   ;;
7390 esac
7391
7392 enable_dlopen=yes
7393 enable_win32_dll=yes
7394
7395 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7396 if test "${enable_libtool_lock+set}" = set; then
7397   enableval="$enable_libtool_lock"
7398
7399 fi;
7400 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7401
7402
7403 # Check whether --with-pic or --without-pic was given.
7404 if test "${with_pic+set}" = set; then
7405   withval="$with_pic"
7406   pic_mode="$withval"
7407 else
7408   pic_mode=default
7409 fi;
7410 test -z "$pic_mode" && pic_mode=default
7411
7412 # Use C for the default configuration in the libtool script
7413 tagname=
7414 lt_save_CC="$CC"
7415 ac_ext=c
7416 ac_cpp='$CPP $CPPFLAGS'
7417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7420
7421
7422 # Source file extension for C test sources.
7423 ac_ext=c
7424
7425 # Object file extension for compiled C test sources.
7426 objext=o
7427 objext=$objext
7428
7429 # Code to be used in simple compile tests
7430 lt_simple_compile_test_code="int some_variable = 0;\n"
7431
7432 # Code to be used in simple link tests
7433 lt_simple_link_test_code='int main(){return(0);}\n'
7434
7435
7436 # If no C compiler was specified, use CC.
7437 LTCC=${LTCC-"$CC"}
7438
7439 # Allow CC to be a program name with arguments.
7440 compiler=$CC
7441
7442
7443 # save warnings/boilerplate of simple test code
7444 ac_outfile=conftest.$ac_objext
7445 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7446 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7447 _lt_compiler_boilerplate=`cat conftest.err`
7448 $rm conftest*
7449
7450 ac_outfile=conftest.$ac_objext
7451 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7452 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7453 _lt_linker_boilerplate=`cat conftest.err`
7454 $rm conftest*
7455
7456
7457 #
7458 # Check for any special shared library compilation flags.
7459 #
7460 lt_prog_cc_shlib=
7461 if test "$GCC" = no; then
7462   case $host_os in
7463   sco3.2v5*)
7464     lt_prog_cc_shlib='-belf'
7465     ;;
7466   esac
7467 fi
7468 if test -n "$lt_prog_cc_shlib"; then
7469   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7470 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7471   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7472   else
7473     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7474 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7475     lt_cv_prog_cc_can_build_shared=no
7476   fi
7477 fi
7478
7479
7480 #
7481 # Check to make sure the static flag actually works.
7482 #
7483 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7484 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7485 if test "${lt_prog_compiler_static_works+set}" = set; then
7486   echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488   lt_prog_compiler_static_works=no
7489    save_LDFLAGS="$LDFLAGS"
7490    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7491    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7492    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7493      # The linker can only warn and ignore the option if not recognized
7494      # So say no if there are warnings
7495      if test -s conftest.err; then
7496        # Append any errors to the config.log.
7497        cat conftest.err 1>&5
7498        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7499        $SED '/^$/d' conftest.err >conftest.er2
7500        if diff conftest.exp conftest.er2 >/dev/null; then
7501          lt_prog_compiler_static_works=yes
7502        fi
7503      else
7504        lt_prog_compiler_static_works=yes
7505      fi
7506    fi
7507    $rm conftest*
7508    LDFLAGS="$save_LDFLAGS"
7509
7510 fi
7511 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7512 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7513
7514 if test x"$lt_prog_compiler_static_works" = xyes; then
7515     :
7516 else
7517     lt_prog_compiler_static=
7518 fi
7519
7520
7521
7522
7523 lt_prog_compiler_no_builtin_flag=
7524
7525 if test "$GCC" = yes; then
7526   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7527
7528
7529 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7530 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7531 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7532   echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534   lt_cv_prog_compiler_rtti_exceptions=no
7535   ac_outfile=conftest.$ac_objext
7536    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7537    lt_compiler_flag="-fno-rtti -fno-exceptions"
7538    # Insert the option either (1) after the last *FLAGS variable, or
7539    # (2) before a word containing "conftest.", or (3) at the end.
7540    # Note that $ac_compile itself does not contain backslashes and begins
7541    # with a dollar sign (not a hyphen), so the echo should work correctly.
7542    # The option is referenced via a variable to avoid confusing sed.
7543    lt_compile=`echo "$ac_compile" | $SED \
7544    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7545    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7546    -e 's:$: $lt_compiler_flag:'`
7547    (eval echo "\"\$as_me:7547: $lt_compile\"" >&5)
7548    (eval "$lt_compile" 2>conftest.err)
7549    ac_status=$?
7550    cat conftest.err >&5
7551    echo "$as_me:7551: \$? = $ac_status" >&5
7552    if (exit $ac_status) && test -s "$ac_outfile"; then
7553      # The compiler can only warn and ignore the option if not recognized
7554      # So say no if there are warnings other than the usual output.
7555      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7556      $SED '/^$/d' conftest.err >conftest.er2
7557      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7558        lt_cv_prog_compiler_rtti_exceptions=yes
7559      fi
7560    fi
7561    $rm conftest*
7562
7563 fi
7564 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7565 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7566
7567 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7568     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7569 else
7570     :
7571 fi
7572
7573 fi
7574
7575 lt_prog_compiler_wl=
7576 lt_prog_compiler_pic=
7577 lt_prog_compiler_static=
7578
7579 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7580 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7581
7582   if test "$GCC" = yes; then
7583     lt_prog_compiler_wl='-Wl,'
7584     lt_prog_compiler_static='-static'
7585
7586     case $host_os in
7587       aix*)
7588       # All AIX code is PIC.
7589       if test "$host_cpu" = ia64; then
7590         # AIX 5 now supports IA64 processor
7591         lt_prog_compiler_static='-Bstatic'
7592       fi
7593       ;;
7594
7595     amigaos*)
7596       # FIXME: we need at least 68020 code to build shared libraries, but
7597       # adding the `-m68020' flag to GCC prevents building anything better,
7598       # like `-m68040'.
7599       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7600       ;;
7601
7602     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7603       # PIC is the default for these OSes.
7604       ;;
7605
7606     mingw* | pw32* | os2*)
7607       # This hack is so that the source file can tell whether it is being
7608       # built for inclusion in a dll (and should export symbols for example).
7609       lt_prog_compiler_pic='-DDLL_EXPORT'
7610       ;;
7611
7612     darwin* | rhapsody*)
7613       # PIC is the default on this platform
7614       # Common symbols not allowed in MH_DYLIB files
7615       lt_prog_compiler_pic='-fno-common'
7616       ;;
7617
7618     msdosdjgpp*)
7619       # Just because we use GCC doesn't mean we suddenly get shared libraries
7620       # on systems that don't support them.
7621       lt_prog_compiler_can_build_shared=no
7622       enable_shared=no
7623       ;;
7624
7625     sysv4*MP*)
7626       if test -d /usr/nec; then
7627         lt_prog_compiler_pic=-Kconform_pic
7628       fi
7629       ;;
7630
7631     hpux*)
7632       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7633       # not for PA HP-UX.
7634       case $host_cpu in
7635       hppa*64*|ia64*)
7636         # +Z the default
7637         ;;
7638       *)
7639         lt_prog_compiler_pic='-fPIC'
7640         ;;
7641       esac
7642       ;;
7643
7644     *)
7645       lt_prog_compiler_pic='-fPIC'
7646       ;;
7647     esac
7648   else
7649     # PORTME Check for flag to pass linker flags through the system compiler.
7650     case $host_os in
7651     aix*)
7652       lt_prog_compiler_wl='-Wl,'
7653       if test "$host_cpu" = ia64; then
7654         # AIX 5 now supports IA64 processor
7655         lt_prog_compiler_static='-Bstatic'
7656       else
7657         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7658       fi
7659       ;;
7660       darwin*)
7661         # PIC is the default on this platform
7662         # Common symbols not allowed in MH_DYLIB files
7663        case $cc_basename in
7664          xlc*)
7665          lt_prog_compiler_pic='-qnocommon'
7666          lt_prog_compiler_wl='-Wl,'
7667          ;;
7668        esac
7669        ;;
7670
7671     mingw* | pw32* | os2*)
7672       # This hack is so that the source file can tell whether it is being
7673       # built for inclusion in a dll (and should export symbols for example).
7674       lt_prog_compiler_pic='-DDLL_EXPORT'
7675       ;;
7676
7677     hpux9* | hpux10* | hpux11*)
7678       lt_prog_compiler_wl='-Wl,'
7679       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7680       # not for PA HP-UX.
7681       case $host_cpu in
7682       hppa*64*|ia64*)
7683         # +Z the default
7684         ;;
7685       *)
7686         lt_prog_compiler_pic='+Z'
7687         ;;
7688       esac
7689       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7690       lt_prog_compiler_static='${wl}-a ${wl}archive'
7691       ;;
7692
7693     irix5* | irix6* | nonstopux*)
7694       lt_prog_compiler_wl='-Wl,'
7695       # PIC (with -KPIC) is the default.
7696       lt_prog_compiler_static='-non_shared'
7697       ;;
7698
7699     newsos6)
7700       lt_prog_compiler_pic='-KPIC'
7701       lt_prog_compiler_static='-Bstatic'
7702       ;;
7703
7704     linux*)
7705       case $cc_basename in
7706       icc* | ecc*)
7707         lt_prog_compiler_wl='-Wl,'
7708         lt_prog_compiler_pic='-KPIC'
7709         lt_prog_compiler_static='-static'
7710         ;;
7711       pgcc* | pgf77* | pgf90* | pgf95*)
7712         # Portland Group compilers (*not* the Pentium gcc compiler,
7713         # which looks to be a dead project)
7714         lt_prog_compiler_wl='-Wl,'
7715         lt_prog_compiler_pic='-fpic'
7716         lt_prog_compiler_static='-Bstatic'
7717         ;;
7718       ccc*)
7719         lt_prog_compiler_wl='-Wl,'
7720         # All Alpha code is PIC.
7721         lt_prog_compiler_static='-non_shared'
7722         ;;
7723       esac
7724       ;;
7725
7726     osf3* | osf4* | osf5*)
7727       lt_prog_compiler_wl='-Wl,'
7728       # All OSF/1 code is PIC.
7729       lt_prog_compiler_static='-non_shared'
7730       ;;
7731
7732     sco3.2v5*)
7733       lt_prog_compiler_pic='-Kpic'
7734       lt_prog_compiler_static='-dn'
7735       ;;
7736
7737     solaris*)
7738       lt_prog_compiler_pic='-KPIC'
7739       lt_prog_compiler_static='-Bstatic'
7740       case $cc_basename in
7741       f77* | f90* | f95*)
7742         lt_prog_compiler_wl='-Qoption ld ';;
7743       *)
7744         lt_prog_compiler_wl='-Wl,';;
7745       esac
7746       ;;
7747
7748     sunos4*)
7749       lt_prog_compiler_wl='-Qoption ld '
7750       lt_prog_compiler_pic='-PIC'
7751       lt_prog_compiler_static='-Bstatic'
7752       ;;
7753
7754     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7755       lt_prog_compiler_wl='-Wl,'
7756       lt_prog_compiler_pic='-KPIC'
7757       lt_prog_compiler_static='-Bstatic'
7758       ;;
7759
7760     sysv4*MP*)
7761       if test -d /usr/nec ;then
7762         lt_prog_compiler_pic='-Kconform_pic'
7763         lt_prog_compiler_static='-Bstatic'
7764       fi
7765       ;;
7766
7767     unicos*)
7768       lt_prog_compiler_wl='-Wl,'
7769       lt_prog_compiler_can_build_shared=no
7770       ;;
7771
7772     uts4*)
7773       lt_prog_compiler_pic='-pic'
7774       lt_prog_compiler_static='-Bstatic'
7775       ;;
7776
7777     *)
7778       lt_prog_compiler_can_build_shared=no
7779       ;;
7780     esac
7781   fi
7782
7783 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7784 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7785
7786 #
7787 # Check to make sure the PIC flag actually works.
7788 #
7789 if test -n "$lt_prog_compiler_pic"; then
7790
7791 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7792 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7793 if test "${lt_prog_compiler_pic_works+set}" = set; then
7794   echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796   lt_prog_compiler_pic_works=no
7797   ac_outfile=conftest.$ac_objext
7798    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7799    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7800    # Insert the option either (1) after the last *FLAGS variable, or
7801    # (2) before a word containing "conftest.", or (3) at the end.
7802    # Note that $ac_compile itself does not contain backslashes and begins
7803    # with a dollar sign (not a hyphen), so the echo should work correctly.
7804    # The option is referenced via a variable to avoid confusing sed.
7805    lt_compile=`echo "$ac_compile" | $SED \
7806    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7807    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7808    -e 's:$: $lt_compiler_flag:'`
7809    (eval echo "\"\$as_me:7809: $lt_compile\"" >&5)
7810    (eval "$lt_compile" 2>conftest.err)
7811    ac_status=$?
7812    cat conftest.err >&5
7813    echo "$as_me:7813: \$? = $ac_status" >&5
7814    if (exit $ac_status) && test -s "$ac_outfile"; then
7815      # The compiler can only warn and ignore the option if not recognized
7816      # So say no if there are warnings other than the usual output.
7817      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7818      $SED '/^$/d' conftest.err >conftest.er2
7819      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7820        lt_prog_compiler_pic_works=yes
7821      fi
7822    fi
7823    $rm conftest*
7824
7825 fi
7826 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7827 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7828
7829 if test x"$lt_prog_compiler_pic_works" = xyes; then
7830     case $lt_prog_compiler_pic in
7831      "" | " "*) ;;
7832      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7833      esac
7834 else
7835     lt_prog_compiler_pic=
7836      lt_prog_compiler_can_build_shared=no
7837 fi
7838
7839 fi
7840 case $host_os in
7841   # For platforms which do not support PIC, -DPIC is meaningless:
7842   *djgpp*)
7843     lt_prog_compiler_pic=
7844     ;;
7845   *)
7846     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7847     ;;
7848 esac
7849
7850 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7851 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7852 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7853   echo $ECHO_N "(cached) $ECHO_C" >&6
7854 else
7855   lt_cv_prog_compiler_c_o=no
7856    $rm -r conftest 2>/dev/null
7857    mkdir conftest
7858    cd conftest
7859    mkdir out
7860    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7861
7862    lt_compiler_flag="-o out/conftest2.$ac_objext"
7863    # Insert the option either (1) after the last *FLAGS variable, or
7864    # (2) before a word containing "conftest.", or (3) at the end.
7865    # Note that $ac_compile itself does not contain backslashes and begins
7866    # with a dollar sign (not a hyphen), so the echo should work correctly.
7867    lt_compile=`echo "$ac_compile" | $SED \
7868    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7869    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7870    -e 's:$: $lt_compiler_flag:'`
7871    (eval echo "\"\$as_me:7871: $lt_compile\"" >&5)
7872    (eval "$lt_compile" 2>out/conftest.err)
7873    ac_status=$?
7874    cat out/conftest.err >&5
7875    echo "$as_me:7875: \$? = $ac_status" >&5
7876    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7877    then
7878      # The compiler can only warn and ignore the option if not recognized
7879      # So say no if there are warnings
7880      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7881      $SED '/^$/d' out/conftest.err >out/conftest.er2
7882      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7883        lt_cv_prog_compiler_c_o=yes
7884      fi
7885    fi
7886    chmod u+w . 2>&5
7887    $rm conftest*
7888    # SGI C++ compiler will create directory out/ii_files/ for
7889    # template instantiation
7890    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7891    $rm out/* && rmdir out
7892    cd ..
7893    rmdir conftest
7894    $rm conftest*
7895
7896 fi
7897 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7898 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7899
7900
7901 hard_links="nottested"
7902 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7903   # do not overwrite the value of need_locks provided by the user
7904   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7905 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7906   hard_links=yes
7907   $rm conftest*
7908   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7909   touch conftest.a
7910   ln conftest.a conftest.b 2>&5 || hard_links=no
7911   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7912   echo "$as_me:$LINENO: result: $hard_links" >&5
7913 echo "${ECHO_T}$hard_links" >&6
7914   if test "$hard_links" = no; then
7915     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7916 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7917     need_locks=warn
7918   fi
7919 else
7920   need_locks=no
7921 fi
7922
7923 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7924 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7925
7926   runpath_var=
7927   allow_undefined_flag=
7928   enable_shared_with_static_runtimes=no
7929   archive_cmds=
7930   archive_expsym_cmds=
7931   old_archive_From_new_cmds=
7932   old_archive_from_expsyms_cmds=
7933   export_dynamic_flag_spec=
7934   whole_archive_flag_spec=
7935   thread_safe_flag_spec=
7936   hardcode_libdir_flag_spec=
7937   hardcode_libdir_flag_spec_ld=
7938   hardcode_libdir_separator=
7939   hardcode_direct=no
7940   hardcode_minus_L=no
7941   hardcode_shlibpath_var=unsupported
7942   link_all_deplibs=unknown
7943   hardcode_automatic=no
7944   module_cmds=
7945   module_expsym_cmds=
7946   always_export_symbols=no
7947   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7948   # include_expsyms should be a list of space-separated symbols to be *always*
7949   # included in the symbol list
7950   include_expsyms=
7951   # exclude_expsyms can be an extended regexp of symbols to exclude
7952   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7953   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7954   # as well as any symbol that contains `d'.
7955   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7956   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7957   # platforms (ab)use it in PIC code, but their linkers get confused if
7958   # the symbol is explicitly referenced.  Since portable code cannot
7959   # rely on this symbol name, it's probably fine to never include it in
7960   # preloaded symbol tables.
7961   extract_expsyms_cmds=
7962   # Just being paranoid about ensuring that cc_basename is set.
7963   for cc_temp in $compiler""; do
7964   case $cc_temp in
7965     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7966     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7967     \-*) ;;
7968     *) break;;
7969   esac
7970 done
7971 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7972
7973   case $host_os in
7974   cygwin* | mingw* | pw32*)
7975     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7976     # When not using gcc, we currently assume that we are using
7977     # Microsoft Visual C++.
7978     if test "$GCC" != yes; then
7979       with_gnu_ld=no
7980     fi
7981     ;;
7982   openbsd*)
7983     with_gnu_ld=no
7984     ;;
7985   esac
7986
7987   ld_shlibs=yes
7988   if test "$with_gnu_ld" = yes; then
7989     # If archive_cmds runs LD, not CC, wlarc should be empty
7990     wlarc='${wl}'
7991
7992     # Set some defaults for GNU ld with shared library support. These
7993     # are reset later if shared libraries are not supported. Putting them
7994     # here allows them to be overridden if necessary.
7995     runpath_var=LD_RUN_PATH
7996     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7997     export_dynamic_flag_spec='${wl}--export-dynamic'
7998     # ancient GNU ld didn't support --whole-archive et. al.
7999     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8000         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8001       else
8002         whole_archive_flag_spec=
8003     fi
8004     supports_anon_versioning=no
8005     case `$LD -v 2>/dev/null` in
8006       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8007       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8008       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8009       *\ 2.11.*) ;; # other 2.11 versions
8010       *) supports_anon_versioning=yes ;;
8011     esac
8012
8013     # See if GNU ld supports shared libraries.
8014     case $host_os in
8015     aix3* | aix4* | aix5*)
8016       # On AIX/PPC, the GNU linker is very broken
8017       if test "$host_cpu" != ia64; then
8018         ld_shlibs=no
8019         cat <<EOF 1>&2
8020
8021 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8022 *** to be unable to reliably create shared libraries on AIX.
8023 *** Therefore, libtool is disabling shared libraries support.  If you
8024 *** really care for shared libraries, you may want to modify your PATH
8025 *** so that a non-GNU linker is found, and then restart.
8026
8027 EOF
8028       fi
8029       ;;
8030
8031     amigaos*)
8032       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)'
8033       hardcode_libdir_flag_spec='-L$libdir'
8034       hardcode_minus_L=yes
8035
8036       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8037       # that the semantics of dynamic libraries on AmigaOS, at least up
8038       # to version 4, is to share data among multiple programs linked
8039       # with the same dynamic library.  Since this doesn't match the
8040       # behavior of shared libraries on other platforms, we can't use
8041       # them.
8042       ld_shlibs=no
8043       ;;
8044
8045     beos*)
8046       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8047         allow_undefined_flag=unsupported
8048         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8049         # support --undefined.  This deserves some investigation.  FIXME
8050         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8051       else
8052         ld_shlibs=no
8053       fi
8054       ;;
8055
8056     cygwin* | mingw* | pw32*)
8057       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8058       # as there is no search path for DLLs.
8059       hardcode_libdir_flag_spec='-L$libdir'
8060       allow_undefined_flag=unsupported
8061       always_export_symbols=no
8062       enable_shared_with_static_runtimes=yes
8063       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8064
8065       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8066         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8067         # If the export-symbols file already is a .def file (1st line
8068         # is EXPORTS), use it as is; otherwise, prepend...
8069         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8070           cp $export_symbols $output_objdir/$soname.def;
8071         else
8072           echo EXPORTS > $output_objdir/$soname.def;
8073           cat $export_symbols >> $output_objdir/$soname.def;
8074         fi~
8075         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8076       else
8077         ld_shlibs=no
8078       fi
8079       ;;
8080
8081     linux*)
8082       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8083         tmp_addflag=
8084         case $cc_basename,$host_cpu in
8085         pgcc*)                          # Portland Group C compiler
8086           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'
8087           tmp_addflag=' $pic_flag'
8088           ;;
8089         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8090           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'
8091           tmp_addflag=' $pic_flag -Mnomain' ;;
8092         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8093           tmp_addflag=' -i_dynamic' ;;
8094         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8095           tmp_addflag=' -i_dynamic -nofor_main' ;;
8096         ifc* | ifort*)                  # Intel Fortran compiler
8097           tmp_addflag=' -nofor_main' ;;
8098         esac
8099         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8100
8101         if test $supports_anon_versioning = yes; then
8102           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8103   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8104   $echo "local: *; };" >> $output_objdir/$libname.ver~
8105           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8106         fi
8107       else
8108         ld_shlibs=no
8109       fi
8110       ;;
8111
8112     netbsd*)
8113       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8114         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8115         wlarc=
8116       else
8117         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8118         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8119       fi
8120       ;;
8121
8122     solaris* | sysv5*)
8123       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8124         ld_shlibs=no
8125         cat <<EOF 1>&2
8126
8127 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8128 *** create shared libraries on Solaris systems.  Therefore, libtool
8129 *** is disabling shared libraries support.  We urge you to upgrade GNU
8130 *** binutils to release 2.9.1 or newer.  Another option is to modify
8131 *** your PATH or compiler configuration so that the native linker is
8132 *** used, and then restart.
8133
8134 EOF
8135       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8136         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8137         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8138       else
8139         ld_shlibs=no
8140       fi
8141       ;;
8142
8143     sunos4*)
8144       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8145       wlarc=
8146       hardcode_direct=yes
8147       hardcode_shlibpath_var=no
8148       ;;
8149
8150     *)
8151       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8152         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8153         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8154       else
8155         ld_shlibs=no
8156       fi
8157       ;;
8158     esac
8159
8160     if test "$ld_shlibs" = no; then
8161       runpath_var=
8162       hardcode_libdir_flag_spec=
8163       export_dynamic_flag_spec=
8164       whole_archive_flag_spec=
8165     fi
8166   else
8167     # PORTME fill in a description of your system's linker (not GNU ld)
8168     case $host_os in
8169     aix3*)
8170       allow_undefined_flag=unsupported
8171       always_export_symbols=yes
8172       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'
8173       # Note: this linker hardcodes the directories in LIBPATH if there
8174       # are no directories specified by -L.
8175       hardcode_minus_L=yes
8176       if test "$GCC" = yes && test -z "$link_static_flag"; then
8177         # Neither direct hardcoding nor static linking is supported with a
8178         # broken collect2.
8179         hardcode_direct=unsupported
8180       fi
8181       ;;
8182
8183     aix4* | aix5*)
8184       if test "$host_cpu" = ia64; then
8185         # On IA64, the linker does run time linking by default, so we don't
8186         # have to do anything special.
8187         aix_use_runtimelinking=no
8188         exp_sym_flag='-Bexport'
8189         no_entry_flag=""
8190       else
8191         # If we're using GNU nm, then we don't want the "-C" option.
8192         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8193         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8194           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'
8195         else
8196           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'
8197         fi
8198         aix_use_runtimelinking=no
8199
8200         # Test if we are trying to use run time linking or normal
8201         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8202         # need to do runtime linking.
8203         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8204           for ld_flag in $LDFLAGS; do
8205           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8206             aix_use_runtimelinking=yes
8207             break
8208           fi
8209           done
8210         esac
8211
8212         exp_sym_flag='-bexport'
8213         no_entry_flag='-bnoentry'
8214       fi
8215
8216       # When large executables or shared objects are built, AIX ld can
8217       # have problems creating the table of contents.  If linking a library
8218       # or program results in "error TOC overflow" add -mminimal-toc to
8219       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8220       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8221
8222       archive_cmds=''
8223       hardcode_direct=yes
8224       hardcode_libdir_separator=':'
8225       link_all_deplibs=yes
8226
8227       if test "$GCC" = yes; then
8228         case $host_os in aix4.[012]|aix4.[012].*)
8229         # We only want to do this on AIX 4.2 and lower, the check
8230         # below for broken collect2 doesn't work under 4.3+
8231           collect2name=`${CC} -print-prog-name=collect2`
8232           if test -f "$collect2name" && \
8233            strings "$collect2name" | grep resolve_lib_name >/dev/null
8234           then
8235           # We have reworked collect2
8236           hardcode_direct=yes
8237           else
8238           # We have old collect2
8239           hardcode_direct=unsupported
8240           # It fails to find uninstalled libraries when the uninstalled
8241           # path is not listed in the libpath.  Setting hardcode_minus_L
8242           # to unsupported forces relinking
8243           hardcode_minus_L=yes
8244           hardcode_libdir_flag_spec='-L$libdir'
8245           hardcode_libdir_separator=
8246           fi
8247         esac
8248         shared_flag='-shared'
8249         if test "$aix_use_runtimelinking" = yes; then
8250           shared_flag="$shared_flag "'${wl}-G'
8251         fi
8252       else
8253         # not using gcc
8254         if test "$host_cpu" = ia64; then
8255         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8256         # chokes on -Wl,-G. The following line is correct:
8257           shared_flag='-G'
8258         else
8259         if test "$aix_use_runtimelinking" = yes; then
8260             shared_flag='${wl}-G'
8261           else
8262             shared_flag='${wl}-bM:SRE'
8263         fi
8264         fi
8265       fi
8266
8267       # It seems that -bexpall does not export symbols beginning with
8268       # underscore (_), so it is better to generate a list of symbols to export.
8269       always_export_symbols=yes
8270       if test "$aix_use_runtimelinking" = yes; then
8271         # Warning - without using the other runtime loading flags (-brtl),
8272         # -berok will link without error, but may produce a broken library.
8273         allow_undefined_flag='-berok'
8274        # Determine the default libpath from the value encoded in an empty executable.
8275        cat >conftest.$ac_ext <<_ACEOF
8276 /* confdefs.h.  */
8277 _ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h.  */
8281
8282 int
8283 main ()
8284 {
8285
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 rm -f conftest.$ac_objext conftest$ac_exeext
8291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8292   (eval $ac_link) 2>conftest.er1
8293   ac_status=$?
8294   grep -v '^ *+' conftest.er1 >conftest.err
8295   rm -f conftest.er1
8296   cat conftest.err >&5
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); } &&
8299          { ac_try='test -z "$ac_c_werror_flag"
8300                          || test ! -s conftest.err'
8301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302   (eval $ac_try) 2>&5
8303   ac_status=$?
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); }; } &&
8306          { ac_try='test -s conftest$ac_exeext'
8307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308   (eval $ac_try) 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; }; then
8312
8313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8314 }'`
8315 # Check for a 64-bit object if we didn't find anything.
8316 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; }
8317 }'`; fi
8318 else
8319   echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322 fi
8323 rm -f conftest.err conftest.$ac_objext \
8324       conftest$ac_exeext conftest.$ac_ext
8325 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8326
8327        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8328         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"
8329        else
8330         if test "$host_cpu" = ia64; then
8331           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8332           allow_undefined_flag="-z nodefs"
8333           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"
8334         else
8335          # Determine the default libpath from the value encoded in an empty executable.
8336          cat >conftest.$ac_ext <<_ACEOF
8337 /* confdefs.h.  */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h.  */
8342
8343 int
8344 main ()
8345 {
8346
8347   ;
8348   return 0;
8349 }
8350 _ACEOF
8351 rm -f conftest.$ac_objext conftest$ac_exeext
8352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8353   (eval $ac_link) 2>conftest.er1
8354   ac_status=$?
8355   grep -v '^ *+' conftest.er1 >conftest.err
8356   rm -f conftest.er1
8357   cat conftest.err >&5
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); } &&
8360          { ac_try='test -z "$ac_c_werror_flag"
8361                          || test ! -s conftest.err'
8362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363   (eval $ac_try) 2>&5
8364   ac_status=$?
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); }; } &&
8367          { ac_try='test -s conftest$ac_exeext'
8368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369   (eval $ac_try) 2>&5
8370   ac_status=$?
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); }; }; then
8373
8374 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8375 }'`
8376 # Check for a 64-bit object if we didn't find anything.
8377 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; }
8378 }'`; fi
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 fi
8384 rm -f conftest.err conftest.$ac_objext \
8385       conftest$ac_exeext conftest.$ac_ext
8386 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8387
8388          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8389           # Warning - without using the other run time loading flags,
8390           # -berok will link without error, but may produce a broken library.
8391           no_undefined_flag=' ${wl}-bernotok'
8392           allow_undefined_flag=' ${wl}-berok'
8393           # -bexpall does not export symbols beginning with underscore (_)
8394           always_export_symbols=yes
8395           # Exported symbols can be pulled into shared objects from archives
8396           whole_archive_flag_spec=' '
8397           archive_cmds_need_lc=yes
8398           # This is similar to how AIX traditionally builds its shared libraries.
8399           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'
8400         fi
8401       fi
8402       ;;
8403
8404     amigaos*)
8405       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)'
8406       hardcode_libdir_flag_spec='-L$libdir'
8407       hardcode_minus_L=yes
8408       # see comment about different semantics on the GNU ld section
8409       ld_shlibs=no
8410       ;;
8411
8412     bsdi[45]*)
8413       export_dynamic_flag_spec=-rdynamic
8414       ;;
8415
8416     cygwin* | mingw* | pw32*)
8417       # When not using gcc, we currently assume that we are using
8418       # Microsoft Visual C++.
8419       # hardcode_libdir_flag_spec is actually meaningless, as there is
8420       # no search path for DLLs.
8421       hardcode_libdir_flag_spec=' '
8422       allow_undefined_flag=unsupported
8423       # Tell ltmain to make .lib files, not .a files.
8424       libext=lib
8425       # Tell ltmain to make .dll files, not .so files.
8426       shrext_cmds=".dll"
8427       # FIXME: Setting linknames here is a bad hack.
8428       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8429       # The linker will automatically build a .lib file if we build a DLL.
8430       old_archive_From_new_cmds='true'
8431       # FIXME: Should let the user specify the lib program.
8432       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8433       fix_srcfile_path='`cygpath -w "$srcfile"`'
8434       enable_shared_with_static_runtimes=yes
8435       ;;
8436
8437     darwin* | rhapsody*)
8438       case $host_os in
8439         rhapsody* | darwin1.[012])
8440          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8441          ;;
8442        *) # Darwin 1.3 on
8443          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8444            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8445          else
8446            case ${MACOSX_DEPLOYMENT_TARGET} in
8447              10.[012])
8448                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8449                ;;
8450              10.*)
8451                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8452                ;;
8453            esac
8454          fi
8455          ;;
8456       esac
8457       archive_cmds_need_lc=no
8458       hardcode_direct=no
8459       hardcode_automatic=yes
8460       hardcode_shlibpath_var=unsupported
8461       whole_archive_flag_spec=''
8462       link_all_deplibs=yes
8463     if test "$GCC" = yes ; then
8464         output_verbose_link_cmd='echo'
8465         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8466       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8467       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8468       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}'
8469       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}'
8470     else
8471       case $cc_basename in
8472         xlc*)
8473          output_verbose_link_cmd='echo'
8474          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8475          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8476           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8477          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}'
8478           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}'
8479           ;;
8480        *)
8481          ld_shlibs=no
8482           ;;
8483       esac
8484     fi
8485       ;;
8486
8487     dgux*)
8488       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8489       hardcode_libdir_flag_spec='-L$libdir'
8490       hardcode_shlibpath_var=no
8491       ;;
8492
8493     freebsd1*)
8494       ld_shlibs=no
8495       ;;
8496
8497     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8498     # support.  Future versions do this automatically, but an explicit c++rt0.o
8499     # does not break anything, and helps significantly (at the cost of a little
8500     # extra space).
8501     freebsd2.2*)
8502       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8503       hardcode_libdir_flag_spec='-R$libdir'
8504       hardcode_direct=yes
8505       hardcode_shlibpath_var=no
8506       ;;
8507
8508     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8509     freebsd2*)
8510       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8511       hardcode_direct=yes
8512       hardcode_minus_L=yes
8513       hardcode_shlibpath_var=no
8514       ;;
8515
8516     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8517     freebsd* | kfreebsd*-gnu | dragonfly*)
8518       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8519       hardcode_libdir_flag_spec='-R$libdir'
8520       hardcode_direct=yes
8521       hardcode_shlibpath_var=no
8522       ;;
8523
8524     hpux9*)
8525       if test "$GCC" = yes; then
8526         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'
8527       else
8528         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'
8529       fi
8530       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8531       hardcode_libdir_separator=:
8532       hardcode_direct=yes
8533
8534       # hardcode_minus_L: Not really in the search PATH,
8535       # but as the default location of the library.
8536       hardcode_minus_L=yes
8537       export_dynamic_flag_spec='${wl}-E'
8538       ;;
8539
8540     hpux10* | hpux11*)
8541       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8542         case $host_cpu in
8543         hppa*64*|ia64*)
8544           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8545           ;;
8546         *)
8547           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8548           ;;
8549         esac
8550       else
8551         case $host_cpu in
8552         hppa*64*|ia64*)
8553           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8554           ;;
8555         *)
8556           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8557           ;;
8558         esac
8559       fi
8560       if test "$with_gnu_ld" = no; then
8561         case $host_cpu in
8562         hppa*64*)
8563           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8564           hardcode_libdir_flag_spec_ld='+b $libdir'
8565           hardcode_libdir_separator=:
8566           hardcode_direct=no
8567           hardcode_shlibpath_var=no
8568           ;;
8569         ia64*)
8570           hardcode_libdir_flag_spec='-L$libdir'
8571           hardcode_direct=no
8572           hardcode_shlibpath_var=no
8573
8574           # hardcode_minus_L: Not really in the search PATH,
8575           # but as the default location of the library.
8576           hardcode_minus_L=yes
8577           ;;
8578         *)
8579           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8580           hardcode_libdir_separator=:
8581           hardcode_direct=yes
8582           export_dynamic_flag_spec='${wl}-E'
8583
8584           # hardcode_minus_L: Not really in the search PATH,
8585           # but as the default location of the library.
8586           hardcode_minus_L=yes
8587           ;;
8588         esac
8589       fi
8590       ;;
8591
8592     irix5* | irix6* | nonstopux*)
8593       if test "$GCC" = yes; then
8594         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'
8595       else
8596         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'
8597         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8598       fi
8599       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8600       hardcode_libdir_separator=:
8601       link_all_deplibs=yes
8602       ;;
8603
8604     netbsd*)
8605       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8606         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8607       else
8608         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8609       fi
8610       hardcode_libdir_flag_spec='-R$libdir'
8611       hardcode_direct=yes
8612       hardcode_shlibpath_var=no
8613       ;;
8614
8615     newsos6)
8616       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8617       hardcode_direct=yes
8618       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8619       hardcode_libdir_separator=:
8620       hardcode_shlibpath_var=no
8621       ;;
8622
8623     openbsd*)
8624       hardcode_direct=yes
8625       hardcode_shlibpath_var=no
8626       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8627         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8628         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8629         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8630         export_dynamic_flag_spec='${wl}-E'
8631       else
8632        case $host_os in
8633          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8634            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8635            hardcode_libdir_flag_spec='-R$libdir'
8636            ;;
8637          *)
8638            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8639            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8640            ;;
8641        esac
8642       fi
8643       ;;
8644
8645     os2*)
8646       hardcode_libdir_flag_spec='-L$libdir'
8647       hardcode_minus_L=yes
8648       allow_undefined_flag=unsupported
8649       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'
8650       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8651       ;;
8652
8653     osf3*)
8654       if test "$GCC" = yes; then
8655         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8656         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'
8657       else
8658         allow_undefined_flag=' -expect_unresolved \*'
8659         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'
8660       fi
8661       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8662       hardcode_libdir_separator=:
8663       ;;
8664
8665     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8666       if test "$GCC" = yes; then
8667         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8668         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'
8669         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8670       else
8671         allow_undefined_flag=' -expect_unresolved \*'
8672         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'
8673         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8674         $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'
8675
8676         # Both c and cxx compiler support -rpath directly
8677         hardcode_libdir_flag_spec='-rpath $libdir'
8678       fi
8679       hardcode_libdir_separator=:
8680       ;;
8681
8682     sco3.2v5*)
8683       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8684       hardcode_shlibpath_var=no
8685       export_dynamic_flag_spec='${wl}-Bexport'
8686       runpath_var=LD_RUN_PATH
8687       hardcode_runpath_var=yes
8688       ;;
8689
8690     solaris*)
8691       no_undefined_flag=' -z text'
8692       if test "$GCC" = yes; then
8693         wlarc='${wl}'
8694         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8695         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8696           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8697       else
8698         wlarc=''
8699         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8700         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8701         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8702       fi
8703       hardcode_libdir_flag_spec='-R$libdir'
8704       hardcode_shlibpath_var=no
8705       case $host_os in
8706       solaris2.[0-5] | solaris2.[0-5].*) ;;
8707       *)
8708         # The compiler driver will combine linker options so we
8709         # cannot just pass the convience library names through
8710         # without $wl, iff we do not link with $LD.
8711         # Luckily, gcc supports the same syntax we need for Sun Studio.
8712         # Supported since Solaris 2.6 (maybe 2.5.1?)
8713         case $wlarc in
8714         '')
8715           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8716         *)
8717           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' ;;
8718         esac ;;
8719       esac
8720       link_all_deplibs=yes
8721       ;;
8722
8723     sunos4*)
8724       if test "x$host_vendor" = xsequent; then
8725         # Use $CC to link under sequent, because it throws in some extra .o
8726         # files that make .init and .fini sections work.
8727         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8728       else
8729         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8730       fi
8731       hardcode_libdir_flag_spec='-L$libdir'
8732       hardcode_direct=yes
8733       hardcode_minus_L=yes
8734       hardcode_shlibpath_var=no
8735       ;;
8736
8737     sysv4)
8738       case $host_vendor in
8739         sni)
8740           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8741           hardcode_direct=yes # is this really true???
8742         ;;
8743         siemens)
8744           ## LD is ld it makes a PLAMLIB
8745           ## CC just makes a GrossModule.
8746           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8747           reload_cmds='$CC -r -o $output$reload_objs'
8748           hardcode_direct=no
8749         ;;
8750         motorola)
8751           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8752           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8753         ;;
8754       esac
8755       runpath_var='LD_RUN_PATH'
8756       hardcode_shlibpath_var=no
8757       ;;
8758
8759     sysv4.3*)
8760       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8761       hardcode_shlibpath_var=no
8762       export_dynamic_flag_spec='-Bexport'
8763       ;;
8764
8765     sysv4*MP*)
8766       if test -d /usr/nec; then
8767         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8768         hardcode_shlibpath_var=no
8769         runpath_var=LD_RUN_PATH
8770         hardcode_runpath_var=yes
8771         ld_shlibs=yes
8772       fi
8773       ;;
8774
8775     sysv4.2uw2*)
8776       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8777       hardcode_direct=yes
8778       hardcode_minus_L=no
8779       hardcode_shlibpath_var=no
8780       hardcode_runpath_var=yes
8781       runpath_var=LD_RUN_PATH
8782       ;;
8783
8784    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8785       no_undefined_flag='${wl}-z ${wl}text'
8786       if test "$GCC" = yes; then
8787         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8788       else
8789         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8790       fi
8791       runpath_var='LD_RUN_PATH'
8792       hardcode_shlibpath_var=no
8793       ;;
8794
8795     sysv5*)
8796       no_undefined_flag=' -z text'
8797       # $CC -shared without GNU ld will not create a library from C++
8798       # object files and a static libstdc++, better avoid it by now
8799       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8800       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8801                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8802       hardcode_libdir_flag_spec=
8803       hardcode_shlibpath_var=no
8804       runpath_var='LD_RUN_PATH'
8805       ;;
8806
8807     uts4*)
8808       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809       hardcode_libdir_flag_spec='-L$libdir'
8810       hardcode_shlibpath_var=no
8811       ;;
8812
8813     *)
8814       ld_shlibs=no
8815       ;;
8816     esac
8817   fi
8818
8819 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8820 echo "${ECHO_T}$ld_shlibs" >&6
8821 test "$ld_shlibs" = no && can_build_shared=no
8822
8823 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8824 if test "$GCC" = yes; then
8825   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8826 fi
8827
8828 #
8829 # Do we need to explicitly link libc?
8830 #
8831 case "x$archive_cmds_need_lc" in
8832 x|xyes)
8833   # Assume -lc should be added
8834   archive_cmds_need_lc=yes
8835
8836   if test "$enable_shared" = yes && test "$GCC" = yes; then
8837     case $archive_cmds in
8838     *'~'*)
8839       # FIXME: we may have to deal with multi-command sequences.
8840       ;;
8841     '$CC '*)
8842       # Test whether the compiler implicitly links with -lc since on some
8843       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8844       # to ld, don't add -lc before -lgcc.
8845       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8846 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8847       $rm conftest*
8848       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8849
8850       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8851   (eval $ac_compile) 2>&5
8852   ac_status=$?
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); } 2>conftest.err; then
8855         soname=conftest
8856         lib=conftest
8857         libobjs=conftest.$ac_objext
8858         deplibs=
8859         wl=$lt_prog_compiler_wl
8860         compiler_flags=-v
8861         linker_flags=-v
8862         verstring=
8863         output_objdir=.
8864         libname=conftest
8865         lt_save_allow_undefined_flag=$allow_undefined_flag
8866         allow_undefined_flag=
8867         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8868   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8869   ac_status=$?
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); }
8872         then
8873           archive_cmds_need_lc=no
8874         else
8875           archive_cmds_need_lc=yes
8876         fi
8877         allow_undefined_flag=$lt_save_allow_undefined_flag
8878       else
8879         cat conftest.err 1>&5
8880       fi
8881       $rm conftest*
8882       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8883 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8884       ;;
8885     esac
8886   fi
8887   ;;
8888 esac
8889
8890 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8891 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8892 library_names_spec=
8893 libname_spec='lib$name'
8894 soname_spec=
8895 shrext_cmds=".so"
8896 postinstall_cmds=
8897 postuninstall_cmds=
8898 finish_cmds=
8899 finish_eval=
8900 shlibpath_var=
8901 shlibpath_overrides_runpath=unknown
8902 version_type=none
8903 dynamic_linker="$host_os ld.so"
8904 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8905 if test "$GCC" = yes; then
8906   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8907   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8908     # if the path contains ";" then we assume it to be the separator
8909     # otherwise default to the standard path separator (i.e. ":") - it is
8910     # assumed that no part of a normal pathname contains ";" but that should
8911     # okay in the real world where ";" in dirpaths is itself problematic.
8912     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8913   else
8914     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8915   fi
8916 else
8917   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8918 fi
8919 need_lib_prefix=unknown
8920 hardcode_into_libs=no
8921
8922 # when you set need_version to no, make sure it does not cause -set_version
8923 # flags to be left without arguments
8924 need_version=unknown
8925
8926 case $host_os in
8927 aix3*)
8928   version_type=linux
8929   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8930   shlibpath_var=LIBPATH
8931
8932   # AIX 3 has no versioning support, so we append a major version to the name.
8933   soname_spec='${libname}${release}${shared_ext}$major'
8934   ;;
8935
8936 aix4* | aix5*)
8937   version_type=linux
8938   need_lib_prefix=no
8939   need_version=no
8940   hardcode_into_libs=yes
8941   if test "$host_cpu" = ia64; then
8942     # AIX 5 supports IA64
8943     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8944     shlibpath_var=LD_LIBRARY_PATH
8945   else
8946     # With GCC up to 2.95.x, collect2 would create an import file
8947     # for dependence libraries.  The import file would start with
8948     # the line `#! .'.  This would cause the generated library to
8949     # depend on `.', always an invalid library.  This was fixed in
8950     # development snapshots of GCC prior to 3.0.
8951     case $host_os in
8952       aix4 | aix4.[01] | aix4.[01].*)
8953       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8954            echo ' yes '
8955            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8956         :
8957       else
8958         can_build_shared=no
8959       fi
8960       ;;
8961     esac
8962     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8963     # soname into executable. Probably we can add versioning support to
8964     # collect2, so additional links can be useful in future.
8965     if test "$aix_use_runtimelinking" = yes; then
8966       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8967       # instead of lib<name>.a to let people know that these are not
8968       # typical AIX shared libraries.
8969       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8970     else
8971       # We preserve .a as extension for shared libraries through AIX4.2
8972       # and later when we are not doing run time linking.
8973       library_names_spec='${libname}${release}.a $libname.a'
8974       soname_spec='${libname}${release}${shared_ext}$major'
8975     fi
8976     shlibpath_var=LIBPATH
8977   fi
8978   ;;
8979
8980 amigaos*)
8981   library_names_spec='$libname.ixlibrary $libname.a'
8982   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8983   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'
8984   ;;
8985
8986 beos*)
8987   library_names_spec='${libname}${shared_ext}'
8988   dynamic_linker="$host_os ld.so"
8989   shlibpath_var=LIBRARY_PATH
8990   ;;
8991
8992 bsdi[45]*)
8993   version_type=linux
8994   need_version=no
8995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996   soname_spec='${libname}${release}${shared_ext}$major'
8997   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8998   shlibpath_var=LD_LIBRARY_PATH
8999   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9000   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9001   # the default ld.so.conf also contains /usr/contrib/lib and
9002   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9003   # libtool to hard-code these into programs
9004   ;;
9005
9006 cygwin* | mingw* | pw32*)
9007   version_type=windows
9008   shrext_cmds=".dll"
9009   need_version=no
9010   need_lib_prefix=no
9011
9012   case $GCC,$host_os in
9013   yes,cygwin* | yes,mingw* | yes,pw32*)
9014     library_names_spec='$libname.dll.a'
9015     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9016     postinstall_cmds='base_file=`basename \${file}`~
9017       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9018       dldir=$destdir/`dirname \$dlpath`~
9019       test -d \$dldir || mkdir -p \$dldir~
9020       $install_prog $dir/$dlname \$dldir/$dlname~
9021       chmod a+x \$dldir/$dlname'
9022     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9023       dlpath=$dir/\$dldll~
9024        $rm \$dlpath'
9025     shlibpath_overrides_runpath=yes
9026
9027     case $host_os in
9028     cygwin*)
9029       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9030       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9031       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9032       ;;
9033     mingw*)
9034       # MinGW DLLs use traditional 'lib' prefix
9035       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9036       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9037       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9038         # It is most probably a Windows format PATH printed by
9039         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9040         # path with ; separators, and with drive letters. We can handle the
9041         # drive letters (cygwin fileutils understands them), so leave them,
9042         # especially as we might pass files found there to a mingw objdump,
9043         # which wouldn't understand a cygwinified path. Ahh.
9044         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9045       else
9046         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9047       fi
9048       ;;
9049     pw32*)
9050       # pw32 DLLs use 'pw' prefix rather than 'lib'
9051       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9052       ;;
9053     esac
9054     ;;
9055
9056   *)
9057     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9058     ;;
9059   esac
9060   dynamic_linker='Win32 ld.exe'
9061   # FIXME: first we should search . and the directory the executable is in
9062   shlibpath_var=PATH
9063   ;;
9064
9065 darwin* | rhapsody*)
9066   dynamic_linker="$host_os dyld"
9067   version_type=darwin
9068   need_lib_prefix=no
9069   need_version=no
9070   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9071   soname_spec='${libname}${release}${major}$shared_ext'
9072   shlibpath_overrides_runpath=yes
9073   shlibpath_var=DYLD_LIBRARY_PATH
9074   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9075   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9076   if test "$GCC" = yes; then
9077     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"`
9078   else
9079     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9080   fi
9081   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9082   ;;
9083
9084 dgux*)
9085   version_type=linux
9086   need_lib_prefix=no
9087   need_version=no
9088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9089   soname_spec='${libname}${release}${shared_ext}$major'
9090   shlibpath_var=LD_LIBRARY_PATH
9091   ;;
9092
9093 freebsd1*)
9094   dynamic_linker=no
9095   ;;
9096
9097 kfreebsd*-gnu)
9098   version_type=linux
9099   need_lib_prefix=no
9100   need_version=no
9101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9102   soname_spec='${libname}${release}${shared_ext}$major'
9103   shlibpath_var=LD_LIBRARY_PATH
9104   shlibpath_overrides_runpath=no
9105   hardcode_into_libs=yes
9106   dynamic_linker='GNU ld.so'
9107   ;;
9108
9109 freebsd* | dragonfly*)
9110   # DragonFly does not have aout.  When/if they implement a new
9111   # versioning mechanism, adjust this.
9112   if test -x /usr/bin/objformat; then
9113     objformat=`/usr/bin/objformat`
9114   else
9115     case $host_os in
9116     freebsd[123]*) objformat=aout ;;
9117     *) objformat=elf ;;
9118     esac
9119   fi
9120   version_type=freebsd-$objformat
9121   case $version_type in
9122     freebsd-elf*)
9123       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9124       need_version=no
9125       need_lib_prefix=no
9126       ;;
9127     freebsd-*)
9128       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9129       need_version=yes
9130       ;;
9131   esac
9132   shlibpath_var=LD_LIBRARY_PATH
9133   case $host_os in
9134   freebsd2*)
9135     shlibpath_overrides_runpath=yes
9136     ;;
9137   freebsd3.[01]* | freebsdelf3.[01]*)
9138     shlibpath_overrides_runpath=yes
9139     hardcode_into_libs=yes
9140     ;;
9141   *) # from 3.2 on
9142     shlibpath_overrides_runpath=no
9143     hardcode_into_libs=yes
9144     ;;
9145   esac
9146   ;;
9147
9148 gnu*)
9149   version_type=linux
9150   need_lib_prefix=no
9151   need_version=no
9152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9153   soname_spec='${libname}${release}${shared_ext}$major'
9154   shlibpath_var=LD_LIBRARY_PATH
9155   hardcode_into_libs=yes
9156   ;;
9157
9158 hpux9* | hpux10* | hpux11*)
9159   # Give a soname corresponding to the major version so that dld.sl refuses to
9160   # link against other versions.
9161   version_type=sunos
9162   need_lib_prefix=no
9163   need_version=no
9164   case $host_cpu in
9165   ia64*)
9166     shrext_cmds='.so'
9167     hardcode_into_libs=yes
9168     dynamic_linker="$host_os dld.so"
9169     shlibpath_var=LD_LIBRARY_PATH
9170     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172     soname_spec='${libname}${release}${shared_ext}$major'
9173     if test "X$HPUX_IA64_MODE" = X32; then
9174       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9175     else
9176       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9177     fi
9178     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9179     ;;
9180    hppa*64*)
9181      shrext_cmds='.sl'
9182      hardcode_into_libs=yes
9183      dynamic_linker="$host_os dld.sl"
9184      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9185      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9189      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9190      ;;
9191    *)
9192     shrext_cmds='.sl'
9193     dynamic_linker="$host_os dld.sl"
9194     shlibpath_var=SHLIB_PATH
9195     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9196     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9197     soname_spec='${libname}${release}${shared_ext}$major'
9198     ;;
9199   esac
9200   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9201   postinstall_cmds='chmod 555 $lib'
9202   ;;
9203
9204 irix5* | irix6* | nonstopux*)
9205   case $host_os in
9206     nonstopux*) version_type=nonstopux ;;
9207     *)
9208         if test "$lt_cv_prog_gnu_ld" = yes; then
9209                 version_type=linux
9210         else
9211                 version_type=irix
9212         fi ;;
9213   esac
9214   need_lib_prefix=no
9215   need_version=no
9216   soname_spec='${libname}${release}${shared_ext}$major'
9217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9218   case $host_os in
9219   irix5* | nonstopux*)
9220     libsuff= shlibsuff=
9221     ;;
9222   *)
9223     case $LD in # libtool.m4 will add one of these switches to LD
9224     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9225       libsuff= shlibsuff= libmagic=32-bit;;
9226     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9227       libsuff=32 shlibsuff=N32 libmagic=N32;;
9228     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9229       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9230     *) libsuff= shlibsuff= libmagic=never-match;;
9231     esac
9232     ;;
9233   esac
9234   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9235   shlibpath_overrides_runpath=no
9236   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9237   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9238   hardcode_into_libs=yes
9239   ;;
9240
9241 # No shared lib support for Linux oldld, aout, or coff.
9242 linux*oldld* | linux*aout* | linux*coff*)
9243   dynamic_linker=no
9244   ;;
9245
9246 # This must be Linux ELF.
9247 linux*)
9248   version_type=linux
9249   need_lib_prefix=no
9250   need_version=no
9251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9252   soname_spec='${libname}${release}${shared_ext}$major'
9253   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9254   shlibpath_var=LD_LIBRARY_PATH
9255   shlibpath_overrides_runpath=no
9256   # This implies no fast_install, which is unacceptable.
9257   # Some rework will be needed to allow for fast_install
9258   # before this can be enabled.
9259   hardcode_into_libs=yes
9260
9261   # Append ld.so.conf contents to the search path
9262   if test -f /etc/ld.so.conf; then
9263     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' ' '`
9264     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9265   fi
9266
9267   # We used to test for /lib/ld.so.1 and disable shared libraries on
9268   # powerpc, because MkLinux only supported shared libraries with the
9269   # GNU dynamic linker.  Since this was broken with cross compilers,
9270   # most powerpc-linux boxes support dynamic linking these days and
9271   # people can always --disable-shared, the test was removed, and we
9272   # assume the GNU/Linux dynamic linker is in use.
9273   dynamic_linker='GNU/Linux ld.so'
9274   ;;
9275
9276 knetbsd*-gnu)
9277   version_type=linux
9278   need_lib_prefix=no
9279   need_version=no
9280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9281   soname_spec='${libname}${release}${shared_ext}$major'
9282   shlibpath_var=LD_LIBRARY_PATH
9283   shlibpath_overrides_runpath=no
9284   hardcode_into_libs=yes
9285   dynamic_linker='GNU ld.so'
9286   ;;
9287
9288 netbsd*)
9289   version_type=sunos
9290   need_lib_prefix=no
9291   need_version=no
9292   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9294     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9295     dynamic_linker='NetBSD (a.out) ld.so'
9296   else
9297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9298     soname_spec='${libname}${release}${shared_ext}$major'
9299     dynamic_linker='NetBSD ld.elf_so'
9300   fi
9301   shlibpath_var=LD_LIBRARY_PATH
9302   shlibpath_overrides_runpath=yes
9303   hardcode_into_libs=yes
9304   ;;
9305
9306 newsos6)
9307   version_type=linux
9308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309   shlibpath_var=LD_LIBRARY_PATH
9310   shlibpath_overrides_runpath=yes
9311   ;;
9312
9313 nto-qnx*)
9314   version_type=linux
9315   need_lib_prefix=no
9316   need_version=no
9317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9318   soname_spec='${libname}${release}${shared_ext}$major'
9319   shlibpath_var=LD_LIBRARY_PATH
9320   shlibpath_overrides_runpath=yes
9321   ;;
9322
9323 openbsd*)
9324   version_type=sunos
9325   need_lib_prefix=no
9326   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9327   case $host_os in
9328     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9329     *)                         need_version=no  ;;
9330   esac
9331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9332   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9333   shlibpath_var=LD_LIBRARY_PATH
9334   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9335     case $host_os in
9336       openbsd2.[89] | openbsd2.[89].*)
9337         shlibpath_overrides_runpath=no
9338         ;;
9339       *)
9340         shlibpath_overrides_runpath=yes
9341         ;;
9342       esac
9343   else
9344     shlibpath_overrides_runpath=yes
9345   fi
9346   ;;
9347
9348 os2*)
9349   libname_spec='$name'
9350   shrext_cmds=".dll"
9351   need_lib_prefix=no
9352   library_names_spec='$libname${shared_ext} $libname.a'
9353   dynamic_linker='OS/2 ld.exe'
9354   shlibpath_var=LIBPATH
9355   ;;
9356
9357 osf3* | osf4* | osf5*)
9358   version_type=osf
9359   need_lib_prefix=no
9360   need_version=no
9361   soname_spec='${libname}${release}${shared_ext}$major'
9362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363   shlibpath_var=LD_LIBRARY_PATH
9364   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9365   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9366   ;;
9367
9368 sco3.2v5*)
9369   version_type=osf
9370   soname_spec='${libname}${release}${shared_ext}$major'
9371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372   shlibpath_var=LD_LIBRARY_PATH
9373   ;;
9374
9375 solaris*)
9376   version_type=linux
9377   need_lib_prefix=no
9378   need_version=no
9379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9380   soname_spec='${libname}${release}${shared_ext}$major'
9381   shlibpath_var=LD_LIBRARY_PATH
9382   shlibpath_overrides_runpath=yes
9383   hardcode_into_libs=yes
9384   # ldd complains unless libraries are executable
9385   postinstall_cmds='chmod +x $lib'
9386   ;;
9387
9388 sunos4*)
9389   version_type=sunos
9390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9391   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9392   shlibpath_var=LD_LIBRARY_PATH
9393   shlibpath_overrides_runpath=yes
9394   if test "$with_gnu_ld" = yes; then
9395     need_lib_prefix=no
9396   fi
9397   need_version=yes
9398   ;;
9399
9400 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9401   version_type=linux
9402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9403   soname_spec='${libname}${release}${shared_ext}$major'
9404   shlibpath_var=LD_LIBRARY_PATH
9405   case $host_vendor in
9406     sni)
9407       shlibpath_overrides_runpath=no
9408       need_lib_prefix=no
9409       export_dynamic_flag_spec='${wl}-Blargedynsym'
9410       runpath_var=LD_RUN_PATH
9411       ;;
9412     siemens)
9413       need_lib_prefix=no
9414       ;;
9415     motorola)
9416       need_lib_prefix=no
9417       need_version=no
9418       shlibpath_overrides_runpath=no
9419       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9420       ;;
9421   esac
9422   ;;
9423
9424 sysv4*MP*)
9425   if test -d /usr/nec ;then
9426     version_type=linux
9427     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9428     soname_spec='$libname${shared_ext}.$major'
9429     shlibpath_var=LD_LIBRARY_PATH
9430   fi
9431   ;;
9432
9433 uts4*)
9434   version_type=linux
9435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9436   soname_spec='${libname}${release}${shared_ext}$major'
9437   shlibpath_var=LD_LIBRARY_PATH
9438   ;;
9439
9440 *)
9441   dynamic_linker=no
9442   ;;
9443 esac
9444 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9445 echo "${ECHO_T}$dynamic_linker" >&6
9446 test "$dynamic_linker" = no && can_build_shared=no
9447
9448 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9449 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9450 hardcode_action=
9451 if test -n "$hardcode_libdir_flag_spec" || \
9452    test -n "$runpath_var" || \
9453    test "X$hardcode_automatic" = "Xyes" ; then
9454
9455   # We can hardcode non-existant directories.
9456   if test "$hardcode_direct" != no &&
9457      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9458      # have to relink, otherwise we might link with an installed library
9459      # when we should be linking with a yet-to-be-installed one
9460      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9461      test "$hardcode_minus_L" != no; then
9462     # Linking always hardcodes the temporary library directory.
9463     hardcode_action=relink
9464   else
9465     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9466     hardcode_action=immediate
9467   fi
9468 else
9469   # We cannot hardcode anything, or else we can only hardcode existing
9470   # directories.
9471   hardcode_action=unsupported
9472 fi
9473 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9474 echo "${ECHO_T}$hardcode_action" >&6
9475
9476 if test "$hardcode_action" = relink; then
9477   # Fast installation is not supported
9478   enable_fast_install=no
9479 elif test "$shlibpath_overrides_runpath" = yes ||
9480      test "$enable_shared" = no; then
9481   # Fast installation is not necessary
9482   enable_fast_install=needless
9483 fi
9484
9485 striplib=
9486 old_striplib=
9487 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9488 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9489 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9490   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9491   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9492   echo "$as_me:$LINENO: result: yes" >&5
9493 echo "${ECHO_T}yes" >&6
9494 else
9495 # FIXME - insert some real tests, host_os isn't really good enough
9496   case $host_os in
9497    darwin*)
9498        if test -n "$STRIP" ; then
9499          striplib="$STRIP -x"
9500          echo "$as_me:$LINENO: result: yes" >&5
9501 echo "${ECHO_T}yes" >&6
9502        else
9503   echo "$as_me:$LINENO: result: no" >&5
9504 echo "${ECHO_T}no" >&6
9505 fi
9506        ;;
9507    *)
9508   echo "$as_me:$LINENO: result: no" >&5
9509 echo "${ECHO_T}no" >&6
9510     ;;
9511   esac
9512 fi
9513
9514 if test "x$enable_dlopen" != xyes; then
9515   enable_dlopen=unknown
9516   enable_dlopen_self=unknown
9517   enable_dlopen_self_static=unknown
9518 else
9519   lt_cv_dlopen=no
9520   lt_cv_dlopen_libs=
9521
9522   case $host_os in
9523   beos*)
9524     lt_cv_dlopen="load_add_on"
9525     lt_cv_dlopen_libs=
9526     lt_cv_dlopen_self=yes
9527     ;;
9528
9529   mingw* | pw32*)
9530     lt_cv_dlopen="LoadLibrary"
9531     lt_cv_dlopen_libs=
9532    ;;
9533
9534   cygwin*)
9535     lt_cv_dlopen="dlopen"
9536     lt_cv_dlopen_libs=
9537    ;;
9538
9539   darwin*)
9540   # if libdl is installed we need to link against it
9541     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9542 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9543 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9544   echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546   ac_check_lib_save_LIBS=$LIBS
9547 LIBS="-ldl  $LIBS"
9548 cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h.  */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h.  */
9554
9555 /* Override any gcc2 internal prototype to avoid an error.  */
9556 #ifdef __cplusplus
9557 extern "C"
9558 #endif
9559 /* We use char because int might match the return type of a gcc2
9560    builtin and then its argument prototype would still apply.  */
9561 char dlopen ();
9562 int
9563 main ()
9564 {
9565 dlopen ();
9566   ;
9567   return 0;
9568 }
9569 _ACEOF
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9572   (eval $ac_link) 2>conftest.er1
9573   ac_status=$?
9574   grep -v '^ *+' conftest.er1 >conftest.err
9575   rm -f conftest.er1
9576   cat conftest.err >&5
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); } &&
9579          { ac_try='test -z "$ac_c_werror_flag"
9580                          || test ! -s conftest.err'
9581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582   (eval $ac_try) 2>&5
9583   ac_status=$?
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); }; } &&
9586          { ac_try='test -s conftest$ac_exeext'
9587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588   (eval $ac_try) 2>&5
9589   ac_status=$?
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); }; }; then
9592   ac_cv_lib_dl_dlopen=yes
9593 else
9594   echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9596
9597 ac_cv_lib_dl_dlopen=no
9598 fi
9599 rm -f conftest.err conftest.$ac_objext \
9600       conftest$ac_exeext conftest.$ac_ext
9601 LIBS=$ac_check_lib_save_LIBS
9602 fi
9603 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9604 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9605 if test $ac_cv_lib_dl_dlopen = yes; then
9606   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9607 else
9608
9609     lt_cv_dlopen="dyld"
9610     lt_cv_dlopen_libs=
9611     lt_cv_dlopen_self=yes
9612
9613 fi
9614
9615    ;;
9616
9617   *)
9618     echo "$as_me:$LINENO: checking for shl_load" >&5
9619 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9620 if test "${ac_cv_func_shl_load+set}" = set; then
9621   echo $ECHO_N "(cached) $ECHO_C" >&6
9622 else
9623   cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h.  */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h.  */
9629 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9631 #define shl_load innocuous_shl_load
9632
9633 /* System header to define __stub macros and hopefully few prototypes,
9634     which can conflict with char shl_load (); below.
9635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9636     <limits.h> exists even on freestanding compilers.  */
9637
9638 #ifdef __STDC__
9639 # include <limits.h>
9640 #else
9641 # include <assert.h>
9642 #endif
9643
9644 #undef shl_load
9645
9646 /* Override any gcc2 internal prototype to avoid an error.  */
9647 #ifdef __cplusplus
9648 extern "C"
9649 {
9650 #endif
9651 /* We use char because int might match the return type of a gcc2
9652    builtin and then its argument prototype would still apply.  */
9653 char shl_load ();
9654 /* The GNU C library defines this for functions which it implements
9655     to always fail with ENOSYS.  Some functions are actually named
9656     something starting with __ and the normal name is an alias.  */
9657 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9658 choke me
9659 #else
9660 char (*f) () = shl_load;
9661 #endif
9662 #ifdef __cplusplus
9663 }
9664 #endif
9665
9666 int
9667 main ()
9668 {
9669 return f != shl_load;
9670   ;
9671   return 0;
9672 }
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676   (eval $ac_link) 2>conftest.er1
9677   ac_status=$?
9678   grep -v '^ *+' conftest.er1 >conftest.err
9679   rm -f conftest.er1
9680   cat conftest.err >&5
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); } &&
9683          { ac_try='test -z "$ac_c_werror_flag"
9684                          || test ! -s conftest.err'
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); }; } &&
9690          { ac_try='test -s conftest$ac_exeext'
9691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; }; then
9696   ac_cv_func_shl_load=yes
9697 else
9698   echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9700
9701 ac_cv_func_shl_load=no
9702 fi
9703 rm -f conftest.err conftest.$ac_objext \
9704       conftest$ac_exeext conftest.$ac_ext
9705 fi
9706 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9707 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9708 if test $ac_cv_func_shl_load = yes; then
9709   lt_cv_dlopen="shl_load"
9710 else
9711   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9712 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9713 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716   ac_check_lib_save_LIBS=$LIBS
9717 LIBS="-ldld  $LIBS"
9718 cat >conftest.$ac_ext <<_ACEOF
9719 /* confdefs.h.  */
9720 _ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h.  */
9724
9725 /* Override any gcc2 internal prototype to avoid an error.  */
9726 #ifdef __cplusplus
9727 extern "C"
9728 #endif
9729 /* We use char because int might match the return type of a gcc2
9730    builtin and then its argument prototype would still apply.  */
9731 char shl_load ();
9732 int
9733 main ()
9734 {
9735 shl_load ();
9736   ;
9737   return 0;
9738 }
9739 _ACEOF
9740 rm -f conftest.$ac_objext conftest$ac_exeext
9741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9742   (eval $ac_link) 2>conftest.er1
9743   ac_status=$?
9744   grep -v '^ *+' conftest.er1 >conftest.err
9745   rm -f conftest.er1
9746   cat conftest.err >&5
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); } &&
9749          { ac_try='test -z "$ac_c_werror_flag"
9750                          || test ! -s conftest.err'
9751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752   (eval $ac_try) 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); }; } &&
9756          { ac_try='test -s conftest$ac_exeext'
9757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758   (eval $ac_try) 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); }; }; then
9762   ac_cv_lib_dld_shl_load=yes
9763 else
9764   echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9766
9767 ac_cv_lib_dld_shl_load=no
9768 fi
9769 rm -f conftest.err conftest.$ac_objext \
9770       conftest$ac_exeext conftest.$ac_ext
9771 LIBS=$ac_check_lib_save_LIBS
9772 fi
9773 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9774 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9775 if test $ac_cv_lib_dld_shl_load = yes; then
9776   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9777 else
9778   echo "$as_me:$LINENO: checking for dlopen" >&5
9779 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9780 if test "${ac_cv_func_dlopen+set}" = set; then
9781   echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783   cat >conftest.$ac_ext <<_ACEOF
9784 /* confdefs.h.  */
9785 _ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h.  */
9789 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9790    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9791 #define dlopen innocuous_dlopen
9792
9793 /* System header to define __stub macros and hopefully few prototypes,
9794     which can conflict with char dlopen (); below.
9795     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9796     <limits.h> exists even on freestanding compilers.  */
9797
9798 #ifdef __STDC__
9799 # include <limits.h>
9800 #else
9801 # include <assert.h>
9802 #endif
9803
9804 #undef dlopen
9805
9806 /* Override any gcc2 internal prototype to avoid an error.  */
9807 #ifdef __cplusplus
9808 extern "C"
9809 {
9810 #endif
9811 /* We use char because int might match the return type of a gcc2
9812    builtin and then its argument prototype would still apply.  */
9813 char dlopen ();
9814 /* The GNU C library defines this for functions which it implements
9815     to always fail with ENOSYS.  Some functions are actually named
9816     something starting with __ and the normal name is an alias.  */
9817 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9818 choke me
9819 #else
9820 char (*f) () = dlopen;
9821 #endif
9822 #ifdef __cplusplus
9823 }
9824 #endif
9825
9826 int
9827 main ()
9828 {
9829 return f != dlopen;
9830   ;
9831   return 0;
9832 }
9833 _ACEOF
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836   (eval $ac_link) 2>conftest.er1
9837   ac_status=$?
9838   grep -v '^ *+' conftest.er1 >conftest.err
9839   rm -f conftest.er1
9840   cat conftest.err >&5
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); } &&
9843          { ac_try='test -z "$ac_c_werror_flag"
9844                          || test ! -s conftest.err'
9845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846   (eval $ac_try) 2>&5
9847   ac_status=$?
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); }; } &&
9850          { ac_try='test -s conftest$ac_exeext'
9851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852   (eval $ac_try) 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); }; }; then
9856   ac_cv_func_dlopen=yes
9857 else
9858   echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861 ac_cv_func_dlopen=no
9862 fi
9863 rm -f conftest.err conftest.$ac_objext \
9864       conftest$ac_exeext conftest.$ac_ext
9865 fi
9866 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9867 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9868 if test $ac_cv_func_dlopen = yes; then
9869   lt_cv_dlopen="dlopen"
9870 else
9871   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9872 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9873 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9874   echo $ECHO_N "(cached) $ECHO_C" >&6
9875 else
9876   ac_check_lib_save_LIBS=$LIBS
9877 LIBS="-ldl  $LIBS"
9878 cat >conftest.$ac_ext <<_ACEOF
9879 /* confdefs.h.  */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h.  */
9884
9885 /* Override any gcc2 internal prototype to avoid an error.  */
9886 #ifdef __cplusplus
9887 extern "C"
9888 #endif
9889 /* We use char because int might match the return type of a gcc2
9890    builtin and then its argument prototype would still apply.  */
9891 char dlopen ();
9892 int
9893 main ()
9894 {
9895 dlopen ();
9896   ;
9897   return 0;
9898 }
9899 _ACEOF
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902   (eval $ac_link) 2>conftest.er1
9903   ac_status=$?
9904   grep -v '^ *+' conftest.er1 >conftest.err
9905   rm -f conftest.er1
9906   cat conftest.err >&5
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); } &&
9909          { ac_try='test -z "$ac_c_werror_flag"
9910                          || test ! -s conftest.err'
9911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912   (eval $ac_try) 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); }; } &&
9916          { ac_try='test -s conftest$ac_exeext'
9917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918   (eval $ac_try) 2>&5
9919   ac_status=$?
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); }; }; then
9922   ac_cv_lib_dl_dlopen=yes
9923 else
9924   echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9926
9927 ac_cv_lib_dl_dlopen=no
9928 fi
9929 rm -f conftest.err conftest.$ac_objext \
9930       conftest$ac_exeext conftest.$ac_ext
9931 LIBS=$ac_check_lib_save_LIBS
9932 fi
9933 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9934 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9935 if test $ac_cv_lib_dl_dlopen = yes; then
9936   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9937 else
9938   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9939 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9940 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9941   echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943   ac_check_lib_save_LIBS=$LIBS
9944 LIBS="-lsvld  $LIBS"
9945 cat >conftest.$ac_ext <<_ACEOF
9946 /* confdefs.h.  */
9947 _ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h.  */
9951
9952 /* Override any gcc2 internal prototype to avoid an error.  */
9953 #ifdef __cplusplus
9954 extern "C"
9955 #endif
9956 /* We use char because int might match the return type of a gcc2
9957    builtin and then its argument prototype would still apply.  */
9958 char dlopen ();
9959 int
9960 main ()
9961 {
9962 dlopen ();
9963   ;
9964   return 0;
9965 }
9966 _ACEOF
9967 rm -f conftest.$ac_objext conftest$ac_exeext
9968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969   (eval $ac_link) 2>conftest.er1
9970   ac_status=$?
9971   grep -v '^ *+' conftest.er1 >conftest.err
9972   rm -f conftest.er1
9973   cat conftest.err >&5
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); } &&
9976          { ac_try='test -z "$ac_c_werror_flag"
9977                          || test ! -s conftest.err'
9978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979   (eval $ac_try) 2>&5
9980   ac_status=$?
9981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982   (exit $ac_status); }; } &&
9983          { ac_try='test -s conftest$ac_exeext'
9984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985   (eval $ac_try) 2>&5
9986   ac_status=$?
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); }; }; then
9989   ac_cv_lib_svld_dlopen=yes
9990 else
9991   echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994 ac_cv_lib_svld_dlopen=no
9995 fi
9996 rm -f conftest.err conftest.$ac_objext \
9997       conftest$ac_exeext conftest.$ac_ext
9998 LIBS=$ac_check_lib_save_LIBS
9999 fi
10000 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10001 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10002 if test $ac_cv_lib_svld_dlopen = yes; then
10003   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10004 else
10005   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10006 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10007 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10008   echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010   ac_check_lib_save_LIBS=$LIBS
10011 LIBS="-ldld  $LIBS"
10012 cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h.  */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h.  */
10018
10019 /* Override any gcc2 internal prototype to avoid an error.  */
10020 #ifdef __cplusplus
10021 extern "C"
10022 #endif
10023 /* We use char because int might match the return type of a gcc2
10024    builtin and then its argument prototype would still apply.  */
10025 char dld_link ();
10026 int
10027 main ()
10028 {
10029 dld_link ();
10030   ;
10031   return 0;
10032 }
10033 _ACEOF
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10036   (eval $ac_link) 2>conftest.er1
10037   ac_status=$?
10038   grep -v '^ *+' conftest.er1 >conftest.err
10039   rm -f conftest.er1
10040   cat conftest.err >&5
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); } &&
10043          { ac_try='test -z "$ac_c_werror_flag"
10044                          || test ! -s conftest.err'
10045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046   (eval $ac_try) 2>&5
10047   ac_status=$?
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); }; } &&
10050          { ac_try='test -s conftest$ac_exeext'
10051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052   (eval $ac_try) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); }; }; then
10056   ac_cv_lib_dld_dld_link=yes
10057 else
10058   echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10060
10061 ac_cv_lib_dld_dld_link=no
10062 fi
10063 rm -f conftest.err conftest.$ac_objext \
10064       conftest$ac_exeext conftest.$ac_ext
10065 LIBS=$ac_check_lib_save_LIBS
10066 fi
10067 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10068 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10069 if test $ac_cv_lib_dld_dld_link = yes; then
10070   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10071 fi
10072
10073
10074 fi
10075
10076
10077 fi
10078
10079
10080 fi
10081
10082
10083 fi
10084
10085
10086 fi
10087
10088     ;;
10089   esac
10090
10091   if test "x$lt_cv_dlopen" != xno; then
10092     enable_dlopen=yes
10093   else
10094     enable_dlopen=no
10095   fi
10096
10097   case $lt_cv_dlopen in
10098   dlopen)
10099     save_CPPFLAGS="$CPPFLAGS"
10100     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10101
10102     save_LDFLAGS="$LDFLAGS"
10103     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10104
10105     save_LIBS="$LIBS"
10106     LIBS="$lt_cv_dlopen_libs $LIBS"
10107
10108     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10109 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10110 if test "${lt_cv_dlopen_self+set}" = set; then
10111   echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113           if test "$cross_compiling" = yes; then :
10114   lt_cv_dlopen_self=cross
10115 else
10116   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10117   lt_status=$lt_dlunknown
10118   cat > conftest.$ac_ext <<EOF
10119 #line 10119 "configure"
10120 #include "confdefs.h"
10121
10122 #if HAVE_DLFCN_H
10123 #include <dlfcn.h>
10124 #endif
10125
10126 #include <stdio.h>
10127
10128 #ifdef RTLD_GLOBAL
10129 #  define LT_DLGLOBAL           RTLD_GLOBAL
10130 #else
10131 #  ifdef DL_GLOBAL
10132 #    define LT_DLGLOBAL         DL_GLOBAL
10133 #  else
10134 #    define LT_DLGLOBAL         0
10135 #  endif
10136 #endif
10137
10138 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10139    find out it does not work in some platform. */
10140 #ifndef LT_DLLAZY_OR_NOW
10141 #  ifdef RTLD_LAZY
10142 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10143 #  else
10144 #    ifdef DL_LAZY
10145 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10146 #    else
10147 #      ifdef RTLD_NOW
10148 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10149 #      else
10150 #        ifdef DL_NOW
10151 #          define LT_DLLAZY_OR_NOW      DL_NOW
10152 #        else
10153 #          define LT_DLLAZY_OR_NOW      0
10154 #        endif
10155 #      endif
10156 #    endif
10157 #  endif
10158 #endif
10159
10160 #ifdef __cplusplus
10161 extern "C" void exit (int);
10162 #endif
10163
10164 void fnord() { int i=42;}
10165 int main ()
10166 {
10167   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10168   int status = $lt_dlunknown;
10169
10170   if (self)
10171     {
10172       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10173       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10174       /* dlclose (self); */
10175     }
10176
10177     exit (status);
10178 }
10179 EOF
10180   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181   (eval $ac_link) 2>&5
10182   ac_status=$?
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10185     (./conftest; exit; ) >&5 2>/dev/null
10186     lt_status=$?
10187     case x$lt_status in
10188       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10189       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10190       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10191     esac
10192   else :
10193     # compilation failed
10194     lt_cv_dlopen_self=no
10195   fi
10196 fi
10197 rm -fr conftest*
10198
10199
10200 fi
10201 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10202 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10203
10204     if test "x$lt_cv_dlopen_self" = xyes; then
10205       LDFLAGS="$LDFLAGS $link_static_flag"
10206       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10207 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10208 if test "${lt_cv_dlopen_self_static+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_static=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_static=yes ;;
10287       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10288       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10289     esac
10290   else :
10291     # compilation failed
10292     lt_cv_dlopen_self_static=no
10293   fi
10294 fi
10295 rm -fr conftest*
10296
10297
10298 fi
10299 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10300 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10301     fi
10302
10303     CPPFLAGS="$save_CPPFLAGS"
10304     LDFLAGS="$save_LDFLAGS"
10305     LIBS="$save_LIBS"
10306     ;;
10307   esac
10308
10309   case $lt_cv_dlopen_self in
10310   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10311   *) enable_dlopen_self=unknown ;;
10312   esac
10313
10314   case $lt_cv_dlopen_self_static in
10315   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10316   *) enable_dlopen_self_static=unknown ;;
10317   esac
10318 fi
10319
10320
10321 # Report which librarie types wil actually be built
10322 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10323 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10324 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10325 echo "${ECHO_T}$can_build_shared" >&6
10326
10327 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10328 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10329 test "$can_build_shared" = "no" && enable_shared=no
10330
10331 # On AIX, shared libraries and static libraries use the same namespace, and
10332 # are all built from PIC.
10333 case $host_os in
10334 aix3*)
10335   test "$enable_shared" = yes && enable_static=no
10336   if test -n "$RANLIB"; then
10337     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10338     postinstall_cmds='$RANLIB $lib'
10339   fi
10340   ;;
10341
10342 aix4* | aix5*)
10343   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10344     test "$enable_shared" = yes && enable_static=no
10345   fi
10346     ;;
10347 esac
10348 echo "$as_me:$LINENO: result: $enable_shared" >&5
10349 echo "${ECHO_T}$enable_shared" >&6
10350
10351 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10352 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10353 # Make sure either enable_shared or enable_static is yes.
10354 test "$enable_shared" = yes || enable_static=yes
10355 echo "$as_me:$LINENO: result: $enable_static" >&5
10356 echo "${ECHO_T}$enable_static" >&6
10357
10358 # The else clause should only fire when bootstrapping the
10359 # libtool distribution, otherwise you forgot to ship ltmain.sh
10360 # with your package, and you will get complaints that there are
10361 # no rules to generate ltmain.sh.
10362 if test -f "$ltmain"; then
10363   # See if we are running on zsh, and set the options which allow our commands through
10364   # without removal of \ escapes.
10365   if test -n "${ZSH_VERSION+set}" ; then
10366     setopt NO_GLOB_SUBST
10367   fi
10368   # Now quote all the things that may contain metacharacters while being
10369   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10370   # variables and quote the copies for generation of the libtool script.
10371   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10372     SED SHELL STRIP \
10373     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10374     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10375     deplibs_check_method reload_flag reload_cmds need_locks \
10376     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10377     lt_cv_sys_global_symbol_to_c_name_address \
10378     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10379     old_postinstall_cmds old_postuninstall_cmds \
10380     compiler \
10381     CC \
10382     LD \
10383     lt_prog_compiler_wl \
10384     lt_prog_compiler_pic \
10385     lt_prog_compiler_static \
10386     lt_prog_compiler_no_builtin_flag \
10387     export_dynamic_flag_spec \
10388     thread_safe_flag_spec \
10389     whole_archive_flag_spec \
10390     enable_shared_with_static_runtimes \
10391     old_archive_cmds \
10392     old_archive_from_new_cmds \
10393     predep_objects \
10394     postdep_objects \
10395     predeps \
10396     postdeps \
10397     compiler_lib_search_path \
10398     archive_cmds \
10399     archive_expsym_cmds \
10400     postinstall_cmds \
10401     postuninstall_cmds \
10402     old_archive_from_expsyms_cmds \
10403     allow_undefined_flag \
10404     no_undefined_flag \
10405     export_symbols_cmds \
10406     hardcode_libdir_flag_spec \
10407     hardcode_libdir_flag_spec_ld \
10408     hardcode_libdir_separator \
10409     hardcode_automatic \
10410     module_cmds \
10411     module_expsym_cmds \
10412     lt_cv_prog_compiler_c_o \
10413     exclude_expsyms \
10414     include_expsyms; do
10415
10416     case $var in
10417     old_archive_cmds | \
10418     old_archive_from_new_cmds | \
10419     archive_cmds | \
10420     archive_expsym_cmds | \
10421     module_cmds | \
10422     module_expsym_cmds | \
10423     old_archive_from_expsyms_cmds | \
10424     export_symbols_cmds | \
10425     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10426     postinstall_cmds | postuninstall_cmds | \
10427     old_postinstall_cmds | old_postuninstall_cmds | \
10428     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10429       # Double-quote double-evaled strings.
10430       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10431       ;;
10432     *)
10433       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10434       ;;
10435     esac
10436   done
10437
10438   case $lt_echo in
10439   *'\$0 --fallback-echo"')
10440     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10441     ;;
10442   esac
10443
10444 cfgfile="${ofile}T"
10445   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10446   $rm -f "$cfgfile"
10447   { echo "$as_me:$LINENO: creating $ofile" >&5
10448 echo "$as_me: creating $ofile" >&6;}
10449
10450   cat <<__EOF__ >> "$cfgfile"
10451 #! $SHELL
10452
10453 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10454 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10455 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10456 #
10457 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10458 # Free Software Foundation, Inc.
10459 #
10460 # This file is part of GNU Libtool:
10461 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10462 #
10463 # This program is free software; you can redistribute it and/or modify
10464 # it under the terms of the GNU General Public License as published by
10465 # the Free Software Foundation; either version 2 of the License, or
10466 # (at your option) any later version.
10467 #
10468 # This program is distributed in the hope that it will be useful, but
10469 # WITHOUT ANY WARRANTY; without even the implied warranty of
10470 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10471 # General Public License for more details.
10472 #
10473 # You should have received a copy of the GNU General Public License
10474 # along with this program; if not, write to the Free Software
10475 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10476 #
10477 # As a special exception to the GNU General Public License, if you
10478 # distribute this file as part of a program that contains a
10479 # configuration script generated by Autoconf, you may include it under
10480 # the same distribution terms that you use for the rest of that program.
10481
10482 # A sed program that does not truncate output.
10483 SED=$lt_SED
10484
10485 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10486 Xsed="$SED -e 1s/^X//"
10487
10488 # The HP-UX ksh and POSIX shell print the target directory to stdout
10489 # if CDPATH is set.
10490 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10491
10492 # The names of the tagged configurations supported by this script.
10493 available_tags=
10494
10495 # ### BEGIN LIBTOOL CONFIG
10496
10497 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10498
10499 # Shell to use when invoking shell scripts.
10500 SHELL=$lt_SHELL
10501
10502 # Whether or not to build shared libraries.
10503 build_libtool_libs=$enable_shared
10504
10505 # Whether or not to build static libraries.
10506 build_old_libs=$enable_static
10507
10508 # Whether or not to add -lc for building shared libraries.
10509 build_libtool_need_lc=$archive_cmds_need_lc
10510
10511 # Whether or not to disallow shared libs when runtime libs are static
10512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10513
10514 # Whether or not to optimize for fast installation.
10515 fast_install=$enable_fast_install
10516
10517 # The host system.
10518 host_alias=$host_alias
10519 host=$host
10520 host_os=$host_os
10521
10522 # The build system.
10523 build_alias=$build_alias
10524 build=$build
10525 build_os=$build_os
10526
10527 # An echo program that does not interpret backslashes.
10528 echo=$lt_echo
10529
10530 # The archiver.
10531 AR=$lt_AR
10532 AR_FLAGS=$lt_AR_FLAGS
10533
10534 # A C compiler.
10535 LTCC=$lt_LTCC
10536
10537 # A language-specific compiler.
10538 CC=$lt_compiler
10539
10540 # Is the compiler the GNU C compiler?
10541 with_gcc=$GCC
10542
10543 # An ERE matcher.
10544 EGREP=$lt_EGREP
10545
10546 # The linker used to build libraries.
10547 LD=$lt_LD
10548
10549 # Whether we need hard or soft links.
10550 LN_S=$lt_LN_S
10551
10552 # A BSD-compatible nm program.
10553 NM=$lt_NM
10554
10555 # A symbol stripping program
10556 STRIP=$lt_STRIP
10557
10558 # Used to examine libraries when file_magic_cmd begins "file"
10559 MAGIC_CMD=$MAGIC_CMD
10560
10561 # Used on cygwin: DLL creation program.
10562 DLLTOOL="$DLLTOOL"
10563
10564 # Used on cygwin: object dumper.
10565 OBJDUMP="$OBJDUMP"
10566
10567 # Used on cygwin: assembler.
10568 AS="$AS"
10569
10570 # The name of the directory that contains temporary libtool files.
10571 objdir=$objdir
10572
10573 # How to create reloadable object files.
10574 reload_flag=$lt_reload_flag
10575 reload_cmds=$lt_reload_cmds
10576
10577 # How to pass a linker flag through the compiler.
10578 wl=$lt_lt_prog_compiler_wl
10579
10580 # Object file suffix (normally "o").
10581 objext="$ac_objext"
10582
10583 # Old archive suffix (normally "a").
10584 libext="$libext"
10585
10586 # Shared library suffix (normally ".so").
10587 shrext_cmds='$shrext_cmds'
10588
10589 # Executable file suffix (normally "").
10590 exeext="$exeext"
10591
10592 # Additional compiler flags for building library objects.
10593 pic_flag=$lt_lt_prog_compiler_pic
10594 pic_mode=$pic_mode
10595
10596 # What is the maximum length of a command?
10597 max_cmd_len=$lt_cv_sys_max_cmd_len
10598
10599 # Does compiler simultaneously support -c and -o options?
10600 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10601
10602 # Must we lock files when doing compilation?
10603 need_locks=$lt_need_locks
10604
10605 # Do we need the lib prefix for modules?
10606 need_lib_prefix=$need_lib_prefix
10607
10608 # Do we need a version for libraries?
10609 need_version=$need_version
10610
10611 # Whether dlopen is supported.
10612 dlopen_support=$enable_dlopen
10613
10614 # Whether dlopen of programs is supported.
10615 dlopen_self=$enable_dlopen_self
10616
10617 # Whether dlopen of statically linked programs is supported.
10618 dlopen_self_static=$enable_dlopen_self_static
10619
10620 # Compiler flag to prevent dynamic linking.
10621 link_static_flag=$lt_lt_prog_compiler_static
10622
10623 # Compiler flag to turn off builtin functions.
10624 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10625
10626 # Compiler flag to allow reflexive dlopens.
10627 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10628
10629 # Compiler flag to generate shared objects directly from archives.
10630 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10631
10632 # Compiler flag to generate thread-safe objects.
10633 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10634
10635 # Library versioning type.
10636 version_type=$version_type
10637
10638 # Format of library name prefix.
10639 libname_spec=$lt_libname_spec
10640
10641 # List of archive names.  First name is the real one, the rest are links.
10642 # The last name is the one that the linker finds with -lNAME.
10643 library_names_spec=$lt_library_names_spec
10644
10645 # The coded name of the library, if different from the real name.
10646 soname_spec=$lt_soname_spec
10647
10648 # Commands used to build and install an old-style archive.
10649 RANLIB=$lt_RANLIB
10650 old_archive_cmds=$lt_old_archive_cmds
10651 old_postinstall_cmds=$lt_old_postinstall_cmds
10652 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10653
10654 # Create an old-style archive from a shared archive.
10655 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10656
10657 # Create a temporary old-style archive to link instead of a shared archive.
10658 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10659
10660 # Commands used to build and install a shared archive.
10661 archive_cmds=$lt_archive_cmds
10662 archive_expsym_cmds=$lt_archive_expsym_cmds
10663 postinstall_cmds=$lt_postinstall_cmds
10664 postuninstall_cmds=$lt_postuninstall_cmds
10665
10666 # Commands used to build a loadable module (assumed same as above if empty)
10667 module_cmds=$lt_module_cmds
10668 module_expsym_cmds=$lt_module_expsym_cmds
10669
10670 # Commands to strip libraries.
10671 old_striplib=$lt_old_striplib
10672 striplib=$lt_striplib
10673
10674 # Dependencies to place before the objects being linked to create a
10675 # shared library.
10676 predep_objects=$lt_predep_objects
10677
10678 # Dependencies to place after the objects being linked to create a
10679 # shared library.
10680 postdep_objects=$lt_postdep_objects
10681
10682 # Dependencies to place before the objects being linked to create a
10683 # shared library.
10684 predeps=$lt_predeps
10685
10686 # Dependencies to place after the objects being linked to create a
10687 # shared library.
10688 postdeps=$lt_postdeps
10689
10690 # The library search path used internally by the compiler when linking
10691 # a shared library.
10692 compiler_lib_search_path=$lt_compiler_lib_search_path
10693
10694 # Method to check whether dependent libraries are shared objects.
10695 deplibs_check_method=$lt_deplibs_check_method
10696
10697 # Command to use when deplibs_check_method == file_magic.
10698 file_magic_cmd=$lt_file_magic_cmd
10699
10700 # Flag that allows shared libraries with undefined symbols to be built.
10701 allow_undefined_flag=$lt_allow_undefined_flag
10702
10703 # Flag that forces no undefined symbols.
10704 no_undefined_flag=$lt_no_undefined_flag
10705
10706 # Commands used to finish a libtool library installation in a directory.
10707 finish_cmds=$lt_finish_cmds
10708
10709 # Same as above, but a single script fragment to be evaled but not shown.
10710 finish_eval=$lt_finish_eval
10711
10712 # Take the output of nm and produce a listing of raw symbols and C names.
10713 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10714
10715 # Transform the output of nm in a proper C declaration
10716 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10717
10718 # Transform the output of nm in a C name address pair
10719 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10720
10721 # This is the shared library runtime path variable.
10722 runpath_var=$runpath_var
10723
10724 # This is the shared library path variable.
10725 shlibpath_var=$shlibpath_var
10726
10727 # Is shlibpath searched before the hard-coded library search path?
10728 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10729
10730 # How to hardcode a shared library path into an executable.
10731 hardcode_action=$hardcode_action
10732
10733 # Whether we should hardcode library paths into libraries.
10734 hardcode_into_libs=$hardcode_into_libs
10735
10736 # Flag to hardcode \$libdir into a binary during linking.
10737 # This must work even if \$libdir does not exist.
10738 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10739
10740 # If ld is used when linking, flag to hardcode \$libdir into
10741 # a binary during linking. This must work even if \$libdir does
10742 # not exist.
10743 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10744
10745 # Whether we need a single -rpath flag with a separated argument.
10746 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10747
10748 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10749 # resulting binary.
10750 hardcode_direct=$hardcode_direct
10751
10752 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10753 # resulting binary.
10754 hardcode_minus_L=$hardcode_minus_L
10755
10756 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10757 # the resulting binary.
10758 hardcode_shlibpath_var=$hardcode_shlibpath_var
10759
10760 # Set to yes if building a shared library automatically hardcodes DIR into the library
10761 # and all subsequent libraries and executables linked against it.
10762 hardcode_automatic=$hardcode_automatic
10763
10764 # Variables whose values should be saved in libtool wrapper scripts and
10765 # restored at relink time.
10766 variables_saved_for_relink="$variables_saved_for_relink"
10767
10768 # Whether libtool must link a program against all its dependency libraries.
10769 link_all_deplibs=$link_all_deplibs
10770
10771 # Compile-time system search path for libraries
10772 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10773
10774 # Run-time system search path for libraries
10775 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10776
10777 # Fix the shell variable \$srcfile for the compiler.
10778 fix_srcfile_path="$fix_srcfile_path"
10779
10780 # Set to yes if exported symbols are required.
10781 always_export_symbols=$always_export_symbols
10782
10783 # The commands to list exported symbols.
10784 export_symbols_cmds=$lt_export_symbols_cmds
10785
10786 # The commands to extract the exported symbol list from a shared archive.
10787 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10788
10789 # Symbols that should not be listed in the preloaded symbols.
10790 exclude_expsyms=$lt_exclude_expsyms
10791
10792 # Symbols that must always be exported.
10793 include_expsyms=$lt_include_expsyms
10794
10795 # ### END LIBTOOL CONFIG
10796
10797 __EOF__
10798
10799
10800   case $host_os in
10801   aix3*)
10802     cat <<\EOF >> "$cfgfile"
10803
10804 # AIX sometimes has problems with the GCC collect2 program.  For some
10805 # reason, if we set the COLLECT_NAMES environment variable, the problems
10806 # vanish in a puff of smoke.
10807 if test "X${COLLECT_NAMES+set}" != Xset; then
10808   COLLECT_NAMES=
10809   export COLLECT_NAMES
10810 fi
10811 EOF
10812     ;;
10813   esac
10814
10815   # We use sed instead of cat because bash on DJGPP gets confused if
10816   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10817   # text mode, it properly converts lines to CR/LF.  This bash problem
10818   # is reportedly fixed, but why not run on old versions too?
10819   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10820
10821   mv -f "$cfgfile" "$ofile" || \
10822     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10823   chmod +x "$ofile"
10824
10825 else
10826   # If there is no Makefile yet, we rely on a make rule to execute
10827   # `config.status --recheck' to rerun these tests and create the
10828   # libtool script then.
10829   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10830   if test -f "$ltmain_in"; then
10831     test -f Makefile && make "$ltmain"
10832   fi
10833 fi
10834
10835
10836 ac_ext=c
10837 ac_cpp='$CPP $CPPFLAGS'
10838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10841
10842 CC="$lt_save_CC"
10843
10844
10845 # Check whether --with-tags or --without-tags was given.
10846 if test "${with_tags+set}" = set; then
10847   withval="$with_tags"
10848   tagnames="$withval"
10849 fi;
10850
10851 if test -f "$ltmain" && test -n "$tagnames"; then
10852   if test ! -f "${ofile}"; then
10853     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10854 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10855   fi
10856
10857   if test -z "$LTCC"; then
10858     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10859     if test -z "$LTCC"; then
10860       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10861 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10862     else
10863       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10864 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10865     fi
10866   fi
10867
10868   # Extract list of available tagged configurations in $ofile.
10869   # Note that this assumes the entire list is on one line.
10870   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10871
10872   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10873   for tagname in $tagnames; do
10874     IFS="$lt_save_ifs"
10875     # Check whether tagname contains only valid characters
10876     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10877     "") ;;
10878     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10879 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10880    { (exit 1); exit 1; }; }
10881         ;;
10882     esac
10883
10884     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10885     then
10886       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10887 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10888    { (exit 1); exit 1; }; }
10889     fi
10890
10891     # Update the list of available tags.
10892     if test -n "$tagname"; then
10893       echo appending configuration tag \"$tagname\" to $ofile
10894
10895       case $tagname in
10896       CXX)
10897         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10898             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10899             (test "X$CXX" != "Xg++"))) ; then
10900           :
10901         else
10902           tagname=""
10903         fi
10904         ;;
10905
10906       F77)
10907         if test -n "$F77" && test "X$F77" != "Xno"; then
10908           :
10909         else
10910           tagname=""
10911         fi
10912         ;;
10913
10914       GCJ)
10915         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
10916           :
10917         else
10918           tagname=""
10919         fi
10920         ;;
10921
10922       RC)
10923
10924
10925
10926 # Source file extension for RC test sources.
10927 ac_ext=rc
10928
10929 # Object file extension for compiled RC test sources.
10930 objext=o
10931 objext_RC=$objext
10932
10933 # Code to be used in simple compile tests
10934 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
10935
10936 # Code to be used in simple link tests
10937 lt_simple_link_test_code="$lt_simple_compile_test_code"
10938
10939 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10940
10941 # If no C compiler was specified, use CC.
10942 LTCC=${LTCC-"$CC"}
10943
10944 # Allow CC to be a program name with arguments.
10945 compiler=$CC
10946
10947
10948 # save warnings/boilerplate of simple test code
10949 ac_outfile=conftest.$ac_objext
10950 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10951 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10952 _lt_compiler_boilerplate=`cat conftest.err`
10953 $rm conftest*
10954
10955 ac_outfile=conftest.$ac_objext
10956 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10957 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10958 _lt_linker_boilerplate=`cat conftest.err`
10959 $rm conftest*
10960
10961
10962 # Allow CC to be a program name with arguments.
10963 lt_save_CC="$CC"
10964 CC=${RC-"windres"}
10965 compiler=$CC
10966 compiler_RC=$CC
10967 for cc_temp in $compiler""; do
10968   case $cc_temp in
10969     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10970     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10971     \-*) ;;
10972     *) break;;
10973   esac
10974 done
10975 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10976
10977 lt_cv_prog_compiler_c_o_RC=yes
10978
10979 # The else clause should only fire when bootstrapping the
10980 # libtool distribution, otherwise you forgot to ship ltmain.sh
10981 # with your package, and you will get complaints that there are
10982 # no rules to generate ltmain.sh.
10983 if test -f "$ltmain"; then
10984   # See if we are running on zsh, and set the options which allow our commands through
10985   # without removal of \ escapes.
10986   if test -n "${ZSH_VERSION+set}" ; then
10987     setopt NO_GLOB_SUBST
10988   fi
10989   # Now quote all the things that may contain metacharacters while being
10990   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10991   # variables and quote the copies for generation of the libtool script.
10992   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10993     SED SHELL STRIP \
10994     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10995     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10996     deplibs_check_method reload_flag reload_cmds need_locks \
10997     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10998     lt_cv_sys_global_symbol_to_c_name_address \
10999     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11000     old_postinstall_cmds old_postuninstall_cmds \
11001     compiler_RC \
11002     CC_RC \
11003     LD_RC \
11004     lt_prog_compiler_wl_RC \
11005     lt_prog_compiler_pic_RC \
11006     lt_prog_compiler_static_RC \
11007     lt_prog_compiler_no_builtin_flag_RC \
11008     export_dynamic_flag_spec_RC \
11009     thread_safe_flag_spec_RC \
11010     whole_archive_flag_spec_RC \
11011     enable_shared_with_static_runtimes_RC \
11012     old_archive_cmds_RC \
11013     old_archive_from_new_cmds_RC \
11014     predep_objects_RC \
11015     postdep_objects_RC \
11016     predeps_RC \
11017     postdeps_RC \
11018     compiler_lib_search_path_RC \
11019     archive_cmds_RC \
11020     archive_expsym_cmds_RC \
11021     postinstall_cmds_RC \
11022     postuninstall_cmds_RC \
11023     old_archive_from_expsyms_cmds_RC \
11024     allow_undefined_flag_RC \
11025     no_undefined_flag_RC \
11026     export_symbols_cmds_RC \
11027     hardcode_libdir_flag_spec_RC \
11028     hardcode_libdir_flag_spec_ld_RC \
11029     hardcode_libdir_separator_RC \
11030     hardcode_automatic_RC \
11031     module_cmds_RC \
11032     module_expsym_cmds_RC \
11033     lt_cv_prog_compiler_c_o_RC \
11034     exclude_expsyms_RC \
11035     include_expsyms_RC; do
11036
11037     case $var in
11038     old_archive_cmds_RC | \
11039     old_archive_from_new_cmds_RC | \
11040     archive_cmds_RC | \
11041     archive_expsym_cmds_RC | \
11042     module_cmds_RC | \
11043     module_expsym_cmds_RC | \
11044     old_archive_from_expsyms_cmds_RC | \
11045     export_symbols_cmds_RC | \
11046     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11047     postinstall_cmds | postuninstall_cmds | \
11048     old_postinstall_cmds | old_postuninstall_cmds | \
11049     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11050       # Double-quote double-evaled strings.
11051       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11052       ;;
11053     *)
11054       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11055       ;;
11056     esac
11057   done
11058
11059   case $lt_echo in
11060   *'\$0 --fallback-echo"')
11061     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11062     ;;
11063   esac
11064
11065 cfgfile="$ofile"
11066
11067   cat <<__EOF__ >> "$cfgfile"
11068 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11069
11070 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11071
11072 # Shell to use when invoking shell scripts.
11073 SHELL=$lt_SHELL
11074
11075 # Whether or not to build shared libraries.
11076 build_libtool_libs=$enable_shared
11077
11078 # Whether or not to build static libraries.
11079 build_old_libs=$enable_static
11080
11081 # Whether or not to add -lc for building shared libraries.
11082 build_libtool_need_lc=$archive_cmds_need_lc_RC
11083
11084 # Whether or not to disallow shared libs when runtime libs are static
11085 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11086
11087 # Whether or not to optimize for fast installation.
11088 fast_install=$enable_fast_install
11089
11090 # The host system.
11091 host_alias=$host_alias
11092 host=$host
11093 host_os=$host_os
11094
11095 # The build system.
11096 build_alias=$build_alias
11097 build=$build
11098 build_os=$build_os
11099
11100 # An echo program that does not interpret backslashes.
11101 echo=$lt_echo
11102
11103 # The archiver.
11104 AR=$lt_AR
11105 AR_FLAGS=$lt_AR_FLAGS
11106
11107 # A C compiler.
11108 LTCC=$lt_LTCC
11109
11110 # A language-specific compiler.
11111 CC=$lt_compiler_RC
11112
11113 # Is the compiler the GNU C compiler?
11114 with_gcc=$GCC_RC
11115
11116 # An ERE matcher.
11117 EGREP=$lt_EGREP
11118
11119 # The linker used to build libraries.
11120 LD=$lt_LD_RC
11121
11122 # Whether we need hard or soft links.
11123 LN_S=$lt_LN_S
11124
11125 # A BSD-compatible nm program.
11126 NM=$lt_NM
11127
11128 # A symbol stripping program
11129 STRIP=$lt_STRIP
11130
11131 # Used to examine libraries when file_magic_cmd begins "file"
11132 MAGIC_CMD=$MAGIC_CMD
11133
11134 # Used on cygwin: DLL creation program.
11135 DLLTOOL="$DLLTOOL"
11136
11137 # Used on cygwin: object dumper.
11138 OBJDUMP="$OBJDUMP"
11139
11140 # Used on cygwin: assembler.
11141 AS="$AS"
11142
11143 # The name of the directory that contains temporary libtool files.
11144 objdir=$objdir
11145
11146 # How to create reloadable object files.
11147 reload_flag=$lt_reload_flag
11148 reload_cmds=$lt_reload_cmds
11149
11150 # How to pass a linker flag through the compiler.
11151 wl=$lt_lt_prog_compiler_wl_RC
11152
11153 # Object file suffix (normally "o").
11154 objext="$ac_objext"
11155
11156 # Old archive suffix (normally "a").
11157 libext="$libext"
11158
11159 # Shared library suffix (normally ".so").
11160 shrext_cmds='$shrext_cmds'
11161
11162 # Executable file suffix (normally "").
11163 exeext="$exeext"
11164
11165 # Additional compiler flags for building library objects.
11166 pic_flag=$lt_lt_prog_compiler_pic_RC
11167 pic_mode=$pic_mode
11168
11169 # What is the maximum length of a command?
11170 max_cmd_len=$lt_cv_sys_max_cmd_len
11171
11172 # Does compiler simultaneously support -c and -o options?
11173 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11174
11175 # Must we lock files when doing compilation?
11176 need_locks=$lt_need_locks
11177
11178 # Do we need the lib prefix for modules?
11179 need_lib_prefix=$need_lib_prefix
11180
11181 # Do we need a version for libraries?
11182 need_version=$need_version
11183
11184 # Whether dlopen is supported.
11185 dlopen_support=$enable_dlopen
11186
11187 # Whether dlopen of programs is supported.
11188 dlopen_self=$enable_dlopen_self
11189
11190 # Whether dlopen of statically linked programs is supported.
11191 dlopen_self_static=$enable_dlopen_self_static
11192
11193 # Compiler flag to prevent dynamic linking.
11194 link_static_flag=$lt_lt_prog_compiler_static_RC
11195
11196 # Compiler flag to turn off builtin functions.
11197 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11198
11199 # Compiler flag to allow reflexive dlopens.
11200 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11201
11202 # Compiler flag to generate shared objects directly from archives.
11203 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11204
11205 # Compiler flag to generate thread-safe objects.
11206 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11207
11208 # Library versioning type.
11209 version_type=$version_type
11210
11211 # Format of library name prefix.
11212 libname_spec=$lt_libname_spec
11213
11214 # List of archive names.  First name is the real one, the rest are links.
11215 # The last name is the one that the linker finds with -lNAME.
11216 library_names_spec=$lt_library_names_spec
11217
11218 # The coded name of the library, if different from the real name.
11219 soname_spec=$lt_soname_spec
11220
11221 # Commands used to build and install an old-style archive.
11222 RANLIB=$lt_RANLIB
11223 old_archive_cmds=$lt_old_archive_cmds_RC
11224 old_postinstall_cmds=$lt_old_postinstall_cmds
11225 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11226
11227 # Create an old-style archive from a shared archive.
11228 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11229
11230 # Create a temporary old-style archive to link instead of a shared archive.
11231 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11232
11233 # Commands used to build and install a shared archive.
11234 archive_cmds=$lt_archive_cmds_RC
11235 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11236 postinstall_cmds=$lt_postinstall_cmds
11237 postuninstall_cmds=$lt_postuninstall_cmds
11238
11239 # Commands used to build a loadable module (assumed same as above if empty)
11240 module_cmds=$lt_module_cmds_RC
11241 module_expsym_cmds=$lt_module_expsym_cmds_RC
11242
11243 # Commands to strip libraries.
11244 old_striplib=$lt_old_striplib
11245 striplib=$lt_striplib
11246
11247 # Dependencies to place before the objects being linked to create a
11248 # shared library.
11249 predep_objects=$lt_predep_objects_RC
11250
11251 # Dependencies to place after the objects being linked to create a
11252 # shared library.
11253 postdep_objects=$lt_postdep_objects_RC
11254
11255 # Dependencies to place before the objects being linked to create a
11256 # shared library.
11257 predeps=$lt_predeps_RC
11258
11259 # Dependencies to place after the objects being linked to create a
11260 # shared library.
11261 postdeps=$lt_postdeps_RC
11262
11263 # The library search path used internally by the compiler when linking
11264 # a shared library.
11265 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11266
11267 # Method to check whether dependent libraries are shared objects.
11268 deplibs_check_method=$lt_deplibs_check_method
11269
11270 # Command to use when deplibs_check_method == file_magic.
11271 file_magic_cmd=$lt_file_magic_cmd
11272
11273 # Flag that allows shared libraries with undefined symbols to be built.
11274 allow_undefined_flag=$lt_allow_undefined_flag_RC
11275
11276 # Flag that forces no undefined symbols.
11277 no_undefined_flag=$lt_no_undefined_flag_RC
11278
11279 # Commands used to finish a libtool library installation in a directory.
11280 finish_cmds=$lt_finish_cmds
11281
11282 # Same as above, but a single script fragment to be evaled but not shown.
11283 finish_eval=$lt_finish_eval
11284
11285 # Take the output of nm and produce a listing of raw symbols and C names.
11286 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11287
11288 # Transform the output of nm in a proper C declaration
11289 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11290
11291 # Transform the output of nm in a C name address pair
11292 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11293
11294 # This is the shared library runtime path variable.
11295 runpath_var=$runpath_var
11296
11297 # This is the shared library path variable.
11298 shlibpath_var=$shlibpath_var
11299
11300 # Is shlibpath searched before the hard-coded library search path?
11301 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11302
11303 # How to hardcode a shared library path into an executable.
11304 hardcode_action=$hardcode_action_RC
11305
11306 # Whether we should hardcode library paths into libraries.
11307 hardcode_into_libs=$hardcode_into_libs
11308
11309 # Flag to hardcode \$libdir into a binary during linking.
11310 # This must work even if \$libdir does not exist.
11311 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11312
11313 # If ld is used when linking, flag to hardcode \$libdir into
11314 # a binary during linking. This must work even if \$libdir does
11315 # not exist.
11316 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11317
11318 # Whether we need a single -rpath flag with a separated argument.
11319 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11320
11321 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11322 # resulting binary.
11323 hardcode_direct=$hardcode_direct_RC
11324
11325 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11326 # resulting binary.
11327 hardcode_minus_L=$hardcode_minus_L_RC
11328
11329 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11330 # the resulting binary.
11331 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11332
11333 # Set to yes if building a shared library automatically hardcodes DIR into the library
11334 # and all subsequent libraries and executables linked against it.
11335 hardcode_automatic=$hardcode_automatic_RC
11336
11337 # Variables whose values should be saved in libtool wrapper scripts and
11338 # restored at relink time.
11339 variables_saved_for_relink="$variables_saved_for_relink"
11340
11341 # Whether libtool must link a program against all its dependency libraries.
11342 link_all_deplibs=$link_all_deplibs_RC
11343
11344 # Compile-time system search path for libraries
11345 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11346
11347 # Run-time system search path for libraries
11348 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11349
11350 # Fix the shell variable \$srcfile for the compiler.
11351 fix_srcfile_path="$fix_srcfile_path_RC"
11352
11353 # Set to yes if exported symbols are required.
11354 always_export_symbols=$always_export_symbols_RC
11355
11356 # The commands to list exported symbols.
11357 export_symbols_cmds=$lt_export_symbols_cmds_RC
11358
11359 # The commands to extract the exported symbol list from a shared archive.
11360 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11361
11362 # Symbols that should not be listed in the preloaded symbols.
11363 exclude_expsyms=$lt_exclude_expsyms_RC
11364
11365 # Symbols that must always be exported.
11366 include_expsyms=$lt_include_expsyms_RC
11367
11368 # ### END LIBTOOL TAG CONFIG: $tagname
11369
11370 __EOF__
11371
11372
11373 else
11374   # If there is no Makefile yet, we rely on a make rule to execute
11375   # `config.status --recheck' to rerun these tests and create the
11376   # libtool script then.
11377   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11378   if test -f "$ltmain_in"; then
11379     test -f Makefile && make "$ltmain"
11380   fi
11381 fi
11382
11383
11384 ac_ext=c
11385 ac_cpp='$CPP $CPPFLAGS'
11386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11389
11390 CC="$lt_save_CC"
11391
11392         ;;
11393
11394       *)
11395         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11396 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11397    { (exit 1); exit 1; }; }
11398         ;;
11399       esac
11400
11401       # Append the new tag name to the list of available tags.
11402       if test -n "$tagname" ; then
11403       available_tags="$available_tags $tagname"
11404     fi
11405     fi
11406   done
11407   IFS="$lt_save_ifs"
11408
11409   # Now substitute the updated list of available tags.
11410   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11411     mv "${ofile}T" "$ofile"
11412     chmod +x "$ofile"
11413   else
11414     rm -f "${ofile}T"
11415     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11416 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11417    { (exit 1); exit 1; }; }
11418   fi
11419 fi
11420
11421
11422
11423 # This can be used to rebuild libtool when needed
11424 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11425
11426 # Always use our own libtool.
11427 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11428
11429 # Prevent multiple expansion
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440 ol_link_perl=no
11441 if test $ol_enable_perl != no ; then
11442         # Extract the first word of "perl", so it can be a program name with args.
11443 set dummy perl; ac_word=$2
11444 echo "$as_me:$LINENO: checking for $ac_word" >&5
11445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11446 if test "${ac_cv_path_PERLBIN+set}" = set; then
11447   echo $ECHO_N "(cached) $ECHO_C" >&6
11448 else
11449   case $PERLBIN in
11450   [\\/]* | ?:[\\/]*)
11451   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11452   ;;
11453   *)
11454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11455 for as_dir in $PATH
11456 do
11457   IFS=$as_save_IFS
11458   test -z "$as_dir" && as_dir=.
11459   for ac_exec_ext in '' $ac_executable_extensions; do
11460   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11461     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11463     break 2
11464   fi
11465 done
11466 done
11467
11468   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11469   ;;
11470 esac
11471 fi
11472 PERLBIN=$ac_cv_path_PERLBIN
11473
11474 if test -n "$PERLBIN"; then
11475   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11476 echo "${ECHO_T}$PERLBIN" >&6
11477 else
11478   echo "$as_me:$LINENO: result: no" >&5
11479 echo "${ECHO_T}no" >&6
11480 fi
11481
11482
11483         if test "no$PERLBIN" = "no" ; then
11484                 if test $ol_enable_perl = yes ; then
11485                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11486 echo "$as_me: error: could not locate perl" >&2;}
11487    { (exit 1); exit 1; }; }
11488                 fi
11489
11490         else
11491                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11492                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11493
11494                 if test x"$ol_enable_perl" = "xyes" ; then
11495                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11496                 else
11497                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11498                 fi
11499                                 ol_link_perl=yes
11500         fi
11501 fi
11502
11503 ac_ext=c
11504 ac_cpp='$CPP $CPPFLAGS'
11505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11508 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11509 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11510 # On Suns, sometimes $CPP names a directory.
11511 if test -n "$CPP" && test -d "$CPP"; then
11512   CPP=
11513 fi
11514 if test -z "$CPP"; then
11515   if test "${ac_cv_prog_CPP+set}" = set; then
11516   echo $ECHO_N "(cached) $ECHO_C" >&6
11517 else
11518       # Double quotes because CPP needs to be expanded
11519     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11520     do
11521       ac_preproc_ok=false
11522 for ac_c_preproc_warn_flag in '' yes
11523 do
11524   # Use a header file that comes with gcc, so configuring glibc
11525   # with a fresh cross-compiler works.
11526   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11527   # <limits.h> exists even on freestanding compilers.
11528   # On the NeXT, cc -E runs the code through the compiler's parser,
11529   # not just through cpp. "Syntax error" is here to catch this case.
11530   cat >conftest.$ac_ext <<_ACEOF
11531 /* confdefs.h.  */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h.  */
11536 #ifdef __STDC__
11537 # include <limits.h>
11538 #else
11539 # include <assert.h>
11540 #endif
11541                      Syntax error
11542 _ACEOF
11543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11544   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11545   ac_status=$?
11546   grep -v '^ *+' conftest.er1 >conftest.err
11547   rm -f conftest.er1
11548   cat conftest.err >&5
11549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   (exit $ac_status); } >/dev/null; then
11551   if test -s conftest.err; then
11552     ac_cpp_err=$ac_c_preproc_warn_flag
11553     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11554   else
11555     ac_cpp_err=
11556   fi
11557 else
11558   ac_cpp_err=yes
11559 fi
11560 if test -z "$ac_cpp_err"; then
11561   :
11562 else
11563   echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11565
11566   # Broken: fails on valid input.
11567 continue
11568 fi
11569 rm -f conftest.err conftest.$ac_ext
11570
11571   # OK, works on sane cases.  Now check whether non-existent headers
11572   # can be detected and how.
11573   cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h.  */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h.  */
11579 #include <ac_nonexistent.h>
11580 _ACEOF
11581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11582   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11583   ac_status=$?
11584   grep -v '^ *+' conftest.er1 >conftest.err
11585   rm -f conftest.er1
11586   cat conftest.err >&5
11587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588   (exit $ac_status); } >/dev/null; then
11589   if test -s conftest.err; then
11590     ac_cpp_err=$ac_c_preproc_warn_flag
11591     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11592   else
11593     ac_cpp_err=
11594   fi
11595 else
11596   ac_cpp_err=yes
11597 fi
11598 if test -z "$ac_cpp_err"; then
11599   # Broken: success on invalid input.
11600 continue
11601 else
11602   echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11604
11605   # Passes both tests.
11606 ac_preproc_ok=:
11607 break
11608 fi
11609 rm -f conftest.err conftest.$ac_ext
11610
11611 done
11612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11613 rm -f conftest.err conftest.$ac_ext
11614 if $ac_preproc_ok; then
11615   break
11616 fi
11617
11618     done
11619     ac_cv_prog_CPP=$CPP
11620
11621 fi
11622   CPP=$ac_cv_prog_CPP
11623 else
11624   ac_cv_prog_CPP=$CPP
11625 fi
11626 echo "$as_me:$LINENO: result: $CPP" >&5
11627 echo "${ECHO_T}$CPP" >&6
11628 ac_preproc_ok=false
11629 for ac_c_preproc_warn_flag in '' yes
11630 do
11631   # Use a header file that comes with gcc, so configuring glibc
11632   # with a fresh cross-compiler works.
11633   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11634   # <limits.h> exists even on freestanding compilers.
11635   # On the NeXT, cc -E runs the code through the compiler's parser,
11636   # not just through cpp. "Syntax error" is here to catch this case.
11637   cat >conftest.$ac_ext <<_ACEOF
11638 /* confdefs.h.  */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h.  */
11643 #ifdef __STDC__
11644 # include <limits.h>
11645 #else
11646 # include <assert.h>
11647 #endif
11648                      Syntax error
11649 _ACEOF
11650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11651   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11652   ac_status=$?
11653   grep -v '^ *+' conftest.er1 >conftest.err
11654   rm -f conftest.er1
11655   cat conftest.err >&5
11656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657   (exit $ac_status); } >/dev/null; then
11658   if test -s conftest.err; then
11659     ac_cpp_err=$ac_c_preproc_warn_flag
11660     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11661   else
11662     ac_cpp_err=
11663   fi
11664 else
11665   ac_cpp_err=yes
11666 fi
11667 if test -z "$ac_cpp_err"; then
11668   :
11669 else
11670   echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11672
11673   # Broken: fails on valid input.
11674 continue
11675 fi
11676 rm -f conftest.err conftest.$ac_ext
11677
11678   # OK, works on sane cases.  Now check whether non-existent headers
11679   # can be detected and how.
11680   cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h.  */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h.  */
11686 #include <ac_nonexistent.h>
11687 _ACEOF
11688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11689   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11690   ac_status=$?
11691   grep -v '^ *+' conftest.er1 >conftest.err
11692   rm -f conftest.er1
11693   cat conftest.err >&5
11694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695   (exit $ac_status); } >/dev/null; then
11696   if test -s conftest.err; then
11697     ac_cpp_err=$ac_c_preproc_warn_flag
11698     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11699   else
11700     ac_cpp_err=
11701   fi
11702 else
11703   ac_cpp_err=yes
11704 fi
11705 if test -z "$ac_cpp_err"; then
11706   # Broken: success on invalid input.
11707 continue
11708 else
11709   echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712   # Passes both tests.
11713 ac_preproc_ok=:
11714 break
11715 fi
11716 rm -f conftest.err conftest.$ac_ext
11717
11718 done
11719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11720 rm -f conftest.err conftest.$ac_ext
11721 if $ac_preproc_ok; then
11722   :
11723 else
11724   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11725 See \`config.log' for more details." >&5
11726 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11727 See \`config.log' for more details." >&2;}
11728    { (exit 1); exit 1; }; }
11729 fi
11730
11731 ac_ext=c
11732 ac_cpp='$CPP $CPPFLAGS'
11733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11736
11737
11738 case $host_os in
11739   *mingw32* ) ac_cv_mingw32=yes ;;
11740   *cygwin* ) ac_cv_cygwin=yes ;;
11741 esac
11742
11743
11744
11745
11746 cat >>confdefs.h <<_ACEOF
11747 #define EXEEXT "${EXEEXT}"
11748 _ACEOF
11749
11750
11751 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11752 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11753 if test "${ac_cv_lib_be_be_app+set}" = set; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756   ac_check_lib_save_LIBS=$LIBS
11757 LIBS="-lbe -lroot -lnet $LIBS"
11758 cat >conftest.$ac_ext <<_ACEOF
11759 /* confdefs.h.  */
11760 _ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h.  */
11764
11765 /* Override any gcc2 internal prototype to avoid an error.  */
11766 #ifdef __cplusplus
11767 extern "C"
11768 #endif
11769 /* We use char because int might match the return type of a gcc2
11770    builtin and then its argument prototype would still apply.  */
11771 char be_app ();
11772 int
11773 main ()
11774 {
11775 be_app ();
11776   ;
11777   return 0;
11778 }
11779 _ACEOF
11780 rm -f conftest.$ac_objext conftest$ac_exeext
11781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11782   (eval $ac_link) 2>conftest.er1
11783   ac_status=$?
11784   grep -v '^ *+' conftest.er1 >conftest.err
11785   rm -f conftest.er1
11786   cat conftest.err >&5
11787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788   (exit $ac_status); } &&
11789          { ac_try='test -z "$ac_c_werror_flag"
11790                          || test ! -s conftest.err'
11791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792   (eval $ac_try) 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); }; } &&
11796          { ac_try='test -s conftest$ac_exeext'
11797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798   (eval $ac_try) 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); }; }; then
11802   ac_cv_lib_be_be_app=yes
11803 else
11804   echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11806
11807 ac_cv_lib_be_be_app=no
11808 fi
11809 rm -f conftest.err conftest.$ac_objext \
11810       conftest$ac_exeext conftest.$ac_ext
11811 LIBS=$ac_check_lib_save_LIBS
11812 fi
11813 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11814 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11815 if test $ac_cv_lib_be_be_app = yes; then
11816   LIBS="$LIBS -lbe -lroot -lnet"
11817 else
11818   :
11819 fi
11820
11821
11822 ac_ext=c
11823 ac_cpp='$CPP $CPPFLAGS'
11824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11827 if test -n "$ac_tool_prefix"; then
11828   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11829 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11830 echo "$as_me:$LINENO: checking for $ac_word" >&5
11831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11832 if test "${ac_cv_prog_CC+set}" = set; then
11833   echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835   if test -n "$CC"; then
11836   ac_cv_prog_CC="$CC" # Let the user override the test.
11837 else
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839 for as_dir in $PATH
11840 do
11841   IFS=$as_save_IFS
11842   test -z "$as_dir" && as_dir=.
11843   for ac_exec_ext in '' $ac_executable_extensions; do
11844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11847     break 2
11848   fi
11849 done
11850 done
11851
11852 fi
11853 fi
11854 CC=$ac_cv_prog_CC
11855 if test -n "$CC"; then
11856   echo "$as_me:$LINENO: result: $CC" >&5
11857 echo "${ECHO_T}$CC" >&6
11858 else
11859   echo "$as_me:$LINENO: result: no" >&5
11860 echo "${ECHO_T}no" >&6
11861 fi
11862
11863 fi
11864 if test -z "$ac_cv_prog_CC"; then
11865   ac_ct_CC=$CC
11866   # Extract the first word of "gcc", so it can be a program name with args.
11867 set dummy gcc; ac_word=$2
11868 echo "$as_me:$LINENO: checking for $ac_word" >&5
11869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11871   echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873   if test -n "$ac_ct_CC"; then
11874   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11875 else
11876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11877 for as_dir in $PATH
11878 do
11879   IFS=$as_save_IFS
11880   test -z "$as_dir" && as_dir=.
11881   for ac_exec_ext in '' $ac_executable_extensions; do
11882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11883     ac_cv_prog_ac_ct_CC="gcc"
11884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11885     break 2
11886   fi
11887 done
11888 done
11889
11890 fi
11891 fi
11892 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11893 if test -n "$ac_ct_CC"; then
11894   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11895 echo "${ECHO_T}$ac_ct_CC" >&6
11896 else
11897   echo "$as_me:$LINENO: result: no" >&5
11898 echo "${ECHO_T}no" >&6
11899 fi
11900
11901   CC=$ac_ct_CC
11902 else
11903   CC="$ac_cv_prog_CC"
11904 fi
11905
11906 if test -z "$CC"; then
11907   if test -n "$ac_tool_prefix"; then
11908   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11909 set dummy ${ac_tool_prefix}cc; ac_word=$2
11910 echo "$as_me:$LINENO: checking for $ac_word" >&5
11911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11912 if test "${ac_cv_prog_CC+set}" = set; then
11913   echo $ECHO_N "(cached) $ECHO_C" >&6
11914 else
11915   if test -n "$CC"; then
11916   ac_cv_prog_CC="$CC" # Let the user override the test.
11917 else
11918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11919 for as_dir in $PATH
11920 do
11921   IFS=$as_save_IFS
11922   test -z "$as_dir" && as_dir=.
11923   for ac_exec_ext in '' $ac_executable_extensions; do
11924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11925     ac_cv_prog_CC="${ac_tool_prefix}cc"
11926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11927     break 2
11928   fi
11929 done
11930 done
11931
11932 fi
11933 fi
11934 CC=$ac_cv_prog_CC
11935 if test -n "$CC"; then
11936   echo "$as_me:$LINENO: result: $CC" >&5
11937 echo "${ECHO_T}$CC" >&6
11938 else
11939   echo "$as_me:$LINENO: result: no" >&5
11940 echo "${ECHO_T}no" >&6
11941 fi
11942
11943 fi
11944 if test -z "$ac_cv_prog_CC"; then
11945   ac_ct_CC=$CC
11946   # Extract the first word of "cc", so it can be a program name with args.
11947 set dummy cc; ac_word=$2
11948 echo "$as_me:$LINENO: checking for $ac_word" >&5
11949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11951   echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953   if test -n "$ac_ct_CC"; then
11954   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11955 else
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH
11958 do
11959   IFS=$as_save_IFS
11960   test -z "$as_dir" && as_dir=.
11961   for ac_exec_ext in '' $ac_executable_extensions; do
11962   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963     ac_cv_prog_ac_ct_CC="cc"
11964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11965     break 2
11966   fi
11967 done
11968 done
11969
11970 fi
11971 fi
11972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11973 if test -n "$ac_ct_CC"; then
11974   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11975 echo "${ECHO_T}$ac_ct_CC" >&6
11976 else
11977   echo "$as_me:$LINENO: result: no" >&5
11978 echo "${ECHO_T}no" >&6
11979 fi
11980
11981   CC=$ac_ct_CC
11982 else
11983   CC="$ac_cv_prog_CC"
11984 fi
11985
11986 fi
11987 if test -z "$CC"; then
11988   # Extract the first word of "cc", so it can be a program name with args.
11989 set dummy cc; ac_word=$2
11990 echo "$as_me:$LINENO: checking for $ac_word" >&5
11991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11992 if test "${ac_cv_prog_CC+set}" = set; then
11993   echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995   if test -n "$CC"; then
11996   ac_cv_prog_CC="$CC" # Let the user override the test.
11997 else
11998   ac_prog_rejected=no
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12001 do
12002   IFS=$as_save_IFS
12003   test -z "$as_dir" && as_dir=.
12004   for ac_exec_ext in '' $ac_executable_extensions; do
12005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12006     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12007        ac_prog_rejected=yes
12008        continue
12009      fi
12010     ac_cv_prog_CC="cc"
12011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12012     break 2
12013   fi
12014 done
12015 done
12016
12017 if test $ac_prog_rejected = yes; then
12018   # We found a bogon in the path, so make sure we never use it.
12019   set dummy $ac_cv_prog_CC
12020   shift
12021   if test $# != 0; then
12022     # We chose a different compiler from the bogus one.
12023     # However, it has the same basename, so the bogon will be chosen
12024     # first if we set CC to just the basename; use the full file name.
12025     shift
12026     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12027   fi
12028 fi
12029 fi
12030 fi
12031 CC=$ac_cv_prog_CC
12032 if test -n "$CC"; then
12033   echo "$as_me:$LINENO: result: $CC" >&5
12034 echo "${ECHO_T}$CC" >&6
12035 else
12036   echo "$as_me:$LINENO: result: no" >&5
12037 echo "${ECHO_T}no" >&6
12038 fi
12039
12040 fi
12041 if test -z "$CC"; then
12042   if test -n "$ac_tool_prefix"; then
12043   for ac_prog in cl
12044   do
12045     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12047 echo "$as_me:$LINENO: checking for $ac_word" >&5
12048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12049 if test "${ac_cv_prog_CC+set}" = set; then
12050   echo $ECHO_N "(cached) $ECHO_C" >&6
12051 else
12052   if test -n "$CC"; then
12053   ac_cv_prog_CC="$CC" # Let the user override the test.
12054 else
12055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056 for as_dir in $PATH
12057 do
12058   IFS=$as_save_IFS
12059   test -z "$as_dir" && as_dir=.
12060   for ac_exec_ext in '' $ac_executable_extensions; do
12061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12062     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12064     break 2
12065   fi
12066 done
12067 done
12068
12069 fi
12070 fi
12071 CC=$ac_cv_prog_CC
12072 if test -n "$CC"; then
12073   echo "$as_me:$LINENO: result: $CC" >&5
12074 echo "${ECHO_T}$CC" >&6
12075 else
12076   echo "$as_me:$LINENO: result: no" >&5
12077 echo "${ECHO_T}no" >&6
12078 fi
12079
12080     test -n "$CC" && break
12081   done
12082 fi
12083 if test -z "$CC"; then
12084   ac_ct_CC=$CC
12085   for ac_prog in cl
12086 do
12087   # Extract the first word of "$ac_prog", so it can be a program name with args.
12088 set dummy $ac_prog; ac_word=$2
12089 echo "$as_me:$LINENO: checking for $ac_word" >&5
12090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12092   echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094   if test -n "$ac_ct_CC"; then
12095   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12096 else
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     ac_cv_prog_ac_ct_CC="$ac_prog"
12105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12106     break 2
12107   fi
12108 done
12109 done
12110
12111 fi
12112 fi
12113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12114 if test -n "$ac_ct_CC"; then
12115   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12116 echo "${ECHO_T}$ac_ct_CC" >&6
12117 else
12118   echo "$as_me:$LINENO: result: no" >&5
12119 echo "${ECHO_T}no" >&6
12120 fi
12121
12122   test -n "$ac_ct_CC" && break
12123 done
12124
12125   CC=$ac_ct_CC
12126 fi
12127
12128 fi
12129
12130
12131 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12132 See \`config.log' for more details." >&5
12133 echo "$as_me: error: no acceptable C compiler found in \$PATH
12134 See \`config.log' for more details." >&2;}
12135    { (exit 1); exit 1; }; }
12136
12137 # Provide some information about the compiler.
12138 echo "$as_me:$LINENO:" \
12139      "checking for C compiler version" >&5
12140 ac_compiler=`set X $ac_compile; echo $2`
12141 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12142   (eval $ac_compiler --version </dev/null >&5) 2>&5
12143   ac_status=$?
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); }
12146 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12147   (eval $ac_compiler -v </dev/null >&5) 2>&5
12148   ac_status=$?
12149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150   (exit $ac_status); }
12151 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12152   (eval $ac_compiler -V </dev/null >&5) 2>&5
12153   ac_status=$?
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); }
12156
12157 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12158 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12159 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12160   echo $ECHO_N "(cached) $ECHO_C" >&6
12161 else
12162   cat >conftest.$ac_ext <<_ACEOF
12163 /* confdefs.h.  */
12164 _ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h.  */
12168
12169 int
12170 main ()
12171 {
12172 #ifndef __GNUC__
12173        choke me
12174 #endif
12175
12176   ;
12177   return 0;
12178 }
12179 _ACEOF
12180 rm -f conftest.$ac_objext
12181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182   (eval $ac_compile) 2>conftest.er1
12183   ac_status=$?
12184   grep -v '^ *+' conftest.er1 >conftest.err
12185   rm -f conftest.er1
12186   cat conftest.err >&5
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); } &&
12189          { ac_try='test -z "$ac_c_werror_flag"
12190                          || test ! -s conftest.err'
12191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192   (eval $ac_try) 2>&5
12193   ac_status=$?
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); }; } &&
12196          { ac_try='test -s conftest.$ac_objext'
12197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198   (eval $ac_try) 2>&5
12199   ac_status=$?
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); }; }; then
12202   ac_compiler_gnu=yes
12203 else
12204   echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12206
12207 ac_compiler_gnu=no
12208 fi
12209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12211
12212 fi
12213 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12214 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12215 GCC=`test $ac_compiler_gnu = yes && echo yes`
12216 ac_test_CFLAGS=${CFLAGS+set}
12217 ac_save_CFLAGS=$CFLAGS
12218 CFLAGS="-g"
12219 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12220 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12221 if test "${ac_cv_prog_cc_g+set}" = set; then
12222   echo $ECHO_N "(cached) $ECHO_C" >&6
12223 else
12224   cat >conftest.$ac_ext <<_ACEOF
12225 /* confdefs.h.  */
12226 _ACEOF
12227 cat confdefs.h >>conftest.$ac_ext
12228 cat >>conftest.$ac_ext <<_ACEOF
12229 /* end confdefs.h.  */
12230
12231 int
12232 main ()
12233 {
12234
12235   ;
12236   return 0;
12237 }
12238 _ACEOF
12239 rm -f conftest.$ac_objext
12240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12241   (eval $ac_compile) 2>conftest.er1
12242   ac_status=$?
12243   grep -v '^ *+' conftest.er1 >conftest.err
12244   rm -f conftest.er1
12245   cat conftest.err >&5
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); } &&
12248          { ac_try='test -z "$ac_c_werror_flag"
12249                          || test ! -s conftest.err'
12250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251   (eval $ac_try) 2>&5
12252   ac_status=$?
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); }; } &&
12255          { ac_try='test -s conftest.$ac_objext'
12256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257   (eval $ac_try) 2>&5
12258   ac_status=$?
12259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); }; }; then
12261   ac_cv_prog_cc_g=yes
12262 else
12263   echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12265
12266 ac_cv_prog_cc_g=no
12267 fi
12268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12269 fi
12270 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12271 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12272 if test "$ac_test_CFLAGS" = set; then
12273   CFLAGS=$ac_save_CFLAGS
12274 elif test $ac_cv_prog_cc_g = yes; then
12275   if test "$GCC" = yes; then
12276     CFLAGS="-g -O2"
12277   else
12278     CFLAGS="-g"
12279   fi
12280 else
12281   if test "$GCC" = yes; then
12282     CFLAGS="-O2"
12283   else
12284     CFLAGS=
12285   fi
12286 fi
12287 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12288 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12289 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12290   echo $ECHO_N "(cached) $ECHO_C" >&6
12291 else
12292   ac_cv_prog_cc_stdc=no
12293 ac_save_CC=$CC
12294 cat >conftest.$ac_ext <<_ACEOF
12295 /* confdefs.h.  */
12296 _ACEOF
12297 cat confdefs.h >>conftest.$ac_ext
12298 cat >>conftest.$ac_ext <<_ACEOF
12299 /* end confdefs.h.  */
12300 #include <stdarg.h>
12301 #include <stdio.h>
12302 #include <sys/types.h>
12303 #include <sys/stat.h>
12304 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12305 struct buf { int x; };
12306 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12307 static char *e (p, i)
12308      char **p;
12309      int i;
12310 {
12311   return p[i];
12312 }
12313 static char *f (char * (*g) (char **, int), char **p, ...)
12314 {
12315   char *s;
12316   va_list v;
12317   va_start (v,p);
12318   s = g (p, va_arg (v,int));
12319   va_end (v);
12320   return s;
12321 }
12322
12323 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12324    function prototypes and stuff, but not '\xHH' hex character constants.
12325    These don't provoke an error unfortunately, instead are silently treated
12326    as 'x'.  The following induces an error, until -std1 is added to get
12327    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12328    array size at least.  It's necessary to write '\x00'==0 to get something
12329    that's true only with -std1.  */
12330 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12331
12332 int test (int i, double x);
12333 struct s1 {int (*f) (int a);};
12334 struct s2 {int (*f) (double a);};
12335 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12336 int argc;
12337 char **argv;
12338 int
12339 main ()
12340 {
12341 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12342   ;
12343   return 0;
12344 }
12345 _ACEOF
12346 # Don't try gcc -ansi; that turns off useful extensions and
12347 # breaks some systems' header files.
12348 # AIX                   -qlanglvl=ansi
12349 # Ultrix and OSF/1      -std1
12350 # HP-UX 10.20 and later -Ae
12351 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12352 # SVR4                  -Xc -D__EXTENSIONS__
12353 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12354 do
12355   CC="$ac_save_CC $ac_arg"
12356   rm -f conftest.$ac_objext
12357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12358   (eval $ac_compile) 2>conftest.er1
12359   ac_status=$?
12360   grep -v '^ *+' conftest.er1 >conftest.err
12361   rm -f conftest.er1
12362   cat conftest.err >&5
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); } &&
12365          { ac_try='test -z "$ac_c_werror_flag"
12366                          || test ! -s conftest.err'
12367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368   (eval $ac_try) 2>&5
12369   ac_status=$?
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); }; } &&
12372          { ac_try='test -s conftest.$ac_objext'
12373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374   (eval $ac_try) 2>&5
12375   ac_status=$?
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); }; }; then
12378   ac_cv_prog_cc_stdc=$ac_arg
12379 break
12380 else
12381   echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12383
12384 fi
12385 rm -f conftest.err conftest.$ac_objext
12386 done
12387 rm -f conftest.$ac_ext conftest.$ac_objext
12388 CC=$ac_save_CC
12389
12390 fi
12391
12392 case "x$ac_cv_prog_cc_stdc" in
12393   x|xno)
12394     echo "$as_me:$LINENO: result: none needed" >&5
12395 echo "${ECHO_T}none needed" >&6 ;;
12396   *)
12397     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12398 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12399     CC="$CC $ac_cv_prog_cc_stdc" ;;
12400 esac
12401
12402 # Some people use a C++ compiler to compile C.  Since we use `exit',
12403 # in C++ we need to declare it.  In case someone uses the same compiler
12404 # for both compiling C and C++ we need to have the C++ compiler decide
12405 # the declaration of exit, since it's the most demanding environment.
12406 cat >conftest.$ac_ext <<_ACEOF
12407 #ifndef __cplusplus
12408   choke me
12409 #endif
12410 _ACEOF
12411 rm -f conftest.$ac_objext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413   (eval $ac_compile) 2>conftest.er1
12414   ac_status=$?
12415   grep -v '^ *+' conftest.er1 >conftest.err
12416   rm -f conftest.er1
12417   cat conftest.err >&5
12418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419   (exit $ac_status); } &&
12420          { ac_try='test -z "$ac_c_werror_flag"
12421                          || test ! -s conftest.err'
12422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423   (eval $ac_try) 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; } &&
12427          { ac_try='test -s conftest.$ac_objext'
12428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429   (eval $ac_try) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; }; then
12433   for ac_declaration in \
12434    '' \
12435    'extern "C" void std::exit (int) throw (); using std::exit;' \
12436    'extern "C" void std::exit (int); using std::exit;' \
12437    'extern "C" void exit (int) throw ();' \
12438    'extern "C" void exit (int);' \
12439    'void exit (int);'
12440 do
12441   cat >conftest.$ac_ext <<_ACEOF
12442 /* confdefs.h.  */
12443 _ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h.  */
12447 $ac_declaration
12448 #include <stdlib.h>
12449 int
12450 main ()
12451 {
12452 exit (42);
12453   ;
12454   return 0;
12455 }
12456 _ACEOF
12457 rm -f conftest.$ac_objext
12458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459   (eval $ac_compile) 2>conftest.er1
12460   ac_status=$?
12461   grep -v '^ *+' conftest.er1 >conftest.err
12462   rm -f conftest.er1
12463   cat conftest.err >&5
12464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465   (exit $ac_status); } &&
12466          { ac_try='test -z "$ac_c_werror_flag"
12467                          || test ! -s conftest.err'
12468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469   (eval $ac_try) 2>&5
12470   ac_status=$?
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); }; } &&
12473          { ac_try='test -s conftest.$ac_objext'
12474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475   (eval $ac_try) 2>&5
12476   ac_status=$?
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); }; }; then
12479   :
12480 else
12481   echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12483
12484 continue
12485 fi
12486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12487   cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h.  */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h.  */
12493 $ac_declaration
12494 int
12495 main ()
12496 {
12497 exit (42);
12498   ;
12499   return 0;
12500 }
12501 _ACEOF
12502 rm -f conftest.$ac_objext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504   (eval $ac_compile) 2>conftest.er1
12505   ac_status=$?
12506   grep -v '^ *+' conftest.er1 >conftest.err
12507   rm -f conftest.er1
12508   cat conftest.err >&5
12509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510   (exit $ac_status); } &&
12511          { ac_try='test -z "$ac_c_werror_flag"
12512                          || test ! -s conftest.err'
12513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514   (eval $ac_try) 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); }; } &&
12518          { ac_try='test -s conftest.$ac_objext'
12519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520   (eval $ac_try) 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); }; }; then
12524   break
12525 else
12526   echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12528
12529 fi
12530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12531 done
12532 rm -f conftest*
12533 if test -n "$ac_declaration"; then
12534   echo '#ifdef __cplusplus' >>confdefs.h
12535   echo $ac_declaration      >>confdefs.h
12536   echo '#endif'             >>confdefs.h
12537 fi
12538
12539 else
12540   echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12542
12543 fi
12544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12545 ac_ext=c
12546 ac_cpp='$CPP $CPPFLAGS'
12547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12550
12551 depcc="$CC"   am_compiler_list=
12552
12553 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12554 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12555 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12556   echo $ECHO_N "(cached) $ECHO_C" >&6
12557 else
12558   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12559   # We make a subdir and do the tests there.  Otherwise we can end up
12560   # making bogus files that we don't know about and never remove.  For
12561   # instance it was reported that on HP-UX the gcc test will end up
12562   # making a dummy file named `D' -- because `-MD' means `put the output
12563   # in D'.
12564   mkdir conftest.dir
12565   # Copy depcomp to subdir because otherwise we won't find it if we're
12566   # using a relative directory.
12567   cp "$am_depcomp" conftest.dir
12568   cd conftest.dir
12569   # We will build objects and dependencies in a subdirectory because
12570   # it helps to detect inapplicable dependency modes.  For instance
12571   # both Tru64's cc and ICC support -MD to output dependencies as a
12572   # side effect of compilation, but ICC will put the dependencies in
12573   # the current directory while Tru64 will put them in the object
12574   # directory.
12575   mkdir sub
12576
12577   am_cv_CC_dependencies_compiler_type=none
12578   if test "$am_compiler_list" = ""; then
12579      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12580   fi
12581   for depmode in $am_compiler_list; do
12582     # Setup a source with many dependencies, because some compilers
12583     # like to wrap large dependency lists on column 80 (with \), and
12584     # we should not choose a depcomp mode which is confused by this.
12585     #
12586     # We need to recreate these files for each test, as the compiler may
12587     # overwrite some of them when testing with obscure command lines.
12588     # This happens at least with the AIX C compiler.
12589     : > sub/conftest.c
12590     for i in 1 2 3 4 5 6; do
12591       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12592       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12593       # Solaris 8's {/usr,}/bin/sh.
12594       touch sub/conftst$i.h
12595     done
12596     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12597
12598     case $depmode in
12599     nosideeffect)
12600       # after this tag, mechanisms are not by side-effect, so they'll
12601       # only be used when explicitly requested
12602       if test "x$enable_dependency_tracking" = xyes; then
12603         continue
12604       else
12605         break
12606       fi
12607       ;;
12608     none) break ;;
12609     esac
12610     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12611     # mode.  It turns out that the SunPro C++ compiler does not properly
12612     # handle `-M -o', and we need to detect this.
12613     if depmode=$depmode \
12614        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12615        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12616        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12617          >/dev/null 2>conftest.err &&
12618        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12619        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12620        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12621       # icc doesn't choke on unknown options, it will just issue warnings
12622       # or remarks (even with -Werror).  So we grep stderr for any message
12623       # that says an option was ignored or not supported.
12624       # When given -MP, icc 7.0 and 7.1 complain thusly:
12625       #   icc: Command line warning: ignoring option '-M'; no argument required
12626       # The diagnosis changed in icc 8.0:
12627       #   icc: Command line remark: option '-MP' not supported
12628       if (grep 'ignoring option' conftest.err ||
12629           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12630         am_cv_CC_dependencies_compiler_type=$depmode
12631         break
12632       fi
12633     fi
12634   done
12635
12636   cd ..
12637   rm -rf conftest.dir
12638 else
12639   am_cv_CC_dependencies_compiler_type=none
12640 fi
12641
12642 fi
12643 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12644 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12645 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12646
12647
12648
12649 if
12650   test "x$enable_dependency_tracking" != xno \
12651   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12652   am__fastdepCC_TRUE=
12653   am__fastdepCC_FALSE='#'
12654 else
12655   am__fastdepCC_TRUE='#'
12656   am__fastdepCC_FALSE=
12657 fi
12658
12659
12660 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12661         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12662 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12663    { (exit 1); exit 1; }; }
12664 fi
12665
12666 # test for make depend flag
12667 OL_MKDEP=
12668 OL_MKDEP_FLAGS=
12669 if test -z "${MKDEP}"; then
12670         OL_MKDEP="${CC-cc}"
12671         if test -z "${MKDEP_FLAGS}"; then
12672                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12673 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12674 if test "${ol_cv_mkdep+set}" = set; then
12675   echo $ECHO_N "(cached) $ECHO_C" >&6
12676 else
12677
12678                         ol_cv_mkdep=no
12679                         for flag in "-M" "-xM"; do
12680                                 cat > conftest.c <<EOF
12681  noCode;
12682 EOF
12683                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685   (eval $ac_try) 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); }; } \
12689                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12690                                 then
12691                                         if test ! -f conftest."${ac_object}" ; then
12692                                                 ol_cv_mkdep=$flag
12693                                                 OL_MKDEP_FLAGS="$flag"
12694                                                 break
12695                                         fi
12696                                 fi
12697                         done
12698                         rm -f conftest*
12699
12700 fi
12701 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12702 echo "${ECHO_T}$ol_cv_mkdep" >&6
12703         else
12704                 cc_cv_mkdep=yes
12705                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12706         fi
12707 else
12708         cc_cv_mkdep=yes
12709         OL_MKDEP="${MKDEP}"
12710         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12711 fi
12712
12713
12714
12715 if test "${ol_cv_mkdep}" = no ; then
12716         # this will soon become an error
12717         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12718 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12719 fi
12720
12721 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12722 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12723 if test "${ac_cv_lib_s_afopen+set}" = set; then
12724   echo $ECHO_N "(cached) $ECHO_C" >&6
12725 else
12726   ac_check_lib_save_LIBS=$LIBS
12727 LIBS="-ls  $LIBS"
12728 cat >conftest.$ac_ext <<_ACEOF
12729 /* confdefs.h.  */
12730 _ACEOF
12731 cat confdefs.h >>conftest.$ac_ext
12732 cat >>conftest.$ac_ext <<_ACEOF
12733 /* end confdefs.h.  */
12734
12735 /* Override any gcc2 internal prototype to avoid an error.  */
12736 #ifdef __cplusplus
12737 extern "C"
12738 #endif
12739 /* We use char because int might match the return type of a gcc2
12740    builtin and then its argument prototype would still apply.  */
12741 char afopen ();
12742 int
12743 main ()
12744 {
12745 afopen ();
12746   ;
12747   return 0;
12748 }
12749 _ACEOF
12750 rm -f conftest.$ac_objext conftest$ac_exeext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752   (eval $ac_link) 2>conftest.er1
12753   ac_status=$?
12754   grep -v '^ *+' conftest.er1 >conftest.err
12755   rm -f conftest.er1
12756   cat conftest.err >&5
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); } &&
12759          { ac_try='test -z "$ac_c_werror_flag"
12760                          || test ! -s conftest.err'
12761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762   (eval $ac_try) 2>&5
12763   ac_status=$?
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); }; } &&
12766          { ac_try='test -s conftest$ac_exeext'
12767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768   (eval $ac_try) 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); }; }; then
12772   ac_cv_lib_s_afopen=yes
12773 else
12774   echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12776
12777 ac_cv_lib_s_afopen=no
12778 fi
12779 rm -f conftest.err conftest.$ac_objext \
12780       conftest$ac_exeext conftest.$ac_ext
12781 LIBS=$ac_check_lib_save_LIBS
12782 fi
12783 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12784 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12785 if test $ac_cv_lib_s_afopen = yes; then
12786
12787         AUTH_LIBS=-ls
12788
12789 cat >>confdefs.h <<\_ACEOF
12790 #define HAVE_AIX_SECURITY 1
12791 _ACEOF
12792
12793
12794 fi
12795
12796
12797 case "$target" in
12798 *-ibm-openedition)
12799         ac_cv_func_getopt=no
12800
12801 cat >>confdefs.h <<\_ACEOF
12802 #define BOTH_STRINGS_H 1
12803 _ACEOF
12804
12805         ;;
12806 esac
12807
12808 ol_link_modules=no
12809 WITH_MODULES_ENABLED=no
12810 if test $ol_enable_modules != no ; then
12811
12812 for ac_header in ltdl.h
12813 do
12814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12816   echo "$as_me:$LINENO: checking for $ac_header" >&5
12817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12819   echo $ECHO_N "(cached) $ECHO_C" >&6
12820 fi
12821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12823 else
12824   # Is the header compilable?
12825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12827 cat >conftest.$ac_ext <<_ACEOF
12828 /* confdefs.h.  */
12829 _ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h.  */
12833 $ac_includes_default
12834 #include <$ac_header>
12835 _ACEOF
12836 rm -f conftest.$ac_objext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12838   (eval $ac_compile) 2>conftest.er1
12839   ac_status=$?
12840   grep -v '^ *+' conftest.er1 >conftest.err
12841   rm -f conftest.er1
12842   cat conftest.err >&5
12843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); } &&
12845          { ac_try='test -z "$ac_c_werror_flag"
12846                          || test ! -s conftest.err'
12847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848   (eval $ac_try) 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); }; } &&
12852          { ac_try='test -s conftest.$ac_objext'
12853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854   (eval $ac_try) 2>&5
12855   ac_status=$?
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); }; }; then
12858   ac_header_compiler=yes
12859 else
12860   echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12862
12863 ac_header_compiler=no
12864 fi
12865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12867 echo "${ECHO_T}$ac_header_compiler" >&6
12868
12869 # Is the header present?
12870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12872 cat >conftest.$ac_ext <<_ACEOF
12873 /* confdefs.h.  */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h.  */
12878 #include <$ac_header>
12879 _ACEOF
12880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12881   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12882   ac_status=$?
12883   grep -v '^ *+' conftest.er1 >conftest.err
12884   rm -f conftest.er1
12885   cat conftest.err >&5
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); } >/dev/null; then
12888   if test -s conftest.err; then
12889     ac_cpp_err=$ac_c_preproc_warn_flag
12890     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12891   else
12892     ac_cpp_err=
12893   fi
12894 else
12895   ac_cpp_err=yes
12896 fi
12897 if test -z "$ac_cpp_err"; then
12898   ac_header_preproc=yes
12899 else
12900   echo "$as_me: failed program was:" >&5
12901 sed 's/^/| /' conftest.$ac_ext >&5
12902
12903   ac_header_preproc=no
12904 fi
12905 rm -f conftest.err conftest.$ac_ext
12906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12907 echo "${ECHO_T}$ac_header_preproc" >&6
12908
12909 # So?  What about this header?
12910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12911   yes:no: )
12912     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12916     ac_header_preproc=yes
12917     ;;
12918   no:yes:* )
12919     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12921     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12922 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12923     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12925     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12926 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12929     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12931     (
12932       cat <<\_ASBOX
12933 ## --------------------------------------------- ##
12934 ## Report this to <http://www.openldap.org/its/> ##
12935 ## --------------------------------------------- ##
12936 _ASBOX
12937     ) |
12938       sed "s/^/$as_me: WARNING:     /" >&2
12939     ;;
12940 esac
12941 echo "$as_me:$LINENO: checking for $ac_header" >&5
12942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12944   echo $ECHO_N "(cached) $ECHO_C" >&6
12945 else
12946   eval "$as_ac_Header=\$ac_header_preproc"
12947 fi
12948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12950
12951 fi
12952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12953   cat >>confdefs.h <<_ACEOF
12954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12955 _ACEOF
12956
12957 fi
12958
12959 done
12960
12961
12962         if test $ac_cv_header_ltdl_h = no ; then
12963                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
12964 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
12965    { (exit 1); exit 1; }; }
12966         fi
12967
12968         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
12969 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
12970 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
12971   echo $ECHO_N "(cached) $ECHO_C" >&6
12972 else
12973   ac_check_lib_save_LIBS=$LIBS
12974 LIBS="-lltdl  $LIBS"
12975 cat >conftest.$ac_ext <<_ACEOF
12976 /* confdefs.h.  */
12977 _ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h.  */
12981
12982 /* Override any gcc2 internal prototype to avoid an error.  */
12983 #ifdef __cplusplus
12984 extern "C"
12985 #endif
12986 /* We use char because int might match the return type of a gcc2
12987    builtin and then its argument prototype would still apply.  */
12988 char lt_dlinit ();
12989 int
12990 main ()
12991 {
12992 lt_dlinit ();
12993   ;
12994   return 0;
12995 }
12996 _ACEOF
12997 rm -f conftest.$ac_objext conftest$ac_exeext
12998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12999   (eval $ac_link) 2>conftest.er1
13000   ac_status=$?
13001   grep -v '^ *+' conftest.er1 >conftest.err
13002   rm -f conftest.er1
13003   cat conftest.err >&5
13004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005   (exit $ac_status); } &&
13006          { ac_try='test -z "$ac_c_werror_flag"
13007                          || test ! -s conftest.err'
13008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009   (eval $ac_try) 2>&5
13010   ac_status=$?
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); }; } &&
13013          { ac_try='test -s conftest$ac_exeext'
13014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015   (eval $ac_try) 2>&5
13016   ac_status=$?
13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018   (exit $ac_status); }; }; then
13019   ac_cv_lib_ltdl_lt_dlinit=yes
13020 else
13021   echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13023
13024 ac_cv_lib_ltdl_lt_dlinit=no
13025 fi
13026 rm -f conftest.err conftest.$ac_objext \
13027       conftest$ac_exeext conftest.$ac_ext
13028 LIBS=$ac_check_lib_save_LIBS
13029 fi
13030 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13031 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13032 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13033
13034                 MODULES_LIBS=-lltdl
13035
13036 cat >>confdefs.h <<\_ACEOF
13037 #define HAVE_LIBLTDL 1
13038 _ACEOF
13039
13040
13041 fi
13042
13043
13044         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13045                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13046 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13047    { (exit 1); exit 1; }; }
13048         fi
13049         ol_link_modules=yes
13050         WITH_MODULES_ENABLED=yes
13051
13052 else
13053         for i in $Backends; do
13054                 eval "ol_tmp=\$ol_enable_$i"
13055                 if test $ol_tmp = mod ; then
13056                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13057 echo "$as_me: WARNING: building static $i backend" >&2;}
13058                         eval "ol_enable_$i=yes"
13059                 fi
13060         done
13061         for i in $Overlays; do
13062                 eval "ol_tmp=\$ol_enable_$i"
13063                 if test $ol_tmp = mod ; then
13064                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13065 echo "$as_me: WARNING: building static $i overlay" >&2;}
13066                         eval "ol_enable_$i=yes"
13067                 fi
13068         done
13069 fi
13070
13071 # test for EBCDIC
13072 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13073 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13074 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13075   echo $ECHO_N "(cached) $ECHO_C" >&6
13076 else
13077
13078         cat >conftest.$ac_ext <<_ACEOF
13079 /* confdefs.h.  */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h.  */
13084
13085 #if !('M' == 0xd4)
13086 #include <__ASCII__/generate_error.h>
13087 #endif
13088
13089 _ACEOF
13090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13092   ac_status=$?
13093   grep -v '^ *+' conftest.er1 >conftest.err
13094   rm -f conftest.er1
13095   cat conftest.err >&5
13096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097   (exit $ac_status); } >/dev/null; then
13098   if test -s conftest.err; then
13099     ac_cpp_err=$ac_c_preproc_warn_flag
13100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13101   else
13102     ac_cpp_err=
13103   fi
13104 else
13105   ac_cpp_err=yes
13106 fi
13107 if test -z "$ac_cpp_err"; then
13108   ol_cv_cpp_ebcdic=yes
13109 else
13110   echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13112
13113   ol_cv_cpp_ebcdic=no
13114 fi
13115 rm -f conftest.err conftest.$ac_ext
13116 fi
13117 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13118 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13119 if test $ol_cv_cpp_ebcdic = yes ; then
13120
13121 cat >>confdefs.h <<\_ACEOF
13122 #define HAVE_EBCDIC 1
13123 _ACEOF
13124
13125 fi
13126
13127 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13128 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13129 if test "${ol_cv_header_stdc+set}" = set; then
13130   echo $ECHO_N "(cached) $ECHO_C" >&6
13131 else
13132   cat >conftest.$ac_ext <<_ACEOF
13133 /* confdefs.h.  */
13134 _ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h.  */
13138 #include <stdlib.h>
13139 #include <stdarg.h>
13140 #include <string.h>
13141 #include <float.h>
13142 _ACEOF
13143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13145   ac_status=$?
13146   grep -v '^ *+' conftest.er1 >conftest.err
13147   rm -f conftest.er1
13148   cat conftest.err >&5
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); } >/dev/null; then
13151   if test -s conftest.err; then
13152     ac_cpp_err=$ac_c_preproc_warn_flag
13153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13154   else
13155     ac_cpp_err=
13156   fi
13157 else
13158   ac_cpp_err=yes
13159 fi
13160 if test -z "$ac_cpp_err"; then
13161   ol_cv_header_stdc=yes
13162 else
13163   echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13165
13166   ol_cv_header_stdc=no
13167 fi
13168 rm -f conftest.err conftest.$ac_ext
13169
13170 if test $ol_cv_header_stdc = yes; then
13171   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13172 cat >conftest.$ac_ext <<_ACEOF
13173 /* confdefs.h.  */
13174 _ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h.  */
13178 #include <string.h>
13179
13180 _ACEOF
13181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13182   $EGREP "memchr" >/dev/null 2>&1; then
13183   :
13184 else
13185   ol_cv_header_stdc=no
13186 fi
13187 rm -f conftest*
13188
13189 fi
13190
13191 if test $ol_cv_header_stdc = yes; then
13192   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13193 cat >conftest.$ac_ext <<_ACEOF
13194 /* confdefs.h.  */
13195 _ACEOF
13196 cat confdefs.h >>conftest.$ac_ext
13197 cat >>conftest.$ac_ext <<_ACEOF
13198 /* end confdefs.h.  */
13199 #include <stdlib.h>
13200
13201 _ACEOF
13202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13203   $EGREP "free" >/dev/null 2>&1; then
13204   :
13205 else
13206   ol_cv_header_stdc=no
13207 fi
13208 rm -f conftest*
13209
13210 fi
13211
13212 if test $ol_cv_header_stdc = yes; then
13213   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13214 if test "$cross_compiling" = yes; then
13215   :
13216 else
13217   cat >conftest.$ac_ext <<_ACEOF
13218 /* confdefs.h.  */
13219 _ACEOF
13220 cat confdefs.h >>conftest.$ac_ext
13221 cat >>conftest.$ac_ext <<_ACEOF
13222 /* end confdefs.h.  */
13223 #include <ctype.h>
13224 #ifndef HAVE_EBCDIC
13225 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13226 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13227 #else
13228 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13229                 || ('j' <= (c) && (c) <= 'r') \
13230                 || ('s' <= (c) && (c) <= 'z'))
13231 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13232 #endif
13233 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13234 int main () { int i; for (i = 0; i < 256; i++)
13235 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13236 exit (0); }
13237
13238 _ACEOF
13239 rm -f conftest$ac_exeext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13241   (eval $ac_link) 2>&5
13242   ac_status=$?
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246   (eval $ac_try) 2>&5
13247   ac_status=$?
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); }; }; then
13250   :
13251 else
13252   echo "$as_me: program exited with status $ac_status" >&5
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13255
13256 ( exit $ac_status )
13257 ol_cv_header_stdc=no
13258 fi
13259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13260 fi
13261 fi
13262 fi
13263 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13264 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13265 if test $ol_cv_header_stdc = yes; then
13266   cat >>confdefs.h <<\_ACEOF
13267 #define STDC_HEADERS 1
13268 _ACEOF
13269
13270 fi
13271 ac_cv_header_stdc=disable
13272
13273
13274 if test $ol_cv_header_stdc != yes; then
13275         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13276 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13277 fi
13278
13279
13280
13281
13282
13283
13284 ac_header_dirent=no
13285 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13286   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13287 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13288 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13290   echo $ECHO_N "(cached) $ECHO_C" >&6
13291 else
13292   cat >conftest.$ac_ext <<_ACEOF
13293 /* confdefs.h.  */
13294 _ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h.  */
13298 #include <sys/types.h>
13299 #include <$ac_hdr>
13300
13301 int
13302 main ()
13303 {
13304 if ((DIR *) 0)
13305 return 0;
13306   ;
13307   return 0;
13308 }
13309 _ACEOF
13310 rm -f conftest.$ac_objext
13311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13312   (eval $ac_compile) 2>conftest.er1
13313   ac_status=$?
13314   grep -v '^ *+' conftest.er1 >conftest.err
13315   rm -f conftest.er1
13316   cat conftest.err >&5
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); } &&
13319          { ac_try='test -z "$ac_c_werror_flag"
13320                          || test ! -s conftest.err'
13321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322   (eval $ac_try) 2>&5
13323   ac_status=$?
13324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325   (exit $ac_status); }; } &&
13326          { ac_try='test -s conftest.$ac_objext'
13327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328   (eval $ac_try) 2>&5
13329   ac_status=$?
13330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331   (exit $ac_status); }; }; then
13332   eval "$as_ac_Header=yes"
13333 else
13334   echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13336
13337 eval "$as_ac_Header=no"
13338 fi
13339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13340 fi
13341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13344   cat >>confdefs.h <<_ACEOF
13345 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13346 _ACEOF
13347
13348 ac_header_dirent=$ac_hdr; break
13349 fi
13350
13351 done
13352 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13353 if test $ac_header_dirent = dirent.h; then
13354   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13355 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13356 if test "${ac_cv_search_opendir+set}" = set; then
13357   echo $ECHO_N "(cached) $ECHO_C" >&6
13358 else
13359   ac_func_search_save_LIBS=$LIBS
13360 ac_cv_search_opendir=no
13361 cat >conftest.$ac_ext <<_ACEOF
13362 /* confdefs.h.  */
13363 _ACEOF
13364 cat confdefs.h >>conftest.$ac_ext
13365 cat >>conftest.$ac_ext <<_ACEOF
13366 /* end confdefs.h.  */
13367
13368 /* Override any gcc2 internal prototype to avoid an error.  */
13369 #ifdef __cplusplus
13370 extern "C"
13371 #endif
13372 /* We use char because int might match the return type of a gcc2
13373    builtin and then its argument prototype would still apply.  */
13374 char opendir ();
13375 int
13376 main ()
13377 {
13378 opendir ();
13379   ;
13380   return 0;
13381 }
13382 _ACEOF
13383 rm -f conftest.$ac_objext conftest$ac_exeext
13384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13385   (eval $ac_link) 2>conftest.er1
13386   ac_status=$?
13387   grep -v '^ *+' conftest.er1 >conftest.err
13388   rm -f conftest.er1
13389   cat conftest.err >&5
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); } &&
13392          { ac_try='test -z "$ac_c_werror_flag"
13393                          || test ! -s conftest.err'
13394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395   (eval $ac_try) 2>&5
13396   ac_status=$?
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); }; } &&
13399          { ac_try='test -s conftest$ac_exeext'
13400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401   (eval $ac_try) 2>&5
13402   ac_status=$?
13403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404   (exit $ac_status); }; }; then
13405   ac_cv_search_opendir="none required"
13406 else
13407   echo "$as_me: failed program was:" >&5
13408 sed 's/^/| /' conftest.$ac_ext >&5
13409
13410 fi
13411 rm -f conftest.err conftest.$ac_objext \
13412       conftest$ac_exeext conftest.$ac_ext
13413 if test "$ac_cv_search_opendir" = no; then
13414   for ac_lib in dir; do
13415     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13416     cat >conftest.$ac_ext <<_ACEOF
13417 /* confdefs.h.  */
13418 _ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h.  */
13422
13423 /* Override any gcc2 internal prototype to avoid an error.  */
13424 #ifdef __cplusplus
13425 extern "C"
13426 #endif
13427 /* We use char because int might match the return type of a gcc2
13428    builtin and then its argument prototype would still apply.  */
13429 char opendir ();
13430 int
13431 main ()
13432 {
13433 opendir ();
13434   ;
13435   return 0;
13436 }
13437 _ACEOF
13438 rm -f conftest.$ac_objext conftest$ac_exeext
13439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13440   (eval $ac_link) 2>conftest.er1
13441   ac_status=$?
13442   grep -v '^ *+' conftest.er1 >conftest.err
13443   rm -f conftest.er1
13444   cat conftest.err >&5
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); } &&
13447          { ac_try='test -z "$ac_c_werror_flag"
13448                          || test ! -s conftest.err'
13449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450   (eval $ac_try) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; } &&
13454          { ac_try='test -s conftest$ac_exeext'
13455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456   (eval $ac_try) 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); }; }; then
13460   ac_cv_search_opendir="-l$ac_lib"
13461 break
13462 else
13463   echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13465
13466 fi
13467 rm -f conftest.err conftest.$ac_objext \
13468       conftest$ac_exeext conftest.$ac_ext
13469   done
13470 fi
13471 LIBS=$ac_func_search_save_LIBS
13472 fi
13473 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13474 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13475 if test "$ac_cv_search_opendir" != no; then
13476   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13477
13478 fi
13479
13480 else
13481   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13482 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13483 if test "${ac_cv_search_opendir+set}" = set; then
13484   echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486   ac_func_search_save_LIBS=$LIBS
13487 ac_cv_search_opendir=no
13488 cat >conftest.$ac_ext <<_ACEOF
13489 /* confdefs.h.  */
13490 _ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h.  */
13494
13495 /* Override any gcc2 internal prototype to avoid an error.  */
13496 #ifdef __cplusplus
13497 extern "C"
13498 #endif
13499 /* We use char because int might match the return type of a gcc2
13500    builtin and then its argument prototype would still apply.  */
13501 char opendir ();
13502 int
13503 main ()
13504 {
13505 opendir ();
13506   ;
13507   return 0;
13508 }
13509 _ACEOF
13510 rm -f conftest.$ac_objext conftest$ac_exeext
13511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13512   (eval $ac_link) 2>conftest.er1
13513   ac_status=$?
13514   grep -v '^ *+' conftest.er1 >conftest.err
13515   rm -f conftest.er1
13516   cat conftest.err >&5
13517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518   (exit $ac_status); } &&
13519          { ac_try='test -z "$ac_c_werror_flag"
13520                          || test ! -s conftest.err'
13521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522   (eval $ac_try) 2>&5
13523   ac_status=$?
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); }; } &&
13526          { ac_try='test -s conftest$ac_exeext'
13527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528   (eval $ac_try) 2>&5
13529   ac_status=$?
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); }; }; then
13532   ac_cv_search_opendir="none required"
13533 else
13534   echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13536
13537 fi
13538 rm -f conftest.err conftest.$ac_objext \
13539       conftest$ac_exeext conftest.$ac_ext
13540 if test "$ac_cv_search_opendir" = no; then
13541   for ac_lib in x; do
13542     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13543     cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h.  */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h.  */
13549
13550 /* Override any gcc2 internal prototype to avoid an error.  */
13551 #ifdef __cplusplus
13552 extern "C"
13553 #endif
13554 /* We use char because int might match the return type of a gcc2
13555    builtin and then its argument prototype would still apply.  */
13556 char opendir ();
13557 int
13558 main ()
13559 {
13560 opendir ();
13561   ;
13562   return 0;
13563 }
13564 _ACEOF
13565 rm -f conftest.$ac_objext conftest$ac_exeext
13566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13567   (eval $ac_link) 2>conftest.er1
13568   ac_status=$?
13569   grep -v '^ *+' conftest.er1 >conftest.err
13570   rm -f conftest.er1
13571   cat conftest.err >&5
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); } &&
13574          { ac_try='test -z "$ac_c_werror_flag"
13575                          || test ! -s conftest.err'
13576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577   (eval $ac_try) 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); }; } &&
13581          { ac_try='test -s conftest$ac_exeext'
13582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583   (eval $ac_try) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }; }; then
13587   ac_cv_search_opendir="-l$ac_lib"
13588 break
13589 else
13590   echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13592
13593 fi
13594 rm -f conftest.err conftest.$ac_objext \
13595       conftest$ac_exeext conftest.$ac_ext
13596   done
13597 fi
13598 LIBS=$ac_func_search_save_LIBS
13599 fi
13600 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13601 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13602 if test "$ac_cv_search_opendir" != no; then
13603   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13604
13605 fi
13606
13607 fi
13608
13609 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13610 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13611 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13612   echo $ECHO_N "(cached) $ECHO_C" >&6
13613 else
13614   cat >conftest.$ac_ext <<_ACEOF
13615 /* confdefs.h.  */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h.  */
13620 #include <sys/types.h>
13621 #include <sys/wait.h>
13622 #ifndef WEXITSTATUS
13623 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13624 #endif
13625 #ifndef WIFEXITED
13626 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13627 #endif
13628
13629 int
13630 main ()
13631 {
13632   int s;
13633   wait (&s);
13634   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13635   ;
13636   return 0;
13637 }
13638 _ACEOF
13639 rm -f conftest.$ac_objext
13640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13641   (eval $ac_compile) 2>conftest.er1
13642   ac_status=$?
13643   grep -v '^ *+' conftest.er1 >conftest.err
13644   rm -f conftest.er1
13645   cat conftest.err >&5
13646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); } &&
13648          { ac_try='test -z "$ac_c_werror_flag"
13649                          || test ! -s conftest.err'
13650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651   (eval $ac_try) 2>&5
13652   ac_status=$?
13653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654   (exit $ac_status); }; } &&
13655          { ac_try='test -s conftest.$ac_objext'
13656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657   (eval $ac_try) 2>&5
13658   ac_status=$?
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); }; }; then
13661   ac_cv_header_sys_wait_h=yes
13662 else
13663   echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13665
13666 ac_cv_header_sys_wait_h=no
13667 fi
13668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13669 fi
13670 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13671 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13672 if test $ac_cv_header_sys_wait_h = yes; then
13673
13674 cat >>confdefs.h <<\_ACEOF
13675 #define HAVE_SYS_WAIT_H 1
13676 _ACEOF
13677
13678 fi
13679
13680 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13681 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13682 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13683   echo $ECHO_N "(cached) $ECHO_C" >&6
13684 else
13685   cat >conftest.$ac_ext <<_ACEOF
13686 /* confdefs.h.  */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h.  */
13691 #include <sys/types.h>
13692 #include <termios.h>
13693 #ifdef TIOCGWINSZ
13694   yes
13695 #endif
13696
13697 _ACEOF
13698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13699   $EGREP "yes" >/dev/null 2>&1; then
13700   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13701 else
13702   ac_cv_sys_tiocgwinsz_in_termios_h=no
13703 fi
13704 rm -f conftest*
13705
13706 fi
13707 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13708 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13709
13710 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13711   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13712 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13713 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13714   echo $ECHO_N "(cached) $ECHO_C" >&6
13715 else
13716   cat >conftest.$ac_ext <<_ACEOF
13717 /* confdefs.h.  */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h.  */
13722 #include <sys/types.h>
13723 #include <sys/ioctl.h>
13724 #ifdef TIOCGWINSZ
13725   yes
13726 #endif
13727
13728 _ACEOF
13729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13730   $EGREP "yes" >/dev/null 2>&1; then
13731   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13732 else
13733   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13734 fi
13735 rm -f conftest*
13736
13737 fi
13738 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13739 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13740
13741   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13742
13743 cat >>confdefs.h <<\_ACEOF
13744 #define GWINSZ_IN_SYS_IOCTL 1
13745 _ACEOF
13746
13747   fi
13748 fi
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798 for ac_header in \
13799         arpa/inet.h             \
13800         arpa/nameser.h  \
13801         assert.h                \
13802         bits/types.h    \
13803         conio.h                 \
13804         crypt.h                 \
13805         direct.h                \
13806         errno.h                 \
13807         fcntl.h                 \
13808         filio.h                 \
13809         getopt.h                \
13810         grp.h                   \
13811         io.h                    \
13812         libutil.h               \
13813         limits.h                \
13814         locale.h                \
13815         malloc.h                \
13816         memory.h                \
13817         psap.h                  \
13818         pwd.h                   \
13819         process.h               \
13820         sgtty.h                 \
13821         shadow.h                \
13822         stddef.h                \
13823         string.h                \
13824         strings.h               \
13825         sysexits.h              \
13826         sys/file.h              \
13827         sys/filio.h             \
13828         sys/fstyp.h             \
13829         sys/errno.h             \
13830         sys/ioctl.h             \
13831         sys/param.h             \
13832         sys/privgrp.h   \
13833         sys/resource.h  \
13834         sys/select.h    \
13835         sys/socket.h    \
13836         sys/stat.h              \
13837         sys/syslog.h    \
13838         sys/time.h              \
13839         sys/types.h             \
13840         sys/uio.h               \
13841         sys/vmount.h    \
13842         syslog.h                \
13843         termios.h               \
13844         unistd.h                \
13845         utime.h                 \
13846
13847 do
13848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13850   echo "$as_me:$LINENO: checking for $ac_header" >&5
13851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13853   echo $ECHO_N "(cached) $ECHO_C" >&6
13854 fi
13855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13857 else
13858   # Is the header compilable?
13859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13861 cat >conftest.$ac_ext <<_ACEOF
13862 /* confdefs.h.  */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h.  */
13867 $ac_includes_default
13868 #include <$ac_header>
13869 _ACEOF
13870 rm -f conftest.$ac_objext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13872   (eval $ac_compile) 2>conftest.er1
13873   ac_status=$?
13874   grep -v '^ *+' conftest.er1 >conftest.err
13875   rm -f conftest.er1
13876   cat conftest.err >&5
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); } &&
13879          { ac_try='test -z "$ac_c_werror_flag"
13880                          || test ! -s conftest.err'
13881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882   (eval $ac_try) 2>&5
13883   ac_status=$?
13884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885   (exit $ac_status); }; } &&
13886          { ac_try='test -s conftest.$ac_objext'
13887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888   (eval $ac_try) 2>&5
13889   ac_status=$?
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); }; }; then
13892   ac_header_compiler=yes
13893 else
13894   echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13896
13897 ac_header_compiler=no
13898 fi
13899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13901 echo "${ECHO_T}$ac_header_compiler" >&6
13902
13903 # Is the header present?
13904 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13906 cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h.  */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h.  */
13912 #include <$ac_header>
13913 _ACEOF
13914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13915   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13916   ac_status=$?
13917   grep -v '^ *+' conftest.er1 >conftest.err
13918   rm -f conftest.er1
13919   cat conftest.err >&5
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); } >/dev/null; then
13922   if test -s conftest.err; then
13923     ac_cpp_err=$ac_c_preproc_warn_flag
13924     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13925   else
13926     ac_cpp_err=
13927   fi
13928 else
13929   ac_cpp_err=yes
13930 fi
13931 if test -z "$ac_cpp_err"; then
13932   ac_header_preproc=yes
13933 else
13934   echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13936
13937   ac_header_preproc=no
13938 fi
13939 rm -f conftest.err conftest.$ac_ext
13940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13941 echo "${ECHO_T}$ac_header_preproc" >&6
13942
13943 # So?  What about this header?
13944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13945   yes:no: )
13946     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13950     ac_header_preproc=yes
13951     ;;
13952   no:yes:* )
13953     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13955     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13956 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13957     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13959     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13960 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13963     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13965     (
13966       cat <<\_ASBOX
13967 ## --------------------------------------------- ##
13968 ## Report this to <http://www.openldap.org/its/> ##
13969 ## --------------------------------------------- ##
13970 _ASBOX
13971     ) |
13972       sed "s/^/$as_me: WARNING:     /" >&2
13973     ;;
13974 esac
13975 echo "$as_me:$LINENO: checking for $ac_header" >&5
13976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13978   echo $ECHO_N "(cached) $ECHO_C" >&6
13979 else
13980   eval "$as_ac_Header=\$ac_header_preproc"
13981 fi
13982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13984
13985 fi
13986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13987   cat >>confdefs.h <<_ACEOF
13988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13989 _ACEOF
13990
13991 fi
13992
13993 done
13994
13995
13996 if test "$ac_cv_mingw32" = yes ; then
13997
13998
13999 for ac_header in winsock.h winsock2.h
14000 do
14001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14003   echo "$as_me:$LINENO: checking for $ac_header" >&5
14004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14006   echo $ECHO_N "(cached) $ECHO_C" >&6
14007 fi
14008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14010 else
14011   # Is the header compilable?
14012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14014 cat >conftest.$ac_ext <<_ACEOF
14015 /* confdefs.h.  */
14016 _ACEOF
14017 cat confdefs.h >>conftest.$ac_ext
14018 cat >>conftest.$ac_ext <<_ACEOF
14019 /* end confdefs.h.  */
14020 $ac_includes_default
14021 #include <$ac_header>
14022 _ACEOF
14023 rm -f conftest.$ac_objext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025   (eval $ac_compile) 2>conftest.er1
14026   ac_status=$?
14027   grep -v '^ *+' conftest.er1 >conftest.err
14028   rm -f conftest.er1
14029   cat conftest.err >&5
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); } &&
14032          { ac_try='test -z "$ac_c_werror_flag"
14033                          || test ! -s conftest.err'
14034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035   (eval $ac_try) 2>&5
14036   ac_status=$?
14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); }; } &&
14039          { ac_try='test -s conftest.$ac_objext'
14040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041   (eval $ac_try) 2>&5
14042   ac_status=$?
14043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); }; }; then
14045   ac_header_compiler=yes
14046 else
14047   echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14049
14050 ac_header_compiler=no
14051 fi
14052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14054 echo "${ECHO_T}$ac_header_compiler" >&6
14055
14056 # Is the header present?
14057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14059 cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h.  */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h.  */
14065 #include <$ac_header>
14066 _ACEOF
14067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14068   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14069   ac_status=$?
14070   grep -v '^ *+' conftest.er1 >conftest.err
14071   rm -f conftest.er1
14072   cat conftest.err >&5
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); } >/dev/null; then
14075   if test -s conftest.err; then
14076     ac_cpp_err=$ac_c_preproc_warn_flag
14077     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14078   else
14079     ac_cpp_err=
14080   fi
14081 else
14082   ac_cpp_err=yes
14083 fi
14084 if test -z "$ac_cpp_err"; then
14085   ac_header_preproc=yes
14086 else
14087   echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14089
14090   ac_header_preproc=no
14091 fi
14092 rm -f conftest.err conftest.$ac_ext
14093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14094 echo "${ECHO_T}$ac_header_preproc" >&6
14095
14096 # So?  What about this header?
14097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14098   yes:no: )
14099     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14103     ac_header_preproc=yes
14104     ;;
14105   no:yes:* )
14106     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14108     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14109 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14110     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14112     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14113 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14116     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14118     (
14119       cat <<\_ASBOX
14120 ## --------------------------------------------- ##
14121 ## Report this to <http://www.openldap.org/its/> ##
14122 ## --------------------------------------------- ##
14123 _ASBOX
14124     ) |
14125       sed "s/^/$as_me: WARNING:     /" >&2
14126     ;;
14127 esac
14128 echo "$as_me:$LINENO: checking for $ac_header" >&5
14129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14131   echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133   eval "$as_ac_Header=\$ac_header_preproc"
14134 fi
14135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14137
14138 fi
14139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14140   cat >>confdefs.h <<_ACEOF
14141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14142 _ACEOF
14143
14144 fi
14145
14146 done
14147
14148 fi
14149
14150
14151 for ac_header in resolv.h
14152 do
14153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14154 echo "$as_me:$LINENO: checking for $ac_header" >&5
14155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14157   echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159   cat >conftest.$ac_ext <<_ACEOF
14160 /* confdefs.h.  */
14161 _ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h.  */
14165 $ac_includes_default
14166 #include <netinet/in.h>
14167
14168
14169 #include <$ac_header>
14170 _ACEOF
14171 rm -f conftest.$ac_objext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14173   (eval $ac_compile) 2>conftest.er1
14174   ac_status=$?
14175   grep -v '^ *+' conftest.er1 >conftest.err
14176   rm -f conftest.er1
14177   cat conftest.err >&5
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); } &&
14180          { ac_try='test -z "$ac_c_werror_flag"
14181                          || test ! -s conftest.err'
14182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183   (eval $ac_try) 2>&5
14184   ac_status=$?
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); }; } &&
14187          { ac_try='test -s conftest.$ac_objext'
14188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189   (eval $ac_try) 2>&5
14190   ac_status=$?
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); }; }; then
14193   eval "$as_ac_Header=yes"
14194 else
14195   echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14197
14198 eval "$as_ac_Header=no"
14199 fi
14200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14201 fi
14202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14205   cat >>confdefs.h <<_ACEOF
14206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14207 _ACEOF
14208
14209 fi
14210
14211 done
14212
14213
14214
14215 for ac_header in netinet/tcp.h
14216 do
14217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14218 echo "$as_me:$LINENO: checking for $ac_header" >&5
14219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14221   echo $ECHO_N "(cached) $ECHO_C" >&6
14222 else
14223   cat >conftest.$ac_ext <<_ACEOF
14224 /* confdefs.h.  */
14225 _ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h.  */
14229 $ac_includes_default
14230 #include <netinet/in.h>
14231
14232
14233 #include <$ac_header>
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14237   (eval $ac_compile) 2>conftest.er1
14238   ac_status=$?
14239   grep -v '^ *+' conftest.er1 >conftest.err
14240   rm -f conftest.er1
14241   cat conftest.err >&5
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); } &&
14244          { ac_try='test -z "$ac_c_werror_flag"
14245                          || test ! -s conftest.err'
14246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247   (eval $ac_try) 2>&5
14248   ac_status=$?
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); }; } &&
14251          { ac_try='test -s conftest.$ac_objext'
14252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253   (eval $ac_try) 2>&5
14254   ac_status=$?
14255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256   (exit $ac_status); }; }; then
14257   eval "$as_ac_Header=yes"
14258 else
14259   echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14261
14262 eval "$as_ac_Header=no"
14263 fi
14264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14265 fi
14266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14269   cat >>confdefs.h <<_ACEOF
14270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14271 _ACEOF
14272
14273 fi
14274
14275 done
14276
14277
14278
14279 for ac_header in sys/ucred.h
14280 do
14281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14282 echo "$as_me:$LINENO: checking for $ac_header" >&5
14283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14285   echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287   cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h.  */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h.  */
14293 $ac_includes_default
14294 #ifdef HAVE_SYS_PARAM_H
14295 #include <sys/param.h>
14296 #endif
14297
14298
14299 #include <$ac_header>
14300 _ACEOF
14301 rm -f conftest.$ac_objext
14302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14303   (eval $ac_compile) 2>conftest.er1
14304   ac_status=$?
14305   grep -v '^ *+' conftest.er1 >conftest.err
14306   rm -f conftest.er1
14307   cat conftest.err >&5
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); } &&
14310          { ac_try='test -z "$ac_c_werror_flag"
14311                          || test ! -s conftest.err'
14312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313   (eval $ac_try) 2>&5
14314   ac_status=$?
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); }; } &&
14317          { ac_try='test -s conftest.$ac_objext'
14318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319   (eval $ac_try) 2>&5
14320   ac_status=$?
14321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322   (exit $ac_status); }; }; then
14323   eval "$as_ac_Header=yes"
14324 else
14325   echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14327
14328 eval "$as_ac_Header=no"
14329 fi
14330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14331 fi
14332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14335   cat >>confdefs.h <<_ACEOF
14336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14337 _ACEOF
14338
14339 fi
14340
14341 done
14342
14343
14344
14345
14346
14347 for ac_func in sigaction sigset
14348 do
14349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14350 echo "$as_me:$LINENO: checking for $ac_func" >&5
14351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14352 if eval "test \"\${$as_ac_var+set}\" = set"; then
14353   echo $ECHO_N "(cached) $ECHO_C" >&6
14354 else
14355   cat >conftest.$ac_ext <<_ACEOF
14356 /* confdefs.h.  */
14357 _ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h.  */
14361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14363 #define $ac_func innocuous_$ac_func
14364
14365 /* System header to define __stub macros and hopefully few prototypes,
14366     which can conflict with char $ac_func (); below.
14367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14368     <limits.h> exists even on freestanding compilers.  */
14369
14370 #ifdef __STDC__
14371 # include <limits.h>
14372 #else
14373 # include <assert.h>
14374 #endif
14375
14376 #undef $ac_func
14377
14378 /* Override any gcc2 internal prototype to avoid an error.  */
14379 #ifdef __cplusplus
14380 extern "C"
14381 {
14382 #endif
14383 /* We use char because int might match the return type of a gcc2
14384    builtin and then its argument prototype would still apply.  */
14385 char $ac_func ();
14386 /* The GNU C library defines this for functions which it implements
14387     to always fail with ENOSYS.  Some functions are actually named
14388     something starting with __ and the normal name is an alias.  */
14389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14390 choke me
14391 #else
14392 char (*f) () = $ac_func;
14393 #endif
14394 #ifdef __cplusplus
14395 }
14396 #endif
14397
14398 int
14399 main ()
14400 {
14401 return f != $ac_func;
14402   ;
14403   return 0;
14404 }
14405 _ACEOF
14406 rm -f conftest.$ac_objext conftest$ac_exeext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14408   (eval $ac_link) 2>conftest.er1
14409   ac_status=$?
14410   grep -v '^ *+' conftest.er1 >conftest.err
14411   rm -f conftest.er1
14412   cat conftest.err >&5
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); } &&
14415          { ac_try='test -z "$ac_c_werror_flag"
14416                          || test ! -s conftest.err'
14417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418   (eval $ac_try) 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); }; } &&
14422          { ac_try='test -s conftest$ac_exeext'
14423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424   (eval $ac_try) 2>&5
14425   ac_status=$?
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); }; }; then
14428   eval "$as_ac_var=yes"
14429 else
14430   echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14432
14433 eval "$as_ac_var=no"
14434 fi
14435 rm -f conftest.err conftest.$ac_objext \
14436       conftest$ac_exeext conftest.$ac_ext
14437 fi
14438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14440 if test `eval echo '${'$as_ac_var'}'` = yes; then
14441   cat >>confdefs.h <<_ACEOF
14442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14443 _ACEOF
14444
14445 fi
14446 done
14447
14448
14449 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14450
14451 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14452 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14453 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14454   echo $ECHO_N "(cached) $ECHO_C" >&6
14455 else
14456   ac_check_lib_save_LIBS=$LIBS
14457 LIBS="-lV3  $LIBS"
14458 cat >conftest.$ac_ext <<_ACEOF
14459 /* confdefs.h.  */
14460 _ACEOF
14461 cat confdefs.h >>conftest.$ac_ext
14462 cat >>conftest.$ac_ext <<_ACEOF
14463 /* end confdefs.h.  */
14464
14465 /* Override any gcc2 internal prototype to avoid an error.  */
14466 #ifdef __cplusplus
14467 extern "C"
14468 #endif
14469 /* We use char because int might match the return type of a gcc2
14470    builtin and then its argument prototype would still apply.  */
14471 char sigset ();
14472 int
14473 main ()
14474 {
14475 sigset ();
14476   ;
14477   return 0;
14478 }
14479 _ACEOF
14480 rm -f conftest.$ac_objext conftest$ac_exeext
14481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14482   (eval $ac_link) 2>conftest.er1
14483   ac_status=$?
14484   grep -v '^ *+' conftest.er1 >conftest.err
14485   rm -f conftest.er1
14486   cat conftest.err >&5
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); } &&
14489          { ac_try='test -z "$ac_c_werror_flag"
14490                          || test ! -s conftest.err'
14491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492   (eval $ac_try) 2>&5
14493   ac_status=$?
14494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495   (exit $ac_status); }; } &&
14496          { ac_try='test -s conftest$ac_exeext'
14497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498   (eval $ac_try) 2>&5
14499   ac_status=$?
14500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501   (exit $ac_status); }; }; then
14502   ac_cv_lib_V3_sigset=yes
14503 else
14504   echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14506
14507 ac_cv_lib_V3_sigset=no
14508 fi
14509 rm -f conftest.err conftest.$ac_objext \
14510       conftest$ac_exeext conftest.$ac_ext
14511 LIBS=$ac_check_lib_save_LIBS
14512 fi
14513 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14514 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14515 if test $ac_cv_lib_V3_sigset = yes; then
14516   cat >>confdefs.h <<_ACEOF
14517 #define HAVE_LIBV3 1
14518 _ACEOF
14519
14520   LIBS="-lV3 $LIBS"
14521
14522 fi
14523
14524 fi
14525
14526 if test "$ac_cv_header_winsock_h" = yes; then
14527 echo "$as_me:$LINENO: checking for winsock" >&5
14528 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14529 if test "${ol_cv_winsock+set}" = set; then
14530   echo $ECHO_N "(cached) $ECHO_C" >&6
14531 else
14532   save_LIBS="$LIBS"
14533 for curlib in ws2_32 wsock32; do
14534         LIBS="$LIBS -l$curlib"
14535         cat >conftest.$ac_ext <<_ACEOF
14536 /* confdefs.h.  */
14537 _ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h.  */
14541 #include <winsock.h>
14542
14543 int
14544 main ()
14545 {
14546
14547                         socket(0,0,0);
14548                         select(0,NULL,NULL,NULL,NULL);
14549                         closesocket(0);
14550                         gethostname(NULL,0);
14551
14552   ;
14553   return 0;
14554 }
14555 _ACEOF
14556 rm -f conftest.$ac_objext conftest$ac_exeext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14558   (eval $ac_link) 2>conftest.er1
14559   ac_status=$?
14560   grep -v '^ *+' conftest.er1 >conftest.err
14561   rm -f conftest.er1
14562   cat conftest.err >&5
14563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   (exit $ac_status); } &&
14565          { ac_try='test -z "$ac_c_werror_flag"
14566                          || test ! -s conftest.err'
14567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568   (eval $ac_try) 2>&5
14569   ac_status=$?
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); }; } &&
14572          { ac_try='test -s conftest$ac_exeext'
14573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574   (eval $ac_try) 2>&5
14575   ac_status=$?
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); }; }; then
14578   ol_cv_winsock=yes
14579 else
14580   echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14582
14583 ol_cv_winsock=no
14584 fi
14585 rm -f conftest.err conftest.$ac_objext \
14586       conftest$ac_exeext conftest.$ac_ext
14587
14588         if test $ol_cv_winsock = yes; then
14589
14590 cat >>confdefs.h <<\_ACEOF
14591 #define HAVE_WINSOCK 1
14592 _ACEOF
14593
14594                 ac_cv_func_socket=yes
14595                 ac_cv_func_select=yes
14596                 ac_cv_func_closesocket=yes
14597                 ac_cv_func_gethostname=yes
14598                 if test $curlib = ws2_32; then
14599                         ol_cv_winsock=winsock2
14600
14601 cat >>confdefs.h <<\_ACEOF
14602 #define HAVE_WINSOCK2 1
14603 _ACEOF
14604
14605                 fi
14606                 break
14607         fi
14608         LIBS="$save_LIBS"
14609 done
14610 fi
14611 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14612 echo "${ECHO_T}$ol_cv_winsock" >&6
14613 fi
14614
14615
14616 echo "$as_me:$LINENO: checking for socket" >&5
14617 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14618 if test "${ac_cv_func_socket+set}" = set; then
14619   echo $ECHO_N "(cached) $ECHO_C" >&6
14620 else
14621   cat >conftest.$ac_ext <<_ACEOF
14622 /* confdefs.h.  */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h.  */
14627 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14629 #define socket innocuous_socket
14630
14631 /* System header to define __stub macros and hopefully few prototypes,
14632     which can conflict with char socket (); below.
14633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14634     <limits.h> exists even on freestanding compilers.  */
14635
14636 #ifdef __STDC__
14637 # include <limits.h>
14638 #else
14639 # include <assert.h>
14640 #endif
14641
14642 #undef socket
14643
14644 /* Override any gcc2 internal prototype to avoid an error.  */
14645 #ifdef __cplusplus
14646 extern "C"
14647 {
14648 #endif
14649 /* We use char because int might match the return type of a gcc2
14650    builtin and then its argument prototype would still apply.  */
14651 char socket ();
14652 /* The GNU C library defines this for functions which it implements
14653     to always fail with ENOSYS.  Some functions are actually named
14654     something starting with __ and the normal name is an alias.  */
14655 #if defined (__stub_socket) || defined (__stub___socket)
14656 choke me
14657 #else
14658 char (*f) () = socket;
14659 #endif
14660 #ifdef __cplusplus
14661 }
14662 #endif
14663
14664 int
14665 main ()
14666 {
14667 return f != socket;
14668   ;
14669   return 0;
14670 }
14671 _ACEOF
14672 rm -f conftest.$ac_objext conftest$ac_exeext
14673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14674   (eval $ac_link) 2>conftest.er1
14675   ac_status=$?
14676   grep -v '^ *+' conftest.er1 >conftest.err
14677   rm -f conftest.er1
14678   cat conftest.err >&5
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); } &&
14681          { ac_try='test -z "$ac_c_werror_flag"
14682                          || test ! -s conftest.err'
14683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684   (eval $ac_try) 2>&5
14685   ac_status=$?
14686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); }; } &&
14688          { ac_try='test -s conftest$ac_exeext'
14689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690   (eval $ac_try) 2>&5
14691   ac_status=$?
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); }; }; then
14694   ac_cv_func_socket=yes
14695 else
14696   echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14698
14699 ac_cv_func_socket=no
14700 fi
14701 rm -f conftest.err conftest.$ac_objext \
14702       conftest$ac_exeext conftest.$ac_ext
14703 fi
14704 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14705 echo "${ECHO_T}$ac_cv_func_socket" >&6
14706 if test $ac_cv_func_socket = yes; then
14707   :
14708 else
14709
14710
14711 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14712 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14713 if test "${ac_cv_lib_socket_main+set}" = set; then
14714   echo $ECHO_N "(cached) $ECHO_C" >&6
14715 else
14716   ac_check_lib_save_LIBS=$LIBS
14717 LIBS="-lsocket  $LIBS"
14718 cat >conftest.$ac_ext <<_ACEOF
14719 /* confdefs.h.  */
14720 _ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h.  */
14724
14725
14726 int
14727 main ()
14728 {
14729 main ();
14730   ;
14731   return 0;
14732 }
14733 _ACEOF
14734 rm -f conftest.$ac_objext conftest$ac_exeext
14735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14736   (eval $ac_link) 2>conftest.er1
14737   ac_status=$?
14738   grep -v '^ *+' conftest.er1 >conftest.err
14739   rm -f conftest.er1
14740   cat conftest.err >&5
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); } &&
14743          { ac_try='test -z "$ac_c_werror_flag"
14744                          || test ! -s conftest.err'
14745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746   (eval $ac_try) 2>&5
14747   ac_status=$?
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); }; } &&
14750          { ac_try='test -s conftest$ac_exeext'
14751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752   (eval $ac_try) 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); }; }; then
14756   ac_cv_lib_socket_main=yes
14757 else
14758   echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14760
14761 ac_cv_lib_socket_main=no
14762 fi
14763 rm -f conftest.err conftest.$ac_objext \
14764       conftest$ac_exeext conftest.$ac_ext
14765 LIBS=$ac_check_lib_save_LIBS
14766 fi
14767 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14768 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14769 if test $ac_cv_lib_socket_main = yes; then
14770   cat >>confdefs.h <<_ACEOF
14771 #define HAVE_LIBSOCKET 1
14772 _ACEOF
14773
14774   LIBS="-lsocket $LIBS"
14775
14776 fi
14777
14778
14779 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14780 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14781 if test "${ac_cv_lib_net_main+set}" = set; then
14782   echo $ECHO_N "(cached) $ECHO_C" >&6
14783 else
14784   ac_check_lib_save_LIBS=$LIBS
14785 LIBS="-lnet  $LIBS"
14786 cat >conftest.$ac_ext <<_ACEOF
14787 /* confdefs.h.  */
14788 _ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h.  */
14792
14793
14794 int
14795 main ()
14796 {
14797 main ();
14798   ;
14799   return 0;
14800 }
14801 _ACEOF
14802 rm -f conftest.$ac_objext conftest$ac_exeext
14803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14804   (eval $ac_link) 2>conftest.er1
14805   ac_status=$?
14806   grep -v '^ *+' conftest.er1 >conftest.err
14807   rm -f conftest.er1
14808   cat conftest.err >&5
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); } &&
14811          { ac_try='test -z "$ac_c_werror_flag"
14812                          || test ! -s conftest.err'
14813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814   (eval $ac_try) 2>&5
14815   ac_status=$?
14816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); }; } &&
14818          { ac_try='test -s conftest$ac_exeext'
14819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820   (eval $ac_try) 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); }; }; then
14824   ac_cv_lib_net_main=yes
14825 else
14826   echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14828
14829 ac_cv_lib_net_main=no
14830 fi
14831 rm -f conftest.err conftest.$ac_objext \
14832       conftest$ac_exeext conftest.$ac_ext
14833 LIBS=$ac_check_lib_save_LIBS
14834 fi
14835 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14836 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14837 if test $ac_cv_lib_net_main = yes; then
14838   cat >>confdefs.h <<_ACEOF
14839 #define HAVE_LIBNET 1
14840 _ACEOF
14841
14842   LIBS="-lnet $LIBS"
14843
14844 fi
14845
14846
14847 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14848 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14849 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14850   echo $ECHO_N "(cached) $ECHO_C" >&6
14851 else
14852   ac_check_lib_save_LIBS=$LIBS
14853 LIBS="-lnsl_s  $LIBS"
14854 cat >conftest.$ac_ext <<_ACEOF
14855 /* confdefs.h.  */
14856 _ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h.  */
14860
14861
14862 int
14863 main ()
14864 {
14865 main ();
14866   ;
14867   return 0;
14868 }
14869 _ACEOF
14870 rm -f conftest.$ac_objext conftest$ac_exeext
14871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14872   (eval $ac_link) 2>conftest.er1
14873   ac_status=$?
14874   grep -v '^ *+' conftest.er1 >conftest.err
14875   rm -f conftest.er1
14876   cat conftest.err >&5
14877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878   (exit $ac_status); } &&
14879          { ac_try='test -z "$ac_c_werror_flag"
14880                          || test ! -s conftest.err'
14881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882   (eval $ac_try) 2>&5
14883   ac_status=$?
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); }; } &&
14886          { ac_try='test -s conftest$ac_exeext'
14887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888   (eval $ac_try) 2>&5
14889   ac_status=$?
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); }; }; then
14892   ac_cv_lib_nsl_s_main=yes
14893 else
14894   echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14896
14897 ac_cv_lib_nsl_s_main=no
14898 fi
14899 rm -f conftest.err conftest.$ac_objext \
14900       conftest$ac_exeext conftest.$ac_ext
14901 LIBS=$ac_check_lib_save_LIBS
14902 fi
14903 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14904 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14905 if test $ac_cv_lib_nsl_s_main = yes; then
14906   cat >>confdefs.h <<_ACEOF
14907 #define HAVE_LIBNSL_S 1
14908 _ACEOF
14909
14910   LIBS="-lnsl_s $LIBS"
14911
14912 fi
14913
14914
14915 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14916 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14917 if test "${ac_cv_lib_nsl_main+set}" = set; then
14918   echo $ECHO_N "(cached) $ECHO_C" >&6
14919 else
14920   ac_check_lib_save_LIBS=$LIBS
14921 LIBS="-lnsl  $LIBS"
14922 cat >conftest.$ac_ext <<_ACEOF
14923 /* confdefs.h.  */
14924 _ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h.  */
14928
14929
14930 int
14931 main ()
14932 {
14933 main ();
14934   ;
14935   return 0;
14936 }
14937 _ACEOF
14938 rm -f conftest.$ac_objext conftest$ac_exeext
14939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14940   (eval $ac_link) 2>conftest.er1
14941   ac_status=$?
14942   grep -v '^ *+' conftest.er1 >conftest.err
14943   rm -f conftest.er1
14944   cat conftest.err >&5
14945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946   (exit $ac_status); } &&
14947          { ac_try='test -z "$ac_c_werror_flag"
14948                          || test ! -s conftest.err'
14949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950   (eval $ac_try) 2>&5
14951   ac_status=$?
14952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953   (exit $ac_status); }; } &&
14954          { ac_try='test -s conftest$ac_exeext'
14955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956   (eval $ac_try) 2>&5
14957   ac_status=$?
14958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959   (exit $ac_status); }; }; then
14960   ac_cv_lib_nsl_main=yes
14961 else
14962   echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14964
14965 ac_cv_lib_nsl_main=no
14966 fi
14967 rm -f conftest.err conftest.$ac_objext \
14968       conftest$ac_exeext conftest.$ac_ext
14969 LIBS=$ac_check_lib_save_LIBS
14970 fi
14971 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14972 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14973 if test $ac_cv_lib_nsl_main = yes; then
14974   cat >>confdefs.h <<_ACEOF
14975 #define HAVE_LIBNSL 1
14976 _ACEOF
14977
14978   LIBS="-lnsl $LIBS"
14979
14980 fi
14981
14982
14983 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14984 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14985 if test "${ac_cv_lib_inet_socket+set}" = set; then
14986   echo $ECHO_N "(cached) $ECHO_C" >&6
14987 else
14988   ac_check_lib_save_LIBS=$LIBS
14989 LIBS="-linet  $LIBS"
14990 cat >conftest.$ac_ext <<_ACEOF
14991 /* confdefs.h.  */
14992 _ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h.  */
14996
14997 /* Override any gcc2 internal prototype to avoid an error.  */
14998 #ifdef __cplusplus
14999 extern "C"
15000 #endif
15001 /* We use char because int might match the return type of a gcc2
15002    builtin and then its argument prototype would still apply.  */
15003 char socket ();
15004 int
15005 main ()
15006 {
15007 socket ();
15008   ;
15009   return 0;
15010 }
15011 _ACEOF
15012 rm -f conftest.$ac_objext conftest$ac_exeext
15013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15014   (eval $ac_link) 2>conftest.er1
15015   ac_status=$?
15016   grep -v '^ *+' conftest.er1 >conftest.err
15017   rm -f conftest.er1
15018   cat conftest.err >&5
15019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020   (exit $ac_status); } &&
15021          { ac_try='test -z "$ac_c_werror_flag"
15022                          || test ! -s conftest.err'
15023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024   (eval $ac_try) 2>&5
15025   ac_status=$?
15026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); }; } &&
15028          { ac_try='test -s conftest$ac_exeext'
15029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030   (eval $ac_try) 2>&5
15031   ac_status=$?
15032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033   (exit $ac_status); }; }; then
15034   ac_cv_lib_inet_socket=yes
15035 else
15036   echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.$ac_ext >&5
15038
15039 ac_cv_lib_inet_socket=no
15040 fi
15041 rm -f conftest.err conftest.$ac_objext \
15042       conftest$ac_exeext conftest.$ac_ext
15043 LIBS=$ac_check_lib_save_LIBS
15044 fi
15045 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15046 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15047 if test $ac_cv_lib_inet_socket = yes; then
15048   cat >>confdefs.h <<_ACEOF
15049 #define HAVE_LIBINET 1
15050 _ACEOF
15051
15052   LIBS="-linet $LIBS"
15053
15054 fi
15055
15056
15057 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15058 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15059 if test "${ac_cv_lib_gen_main+set}" = set; then
15060   echo $ECHO_N "(cached) $ECHO_C" >&6
15061 else
15062   ac_check_lib_save_LIBS=$LIBS
15063 LIBS="-lgen  $LIBS"
15064 cat >conftest.$ac_ext <<_ACEOF
15065 /* confdefs.h.  */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h.  */
15070
15071
15072 int
15073 main ()
15074 {
15075 main ();
15076   ;
15077   return 0;
15078 }
15079 _ACEOF
15080 rm -f conftest.$ac_objext conftest$ac_exeext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15082   (eval $ac_link) 2>conftest.er1
15083   ac_status=$?
15084   grep -v '^ *+' conftest.er1 >conftest.err
15085   rm -f conftest.er1
15086   cat conftest.err >&5
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); } &&
15089          { ac_try='test -z "$ac_c_werror_flag"
15090                          || test ! -s conftest.err'
15091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092   (eval $ac_try) 2>&5
15093   ac_status=$?
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); }; } &&
15096          { ac_try='test -s conftest$ac_exeext'
15097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098   (eval $ac_try) 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); }; }; then
15102   ac_cv_lib_gen_main=yes
15103 else
15104   echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15106
15107 ac_cv_lib_gen_main=no
15108 fi
15109 rm -f conftest.err conftest.$ac_objext \
15110       conftest$ac_exeext conftest.$ac_ext
15111 LIBS=$ac_check_lib_save_LIBS
15112 fi
15113 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15114 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15115 if test $ac_cv_lib_gen_main = yes; then
15116   cat >>confdefs.h <<_ACEOF
15117 #define HAVE_LIBGEN 1
15118 _ACEOF
15119
15120   LIBS="-lgen $LIBS"
15121
15122 fi
15123
15124
15125 fi
15126
15127
15128 echo "$as_me:$LINENO: checking for select" >&5
15129 echo $ECHO_N "checking for select... $ECHO_C" >&6
15130 if test "${ac_cv_func_select+set}" = set; then
15131   echo $ECHO_N "(cached) $ECHO_C" >&6
15132 else
15133   cat >conftest.$ac_ext <<_ACEOF
15134 /* confdefs.h.  */
15135 _ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h.  */
15139 /* Define select to an innocuous variant, in case <limits.h> declares select.
15140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15141 #define select innocuous_select
15142
15143 /* System header to define __stub macros and hopefully few prototypes,
15144     which can conflict with char select (); below.
15145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15146     <limits.h> exists even on freestanding compilers.  */
15147
15148 #ifdef __STDC__
15149 # include <limits.h>
15150 #else
15151 # include <assert.h>
15152 #endif
15153
15154 #undef select
15155
15156 /* Override any gcc2 internal prototype to avoid an error.  */
15157 #ifdef __cplusplus
15158 extern "C"
15159 {
15160 #endif
15161 /* We use char because int might match the return type of a gcc2
15162    builtin and then its argument prototype would still apply.  */
15163 char select ();
15164 /* The GNU C library defines this for functions which it implements
15165     to always fail with ENOSYS.  Some functions are actually named
15166     something starting with __ and the normal name is an alias.  */
15167 #if defined (__stub_select) || defined (__stub___select)
15168 choke me
15169 #else
15170 char (*f) () = select;
15171 #endif
15172 #ifdef __cplusplus
15173 }
15174 #endif
15175
15176 int
15177 main ()
15178 {
15179 return f != select;
15180   ;
15181   return 0;
15182 }
15183 _ACEOF
15184 rm -f conftest.$ac_objext conftest$ac_exeext
15185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15186   (eval $ac_link) 2>conftest.er1
15187   ac_status=$?
15188   grep -v '^ *+' conftest.er1 >conftest.err
15189   rm -f conftest.er1
15190   cat conftest.err >&5
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); } &&
15193          { ac_try='test -z "$ac_c_werror_flag"
15194                          || test ! -s conftest.err'
15195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196   (eval $ac_try) 2>&5
15197   ac_status=$?
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); }; } &&
15200          { ac_try='test -s conftest$ac_exeext'
15201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202   (eval $ac_try) 2>&5
15203   ac_status=$?
15204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205   (exit $ac_status); }; }; then
15206   ac_cv_func_select=yes
15207 else
15208   echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15210
15211 ac_cv_func_select=no
15212 fi
15213 rm -f conftest.err conftest.$ac_objext \
15214       conftest$ac_exeext conftest.$ac_ext
15215 fi
15216 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15217 echo "${ECHO_T}$ac_cv_func_select" >&6
15218 if test $ac_cv_func_select = yes; then
15219   :
15220 else
15221   { { echo "$as_me:$LINENO: error: select() required." >&5
15222 echo "$as_me: error: select() required." >&2;}
15223    { (exit 1); exit 1; }; }
15224 fi
15225
15226
15227 if test "${ac_cv_header_winsock_h}" != yes; then
15228
15229
15230 for ac_header in sys/select.h sys/socket.h
15231 do
15232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15234   echo "$as_me:$LINENO: checking for $ac_header" >&5
15235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15237   echo $ECHO_N "(cached) $ECHO_C" >&6
15238 fi
15239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15241 else
15242   # Is the header compilable?
15243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15245 cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h.  */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h.  */
15251 $ac_includes_default
15252 #include <$ac_header>
15253 _ACEOF
15254 rm -f conftest.$ac_objext
15255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15256   (eval $ac_compile) 2>conftest.er1
15257   ac_status=$?
15258   grep -v '^ *+' conftest.er1 >conftest.err
15259   rm -f conftest.er1
15260   cat conftest.err >&5
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); } &&
15263          { ac_try='test -z "$ac_c_werror_flag"
15264                          || test ! -s conftest.err'
15265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266   (eval $ac_try) 2>&5
15267   ac_status=$?
15268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269   (exit $ac_status); }; } &&
15270          { ac_try='test -s conftest.$ac_objext'
15271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272   (eval $ac_try) 2>&5
15273   ac_status=$?
15274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275   (exit $ac_status); }; }; then
15276   ac_header_compiler=yes
15277 else
15278   echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15280
15281 ac_header_compiler=no
15282 fi
15283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15285 echo "${ECHO_T}$ac_header_compiler" >&6
15286
15287 # Is the header present?
15288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15290 cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h.  */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h.  */
15296 #include <$ac_header>
15297 _ACEOF
15298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15299   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15300   ac_status=$?
15301   grep -v '^ *+' conftest.er1 >conftest.err
15302   rm -f conftest.er1
15303   cat conftest.err >&5
15304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305   (exit $ac_status); } >/dev/null; then
15306   if test -s conftest.err; then
15307     ac_cpp_err=$ac_c_preproc_warn_flag
15308     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15309   else
15310     ac_cpp_err=
15311   fi
15312 else
15313   ac_cpp_err=yes
15314 fi
15315 if test -z "$ac_cpp_err"; then
15316   ac_header_preproc=yes
15317 else
15318   echo "$as_me: failed program was:" >&5
15319 sed 's/^/| /' conftest.$ac_ext >&5
15320
15321   ac_header_preproc=no
15322 fi
15323 rm -f conftest.err conftest.$ac_ext
15324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15325 echo "${ECHO_T}$ac_header_preproc" >&6
15326
15327 # So?  What about this header?
15328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15329   yes:no: )
15330     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15334     ac_header_preproc=yes
15335     ;;
15336   no:yes:* )
15337     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15339     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15340 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15341     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15343     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15344 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15347     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15349     (
15350       cat <<\_ASBOX
15351 ## --------------------------------------------- ##
15352 ## Report this to <http://www.openldap.org/its/> ##
15353 ## --------------------------------------------- ##
15354 _ASBOX
15355     ) |
15356       sed "s/^/$as_me: WARNING:     /" >&2
15357     ;;
15358 esac
15359 echo "$as_me:$LINENO: checking for $ac_header" >&5
15360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15362   echo $ECHO_N "(cached) $ECHO_C" >&6
15363 else
15364   eval "$as_ac_Header=\$ac_header_preproc"
15365 fi
15366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15368
15369 fi
15370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15371   cat >>confdefs.h <<_ACEOF
15372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15373 _ACEOF
15374
15375 fi
15376
15377 done
15378
15379 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15380 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15381 if test "${ac_cv_func_select_args+set}" = set; then
15382   echo $ECHO_N "(cached) $ECHO_C" >&6
15383 else
15384   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15385  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15386   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15387    cat >conftest.$ac_ext <<_ACEOF
15388 /* confdefs.h.  */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h.  */
15393 $ac_includes_default
15394 #if HAVE_SYS_SELECT_H
15395 # include <sys/select.h>
15396 #endif
15397 #if HAVE_SYS_SOCKET_H
15398 # include <sys/socket.h>
15399 #endif
15400
15401 int
15402 main ()
15403 {
15404 extern int select ($ac_arg1,
15405                                             $ac_arg234, $ac_arg234, $ac_arg234,
15406                                             $ac_arg5);
15407   ;
15408   return 0;
15409 }
15410 _ACEOF
15411 rm -f conftest.$ac_objext
15412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15413   (eval $ac_compile) 2>conftest.er1
15414   ac_status=$?
15415   grep -v '^ *+' conftest.er1 >conftest.err
15416   rm -f conftest.er1
15417   cat conftest.err >&5
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); } &&
15420          { ac_try='test -z "$ac_c_werror_flag"
15421                          || test ! -s conftest.err'
15422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423   (eval $ac_try) 2>&5
15424   ac_status=$?
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); }; } &&
15427          { ac_try='test -s conftest.$ac_objext'
15428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429   (eval $ac_try) 2>&5
15430   ac_status=$?
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); }; }; then
15433   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15434 else
15435   echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15437
15438 fi
15439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15440   done
15441  done
15442 done
15443 # Provide a safe default value.
15444 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15445
15446 fi
15447 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15448 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15449 ac_save_IFS=$IFS; IFS=','
15450 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15451 IFS=$ac_save_IFS
15452 shift
15453
15454 cat >>confdefs.h <<_ACEOF
15455 #define SELECT_TYPE_ARG1 $1
15456 _ACEOF
15457
15458
15459 cat >>confdefs.h <<_ACEOF
15460 #define SELECT_TYPE_ARG234 ($2)
15461 _ACEOF
15462
15463
15464 cat >>confdefs.h <<_ACEOF
15465 #define SELECT_TYPE_ARG5 ($3)
15466 _ACEOF
15467
15468 rm -f conftest*
15469
15470 fi
15471
15472
15473
15474 for ac_func in poll
15475 do
15476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15477 echo "$as_me:$LINENO: checking for $ac_func" >&5
15478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15479 if eval "test \"\${$as_ac_var+set}\" = set"; then
15480   echo $ECHO_N "(cached) $ECHO_C" >&6
15481 else
15482   cat >conftest.$ac_ext <<_ACEOF
15483 /* confdefs.h.  */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h.  */
15488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15490 #define $ac_func innocuous_$ac_func
15491
15492 /* System header to define __stub macros and hopefully few prototypes,
15493     which can conflict with char $ac_func (); below.
15494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15495     <limits.h> exists even on freestanding compilers.  */
15496
15497 #ifdef __STDC__
15498 # include <limits.h>
15499 #else
15500 # include <assert.h>
15501 #endif
15502
15503 #undef $ac_func
15504
15505 /* Override any gcc2 internal prototype to avoid an error.  */
15506 #ifdef __cplusplus
15507 extern "C"
15508 {
15509 #endif
15510 /* We use char because int might match the return type of a gcc2
15511    builtin and then its argument prototype would still apply.  */
15512 char $ac_func ();
15513 /* The GNU C library defines this for functions which it implements
15514     to always fail with ENOSYS.  Some functions are actually named
15515     something starting with __ and the normal name is an alias.  */
15516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15517 choke me
15518 #else
15519 char (*f) () = $ac_func;
15520 #endif
15521 #ifdef __cplusplus
15522 }
15523 #endif
15524
15525 int
15526 main ()
15527 {
15528 return f != $ac_func;
15529   ;
15530   return 0;
15531 }
15532 _ACEOF
15533 rm -f conftest.$ac_objext conftest$ac_exeext
15534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15535   (eval $ac_link) 2>conftest.er1
15536   ac_status=$?
15537   grep -v '^ *+' conftest.er1 >conftest.err
15538   rm -f conftest.er1
15539   cat conftest.err >&5
15540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541   (exit $ac_status); } &&
15542          { ac_try='test -z "$ac_c_werror_flag"
15543                          || test ! -s conftest.err'
15544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545   (eval $ac_try) 2>&5
15546   ac_status=$?
15547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548   (exit $ac_status); }; } &&
15549          { ac_try='test -s conftest$ac_exeext'
15550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551   (eval $ac_try) 2>&5
15552   ac_status=$?
15553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554   (exit $ac_status); }; }; then
15555   eval "$as_ac_var=yes"
15556 else
15557   echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15559
15560 eval "$as_ac_var=no"
15561 fi
15562 rm -f conftest.err conftest.$ac_objext \
15563       conftest$ac_exeext conftest.$ac_ext
15564 fi
15565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15567 if test `eval echo '${'$as_ac_var'}'` = yes; then
15568   cat >>confdefs.h <<_ACEOF
15569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15570 _ACEOF
15571
15572 fi
15573 done
15574
15575 if test $ac_cv_func_poll = yes; then
15576
15577
15578 for ac_header in poll.h sys/poll.h
15579 do
15580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15582   echo "$as_me:$LINENO: checking for $ac_header" >&5
15583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15585   echo $ECHO_N "(cached) $ECHO_C" >&6
15586 fi
15587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15589 else
15590   # Is the header compilable?
15591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15593 cat >conftest.$ac_ext <<_ACEOF
15594 /* confdefs.h.  */
15595 _ACEOF
15596 cat confdefs.h >>conftest.$ac_ext
15597 cat >>conftest.$ac_ext <<_ACEOF
15598 /* end confdefs.h.  */
15599 $ac_includes_default
15600 #include <$ac_header>
15601 _ACEOF
15602 rm -f conftest.$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604   (eval $ac_compile) 2>conftest.er1
15605   ac_status=$?
15606   grep -v '^ *+' conftest.er1 >conftest.err
15607   rm -f conftest.er1
15608   cat conftest.err >&5
15609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610   (exit $ac_status); } &&
15611          { ac_try='test -z "$ac_c_werror_flag"
15612                          || test ! -s conftest.err'
15613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614   (eval $ac_try) 2>&5
15615   ac_status=$?
15616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617   (exit $ac_status); }; } &&
15618          { ac_try='test -s conftest.$ac_objext'
15619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620   (eval $ac_try) 2>&5
15621   ac_status=$?
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); }; }; then
15624   ac_header_compiler=yes
15625 else
15626   echo "$as_me: failed program was:" >&5
15627 sed 's/^/| /' conftest.$ac_ext >&5
15628
15629 ac_header_compiler=no
15630 fi
15631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15633 echo "${ECHO_T}$ac_header_compiler" >&6
15634
15635 # Is the header present?
15636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h.  */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h.  */
15644 #include <$ac_header>
15645 _ACEOF
15646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15648   ac_status=$?
15649   grep -v '^ *+' conftest.er1 >conftest.err
15650   rm -f conftest.er1
15651   cat conftest.err >&5
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); } >/dev/null; then
15654   if test -s conftest.err; then
15655     ac_cpp_err=$ac_c_preproc_warn_flag
15656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15657   else
15658     ac_cpp_err=
15659   fi
15660 else
15661   ac_cpp_err=yes
15662 fi
15663 if test -z "$ac_cpp_err"; then
15664   ac_header_preproc=yes
15665 else
15666   echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15668
15669   ac_header_preproc=no
15670 fi
15671 rm -f conftest.err conftest.$ac_ext
15672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15673 echo "${ECHO_T}$ac_header_preproc" >&6
15674
15675 # So?  What about this header?
15676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15677   yes:no: )
15678     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15682     ac_header_preproc=yes
15683     ;;
15684   no:yes:* )
15685     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15687     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15688 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15689     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15691     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15692 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15695     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15697     (
15698       cat <<\_ASBOX
15699 ## --------------------------------------------- ##
15700 ## Report this to <http://www.openldap.org/its/> ##
15701 ## --------------------------------------------- ##
15702 _ASBOX
15703     ) |
15704       sed "s/^/$as_me: WARNING:     /" >&2
15705     ;;
15706 esac
15707 echo "$as_me:$LINENO: checking for $ac_header" >&5
15708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15710   echo $ECHO_N "(cached) $ECHO_C" >&6
15711 else
15712   eval "$as_ac_Header=\$ac_header_preproc"
15713 fi
15714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15716
15717 fi
15718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15719   cat >>confdefs.h <<_ACEOF
15720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15721 _ACEOF
15722
15723 fi
15724
15725 done
15726
15727 fi
15728
15729
15730 for ac_header in sys/epoll.h
15731 do
15732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15734   echo "$as_me:$LINENO: checking for $ac_header" >&5
15735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15737   echo $ECHO_N "(cached) $ECHO_C" >&6
15738 fi
15739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15741 else
15742   # Is the header compilable?
15743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15745 cat >conftest.$ac_ext <<_ACEOF
15746 /* confdefs.h.  */
15747 _ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h.  */
15751 $ac_includes_default
15752 #include <$ac_header>
15753 _ACEOF
15754 rm -f conftest.$ac_objext
15755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15756   (eval $ac_compile) 2>conftest.er1
15757   ac_status=$?
15758   grep -v '^ *+' conftest.er1 >conftest.err
15759   rm -f conftest.er1
15760   cat conftest.err >&5
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); } &&
15763          { ac_try='test -z "$ac_c_werror_flag"
15764                          || test ! -s conftest.err'
15765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766   (eval $ac_try) 2>&5
15767   ac_status=$?
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); }; } &&
15770          { ac_try='test -s conftest.$ac_objext'
15771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772   (eval $ac_try) 2>&5
15773   ac_status=$?
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); }; }; then
15776   ac_header_compiler=yes
15777 else
15778   echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15780
15781 ac_header_compiler=no
15782 fi
15783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15785 echo "${ECHO_T}$ac_header_compiler" >&6
15786
15787 # Is the header present?
15788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15790 cat >conftest.$ac_ext <<_ACEOF
15791 /* confdefs.h.  */
15792 _ACEOF
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h.  */
15796 #include <$ac_header>
15797 _ACEOF
15798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15799   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15800   ac_status=$?
15801   grep -v '^ *+' conftest.er1 >conftest.err
15802   rm -f conftest.er1
15803   cat conftest.err >&5
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); } >/dev/null; then
15806   if test -s conftest.err; then
15807     ac_cpp_err=$ac_c_preproc_warn_flag
15808     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15809   else
15810     ac_cpp_err=
15811   fi
15812 else
15813   ac_cpp_err=yes
15814 fi
15815 if test -z "$ac_cpp_err"; then
15816   ac_header_preproc=yes
15817 else
15818   echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15820
15821   ac_header_preproc=no
15822 fi
15823 rm -f conftest.err conftest.$ac_ext
15824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15825 echo "${ECHO_T}$ac_header_preproc" >&6
15826
15827 # So?  What about this header?
15828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15829   yes:no: )
15830     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15834     ac_header_preproc=yes
15835     ;;
15836   no:yes:* )
15837     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15839     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15840 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15841     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15843     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15844 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15847     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15849     (
15850       cat <<\_ASBOX
15851 ## --------------------------------------------- ##
15852 ## Report this to <http://www.openldap.org/its/> ##
15853 ## --------------------------------------------- ##
15854 _ASBOX
15855     ) |
15856       sed "s/^/$as_me: WARNING:     /" >&2
15857     ;;
15858 esac
15859 echo "$as_me:$LINENO: checking for $ac_header" >&5
15860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15862   echo $ECHO_N "(cached) $ECHO_C" >&6
15863 else
15864   eval "$as_ac_Header=\$ac_header_preproc"
15865 fi
15866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15868
15869 fi
15870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15871   cat >>confdefs.h <<_ACEOF
15872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15873 _ACEOF
15874
15875 fi
15876
15877 done
15878
15879 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15880         echo "$as_me:$LINENO: checking for epoll system call" >&5
15881 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15882         if test "$cross_compiling" = yes; then
15883   echo "$as_me:$LINENO: result: no" >&5
15884 echo "${ECHO_T}no" >&6
15885 else
15886   cat >conftest.$ac_ext <<_ACEOF
15887 /* confdefs.h.  */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h.  */
15892 int main(int argc, char **argv)
15893 {
15894         int epfd = epoll_create(256);
15895         exit (epfd == -1 ? 1 : 0);
15896 }
15897 _ACEOF
15898 rm -f conftest$ac_exeext
15899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15900   (eval $ac_link) 2>&5
15901   ac_status=$?
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905   (eval $ac_try) 2>&5
15906   ac_status=$?
15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   (exit $ac_status); }; }; then
15909   echo "$as_me:$LINENO: result: yes" >&5
15910 echo "${ECHO_T}yes" >&6
15911
15912 cat >>confdefs.h <<\_ACEOF
15913 #define HAVE_EPOLL 1
15914 _ACEOF
15915
15916 else
15917   echo "$as_me: program exited with status $ac_status" >&5
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921 ( exit $ac_status )
15922 echo "$as_me:$LINENO: result: no" >&5
15923 echo "${ECHO_T}no" >&6
15924 fi
15925 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15926 fi
15927 fi
15928
15929
15930 for ac_header in sys/devpoll.h
15931 do
15932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15934   echo "$as_me:$LINENO: checking for $ac_header" >&5
15935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15937   echo $ECHO_N "(cached) $ECHO_C" >&6
15938 fi
15939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15941 else
15942   # Is the header compilable?
15943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15945 cat >conftest.$ac_ext <<_ACEOF
15946 /* confdefs.h.  */
15947 _ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h.  */
15951 $ac_includes_default
15952 #include <$ac_header>
15953 _ACEOF
15954 rm -f conftest.$ac_objext
15955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15956   (eval $ac_compile) 2>conftest.er1
15957   ac_status=$?
15958   grep -v '^ *+' conftest.er1 >conftest.err
15959   rm -f conftest.er1
15960   cat conftest.err >&5
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); } &&
15963          { ac_try='test -z "$ac_c_werror_flag"
15964                          || test ! -s conftest.err'
15965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966   (eval $ac_try) 2>&5
15967   ac_status=$?
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); }; } &&
15970          { ac_try='test -s conftest.$ac_objext'
15971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972   (eval $ac_try) 2>&5
15973   ac_status=$?
15974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975   (exit $ac_status); }; }; then
15976   ac_header_compiler=yes
15977 else
15978   echo "$as_me: failed program was:" >&5
15979 sed 's/^/| /' conftest.$ac_ext >&5
15980
15981 ac_header_compiler=no
15982 fi
15983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15985 echo "${ECHO_T}$ac_header_compiler" >&6
15986
15987 # Is the header present?
15988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15990 cat >conftest.$ac_ext <<_ACEOF
15991 /* confdefs.h.  */
15992 _ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h.  */
15996 #include <$ac_header>
15997 _ACEOF
15998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15999   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16000   ac_status=$?
16001   grep -v '^ *+' conftest.er1 >conftest.err
16002   rm -f conftest.er1
16003   cat conftest.err >&5
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); } >/dev/null; then
16006   if test -s conftest.err; then
16007     ac_cpp_err=$ac_c_preproc_warn_flag
16008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16009   else
16010     ac_cpp_err=
16011   fi
16012 else
16013   ac_cpp_err=yes
16014 fi
16015 if test -z "$ac_cpp_err"; then
16016   ac_header_preproc=yes
16017 else
16018   echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16020
16021   ac_header_preproc=no
16022 fi
16023 rm -f conftest.err conftest.$ac_ext
16024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16025 echo "${ECHO_T}$ac_header_preproc" >&6
16026
16027 # So?  What about this header?
16028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16029   yes:no: )
16030     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16034     ac_header_preproc=yes
16035     ;;
16036   no:yes:* )
16037     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16039     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16040 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16041     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16043     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16044 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16047     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16049     (
16050       cat <<\_ASBOX
16051 ## --------------------------------------------- ##
16052 ## Report this to <http://www.openldap.org/its/> ##
16053 ## --------------------------------------------- ##
16054 _ASBOX
16055     ) |
16056       sed "s/^/$as_me: WARNING:     /" >&2
16057     ;;
16058 esac
16059 echo "$as_me:$LINENO: checking for $ac_header" >&5
16060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16062   echo $ECHO_N "(cached) $ECHO_C" >&6
16063 else
16064   eval "$as_ac_Header=\$ac_header_preproc"
16065 fi
16066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16068
16069 fi
16070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16071   cat >>confdefs.h <<_ACEOF
16072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16073 _ACEOF
16074
16075 fi
16076
16077 done
16078
16079 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16080                 -a "${ac_cv_header_poll_h}" = yes ; \
16081 then
16082         echo "$as_me:$LINENO: checking for /dev/poll" >&5
16083 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16084         if test "$cross_compiling" = yes; then
16085   echo "$as_me:$LINENO: result: no" >&5
16086 echo "${ECHO_T}no" >&6
16087 else
16088   cat >conftest.$ac_ext <<_ACEOF
16089 /* confdefs.h.  */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h.  */
16094 int main(int argc, char **argv)
16095 {
16096         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16097         exit (devpollfd == -1 ? 1 : 0);
16098 }
16099 _ACEOF
16100 rm -f conftest$ac_exeext
16101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16102   (eval $ac_link) 2>&5
16103   ac_status=$?
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107   (eval $ac_try) 2>&5
16108   ac_status=$?
16109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110   (exit $ac_status); }; }; then
16111   echo "$as_me:$LINENO: result: yes" >&5
16112 echo "${ECHO_T}yes" >&6
16113
16114 cat >>confdefs.h <<\_ACEOF
16115 #define HAVE_DEVPOLL 1
16116 _ACEOF
16117
16118 else
16119   echo "$as_me: program exited with status $ac_status" >&5
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16122
16123 ( exit $ac_status )
16124 echo "$as_me:$LINENO: result: no" >&5
16125 echo "${ECHO_T}no" >&6
16126 fi
16127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16128 fi
16129 fi
16130
16131 # strerror checks
16132 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16133 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16134 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16135   echo $ECHO_N "(cached) $ECHO_C" >&6
16136 else
16137
16138         cat >conftest.$ac_ext <<_ACEOF
16139 /* confdefs.h.  */
16140 _ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h.  */
16144
16145 #include <stdio.h>
16146 #include <sys/types.h>
16147 #include <errno.h>
16148 #ifdef _WIN32
16149 #include <stdlib.h>
16150 #endif
16151 int
16152 main ()
16153 {
16154 char *c = (char *) *sys_errlist
16155   ;
16156   return 0;
16157 }
16158 _ACEOF
16159 rm -f conftest.$ac_objext
16160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16161   (eval $ac_compile) 2>conftest.er1
16162   ac_status=$?
16163   grep -v '^ *+' conftest.er1 >conftest.err
16164   rm -f conftest.er1
16165   cat conftest.err >&5
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); } &&
16168          { ac_try='test -z "$ac_c_werror_flag"
16169                          || test ! -s conftest.err'
16170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171   (eval $ac_try) 2>&5
16172   ac_status=$?
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); }; } &&
16175          { ac_try='test -s conftest.$ac_objext'
16176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177   (eval $ac_try) 2>&5
16178   ac_status=$?
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); }; }; then
16181   ol_cv_dcl_sys_errlist=yes
16182         ol_cv_have_sys_errlist=yes
16183 else
16184   echo "$as_me: failed program was:" >&5
16185 sed 's/^/| /' conftest.$ac_ext >&5
16186
16187 ol_cv_dcl_sys_errlist=no
16188 fi
16189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16190 fi
16191 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16192 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16193 #
16194 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16195 if test $ol_cv_dcl_sys_errlist = no ; then
16196
16197 cat >>confdefs.h <<\_ACEOF
16198 #define DECL_SYS_ERRLIST 1
16199 _ACEOF
16200
16201
16202         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16203 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16204 if test "${ol_cv_have_sys_errlist+set}" = set; then
16205   echo $ECHO_N "(cached) $ECHO_C" >&6
16206 else
16207
16208                 cat >conftest.$ac_ext <<_ACEOF
16209 /* confdefs.h.  */
16210 _ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h.  */
16214 #include <errno.h>
16215 int
16216 main ()
16217 {
16218 char *c = (char *) *sys_errlist
16219   ;
16220   return 0;
16221 }
16222 _ACEOF
16223 rm -f conftest.$ac_objext conftest$ac_exeext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16225   (eval $ac_link) 2>conftest.er1
16226   ac_status=$?
16227   grep -v '^ *+' conftest.er1 >conftest.err
16228   rm -f conftest.er1
16229   cat conftest.err >&5
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); } &&
16232          { ac_try='test -z "$ac_c_werror_flag"
16233                          || test ! -s conftest.err'
16234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235   (eval $ac_try) 2>&5
16236   ac_status=$?
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); }; } &&
16239          { ac_try='test -s conftest$ac_exeext'
16240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241   (eval $ac_try) 2>&5
16242   ac_status=$?
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); }; }; then
16245   ol_cv_have_sys_errlist=yes
16246 else
16247   echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16249
16250 ol_cv_have_sys_errlist=no
16251 fi
16252 rm -f conftest.err conftest.$ac_objext \
16253       conftest$ac_exeext conftest.$ac_ext
16254 fi
16255 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16256 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16257 fi
16258 if test $ol_cv_have_sys_errlist = yes ; then
16259
16260 cat >>confdefs.h <<\_ACEOF
16261 #define HAVE_SYS_ERRLIST 1
16262 _ACEOF
16263
16264 fi
16265
16266
16267 for ac_func in strerror strerror_r
16268 do
16269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16270 echo "$as_me:$LINENO: checking for $ac_func" >&5
16271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16272 if eval "test \"\${$as_ac_var+set}\" = set"; then
16273   echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275   cat >conftest.$ac_ext <<_ACEOF
16276 /* confdefs.h.  */
16277 _ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h.  */
16281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16283 #define $ac_func innocuous_$ac_func
16284
16285 /* System header to define __stub macros and hopefully few prototypes,
16286     which can conflict with char $ac_func (); below.
16287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16288     <limits.h> exists even on freestanding compilers.  */
16289
16290 #ifdef __STDC__
16291 # include <limits.h>
16292 #else
16293 # include <assert.h>
16294 #endif
16295
16296 #undef $ac_func
16297
16298 /* Override any gcc2 internal prototype to avoid an error.  */
16299 #ifdef __cplusplus
16300 extern "C"
16301 {
16302 #endif
16303 /* We use char because int might match the return type of a gcc2
16304    builtin and then its argument prototype would still apply.  */
16305 char $ac_func ();
16306 /* The GNU C library defines this for functions which it implements
16307     to always fail with ENOSYS.  Some functions are actually named
16308     something starting with __ and the normal name is an alias.  */
16309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16310 choke me
16311 #else
16312 char (*f) () = $ac_func;
16313 #endif
16314 #ifdef __cplusplus
16315 }
16316 #endif
16317
16318 int
16319 main ()
16320 {
16321 return f != $ac_func;
16322   ;
16323   return 0;
16324 }
16325 _ACEOF
16326 rm -f conftest.$ac_objext conftest$ac_exeext
16327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16328   (eval $ac_link) 2>conftest.er1
16329   ac_status=$?
16330   grep -v '^ *+' conftest.er1 >conftest.err
16331   rm -f conftest.er1
16332   cat conftest.err >&5
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); } &&
16335          { ac_try='test -z "$ac_c_werror_flag"
16336                          || test ! -s conftest.err'
16337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338   (eval $ac_try) 2>&5
16339   ac_status=$?
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); }; } &&
16342          { ac_try='test -s conftest$ac_exeext'
16343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344   (eval $ac_try) 2>&5
16345   ac_status=$?
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); }; }; then
16348   eval "$as_ac_var=yes"
16349 else
16350   echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16352
16353 eval "$as_ac_var=no"
16354 fi
16355 rm -f conftest.err conftest.$ac_objext \
16356       conftest$ac_exeext conftest.$ac_ext
16357 fi
16358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16360 if test `eval echo '${'$as_ac_var'}'` = yes; then
16361   cat >>confdefs.h <<_ACEOF
16362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16363 _ACEOF
16364
16365 fi
16366 done
16367
16368 ol_cv_func_strerror_r=no
16369 if test "${ac_cv_func_strerror_r}" = yes ; then
16370         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16371 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16372 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16373   echo $ECHO_N "(cached) $ECHO_C" >&6
16374 else
16375
16376         cat >conftest.$ac_ext <<_ACEOF
16377 /* confdefs.h.  */
16378 _ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h.  */
16382 #include <string.h>
16383 _ACEOF
16384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16385   $EGREP "strerror_r" >/dev/null 2>&1; then
16386   ol_decl_strerror_r=yes
16387 else
16388   ol_decl_strerror_r=no
16389 fi
16390 rm -f conftest*
16391
16392         if test $ol_decl_strerror_r = yes ; then
16393                 cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h.  */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h.  */
16399 #include <string.h>
16400 int
16401 main ()
16402 {
16403    /* from autoconf 2.59 */
16404                                 char buf[100];
16405                                 char x = *strerror_r (0, buf, sizeof buf);
16406                                 char *p = strerror_r (0, buf, sizeof buf);
16407
16408   ;
16409   return 0;
16410 }
16411 _ACEOF
16412 rm -f conftest.$ac_objext
16413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16414   (eval $ac_compile) 2>conftest.er1
16415   ac_status=$?
16416   grep -v '^ *+' conftest.er1 >conftest.err
16417   rm -f conftest.er1
16418   cat conftest.err >&5
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); } &&
16421          { ac_try='test -z "$ac_c_werror_flag"
16422                          || test ! -s conftest.err'
16423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424   (eval $ac_try) 2>&5
16425   ac_status=$?
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); }; } &&
16428          { ac_try='test -s conftest.$ac_objext'
16429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430   (eval $ac_try) 2>&5
16431   ac_status=$?
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); }; }; then
16434   ol_cv_nonposix_strerror_r=yes
16435 else
16436   echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16438
16439 ol_cv_nonposix_strerror_r=no
16440 fi
16441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16442         else
16443                 if test "$cross_compiling" = yes; then
16444   ol_cv_nonposix_strerror=no
16445 else
16446   cat >conftest.$ac_ext <<_ACEOF
16447 /* confdefs.h.  */
16448 _ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h.  */
16452
16453                         main() {
16454                                 char buf[100];
16455                                 buf[0] = 0;
16456                                 strerror_r( 1, buf, sizeof buf );
16457                                 exit( buf[0] == 0 );
16458                         }
16459
16460 _ACEOF
16461 rm -f conftest$ac_exeext
16462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16463   (eval $ac_link) 2>&5
16464   ac_status=$?
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16468   (eval $ac_try) 2>&5
16469   ac_status=$?
16470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471   (exit $ac_status); }; }; then
16472   ol_cv_nonposix_strerror_r=yes
16473 else
16474   echo "$as_me: program exited with status $ac_status" >&5
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16477
16478 ( exit $ac_status )
16479 ol_cv_nonposix_strerror=no
16480 fi
16481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16482 fi
16483         fi
16484
16485 fi
16486 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16487 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16488 if test $ol_cv_nonposix_strerror_r = yes ; then
16489
16490 cat >>confdefs.h <<\_ACEOF
16491 #define HAVE_NONPOSIX_STRERROR_R 1
16492 _ACEOF
16493
16494 fi
16495
16496 elif test "${ac_cv_func_strerror}" = no ; then
16497         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16498 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16499 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16500   echo $ECHO_N "(cached) $ECHO_C" >&6
16501 else
16502
16503         cat >conftest.$ac_ext <<_ACEOF
16504 /* confdefs.h.  */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h.  */
16509
16510 #include <stdio.h>
16511 #include <sys/types.h>
16512 #include <errno.h>
16513 #ifdef _WIN32
16514 #include <stdlib.h>
16515 #endif
16516 int
16517 main ()
16518 {
16519 char *c = (char *) *sys_errlist
16520   ;
16521   return 0;
16522 }
16523 _ACEOF
16524 rm -f conftest.$ac_objext
16525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16526   (eval $ac_compile) 2>conftest.er1
16527   ac_status=$?
16528   grep -v '^ *+' conftest.er1 >conftest.err
16529   rm -f conftest.er1
16530   cat conftest.err >&5
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); } &&
16533          { ac_try='test -z "$ac_c_werror_flag"
16534                          || test ! -s conftest.err'
16535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536   (eval $ac_try) 2>&5
16537   ac_status=$?
16538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539   (exit $ac_status); }; } &&
16540          { ac_try='test -s conftest.$ac_objext'
16541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542   (eval $ac_try) 2>&5
16543   ac_status=$?
16544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545   (exit $ac_status); }; }; then
16546   ol_cv_dcl_sys_errlist=yes
16547         ol_cv_have_sys_errlist=yes
16548 else
16549   echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16551
16552 ol_cv_dcl_sys_errlist=no
16553 fi
16554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16555 fi
16556 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16557 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16558 #
16559 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16560 if test $ol_cv_dcl_sys_errlist = no ; then
16561
16562 cat >>confdefs.h <<\_ACEOF
16563 #define DECL_SYS_ERRLIST 1
16564 _ACEOF
16565
16566
16567         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16568 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16569 if test "${ol_cv_have_sys_errlist+set}" = set; then
16570   echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16572
16573                 cat >conftest.$ac_ext <<_ACEOF
16574 /* confdefs.h.  */
16575 _ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h.  */
16579 #include <errno.h>
16580 int
16581 main ()
16582 {
16583 char *c = (char *) *sys_errlist
16584   ;
16585   return 0;
16586 }
16587 _ACEOF
16588 rm -f conftest.$ac_objext conftest$ac_exeext
16589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16590   (eval $ac_link) 2>conftest.er1
16591   ac_status=$?
16592   grep -v '^ *+' conftest.er1 >conftest.err
16593   rm -f conftest.er1
16594   cat conftest.err >&5
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); } &&
16597          { ac_try='test -z "$ac_c_werror_flag"
16598                          || test ! -s conftest.err'
16599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600   (eval $ac_try) 2>&5
16601   ac_status=$?
16602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603   (exit $ac_status); }; } &&
16604          { ac_try='test -s conftest$ac_exeext'
16605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606   (eval $ac_try) 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); }; }; then
16610   ol_cv_have_sys_errlist=yes
16611 else
16612   echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16614
16615 ol_cv_have_sys_errlist=no
16616 fi
16617 rm -f conftest.err conftest.$ac_objext \
16618       conftest$ac_exeext conftest.$ac_ext
16619 fi
16620 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16621 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16622 fi
16623 if test $ol_cv_have_sys_errlist = yes ; then
16624
16625 cat >>confdefs.h <<\_ACEOF
16626 #define HAVE_SYS_ERRLIST 1
16627 _ACEOF
16628
16629 fi
16630
16631 fi
16632
16633
16634
16635 for ac_header in regex.h
16636 do
16637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16638 echo "$as_me:$LINENO: checking for $ac_header" >&5
16639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16641   echo $ECHO_N "(cached) $ECHO_C" >&6
16642 else
16643   cat >conftest.$ac_ext <<_ACEOF
16644 /* confdefs.h.  */
16645 _ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h.  */
16649 $ac_includes_default
16650 #ifdef HAVE_SYS_TYPES_H
16651 #include <sys/types.h>
16652 #endif
16653
16654
16655 #include <$ac_header>
16656 _ACEOF
16657 rm -f conftest.$ac_objext
16658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16659   (eval $ac_compile) 2>conftest.er1
16660   ac_status=$?
16661   grep -v '^ *+' conftest.er1 >conftest.err
16662   rm -f conftest.er1
16663   cat conftest.err >&5
16664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665   (exit $ac_status); } &&
16666          { ac_try='test -z "$ac_c_werror_flag"
16667                          || test ! -s conftest.err'
16668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669   (eval $ac_try) 2>&5
16670   ac_status=$?
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); }; } &&
16673          { ac_try='test -s conftest.$ac_objext'
16674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675   (eval $ac_try) 2>&5
16676   ac_status=$?
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); }; }; then
16679   eval "$as_ac_Header=yes"
16680 else
16681   echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16683
16684 eval "$as_ac_Header=no"
16685 fi
16686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16687 fi
16688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16691   cat >>confdefs.h <<_ACEOF
16692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16693 _ACEOF
16694
16695 fi
16696
16697 done
16698
16699
16700 if test "$ac_cv_header_regex_h" != yes ; then
16701         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16702 echo "$as_me: error: POSIX regex.h required." >&2;}
16703    { (exit 1); exit 1; }; }
16704 fi
16705 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16706 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16707 if test "${ac_cv_search_regfree+set}" = set; then
16708   echo $ECHO_N "(cached) $ECHO_C" >&6
16709 else
16710   ac_func_search_save_LIBS=$LIBS
16711 ac_cv_search_regfree=no
16712 cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h.  */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h.  */
16718
16719 /* Override any gcc2 internal prototype to avoid an error.  */
16720 #ifdef __cplusplus
16721 extern "C"
16722 #endif
16723 /* We use char because int might match the return type of a gcc2
16724    builtin and then its argument prototype would still apply.  */
16725 char regfree ();
16726 int
16727 main ()
16728 {
16729 regfree ();
16730   ;
16731   return 0;
16732 }
16733 _ACEOF
16734 rm -f conftest.$ac_objext conftest$ac_exeext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16736   (eval $ac_link) 2>conftest.er1
16737   ac_status=$?
16738   grep -v '^ *+' conftest.er1 >conftest.err
16739   rm -f conftest.er1
16740   cat conftest.err >&5
16741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742   (exit $ac_status); } &&
16743          { ac_try='test -z "$ac_c_werror_flag"
16744                          || test ! -s conftest.err'
16745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746   (eval $ac_try) 2>&5
16747   ac_status=$?
16748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749   (exit $ac_status); }; } &&
16750          { ac_try='test -s conftest$ac_exeext'
16751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752   (eval $ac_try) 2>&5
16753   ac_status=$?
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); }; }; then
16756   ac_cv_search_regfree="none required"
16757 else
16758   echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16760
16761 fi
16762 rm -f conftest.err conftest.$ac_objext \
16763       conftest$ac_exeext conftest.$ac_ext
16764 if test "$ac_cv_search_regfree" = no; then
16765   for ac_lib in regex gnuregex; do
16766     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16767     cat >conftest.$ac_ext <<_ACEOF
16768 /* confdefs.h.  */
16769 _ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h.  */
16773
16774 /* Override any gcc2 internal prototype to avoid an error.  */
16775 #ifdef __cplusplus
16776 extern "C"
16777 #endif
16778 /* We use char because int might match the return type of a gcc2
16779    builtin and then its argument prototype would still apply.  */
16780 char regfree ();
16781 int
16782 main ()
16783 {
16784 regfree ();
16785   ;
16786   return 0;
16787 }
16788 _ACEOF
16789 rm -f conftest.$ac_objext conftest$ac_exeext
16790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16791   (eval $ac_link) 2>conftest.er1
16792   ac_status=$?
16793   grep -v '^ *+' conftest.er1 >conftest.err
16794   rm -f conftest.er1
16795   cat conftest.err >&5
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); } &&
16798          { ac_try='test -z "$ac_c_werror_flag"
16799                          || test ! -s conftest.err'
16800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801   (eval $ac_try) 2>&5
16802   ac_status=$?
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); }; } &&
16805          { ac_try='test -s conftest$ac_exeext'
16806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807   (eval $ac_try) 2>&5
16808   ac_status=$?
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); }; }; then
16811   ac_cv_search_regfree="-l$ac_lib"
16812 break
16813 else
16814   echo "$as_me: failed program was:" >&5
16815 sed 's/^/| /' conftest.$ac_ext >&5
16816
16817 fi
16818 rm -f conftest.err conftest.$ac_objext \
16819       conftest$ac_exeext conftest.$ac_ext
16820   done
16821 fi
16822 LIBS=$ac_func_search_save_LIBS
16823 fi
16824 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16825 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16826 if test "$ac_cv_search_regfree" != no; then
16827   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16828   :
16829 else
16830   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16831 echo "$as_me: error: POSIX regex required." >&2;}
16832    { (exit 1); exit 1; }; }
16833 fi
16834
16835
16836
16837 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16838 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16839 if test "${ol_cv_c_posix_regex+set}" = set; then
16840   echo $ECHO_N "(cached) $ECHO_C" >&6
16841 else
16842
16843         if test "$cross_compiling" = yes; then
16844   ol_cv_c_posix_regex=cross
16845 else
16846   cat >conftest.$ac_ext <<_ACEOF
16847 /* confdefs.h.  */
16848 _ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h.  */
16852
16853 #include <sys/types.h>
16854 #include <regex.h>
16855 static char *pattern, *string;
16856 main()
16857 {
16858         int rc;
16859         regex_t re;
16860
16861         pattern = "^A";
16862
16863         if(regcomp(&re, pattern, 0)) {
16864                 return -1;
16865         }
16866
16867         string = "ALL MATCH";
16868
16869         rc = regexec(&re, string, 0, (void*)0, 0);
16870
16871         regfree(&re);
16872
16873         return rc;
16874 }
16875 _ACEOF
16876 rm -f conftest$ac_exeext
16877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16878   (eval $ac_link) 2>&5
16879   ac_status=$?
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883   (eval $ac_try) 2>&5
16884   ac_status=$?
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); }; }; then
16887   ol_cv_c_posix_regex=yes
16888 else
16889   echo "$as_me: program exited with status $ac_status" >&5
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16892
16893 ( exit $ac_status )
16894 ol_cv_c_posix_regex=no
16895 fi
16896 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16897 fi
16898 fi
16899 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16900 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16901
16902 if test "$ol_cv_c_posix_regex" = no ; then
16903         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16904 echo "$as_me: error: broken POSIX regex!" >&2;}
16905    { (exit 1); exit 1; }; }
16906 fi
16907
16908
16909 have_uuid=no
16910
16911 for ac_header in sys/uuid.h
16912 do
16913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16915   echo "$as_me:$LINENO: checking for $ac_header" >&5
16916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16918   echo $ECHO_N "(cached) $ECHO_C" >&6
16919 fi
16920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16922 else
16923   # Is the header compilable?
16924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16926 cat >conftest.$ac_ext <<_ACEOF
16927 /* confdefs.h.  */
16928 _ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h.  */
16932 $ac_includes_default
16933 #include <$ac_header>
16934 _ACEOF
16935 rm -f conftest.$ac_objext
16936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16937   (eval $ac_compile) 2>conftest.er1
16938   ac_status=$?
16939   grep -v '^ *+' conftest.er1 >conftest.err
16940   rm -f conftest.er1
16941   cat conftest.err >&5
16942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943   (exit $ac_status); } &&
16944          { ac_try='test -z "$ac_c_werror_flag"
16945                          || test ! -s conftest.err'
16946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947   (eval $ac_try) 2>&5
16948   ac_status=$?
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); }; } &&
16951          { ac_try='test -s conftest.$ac_objext'
16952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953   (eval $ac_try) 2>&5
16954   ac_status=$?
16955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956   (exit $ac_status); }; }; then
16957   ac_header_compiler=yes
16958 else
16959   echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16961
16962 ac_header_compiler=no
16963 fi
16964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16966 echo "${ECHO_T}$ac_header_compiler" >&6
16967
16968 # Is the header present?
16969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16971 cat >conftest.$ac_ext <<_ACEOF
16972 /* confdefs.h.  */
16973 _ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h.  */
16977 #include <$ac_header>
16978 _ACEOF
16979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16980   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16981   ac_status=$?
16982   grep -v '^ *+' conftest.er1 >conftest.err
16983   rm -f conftest.er1
16984   cat conftest.err >&5
16985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986   (exit $ac_status); } >/dev/null; then
16987   if test -s conftest.err; then
16988     ac_cpp_err=$ac_c_preproc_warn_flag
16989     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16990   else
16991     ac_cpp_err=
16992   fi
16993 else
16994   ac_cpp_err=yes
16995 fi
16996 if test -z "$ac_cpp_err"; then
16997   ac_header_preproc=yes
16998 else
16999   echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17001
17002   ac_header_preproc=no
17003 fi
17004 rm -f conftest.err conftest.$ac_ext
17005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17006 echo "${ECHO_T}$ac_header_preproc" >&6
17007
17008 # So?  What about this header?
17009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17010   yes:no: )
17011     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17015     ac_header_preproc=yes
17016     ;;
17017   no:yes:* )
17018     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17020     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17021 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17022     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17024     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17025 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17028     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17030     (
17031       cat <<\_ASBOX
17032 ## --------------------------------------------- ##
17033 ## Report this to <http://www.openldap.org/its/> ##
17034 ## --------------------------------------------- ##
17035 _ASBOX
17036     ) |
17037       sed "s/^/$as_me: WARNING:     /" >&2
17038     ;;
17039 esac
17040 echo "$as_me:$LINENO: checking for $ac_header" >&5
17041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17043   echo $ECHO_N "(cached) $ECHO_C" >&6
17044 else
17045   eval "$as_ac_Header=\$ac_header_preproc"
17046 fi
17047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17049
17050 fi
17051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17052   cat >>confdefs.h <<_ACEOF
17053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17054 _ACEOF
17055
17056 fi
17057
17058 done
17059
17060 if test $ac_cv_header_sys_uuid_h = yes ; then
17061         save_LIBS="$LIBS"
17062         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17063 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17064 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17065   echo $ECHO_N "(cached) $ECHO_C" >&6
17066 else
17067   ac_func_search_save_LIBS=$LIBS
17068 ac_cv_search_uuid_to_str=no
17069 cat >conftest.$ac_ext <<_ACEOF
17070 /* confdefs.h.  */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h.  */
17075
17076 /* Override any gcc2 internal prototype to avoid an error.  */
17077 #ifdef __cplusplus
17078 extern "C"
17079 #endif
17080 /* We use char because int might match the return type of a gcc2
17081    builtin and then its argument prototype would still apply.  */
17082 char uuid_to_str ();
17083 int
17084 main ()
17085 {
17086 uuid_to_str ();
17087   ;
17088   return 0;
17089 }
17090 _ACEOF
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17093   (eval $ac_link) 2>conftest.er1
17094   ac_status=$?
17095   grep -v '^ *+' conftest.er1 >conftest.err
17096   rm -f conftest.er1
17097   cat conftest.err >&5
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); } &&
17100          { ac_try='test -z "$ac_c_werror_flag"
17101                          || test ! -s conftest.err'
17102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103   (eval $ac_try) 2>&5
17104   ac_status=$?
17105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106   (exit $ac_status); }; } &&
17107          { ac_try='test -s conftest$ac_exeext'
17108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109   (eval $ac_try) 2>&5
17110   ac_status=$?
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); }; }; then
17113   ac_cv_search_uuid_to_str="none required"
17114 else
17115   echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17117
17118 fi
17119 rm -f conftest.err conftest.$ac_objext \
17120       conftest$ac_exeext conftest.$ac_ext
17121 if test "$ac_cv_search_uuid_to_str" = no; then
17122   for ac_lib in uuid; do
17123     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17124     cat >conftest.$ac_ext <<_ACEOF
17125 /* confdefs.h.  */
17126 _ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h.  */
17130
17131 /* Override any gcc2 internal prototype to avoid an error.  */
17132 #ifdef __cplusplus
17133 extern "C"
17134 #endif
17135 /* We use char because int might match the return type of a gcc2
17136    builtin and then its argument prototype would still apply.  */
17137 char uuid_to_str ();
17138 int
17139 main ()
17140 {
17141 uuid_to_str ();
17142   ;
17143   return 0;
17144 }
17145 _ACEOF
17146 rm -f conftest.$ac_objext conftest$ac_exeext
17147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17148   (eval $ac_link) 2>conftest.er1
17149   ac_status=$?
17150   grep -v '^ *+' conftest.er1 >conftest.err
17151   rm -f conftest.er1
17152   cat conftest.err >&5
17153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); } &&
17155          { ac_try='test -z "$ac_c_werror_flag"
17156                          || test ! -s conftest.err'
17157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158   (eval $ac_try) 2>&5
17159   ac_status=$?
17160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161   (exit $ac_status); }; } &&
17162          { ac_try='test -s conftest$ac_exeext'
17163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164   (eval $ac_try) 2>&5
17165   ac_status=$?
17166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); }; }; then
17168   ac_cv_search_uuid_to_str="-l$ac_lib"
17169 break
17170 else
17171   echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17173
17174 fi
17175 rm -f conftest.err conftest.$ac_objext \
17176       conftest$ac_exeext conftest.$ac_ext
17177   done
17178 fi
17179 LIBS=$ac_func_search_save_LIBS
17180 fi
17181 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17182 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17183 if test "$ac_cv_search_uuid_to_str" != no; then
17184   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17185   have_uuid=yes
17186 else
17187   :
17188 fi
17189
17190         LIBS="$save_LIBS"
17191
17192         if test have_uuid = yes ; then
17193
17194 cat >>confdefs.h <<\_ACEOF
17195 #define HAVE_UUID_TO_STR 1
17196 _ACEOF
17197
17198
17199                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17200                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17201         fi
17202 fi
17203
17204 if test $have_uuid = no ; then
17205
17206 for ac_header in uuid/uuid.h
17207 do
17208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17210   echo "$as_me:$LINENO: checking for $ac_header" >&5
17211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17213   echo $ECHO_N "(cached) $ECHO_C" >&6
17214 fi
17215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17217 else
17218   # Is the header compilable?
17219 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17221 cat >conftest.$ac_ext <<_ACEOF
17222 /* confdefs.h.  */
17223 _ACEOF
17224 cat confdefs.h >>conftest.$ac_ext
17225 cat >>conftest.$ac_ext <<_ACEOF
17226 /* end confdefs.h.  */
17227 $ac_includes_default
17228 #include <$ac_header>
17229 _ACEOF
17230 rm -f conftest.$ac_objext
17231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17232   (eval $ac_compile) 2>conftest.er1
17233   ac_status=$?
17234   grep -v '^ *+' conftest.er1 >conftest.err
17235   rm -f conftest.er1
17236   cat conftest.err >&5
17237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); } &&
17239          { ac_try='test -z "$ac_c_werror_flag"
17240                          || test ! -s conftest.err'
17241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242   (eval $ac_try) 2>&5
17243   ac_status=$?
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); }; } &&
17246          { ac_try='test -s conftest.$ac_objext'
17247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248   (eval $ac_try) 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); }; }; then
17252   ac_header_compiler=yes
17253 else
17254   echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17256
17257 ac_header_compiler=no
17258 fi
17259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17260 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17261 echo "${ECHO_T}$ac_header_compiler" >&6
17262
17263 # Is the header present?
17264 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17266 cat >conftest.$ac_ext <<_ACEOF
17267 /* confdefs.h.  */
17268 _ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h.  */
17272 #include <$ac_header>
17273 _ACEOF
17274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17275   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17276   ac_status=$?
17277   grep -v '^ *+' conftest.er1 >conftest.err
17278   rm -f conftest.er1
17279   cat conftest.err >&5
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); } >/dev/null; then
17282   if test -s conftest.err; then
17283     ac_cpp_err=$ac_c_preproc_warn_flag
17284     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17285   else
17286     ac_cpp_err=
17287   fi
17288 else
17289   ac_cpp_err=yes
17290 fi
17291 if test -z "$ac_cpp_err"; then
17292   ac_header_preproc=yes
17293 else
17294   echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17296
17297   ac_header_preproc=no
17298 fi
17299 rm -f conftest.err conftest.$ac_ext
17300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17301 echo "${ECHO_T}$ac_header_preproc" >&6
17302
17303 # So?  What about this header?
17304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17305   yes:no: )
17306     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17310     ac_header_preproc=yes
17311     ;;
17312   no:yes:* )
17313     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17315     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17316 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17317     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17319     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17320 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17323     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17325     (
17326       cat <<\_ASBOX
17327 ## --------------------------------------------- ##
17328 ## Report this to <http://www.openldap.org/its/> ##
17329 ## --------------------------------------------- ##
17330 _ASBOX
17331     ) |
17332       sed "s/^/$as_me: WARNING:     /" >&2
17333     ;;
17334 esac
17335 echo "$as_me:$LINENO: checking for $ac_header" >&5
17336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   eval "$as_ac_Header=\$ac_header_preproc"
17341 fi
17342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17344
17345 fi
17346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17347   cat >>confdefs.h <<_ACEOF
17348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17349 _ACEOF
17350
17351 fi
17352
17353 done
17354
17355         if test $ac_cv_header_uuid_uuid_h = yes ; then
17356                 save_LIBS="$LIBS"
17357                 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17358 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17359 if test "${ac_cv_search_uuid_generate+set}" = set; then
17360   echo $ECHO_N "(cached) $ECHO_C" >&6
17361 else
17362   ac_func_search_save_LIBS=$LIBS
17363 ac_cv_search_uuid_generate=no
17364 cat >conftest.$ac_ext <<_ACEOF
17365 /* confdefs.h.  */
17366 _ACEOF
17367 cat confdefs.h >>conftest.$ac_ext
17368 cat >>conftest.$ac_ext <<_ACEOF
17369 /* end confdefs.h.  */
17370
17371 /* Override any gcc2 internal prototype to avoid an error.  */
17372 #ifdef __cplusplus
17373 extern "C"
17374 #endif
17375 /* We use char because int might match the return type of a gcc2
17376    builtin and then its argument prototype would still apply.  */
17377 char uuid_generate ();
17378 int
17379 main ()
17380 {
17381 uuid_generate ();
17382   ;
17383   return 0;
17384 }
17385 _ACEOF
17386 rm -f conftest.$ac_objext conftest$ac_exeext
17387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17388   (eval $ac_link) 2>conftest.er1
17389   ac_status=$?
17390   grep -v '^ *+' conftest.er1 >conftest.err
17391   rm -f conftest.er1
17392   cat conftest.err >&5
17393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394   (exit $ac_status); } &&
17395          { ac_try='test -z "$ac_c_werror_flag"
17396                          || test ! -s conftest.err'
17397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398   (eval $ac_try) 2>&5
17399   ac_status=$?
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); }; } &&
17402          { ac_try='test -s conftest$ac_exeext'
17403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404   (eval $ac_try) 2>&5
17405   ac_status=$?
17406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407   (exit $ac_status); }; }; then
17408   ac_cv_search_uuid_generate="none required"
17409 else
17410   echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17412
17413 fi
17414 rm -f conftest.err conftest.$ac_objext \
17415       conftest$ac_exeext conftest.$ac_ext
17416 if test "$ac_cv_search_uuid_generate" = no; then
17417   for ac_lib in uuid; do
17418     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17419     cat >conftest.$ac_ext <<_ACEOF
17420 /* confdefs.h.  */
17421 _ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h.  */
17425
17426 /* Override any gcc2 internal prototype to avoid an error.  */
17427 #ifdef __cplusplus
17428 extern "C"
17429 #endif
17430 /* We use char because int might match the return type of a gcc2
17431    builtin and then its argument prototype would still apply.  */
17432 char uuid_generate ();
17433 int
17434 main ()
17435 {
17436 uuid_generate ();
17437   ;
17438   return 0;
17439 }
17440 _ACEOF
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17443   (eval $ac_link) 2>conftest.er1
17444   ac_status=$?
17445   grep -v '^ *+' conftest.er1 >conftest.err
17446   rm -f conftest.er1
17447   cat conftest.err >&5
17448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); } &&
17450          { ac_try='test -z "$ac_c_werror_flag"
17451                          || test ! -s conftest.err'
17452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453   (eval $ac_try) 2>&5
17454   ac_status=$?
17455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456   (exit $ac_status); }; } &&
17457          { ac_try='test -s conftest$ac_exeext'
17458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459   (eval $ac_try) 2>&5
17460   ac_status=$?
17461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); }; }; then
17463   ac_cv_search_uuid_generate="-l$ac_lib"
17464 break
17465 else
17466   echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17468
17469 fi
17470 rm -f conftest.err conftest.$ac_objext \
17471       conftest$ac_exeext conftest.$ac_ext
17472   done
17473 fi
17474 LIBS=$ac_func_search_save_LIBS
17475 fi
17476 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17477 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17478 if test "$ac_cv_search_uuid_generate" != no; then
17479   test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17480   have_uuid=yes
17481 else
17482   :
17483 fi
17484
17485                 LIBS="$save_LIBS"
17486
17487                 if test have_uuid = yes ; then
17488
17489 cat >>confdefs.h <<\_ACEOF
17490 #define HAVE_UUID_GENERATE 1
17491 _ACEOF
17492
17493
17494                         test "$ac_cv_search_uuid_generate" = "none required" || \
17495                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17496                 fi
17497         fi
17498 fi
17499
17500 if test $have_uuid = no ; then
17501         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17502 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17503         save_LIBS="$LIBS"
17504         LIBS="$LIBS -lrpcrt4"
17505         cat >conftest.$ac_ext <<_ACEOF
17506 /* confdefs.h.  */
17507 _ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h.  */
17511
17512                 int __stdcall UuidCreate(void *);
17513                 int __stdcall UuidToStringA(void *,void **);
17514
17515 int
17516 main ()
17517 {
17518
17519                 UuidCreate(0);
17520                 UuidToStringA(0,0);
17521
17522   ;
17523   return 0;
17524 }
17525 _ACEOF
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17528   (eval $ac_link) 2>conftest.er1
17529   ac_status=$?
17530   grep -v '^ *+' conftest.er1 >conftest.err
17531   rm -f conftest.er1
17532   cat conftest.err >&5
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); } &&
17535          { ac_try='test -z "$ac_c_werror_flag"
17536                          || test ! -s conftest.err'
17537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538   (eval $ac_try) 2>&5
17539   ac_status=$?
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); }; } &&
17542          { ac_try='test -s conftest$ac_exeext'
17543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544   (eval $ac_try) 2>&5
17545   ac_status=$?
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); }; }; then
17548   need_rpcrt=yes
17549 else
17550   echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17552
17553 need_rpcrt=no
17554 fi
17555 rm -f conftest.err conftest.$ac_objext \
17556       conftest$ac_exeext conftest.$ac_ext
17557         if test $need_rpcrt = yes; then
17558                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17559         fi
17560         LIBS="$save_LIBS"
17561         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17562 echo "${ECHO_T}$need_rpcrt" >&6
17563 fi
17564
17565 ol_cv_lib_resolver=no
17566 if test $ol_cv_lib_resolver = no ; then
17567         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17568 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17569 if test "${ol_cv_resolver_none+set}" = set; then
17570   echo $ECHO_N "(cached) $ECHO_C" >&6
17571 else
17572
17573         ol_RESOLVER_LIB=
17574         ol_LIBS=$LIBS
17575         LIBS="$ol_RESOLVER_LIB $LIBS"
17576
17577         cat >conftest.$ac_ext <<_ACEOF
17578 /* confdefs.h.  */
17579 _ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h.  */
17583
17584 #ifdef HAVE_SYS_TYPES_H
17585 #       include <sys/types.h>
17586 #endif
17587 #include <netinet/in.h>
17588 #ifdef HAVE_ARPA_NAMESER_H
17589 #       include <arpa/nameser.h>
17590 #endif
17591 #ifdef HAVE_RESOLV_H
17592 #       include <resolv.h>
17593 #endif
17594
17595 int
17596 main ()
17597 {
17598 {
17599         int len, status;
17600         char *request = NULL;
17601         unsigned char reply[64*1024];
17602         unsigned char host[64*1024];
17603         unsigned char *p;
17604
17605 #ifdef NS_HFIXEDSZ
17606         /* Bind 8/9 interface */
17607         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17608 #else
17609         /* Bind 4 interface */
17610 # ifndef T_SRV
17611 #  define T_SRV 33
17612 # endif
17613         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17614 #endif
17615         p = reply;
17616 #ifdef NS_HFIXEDSZ
17617         /* Bind 8/9 interface */
17618         p += NS_HFIXEDSZ;
17619 #elif defined(HFIXEDSZ)
17620         /* Bind 4 interface w/ HFIXEDSZ */
17621         p += HFIXEDSZ;
17622 #else
17623         /* Bind 4 interface w/o HFIXEDSZ */
17624         p += sizeof(HEADER);
17625 #endif
17626         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17627 }
17628   ;
17629   return 0;
17630 }
17631 _ACEOF
17632 rm -f conftest.$ac_objext conftest$ac_exeext
17633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17634   (eval $ac_link) 2>conftest.er1
17635   ac_status=$?
17636   grep -v '^ *+' conftest.er1 >conftest.err
17637   rm -f conftest.er1
17638   cat conftest.err >&5
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); } &&
17641          { ac_try='test -z "$ac_c_werror_flag"
17642                          || test ! -s conftest.err'
17643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644   (eval $ac_try) 2>&5
17645   ac_status=$?
17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647   (exit $ac_status); }; } &&
17648          { ac_try='test -s conftest$ac_exeext'
17649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650   (eval $ac_try) 2>&5
17651   ac_status=$?
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); }; }; then
17654   ol_cv_resolver_none=yes
17655 else
17656   echo "$as_me: failed program was:" >&5
17657 sed 's/^/| /' conftest.$ac_ext >&5
17658
17659 ol_cv_resolver_none=no
17660 fi
17661 rm -f conftest.err conftest.$ac_objext \
17662       conftest$ac_exeext conftest.$ac_ext
17663
17664         LIBS="$ol_LIBS"
17665
17666 fi
17667 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17668 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17669
17670         if test $ol_cv_resolver_none = yes ; then
17671                 ol_cv_lib_resolver=yes
17672         fi
17673 fi
17674
17675 if test $ol_cv_lib_resolver = no ; then
17676         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17677 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17678 if test "${ol_cv_resolver_resolv+set}" = set; then
17679   echo $ECHO_N "(cached) $ECHO_C" >&6
17680 else
17681
17682         ol_RESOLVER_LIB=-lresolv
17683         ol_LIBS=$LIBS
17684         LIBS="$ol_RESOLVER_LIB $LIBS"
17685
17686         cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h.  */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h.  */
17692
17693 #ifdef HAVE_SYS_TYPES_H
17694 #       include <sys/types.h>
17695 #endif
17696 #include <netinet/in.h>
17697 #ifdef HAVE_ARPA_NAMESER_H
17698 #       include <arpa/nameser.h>
17699 #endif
17700 #ifdef HAVE_RESOLV_H
17701 #       include <resolv.h>
17702 #endif
17703
17704 int
17705 main ()
17706 {
17707 {
17708         int len, status;
17709         char *request = NULL;
17710         unsigned char reply[64*1024];
17711         unsigned char host[64*1024];
17712         unsigned char *p;
17713
17714 #ifdef NS_HFIXEDSZ
17715         /* Bind 8/9 interface */
17716         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17717 #else
17718         /* Bind 4 interface */
17719 # ifndef T_SRV
17720 #  define T_SRV 33
17721 # endif
17722         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17723 #endif
17724         p = reply;
17725 #ifdef NS_HFIXEDSZ
17726         /* Bind 8/9 interface */
17727         p += NS_HFIXEDSZ;
17728 #elif defined(HFIXEDSZ)
17729         /* Bind 4 interface w/ HFIXEDSZ */
17730         p += HFIXEDSZ;
17731 #else
17732         /* Bind 4 interface w/o HFIXEDSZ */
17733         p += sizeof(HEADER);
17734 #endif
17735         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17736 }
17737   ;
17738   return 0;
17739 }
17740 _ACEOF
17741 rm -f conftest.$ac_objext conftest$ac_exeext
17742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17743   (eval $ac_link) 2>conftest.er1
17744   ac_status=$?
17745   grep -v '^ *+' conftest.er1 >conftest.err
17746   rm -f conftest.er1
17747   cat conftest.err >&5
17748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749   (exit $ac_status); } &&
17750          { ac_try='test -z "$ac_c_werror_flag"
17751                          || test ! -s conftest.err'
17752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753   (eval $ac_try) 2>&5
17754   ac_status=$?
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); }; } &&
17757          { ac_try='test -s conftest$ac_exeext'
17758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759   (eval $ac_try) 2>&5
17760   ac_status=$?
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); }; }; then
17763   ol_cv_resolver_resolv=yes
17764 else
17765   echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17767
17768 ol_cv_resolver_resolv=no
17769 fi
17770 rm -f conftest.err conftest.$ac_objext \
17771       conftest$ac_exeext conftest.$ac_ext
17772
17773         LIBS="$ol_LIBS"
17774
17775 fi
17776 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17777 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17778
17779         if test $ol_cv_resolver_resolv = yes ; then
17780                 ol_cv_lib_resolver=-lresolv
17781         fi
17782 fi
17783
17784 if test $ol_cv_lib_resolver = no ; then
17785         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17786 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17787 if test "${ol_cv_resolver_bind+set}" = set; then
17788   echo $ECHO_N "(cached) $ECHO_C" >&6
17789 else
17790
17791         ol_RESOLVER_LIB=-lbind
17792         ol_LIBS=$LIBS
17793         LIBS="$ol_RESOLVER_LIB $LIBS"
17794
17795         cat >conftest.$ac_ext <<_ACEOF
17796 /* confdefs.h.  */
17797 _ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h.  */
17801
17802 #ifdef HAVE_SYS_TYPES_H
17803 #       include <sys/types.h>
17804 #endif
17805 #include <netinet/in.h>
17806 #ifdef HAVE_ARPA_NAMESER_H
17807 #       include <arpa/nameser.h>
17808 #endif
17809 #ifdef HAVE_RESOLV_H
17810 #       include <resolv.h>
17811 #endif
17812
17813 int
17814 main ()
17815 {
17816 {
17817         int len, status;
17818         char *request = NULL;
17819         unsigned char reply[64*1024];
17820         unsigned char host[64*1024];
17821         unsigned char *p;
17822
17823 #ifdef NS_HFIXEDSZ
17824         /* Bind 8/9 interface */
17825         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17826 #else
17827         /* Bind 4 interface */
17828 # ifndef T_SRV
17829 #  define T_SRV 33
17830 # endif
17831         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17832 #endif
17833         p = reply;
17834 #ifdef NS_HFIXEDSZ
17835         /* Bind 8/9 interface */
17836         p += NS_HFIXEDSZ;
17837 #elif defined(HFIXEDSZ)
17838         /* Bind 4 interface w/ HFIXEDSZ */
17839         p += HFIXEDSZ;
17840 #else
17841         /* Bind 4 interface w/o HFIXEDSZ */
17842         p += sizeof(HEADER);
17843 #endif
17844         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17845 }
17846   ;
17847   return 0;
17848 }
17849 _ACEOF
17850 rm -f conftest.$ac_objext conftest$ac_exeext
17851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17852   (eval $ac_link) 2>conftest.er1
17853   ac_status=$?
17854   grep -v '^ *+' conftest.er1 >conftest.err
17855   rm -f conftest.er1
17856   cat conftest.err >&5
17857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858   (exit $ac_status); } &&
17859          { ac_try='test -z "$ac_c_werror_flag"
17860                          || test ! -s conftest.err'
17861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862   (eval $ac_try) 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); }; } &&
17866          { ac_try='test -s conftest$ac_exeext'
17867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868   (eval $ac_try) 2>&5
17869   ac_status=$?
17870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871   (exit $ac_status); }; }; then
17872   ol_cv_resolver_bind=yes
17873 else
17874   echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877 ol_cv_resolver_bind=no
17878 fi
17879 rm -f conftest.err conftest.$ac_objext \
17880       conftest$ac_exeext conftest.$ac_ext
17881
17882         LIBS="$ol_LIBS"
17883
17884 fi
17885 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17886 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17887
17888         if test $ol_cv_resolver_bind = yes ; then
17889                 ol_cv_lib_resolver=-lbind
17890         fi
17891 fi
17892
17893
17894
17895 ol_link_dnssrv=no
17896 if test "$ol_cv_lib_resolver" != no ; then
17897
17898 cat >>confdefs.h <<\_ACEOF
17899 #define HAVE_RES_QUERY 1
17900 _ACEOF
17901
17902
17903         if test "$ol_enable_dnssrv" != no ; then
17904                 ol_link_dnssrv=yes
17905         fi
17906
17907         if test "$ol_cv_lib_resolver" != yes ; then
17908                 LIBS="$ol_cv_lib_resolver $LIBS"
17909         fi
17910 fi
17911
17912 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17913         if test "$ol_link_dnssrv" = no ; then
17914                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17915 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17916    { (exit 1); exit 1; }; }
17917         fi
17918 else
17919         ol_enable_dnssrv=no
17920 fi
17921
17922
17923 for ac_func in hstrerror
17924 do
17925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17926 echo "$as_me:$LINENO: checking for $ac_func" >&5
17927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17928 if eval "test \"\${$as_ac_var+set}\" = set"; then
17929   echo $ECHO_N "(cached) $ECHO_C" >&6
17930 else
17931   cat >conftest.$ac_ext <<_ACEOF
17932 /* confdefs.h.  */
17933 _ACEOF
17934 cat confdefs.h >>conftest.$ac_ext
17935 cat >>conftest.$ac_ext <<_ACEOF
17936 /* end confdefs.h.  */
17937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17939 #define $ac_func innocuous_$ac_func
17940
17941 /* System header to define __stub macros and hopefully few prototypes,
17942     which can conflict with char $ac_func (); below.
17943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17944     <limits.h> exists even on freestanding compilers.  */
17945
17946 #ifdef __STDC__
17947 # include <limits.h>
17948 #else
17949 # include <assert.h>
17950 #endif
17951
17952 #undef $ac_func
17953
17954 /* Override any gcc2 internal prototype to avoid an error.  */
17955 #ifdef __cplusplus
17956 extern "C"
17957 {
17958 #endif
17959 /* We use char because int might match the return type of a gcc2
17960    builtin and then its argument prototype would still apply.  */
17961 char $ac_func ();
17962 /* The GNU C library defines this for functions which it implements
17963     to always fail with ENOSYS.  Some functions are actually named
17964     something starting with __ and the normal name is an alias.  */
17965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17966 choke me
17967 #else
17968 char (*f) () = $ac_func;
17969 #endif
17970 #ifdef __cplusplus
17971 }
17972 #endif
17973
17974 int
17975 main ()
17976 {
17977 return f != $ac_func;
17978   ;
17979   return 0;
17980 }
17981 _ACEOF
17982 rm -f conftest.$ac_objext conftest$ac_exeext
17983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17984   (eval $ac_link) 2>conftest.er1
17985   ac_status=$?
17986   grep -v '^ *+' conftest.er1 >conftest.err
17987   rm -f conftest.er1
17988   cat conftest.err >&5
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); } &&
17991          { ac_try='test -z "$ac_c_werror_flag"
17992                          || test ! -s conftest.err'
17993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994   (eval $ac_try) 2>&5
17995   ac_status=$?
17996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997   (exit $ac_status); }; } &&
17998          { ac_try='test -s conftest$ac_exeext'
17999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000   (eval $ac_try) 2>&5
18001   ac_status=$?
18002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003   (exit $ac_status); }; }; then
18004   eval "$as_ac_var=yes"
18005 else
18006   echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18008
18009 eval "$as_ac_var=no"
18010 fi
18011 rm -f conftest.err conftest.$ac_objext \
18012       conftest$ac_exeext conftest.$ac_ext
18013 fi
18014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18016 if test `eval echo '${'$as_ac_var'}'` = yes; then
18017   cat >>confdefs.h <<_ACEOF
18018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18019 _ACEOF
18020
18021 fi
18022 done
18023
18024
18025
18026
18027
18028
18029 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18030 do
18031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18032 echo "$as_me:$LINENO: checking for $ac_func" >&5
18033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18034 if eval "test \"\${$as_ac_var+set}\" = set"; then
18035   echo $ECHO_N "(cached) $ECHO_C" >&6
18036 else
18037   cat >conftest.$ac_ext <<_ACEOF
18038 /* confdefs.h.  */
18039 _ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h.  */
18043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18045 #define $ac_func innocuous_$ac_func
18046
18047 /* System header to define __stub macros and hopefully few prototypes,
18048     which can conflict with char $ac_func (); below.
18049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18050     <limits.h> exists even on freestanding compilers.  */
18051
18052 #ifdef __STDC__
18053 # include <limits.h>
18054 #else
18055 # include <assert.h>
18056 #endif
18057
18058 #undef $ac_func
18059
18060 /* Override any gcc2 internal prototype to avoid an error.  */
18061 #ifdef __cplusplus
18062 extern "C"
18063 {
18064 #endif
18065 /* We use char because int might match the return type of a gcc2
18066    builtin and then its argument prototype would still apply.  */
18067 char $ac_func ();
18068 /* The GNU C library defines this for functions which it implements
18069     to always fail with ENOSYS.  Some functions are actually named
18070     something starting with __ and the normal name is an alias.  */
18071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18072 choke me
18073 #else
18074 char (*f) () = $ac_func;
18075 #endif
18076 #ifdef __cplusplus
18077 }
18078 #endif
18079
18080 int
18081 main ()
18082 {
18083 return f != $ac_func;
18084   ;
18085   return 0;
18086 }
18087 _ACEOF
18088 rm -f conftest.$ac_objext conftest$ac_exeext
18089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18090   (eval $ac_link) 2>conftest.er1
18091   ac_status=$?
18092   grep -v '^ *+' conftest.er1 >conftest.err
18093   rm -f conftest.er1
18094   cat conftest.err >&5
18095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096   (exit $ac_status); } &&
18097          { ac_try='test -z "$ac_c_werror_flag"
18098                          || test ! -s conftest.err'
18099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100   (eval $ac_try) 2>&5
18101   ac_status=$?
18102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103   (exit $ac_status); }; } &&
18104          { ac_try='test -s conftest$ac_exeext'
18105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106   (eval $ac_try) 2>&5
18107   ac_status=$?
18108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109   (exit $ac_status); }; }; then
18110   eval "$as_ac_var=yes"
18111 else
18112   echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18114
18115 eval "$as_ac_var=no"
18116 fi
18117 rm -f conftest.err conftest.$ac_objext \
18118       conftest$ac_exeext conftest.$ac_ext
18119 fi
18120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18122 if test `eval echo '${'$as_ac_var'}'` = yes; then
18123   cat >>confdefs.h <<_ACEOF
18124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18125 _ACEOF
18126
18127 fi
18128 done
18129
18130
18131 ol_link_ipv6=no
18132 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18133         if test $ol_enable_ipv6 = yes ; then
18134                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18135 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18136    { (exit 1); exit 1; }; }
18137         fi
18138 elif test $ol_enable_ipv6 != no ; then
18139         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18140 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18141 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18142   echo $ECHO_N "(cached) $ECHO_C" >&6
18143 else
18144
18145                 cat >conftest.$ac_ext <<_ACEOF
18146 /* confdefs.h.  */
18147 _ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h.  */
18151
18152 #                       include <netinet/in.h>
18153 #                       ifdef INET6_ADDRSTRLEN
18154                                 __has_inet6_addrstrlen__;
18155 #                       endif
18156
18157 _ACEOF
18158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18159   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18160   ol_cv_inet6_addrstrlen=yes
18161 else
18162   ol_cv_inet6_addrstrlen=no
18163 fi
18164 rm -f conftest*
18165
18166 fi
18167 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18168 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18169
18170
18171         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18172 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18173 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18174   echo $ECHO_N "(cached) $ECHO_C" >&6
18175 else
18176
18177                 cat >conftest.$ac_ext <<_ACEOF
18178 /* confdefs.h.  */
18179 _ACEOF
18180 cat confdefs.h >>conftest.$ac_ext
18181 cat >>conftest.$ac_ext <<_ACEOF
18182 /* end confdefs.h.  */
18183
18184 #include <sys/types.h>
18185 #include <sys/socket.h>
18186
18187 int
18188 main ()
18189 {
18190
18191                         struct sockaddr_storage ss;
18192
18193   ;
18194   return 0;
18195 }
18196 _ACEOF
18197 rm -f conftest.$ac_objext
18198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18199   (eval $ac_compile) 2>conftest.er1
18200   ac_status=$?
18201   grep -v '^ *+' conftest.er1 >conftest.err
18202   rm -f conftest.er1
18203   cat conftest.err >&5
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); } &&
18206          { ac_try='test -z "$ac_c_werror_flag"
18207                          || test ! -s conftest.err'
18208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209   (eval $ac_try) 2>&5
18210   ac_status=$?
18211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212   (exit $ac_status); }; } &&
18213          { ac_try='test -s conftest.$ac_objext'
18214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215   (eval $ac_try) 2>&5
18216   ac_status=$?
18217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218   (exit $ac_status); }; }; then
18219   ol_cv_struct_sockaddr_storage=yes
18220 else
18221   echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.$ac_ext >&5
18223
18224 ol_cv_struct_sockaddr_storage=no
18225 fi
18226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18227 fi
18228 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18229 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18230
18231         if test $ol_cv_inet6_addrstrlen = yes &&
18232            test $ol_cv_struct_sockaddr_storage = yes ; then
18233                 ol_link_ipv6=yes
18234         elif test $ol_enable_ipv6 = yes &&
18235              test $ol_cv_inet6_addrstrlen = no ; then
18236                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18237 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18238    { (exit 1); exit 1; }; }
18239         elif test $ol_enable_ipv6 = yes &&
18240              test $ol_cv_struct_sockaddr_storage = no ; then
18241                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18242 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18243    { (exit 1); exit 1; }; }
18244         fi
18245 fi
18246
18247 if test $ol_enable_local != no ; then
18248
18249 for ac_header in sys/un.h
18250 do
18251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18253   echo "$as_me:$LINENO: checking for $ac_header" >&5
18254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18256   echo $ECHO_N "(cached) $ECHO_C" >&6
18257 fi
18258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18260 else
18261   # Is the header compilable?
18262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18264 cat >conftest.$ac_ext <<_ACEOF
18265 /* confdefs.h.  */
18266 _ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h.  */
18270 $ac_includes_default
18271 #include <$ac_header>
18272 _ACEOF
18273 rm -f conftest.$ac_objext
18274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18275   (eval $ac_compile) 2>conftest.er1
18276   ac_status=$?
18277   grep -v '^ *+' conftest.er1 >conftest.err
18278   rm -f conftest.er1
18279   cat conftest.err >&5
18280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281   (exit $ac_status); } &&
18282          { ac_try='test -z "$ac_c_werror_flag"
18283                          || test ! -s conftest.err'
18284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285   (eval $ac_try) 2>&5
18286   ac_status=$?
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); }; } &&
18289          { ac_try='test -s conftest.$ac_objext'
18290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291   (eval $ac_try) 2>&5
18292   ac_status=$?
18293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294   (exit $ac_status); }; }; then
18295   ac_header_compiler=yes
18296 else
18297   echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18299
18300 ac_header_compiler=no
18301 fi
18302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18304 echo "${ECHO_T}$ac_header_compiler" >&6
18305
18306 # Is the header present?
18307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18309 cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h.  */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h.  */
18315 #include <$ac_header>
18316 _ACEOF
18317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18318   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
18325   if test -s conftest.err; then
18326     ac_cpp_err=$ac_c_preproc_warn_flag
18327     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18328   else
18329     ac_cpp_err=
18330   fi
18331 else
18332   ac_cpp_err=yes
18333 fi
18334 if test -z "$ac_cpp_err"; then
18335   ac_header_preproc=yes
18336 else
18337   echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18339
18340   ac_header_preproc=no
18341 fi
18342 rm -f conftest.err conftest.$ac_ext
18343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18344 echo "${ECHO_T}$ac_header_preproc" >&6
18345
18346 # So?  What about this header?
18347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18348   yes:no: )
18349     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18353     ac_header_preproc=yes
18354     ;;
18355   no:yes:* )
18356     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18358     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18359 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18360     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18362     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18363 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18366     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18368     (
18369       cat <<\_ASBOX
18370 ## --------------------------------------------- ##
18371 ## Report this to <http://www.openldap.org/its/> ##
18372 ## --------------------------------------------- ##
18373 _ASBOX
18374     ) |
18375       sed "s/^/$as_me: WARNING:     /" >&2
18376     ;;
18377 esac
18378 echo "$as_me:$LINENO: checking for $ac_header" >&5
18379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18381   echo $ECHO_N "(cached) $ECHO_C" >&6
18382 else
18383   eval "$as_ac_Header=\$ac_header_preproc"
18384 fi
18385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18387
18388 fi
18389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18390   cat >>confdefs.h <<_ACEOF
18391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18392 _ACEOF
18393
18394 fi
18395
18396 done
18397
18398
18399         if test $ol_enable_local = auto ; then
18400                 ol_enable_local=$ac_cv_header_sys_un_h
18401         elif test $ac_cv_header_sys_un_h = no ; then
18402                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18403 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18404    { (exit 1); exit 1; }; }
18405         fi
18406 fi
18407
18408
18409 if test $ol_with_tls = yes ; then
18410         ol_with_tls=auto
18411 fi
18412
18413 ol_link_tls=no
18414 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
18415
18416 for ac_header in openssl/ssl.h
18417 do
18418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18420   echo "$as_me:$LINENO: checking for $ac_header" >&5
18421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18423   echo $ECHO_N "(cached) $ECHO_C" >&6
18424 fi
18425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18427 else
18428   # Is the header compilable?
18429 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18431 cat >conftest.$ac_ext <<_ACEOF
18432 /* confdefs.h.  */
18433 _ACEOF
18434 cat confdefs.h >>conftest.$ac_ext
18435 cat >>conftest.$ac_ext <<_ACEOF
18436 /* end confdefs.h.  */
18437 $ac_includes_default
18438 #include <$ac_header>
18439 _ACEOF
18440 rm -f conftest.$ac_objext
18441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18442   (eval $ac_compile) 2>conftest.er1
18443   ac_status=$?
18444   grep -v '^ *+' conftest.er1 >conftest.err
18445   rm -f conftest.er1
18446   cat conftest.err >&5
18447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448   (exit $ac_status); } &&
18449          { ac_try='test -z "$ac_c_werror_flag"
18450                          || test ! -s conftest.err'
18451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18452   (eval $ac_try) 2>&5
18453   ac_status=$?
18454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455   (exit $ac_status); }; } &&
18456          { ac_try='test -s conftest.$ac_objext'
18457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18458   (eval $ac_try) 2>&5
18459   ac_status=$?
18460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461   (exit $ac_status); }; }; then
18462   ac_header_compiler=yes
18463 else
18464   echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18466
18467 ac_header_compiler=no
18468 fi
18469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18471 echo "${ECHO_T}$ac_header_compiler" >&6
18472
18473 # Is the header present?
18474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18476 cat >conftest.$ac_ext <<_ACEOF
18477 /* confdefs.h.  */
18478 _ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h.  */
18482 #include <$ac_header>
18483 _ACEOF
18484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18485   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18486   ac_status=$?
18487   grep -v '^ *+' conftest.er1 >conftest.err
18488   rm -f conftest.er1
18489   cat conftest.err >&5
18490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491   (exit $ac_status); } >/dev/null; then
18492   if test -s conftest.err; then
18493     ac_cpp_err=$ac_c_preproc_warn_flag
18494     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18495   else
18496     ac_cpp_err=
18497   fi
18498 else
18499   ac_cpp_err=yes
18500 fi
18501 if test -z "$ac_cpp_err"; then
18502   ac_header_preproc=yes
18503 else
18504   echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.$ac_ext >&5
18506
18507   ac_header_preproc=no
18508 fi
18509 rm -f conftest.err conftest.$ac_ext
18510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18511 echo "${ECHO_T}$ac_header_preproc" >&6
18512
18513 # So?  What about this header?
18514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18515   yes:no: )
18516     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18520     ac_header_preproc=yes
18521     ;;
18522   no:yes:* )
18523     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18525     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18526 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18527     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18529     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18530 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18533     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18535     (
18536       cat <<\_ASBOX
18537 ## --------------------------------------------- ##
18538 ## Report this to <http://www.openldap.org/its/> ##
18539 ## --------------------------------------------- ##
18540 _ASBOX
18541     ) |
18542       sed "s/^/$as_me: WARNING:     /" >&2
18543     ;;
18544 esac
18545 echo "$as_me:$LINENO: checking for $ac_header" >&5
18546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18548   echo $ECHO_N "(cached) $ECHO_C" >&6
18549 else
18550   eval "$as_ac_Header=\$ac_header_preproc"
18551 fi
18552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18554
18555 fi
18556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18557   cat >>confdefs.h <<_ACEOF
18558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18559 _ACEOF
18560
18561 fi
18562
18563 done
18564
18565
18566         if test $ac_cv_header_openssl_ssl_h = yes ; then
18567                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
18568 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
18569 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
18570   echo $ECHO_N "(cached) $ECHO_C" >&6
18571 else
18572   ac_check_lib_save_LIBS=$LIBS
18573 LIBS="-lssl -lcrypto $LIBS"
18574 cat >conftest.$ac_ext <<_ACEOF
18575 /* confdefs.h.  */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h.  */
18580
18581 /* Override any gcc2 internal prototype to avoid an error.  */
18582 #ifdef __cplusplus
18583 extern "C"
18584 #endif
18585 /* We use char because int might match the return type of a gcc2
18586    builtin and then its argument prototype would still apply.  */
18587 char SSL_library_init ();
18588 int
18589 main ()
18590 {
18591 SSL_library_init ();
18592   ;
18593   return 0;
18594 }
18595 _ACEOF
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18598   (eval $ac_link) 2>conftest.er1
18599   ac_status=$?
18600   grep -v '^ *+' conftest.er1 >conftest.err
18601   rm -f conftest.er1
18602   cat conftest.err >&5
18603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604   (exit $ac_status); } &&
18605          { ac_try='test -z "$ac_c_werror_flag"
18606                          || test ! -s conftest.err'
18607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608   (eval $ac_try) 2>&5
18609   ac_status=$?
18610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); }; } &&
18612          { ac_try='test -s conftest$ac_exeext'
18613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614   (eval $ac_try) 2>&5
18615   ac_status=$?
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); }; }; then
18618   ac_cv_lib_ssl_SSL_library_init=yes
18619 else
18620   echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18622
18623 ac_cv_lib_ssl_SSL_library_init=no
18624 fi
18625 rm -f conftest.err conftest.$ac_objext \
18626       conftest$ac_exeext conftest.$ac_ext
18627 LIBS=$ac_check_lib_save_LIBS
18628 fi
18629 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
18630 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
18631 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
18632   have_openssl=yes
18633                         need_rsaref=no
18634 else
18635   have_openssl=no
18636 fi
18637
18638
18639                 if test $have_openssl = no ; then
18640                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
18641 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
18642 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
18643   echo $ECHO_N "(cached) $ECHO_C" >&6
18644 else
18645   ac_check_lib_save_LIBS=$LIBS
18646 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
18647 cat >conftest.$ac_ext <<_ACEOF
18648 /* confdefs.h.  */
18649 _ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h.  */
18653
18654 /* Override any gcc2 internal prototype to avoid an error.  */
18655 #ifdef __cplusplus
18656 extern "C"
18657 #endif
18658 /* We use char because int might match the return type of a gcc2
18659    builtin and then its argument prototype would still apply.  */
18660 char ssl3_accept ();
18661 int
18662 main ()
18663 {
18664 ssl3_accept ();
18665   ;
18666   return 0;
18667 }
18668 _ACEOF
18669 rm -f conftest.$ac_objext conftest$ac_exeext
18670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18671   (eval $ac_link) 2>conftest.er1
18672   ac_status=$?
18673   grep -v '^ *+' conftest.er1 >conftest.err
18674   rm -f conftest.er1
18675   cat conftest.err >&5
18676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); } &&
18678          { ac_try='test -z "$ac_c_werror_flag"
18679                          || test ! -s conftest.err'
18680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681   (eval $ac_try) 2>&5
18682   ac_status=$?
18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); }; } &&
18685          { ac_try='test -s conftest$ac_exeext'
18686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687   (eval $ac_try) 2>&5
18688   ac_status=$?
18689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690   (exit $ac_status); }; }; then
18691   ac_cv_lib_ssl_ssl3_accept=yes
18692 else
18693   echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18695
18696 ac_cv_lib_ssl_ssl3_accept=no
18697 fi
18698 rm -f conftest.err conftest.$ac_objext \
18699       conftest$ac_exeext conftest.$ac_ext
18700 LIBS=$ac_check_lib_save_LIBS
18701 fi
18702 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
18703 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
18704 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
18705   have_openssl=yes
18706                                 need_rsaref=yes
18707 else
18708   have_openssl=no
18709 fi
18710
18711                 fi
18712
18713                 if test $have_openssl = yes ; then
18714                         ol_with_tls=openssl
18715                         ol_link_tls=yes
18716
18717
18718 cat >>confdefs.h <<\_ACEOF
18719 #define HAVE_OPENSSL 1
18720 _ACEOF
18721
18722
18723                         if test $need_rsaref = yes; then
18724
18725 cat >>confdefs.h <<\_ACEOF
18726 #define HAVE_RSAREF 1
18727 _ACEOF
18728
18729
18730                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
18731                         else
18732                                 TLS_LIBS="-lssl -lcrypto"
18733                         fi
18734
18735                         echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
18736 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
18737 if test "${ol_cv_ssl_crl_compat+set}" = set; then
18738   echo $ECHO_N "(cached) $ECHO_C" >&6
18739 else
18740
18741                 cat >conftest.$ac_ext <<_ACEOF
18742 /* confdefs.h.  */
18743 _ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h.  */
18747
18748 #ifdef HAVE_OPENSSL_SSL_H
18749 #include <openssl/ssl.h>
18750 #endif
18751
18752 /* Require 0.9.7d+ */
18753 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
18754         char *__ssl_compat = "0.9.7d";
18755 #endif
18756
18757 _ACEOF
18758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18759   $EGREP "__ssl_compat" >/dev/null 2>&1; then
18760   ol_cv_ssl_crl_compat=yes
18761 else
18762   ol_cv_ssl_crl_compat=no
18763 fi
18764 rm -f conftest*
18765
18766 fi
18767 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
18768 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
18769
18770                         if test $ol_cv_ssl_crl_compat = yes ; then
18771
18772 cat >>confdefs.h <<\_ACEOF
18773 #define HAVE_OPENSSL_CRL 1
18774 _ACEOF
18775
18776                         fi
18777                 fi
18778         fi
18779 fi
18780
18781 WITH_TLS=no
18782 if test $ol_link_tls = yes ; then
18783
18784 cat >>confdefs.h <<\_ACEOF
18785 #define HAVE_TLS 1
18786 _ACEOF
18787
18788         WITH_TLS=yes
18789 elif test $ol_with_tls = auto ; then
18790         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
18791 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
18792         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
18793 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
18794 elif test $ol_with_tls != no ; then
18795         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
18796 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
18797    { (exit 1); exit 1; }; }
18798 else
18799         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
18800 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
18801 fi
18802
18803 if test $ol_enable_lmpasswd != no; then
18804         if test $ol_link_tls != yes ; then
18805                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
18806 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
18807    { (exit 1); exit 1; }; }
18808         fi
18809
18810
18811 cat >>confdefs.h <<\_ACEOF
18812 #define SLAPD_LMHASH 1
18813 _ACEOF
18814
18815 fi
18816
18817 ol_link_threads=no
18818
18819 case $ol_with_threads in auto | yes | nt)
18820
18821
18822         echo "$as_me:$LINENO: checking for _beginthread" >&5
18823 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
18824 if test "${ac_cv_func__beginthread+set}" = set; then
18825   echo $ECHO_N "(cached) $ECHO_C" >&6
18826 else
18827   cat >conftest.$ac_ext <<_ACEOF
18828 /* confdefs.h.  */
18829 _ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h.  */
18833 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
18834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18835 #define _beginthread innocuous__beginthread
18836
18837 /* System header to define __stub macros and hopefully few prototypes,
18838     which can conflict with char _beginthread (); below.
18839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18840     <limits.h> exists even on freestanding compilers.  */
18841
18842 #ifdef __STDC__
18843 # include <limits.h>
18844 #else
18845 # include <assert.h>
18846 #endif
18847
18848 #undef _beginthread
18849
18850 /* Override any gcc2 internal prototype to avoid an error.  */
18851 #ifdef __cplusplus
18852 extern "C"
18853 {
18854 #endif
18855 /* We use char because int might match the return type of a gcc2
18856    builtin and then its argument prototype would still apply.  */
18857 char _beginthread ();
18858 /* The GNU C library defines this for functions which it implements
18859     to always fail with ENOSYS.  Some functions are actually named
18860     something starting with __ and the normal name is an alias.  */
18861 #if defined (__stub__beginthread) || defined (__stub____beginthread)
18862 choke me
18863 #else
18864 char (*f) () = _beginthread;
18865 #endif
18866 #ifdef __cplusplus
18867 }
18868 #endif
18869
18870 int
18871 main ()
18872 {
18873 return f != _beginthread;
18874   ;
18875   return 0;
18876 }
18877 _ACEOF
18878 rm -f conftest.$ac_objext conftest$ac_exeext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18880   (eval $ac_link) 2>conftest.er1
18881   ac_status=$?
18882   grep -v '^ *+' conftest.er1 >conftest.err
18883   rm -f conftest.er1
18884   cat conftest.err >&5
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); } &&
18887          { ac_try='test -z "$ac_c_werror_flag"
18888                          || test ! -s conftest.err'
18889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890   (eval $ac_try) 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; } &&
18894          { ac_try='test -s conftest$ac_exeext'
18895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896   (eval $ac_try) 2>&5
18897   ac_status=$?
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); }; }; then
18900   ac_cv_func__beginthread=yes
18901 else
18902   echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18904
18905 ac_cv_func__beginthread=no
18906 fi
18907 rm -f conftest.err conftest.$ac_objext \
18908       conftest$ac_exeext conftest.$ac_ext
18909 fi
18910 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
18911 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
18912
18913
18914         if test $ac_cv_func__beginthread = yes ; then
18915
18916 cat >>confdefs.h <<\_ACEOF
18917 #define HAVE_NT_THREADS 1
18918 _ACEOF
18919
18920                 ol_cv_nt_threads=yes
18921         fi
18922
18923
18924         if test "$ol_cv_nt_threads" = yes ; then
18925                 ol_link_threads=nt
18926                 ol_with_threads=found
18927                 ol_with_yielding_select=yes
18928
18929
18930 cat >>confdefs.h <<\_ACEOF
18931 #define HAVE_NT_SERVICE_MANAGER 1
18932 _ACEOF
18933
18934
18935 cat >>confdefs.h <<\_ACEOF
18936 #define HAVE_NT_EVENT_LOG 1
18937 _ACEOF
18938
18939         fi
18940
18941         if test $ol_with_threads = nt ; then
18942                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
18943 echo "$as_me: error: could not locate NT Threads" >&2;}
18944    { (exit 1); exit 1; }; }
18945         fi
18946         ;;
18947 esac
18948
18949 case $ol_with_threads in auto | yes | posix)
18950
18951
18952 for ac_header in pthread.h
18953 do
18954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18956   echo "$as_me:$LINENO: checking for $ac_header" >&5
18957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18959   echo $ECHO_N "(cached) $ECHO_C" >&6
18960 fi
18961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18963 else
18964   # Is the header compilable?
18965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18967 cat >conftest.$ac_ext <<_ACEOF
18968 /* confdefs.h.  */
18969 _ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h.  */
18973 $ac_includes_default
18974 #include <$ac_header>
18975 _ACEOF
18976 rm -f conftest.$ac_objext
18977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18978   (eval $ac_compile) 2>conftest.er1
18979   ac_status=$?
18980   grep -v '^ *+' conftest.er1 >conftest.err
18981   rm -f conftest.er1
18982   cat conftest.err >&5
18983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984   (exit $ac_status); } &&
18985          { ac_try='test -z "$ac_c_werror_flag"
18986                          || test ! -s conftest.err'
18987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988   (eval $ac_try) 2>&5
18989   ac_status=$?
18990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991   (exit $ac_status); }; } &&
18992          { ac_try='test -s conftest.$ac_objext'
18993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994   (eval $ac_try) 2>&5
18995   ac_status=$?
18996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997   (exit $ac_status); }; }; then
18998   ac_header_compiler=yes
18999 else
19000   echo "$as_me: failed program was:" >&5
19001 sed 's/^/| /' conftest.$ac_ext >&5
19002
19003 ac_header_compiler=no
19004 fi
19005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19007 echo "${ECHO_T}$ac_header_compiler" >&6
19008
19009 # Is the header present?
19010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19012 cat >conftest.$ac_ext <<_ACEOF
19013 /* confdefs.h.  */
19014 _ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h.  */
19018 #include <$ac_header>
19019 _ACEOF
19020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19022   ac_status=$?
19023   grep -v '^ *+' conftest.er1 >conftest.err
19024   rm -f conftest.er1
19025   cat conftest.err >&5
19026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); } >/dev/null; then
19028   if test -s conftest.err; then
19029     ac_cpp_err=$ac_c_preproc_warn_flag
19030     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19031   else
19032     ac_cpp_err=
19033   fi
19034 else
19035   ac_cpp_err=yes
19036 fi
19037 if test -z "$ac_cpp_err"; then
19038   ac_header_preproc=yes
19039 else
19040   echo "$as_me: failed program was:" >&5
19041 sed 's/^/| /' conftest.$ac_ext >&5
19042
19043   ac_header_preproc=no
19044 fi
19045 rm -f conftest.err conftest.$ac_ext
19046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19047 echo "${ECHO_T}$ac_header_preproc" >&6
19048
19049 # So?  What about this header?
19050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19051   yes:no: )
19052     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19056     ac_header_preproc=yes
19057     ;;
19058   no:yes:* )
19059     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19061     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19062 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19063     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19065     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19066 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19069     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19071     (
19072       cat <<\_ASBOX
19073 ## --------------------------------------------- ##
19074 ## Report this to <http://www.openldap.org/its/> ##
19075 ## --------------------------------------------- ##
19076 _ASBOX
19077     ) |
19078       sed "s/^/$as_me: WARNING:     /" >&2
19079     ;;
19080 esac
19081 echo "$as_me:$LINENO: checking for $ac_header" >&5
19082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19084   echo $ECHO_N "(cached) $ECHO_C" >&6
19085 else
19086   eval "$as_ac_Header=\$ac_header_preproc"
19087 fi
19088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19090
19091 fi
19092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19093   cat >>confdefs.h <<_ACEOF
19094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19095 _ACEOF
19096
19097 fi
19098
19099 done
19100
19101
19102         if test $ac_cv_header_pthread_h = yes ; then
19103                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19104 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19105 if test "${ol_cv_pthread_version+set}" = set; then
19106   echo $ECHO_N "(cached) $ECHO_C" >&6
19107 else
19108
19109         cat >conftest.$ac_ext <<_ACEOF
19110 /* confdefs.h.  */
19111 _ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h.  */
19115
19116 #               include <pthread.h>
19117
19118 int
19119 main ()
19120 {
19121
19122                 int i = PTHREAD_CREATE_JOINABLE;
19123
19124   ;
19125   return 0;
19126 }
19127 _ACEOF
19128 rm -f conftest.$ac_objext
19129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19130   (eval $ac_compile) 2>conftest.er1
19131   ac_status=$?
19132   grep -v '^ *+' conftest.er1 >conftest.err
19133   rm -f conftest.er1
19134   cat conftest.err >&5
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); } &&
19137          { ac_try='test -z "$ac_c_werror_flag"
19138                          || test ! -s conftest.err'
19139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140   (eval $ac_try) 2>&5
19141   ac_status=$?
19142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143   (exit $ac_status); }; } &&
19144          { ac_try='test -s conftest.$ac_objext'
19145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146   (eval $ac_try) 2>&5
19147   ac_status=$?
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); }; }; then
19150
19151         cat >conftest.$ac_ext <<_ACEOF
19152 /* confdefs.h.  */
19153 _ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h.  */
19157 #include <pthread.h>
19158
19159 _ACEOF
19160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19161   $EGREP "pthread_detach" >/dev/null 2>&1; then
19162   ol_cv_pthread_version=10
19163 else
19164   ol_cv_pthread_version=8
19165 fi
19166 rm -f conftest*
19167
19168 else
19169   echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19171
19172
19173         cat >conftest.$ac_ext <<_ACEOF
19174 /* confdefs.h.  */
19175 _ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h.  */
19179
19180 #               include <pthread.h>
19181 #               ifdef PTHREAD_CREATE_UNDETACHED
19182                 draft7
19183 #               endif
19184
19185 _ACEOF
19186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19187   $EGREP "draft7" >/dev/null 2>&1; then
19188   ol_cv_pthread_version=7
19189 else
19190
19191         cat >conftest.$ac_ext <<_ACEOF
19192 /* confdefs.h.  */
19193 _ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h.  */
19197 #include <pthread.h>
19198
19199 _ACEOF
19200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19201   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19202   ol_cv_pthread_version=6
19203 else
19204
19205         cat >conftest.$ac_ext <<_ACEOF
19206 /* confdefs.h.  */
19207 _ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h.  */
19211
19212 #               include <pthread.h>
19213 #ifdef          PTHREAD_MUTEX_INITIALIZER
19214                 draft5
19215 #endif
19216
19217 _ACEOF
19218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19219   $EGREP "draft5" >/dev/null 2>&1; then
19220   ol_cv_pthread_version=5
19221 else
19222   ol_cv_pthread_version=4
19223 fi
19224 rm -f conftest*
19225
19226 fi
19227 rm -f conftest*
19228
19229 fi
19230 rm -f conftest*
19231
19232 fi
19233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19234
19235 fi
19236 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
19237 echo "${ECHO_T}$ol_cv_pthread_version" >&6
19238
19239
19240                 if test $ol_cv_pthread_version != 0 ; then
19241
19242 cat >>confdefs.h <<_ACEOF
19243 #define HAVE_PTHREADS $ol_cv_pthread_version
19244 _ACEOF
19245
19246                 else
19247                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
19248 echo "$as_me: error: unknown pthread version" >&2;}
19249    { (exit 1); exit 1; }; }
19250                 fi
19251
19252                 # consider threads found
19253                 ol_with_threads=found
19254
19255
19256         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
19257 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
19258 if test "${ol_cv_header_linux_threads+set}" = set; then
19259   echo $ECHO_N "(cached) $ECHO_C" >&6
19260 else
19261   cat >conftest.$ac_ext <<_ACEOF
19262 /* confdefs.h.  */
19263 _ACEOF
19264 cat confdefs.h >>conftest.$ac_ext
19265 cat >>conftest.$ac_ext <<_ACEOF
19266 /* end confdefs.h.  */
19267 #include <pthread.h>
19268 _ACEOF
19269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19270   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
19271   ol_cv_header_linux_threads=yes
19272 else
19273   ol_cv_header_linux_threads=no
19274 fi
19275 rm -f conftest*
19276
19277
19278 fi
19279 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
19280 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
19281         if test $ol_cv_header_linux_threads = yes; then
19282
19283 cat >>confdefs.h <<\_ACEOF
19284 #define HAVE_LINUX_THREADS 1
19285 _ACEOF
19286
19287         fi
19288
19289
19290         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
19291 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
19292 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
19293   echo $ECHO_N "(cached) $ECHO_C" >&6
19294 else
19295   cat >conftest.$ac_ext <<_ACEOF
19296 /* confdefs.h.  */
19297 _ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h.  */
19301 #include <pthread.h>
19302 #ifdef _POSIX_THREAD_IS_GNU_PTH
19303         __gnu_pth__;
19304 #endif
19305
19306 _ACEOF
19307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19308   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
19309   ol_cv_header_gnu_pth_pthread_h=yes
19310 else
19311   ol_cv_header_gnu_pth_pthread_h=no
19312 fi
19313 rm -f conftest*
19314
19315
19316 fi
19317 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19318 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
19319
19320
19321                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19322
19323 for ac_header in sched.h
19324 do
19325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19327   echo "$as_me:$LINENO: checking for $ac_header" >&5
19328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19330   echo $ECHO_N "(cached) $ECHO_C" >&6
19331 fi
19332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19334 else
19335   # Is the header compilable?
19336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19338 cat >conftest.$ac_ext <<_ACEOF
19339 /* confdefs.h.  */
19340 _ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h.  */
19344 $ac_includes_default
19345 #include <$ac_header>
19346 _ACEOF
19347 rm -f conftest.$ac_objext
19348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19349   (eval $ac_compile) 2>conftest.er1
19350   ac_status=$?
19351   grep -v '^ *+' conftest.er1 >conftest.err
19352   rm -f conftest.er1
19353   cat conftest.err >&5
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); } &&
19356          { ac_try='test -z "$ac_c_werror_flag"
19357                          || test ! -s conftest.err'
19358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359   (eval $ac_try) 2>&5
19360   ac_status=$?
19361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362   (exit $ac_status); }; } &&
19363          { ac_try='test -s conftest.$ac_objext'
19364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365   (eval $ac_try) 2>&5
19366   ac_status=$?
19367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368   (exit $ac_status); }; }; then
19369   ac_header_compiler=yes
19370 else
19371   echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19373
19374 ac_header_compiler=no
19375 fi
19376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19378 echo "${ECHO_T}$ac_header_compiler" >&6
19379
19380 # Is the header present?
19381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19383 cat >conftest.$ac_ext <<_ACEOF
19384 /* confdefs.h.  */
19385 _ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h.  */
19389 #include <$ac_header>
19390 _ACEOF
19391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19392   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19393   ac_status=$?
19394   grep -v '^ *+' conftest.er1 >conftest.err
19395   rm -f conftest.er1
19396   cat conftest.err >&5
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); } >/dev/null; then
19399   if test -s conftest.err; then
19400     ac_cpp_err=$ac_c_preproc_warn_flag
19401     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19402   else
19403     ac_cpp_err=
19404   fi
19405 else
19406   ac_cpp_err=yes
19407 fi
19408 if test -z "$ac_cpp_err"; then
19409   ac_header_preproc=yes
19410 else
19411   echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19413
19414   ac_header_preproc=no
19415 fi
19416 rm -f conftest.err conftest.$ac_ext
19417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19418 echo "${ECHO_T}$ac_header_preproc" >&6
19419
19420 # So?  What about this header?
19421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19422   yes:no: )
19423     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19427     ac_header_preproc=yes
19428     ;;
19429   no:yes:* )
19430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19432     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19433 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19434     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19436     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19437 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19440     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19442     (
19443       cat <<\_ASBOX
19444 ## --------------------------------------------- ##
19445 ## Report this to <http://www.openldap.org/its/> ##
19446 ## --------------------------------------------- ##
19447 _ASBOX
19448     ) |
19449       sed "s/^/$as_me: WARNING:     /" >&2
19450     ;;
19451 esac
19452 echo "$as_me:$LINENO: checking for $ac_header" >&5
19453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19455   echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457   eval "$as_ac_Header=\$ac_header_preproc"
19458 fi
19459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19461
19462 fi
19463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19464   cat >>confdefs.h <<_ACEOF
19465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19466 _ACEOF
19467
19468 fi
19469
19470 done
19471
19472                 fi
19473
19474
19475                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
19476 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
19477 if test "${ol_cv_pthread_create+set}" = set; then
19478   echo $ECHO_N "(cached) $ECHO_C" >&6
19479 else
19480
19481                         if test "$cross_compiling" = yes; then
19482   cat >conftest.$ac_ext <<_ACEOF
19483 /* confdefs.h.  */
19484 _ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h.  */
19488
19489 /* pthread test headers */
19490 #include <pthread.h>
19491 #if HAVE_PTHREADS < 7
19492 #include <errno.h>
19493 #endif
19494 #ifndef NULL
19495 #define NULL (void*)0
19496 #endif
19497
19498 static void *task(p)
19499         void *p;
19500 {
19501         return (void *) (p == NULL);
19502 }
19503
19504 int
19505 main ()
19506 {
19507
19508         /* pthread test function */
19509 #ifndef PTHREAD_CREATE_DETACHED
19510 #define PTHREAD_CREATE_DETACHED 1
19511 #endif
19512         pthread_t t;
19513         int status;
19514         int detach = PTHREAD_CREATE_DETACHED;
19515
19516 #if HAVE_PTHREADS > 4
19517         /* Final pthreads */
19518         pthread_attr_t attr;
19519
19520         status = pthread_attr_init(&attr);
19521         if( status ) return status;
19522
19523 #if HAVE_PTHREADS < 7
19524         status = pthread_attr_setdetachstate(&attr, &detach);
19525         if( status < 0 ) status = errno;
19526 #else
19527         status = pthread_attr_setdetachstate(&attr, detach);
19528 #endif
19529         if( status ) return status;
19530         status = pthread_create( &t, &attr, task, NULL );
19531 #if HAVE_PTHREADS < 7
19532         if( status < 0 ) status = errno;
19533 #endif
19534         if( status ) return status;
19535 #else
19536         /* Draft 4 pthreads */
19537         status = pthread_create( &t, pthread_attr_default, task, NULL );
19538         if( status ) return errno;
19539
19540         /* give thread a chance to complete */
19541         /* it should remain joinable and hence detachable */
19542         sleep( 1 );
19543
19544         status = pthread_detach( &t );
19545         if( status ) return errno;
19546 #endif
19547
19548 #ifdef HAVE_LINUX_THREADS
19549         pthread_kill_other_threads_np();
19550 #endif
19551
19552         return 0;
19553
19554   ;
19555   return 0;
19556 }
19557 _ACEOF
19558 rm -f conftest.$ac_objext conftest$ac_exeext
19559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19560   (eval $ac_link) 2>conftest.er1
19561   ac_status=$?
19562   grep -v '^ *+' conftest.er1 >conftest.err
19563   rm -f conftest.er1
19564   cat conftest.err >&5
19565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); } &&
19567          { ac_try='test -z "$ac_c_werror_flag"
19568                          || test ! -s conftest.err'
19569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570   (eval $ac_try) 2>&5
19571   ac_status=$?
19572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573   (exit $ac_status); }; } &&
19574          { ac_try='test -s conftest$ac_exeext'
19575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576   (eval $ac_try) 2>&5
19577   ac_status=$?
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); }; }; then
19580   ol_cv_pthread_create=yes
19581 else
19582   echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19584
19585 ol_cv_pthread_create=no
19586 fi
19587 rm -f conftest.err conftest.$ac_objext \
19588       conftest$ac_exeext conftest.$ac_ext
19589 else
19590   cat >conftest.$ac_ext <<_ACEOF
19591 /* confdefs.h.  */
19592 _ACEOF
19593 cat confdefs.h >>conftest.$ac_ext
19594 cat >>conftest.$ac_ext <<_ACEOF
19595 /* end confdefs.h.  */
19596
19597 /* pthread test headers */
19598 #include <pthread.h>
19599 #if HAVE_PTHREADS < 7
19600 #include <errno.h>
19601 #endif
19602 #ifndef NULL
19603 #define NULL (void*)0
19604 #endif
19605
19606 static void *task(p)
19607         void *p;
19608 {
19609         return (void *) (p == NULL);
19610 }
19611
19612
19613 int main(argc, argv)
19614         int argc;
19615         char **argv;
19616 {
19617
19618         /* pthread test function */
19619 #ifndef PTHREAD_CREATE_DETACHED
19620 #define PTHREAD_CREATE_DETACHED 1
19621 #endif
19622         pthread_t t;
19623         int status;
19624         int detach = PTHREAD_CREATE_DETACHED;
19625
19626 #if HAVE_PTHREADS > 4
19627         /* Final pthreads */
19628         pthread_attr_t attr;
19629
19630         status = pthread_attr_init(&attr);
19631         if( status ) return status;
19632
19633 #if HAVE_PTHREADS < 7
19634         status = pthread_attr_setdetachstate(&attr, &detach);
19635         if( status < 0 ) status = errno;
19636 #else
19637         status = pthread_attr_setdetachstate(&attr, detach);
19638 #endif
19639         if( status ) return status;
19640         status = pthread_create( &t, &attr, task, NULL );
19641 #if HAVE_PTHREADS < 7
19642         if( status < 0 ) status = errno;
19643 #endif
19644         if( status ) return status;
19645 #else
19646         /* Draft 4 pthreads */
19647         status = pthread_create( &t, pthread_attr_default, task, NULL );
19648         if( status ) return errno;
19649
19650         /* give thread a chance to complete */
19651         /* it should remain joinable and hence detachable */
19652         sleep( 1 );
19653
19654         status = pthread_detach( &t );
19655         if( status ) return errno;
19656 #endif
19657
19658 #ifdef HAVE_LINUX_THREADS
19659         pthread_kill_other_threads_np();
19660 #endif
19661
19662         return 0;
19663
19664 }
19665
19666 _ACEOF
19667 rm -f conftest$ac_exeext
19668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19669   (eval $ac_link) 2>&5
19670   ac_status=$?
19671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674   (eval $ac_try) 2>&5
19675   ac_status=$?
19676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677   (exit $ac_status); }; }; then
19678   ol_cv_pthread_create=yes
19679 else
19680   echo "$as_me: program exited with status $ac_status" >&5
19681 echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19683
19684 ( exit $ac_status )
19685 ol_cv_pthread_create=no
19686 fi
19687 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19688 fi
19689 fi
19690 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
19691 echo "${ECHO_T}$ol_cv_pthread_create" >&6
19692
19693                 if test $ol_cv_pthread_create != no ; then
19694                         ol_link_threads=posix
19695                         ol_link_pthreads=""
19696                 fi
19697
19698                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
19699 if test "$ol_link_threads" = no ; then
19700         # try -kthread
19701         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
19702 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
19703 if test "${ol_cv_pthread_kthread+set}" = set; then
19704   echo $ECHO_N "(cached) $ECHO_C" >&6
19705 else
19706
19707                 # save the flags
19708                 ol_LIBS="$LIBS"
19709                 LIBS="-kthread $LIBS"
19710
19711                 if test "$cross_compiling" = yes; then
19712   cat >conftest.$ac_ext <<_ACEOF
19713 /* confdefs.h.  */
19714 _ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h.  */
19718
19719 /* pthread test headers */
19720 #include <pthread.h>
19721 #if HAVE_PTHREADS < 7
19722 #include <errno.h>
19723 #endif
19724 #ifndef NULL
19725 #define NULL (void*)0
19726 #endif
19727
19728 static void *task(p)
19729         void *p;
19730 {
19731         return (void *) (p == NULL);
19732 }
19733
19734 int
19735 main ()
19736 {
19737
19738         /* pthread test function */
19739 #ifndef PTHREAD_CREATE_DETACHED
19740 #define PTHREAD_CREATE_DETACHED 1
19741 #endif
19742         pthread_t t;
19743         int status;
19744         int detach = PTHREAD_CREATE_DETACHED;
19745
19746 #if HAVE_PTHREADS > 4
19747         /* Final pthreads */
19748         pthread_attr_t attr;
19749
19750         status = pthread_attr_init(&attr);
19751         if( status ) return status;
19752
19753 #if HAVE_PTHREADS < 7
19754         status = pthread_attr_setdetachstate(&attr, &detach);
19755         if( status < 0 ) status = errno;
19756 #else
19757         status = pthread_attr_setdetachstate(&attr, detach);
19758 #endif
19759         if( status ) return status;
19760         status = pthread_create( &t, &attr, task, NULL );
19761 #if HAVE_PTHREADS < 7
19762         if( status < 0 ) status = errno;
19763 #endif
19764         if( status ) return status;
19765 #else
19766         /* Draft 4 pthreads */
19767         status = pthread_create( &t, pthread_attr_default, task, NULL );
19768         if( status ) return errno;
19769
19770         /* give thread a chance to complete */
19771         /* it should remain joinable and hence detachable */
19772         sleep( 1 );
19773
19774         status = pthread_detach( &t );
19775         if( status ) return errno;
19776 #endif
19777
19778 #ifdef HAVE_LINUX_THREADS
19779         pthread_kill_other_threads_np();
19780 #endif
19781
19782         return 0;
19783
19784   ;
19785   return 0;
19786 }
19787 _ACEOF
19788 rm -f conftest.$ac_objext conftest$ac_exeext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19790   (eval $ac_link) 2>conftest.er1
19791   ac_status=$?
19792   grep -v '^ *+' conftest.er1 >conftest.err
19793   rm -f conftest.er1
19794   cat conftest.err >&5
19795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796   (exit $ac_status); } &&
19797          { ac_try='test -z "$ac_c_werror_flag"
19798                          || test ! -s conftest.err'
19799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800   (eval $ac_try) 2>&5
19801   ac_status=$?
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); }; } &&
19804          { ac_try='test -s conftest$ac_exeext'
19805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806   (eval $ac_try) 2>&5
19807   ac_status=$?
19808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809   (exit $ac_status); }; }; then
19810   ol_cv_pthread_kthread=yes
19811 else
19812   echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19814
19815 ol_cv_pthread_kthread=no
19816 fi
19817 rm -f conftest.err conftest.$ac_objext \
19818       conftest$ac_exeext conftest.$ac_ext
19819 else
19820   cat >conftest.$ac_ext <<_ACEOF
19821 /* confdefs.h.  */
19822 _ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h.  */
19826
19827 /* pthread test headers */
19828 #include <pthread.h>
19829 #if HAVE_PTHREADS < 7
19830 #include <errno.h>
19831 #endif
19832 #ifndef NULL
19833 #define NULL (void*)0
19834 #endif
19835
19836 static void *task(p)
19837         void *p;
19838 {
19839         return (void *) (p == NULL);
19840 }
19841
19842
19843 int main(argc, argv)
19844         int argc;
19845         char **argv;
19846 {
19847
19848         /* pthread test function */
19849 #ifndef PTHREAD_CREATE_DETACHED
19850 #define PTHREAD_CREATE_DETACHED 1
19851 #endif
19852         pthread_t t;
19853         int status;
19854         int detach = PTHREAD_CREATE_DETACHED;
19855
19856 #if HAVE_PTHREADS > 4
19857         /* Final pthreads */
19858         pthread_attr_t attr;
19859
19860         status = pthread_attr_init(&attr);
19861         if( status ) return status;
19862
19863 #if HAVE_PTHREADS < 7
19864         status = pthread_attr_setdetachstate(&attr, &detach);
19865         if( status < 0 ) status = errno;
19866 #else
19867         status = pthread_attr_setdetachstate(&attr, detach);
19868 #endif
19869         if( status ) return status;
19870         status = pthread_create( &t, &attr, task, NULL );
19871 #if HAVE_PTHREADS < 7
19872         if( status < 0 ) status = errno;
19873 #endif
19874         if( status ) return status;
19875 #else
19876         /* Draft 4 pthreads */
19877         status = pthread_create( &t, pthread_attr_default, task, NULL );
19878         if( status ) return errno;
19879
19880         /* give thread a chance to complete */
19881         /* it should remain joinable and hence detachable */
19882         sleep( 1 );
19883
19884         status = pthread_detach( &t );
19885         if( status ) return errno;
19886 #endif
19887
19888 #ifdef HAVE_LINUX_THREADS
19889         pthread_kill_other_threads_np();
19890 #endif
19891
19892         return 0;
19893
19894 }
19895
19896 _ACEOF
19897 rm -f conftest$ac_exeext
19898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19899   (eval $ac_link) 2>&5
19900   ac_status=$?
19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904   (eval $ac_try) 2>&5
19905   ac_status=$?
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); }; }; then
19908   ol_cv_pthread_kthread=yes
19909 else
19910   echo "$as_me: program exited with status $ac_status" >&5
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19913
19914 ( exit $ac_status )
19915 ol_cv_pthread_kthread=no
19916 fi
19917 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19918 fi
19919
19920                 # restore the LIBS
19921                 LIBS="$ol_LIBS"
19922
19923 fi
19924 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
19925 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
19926
19927         if test $ol_cv_pthread_kthread = yes ; then
19928                 ol_link_pthreads="-kthread"
19929                 ol_link_threads=posix
19930         fi
19931 fi
19932
19933                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
19934 if test "$ol_link_threads" = no ; then
19935         # try -pthread
19936         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
19937 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
19938 if test "${ol_cv_pthread_pthread+set}" = set; then
19939   echo $ECHO_N "(cached) $ECHO_C" >&6
19940 else
19941
19942                 # save the flags
19943                 ol_LIBS="$LIBS"
19944                 LIBS="-pthread $LIBS"
19945
19946                 if test "$cross_compiling" = yes; then
19947   cat >conftest.$ac_ext <<_ACEOF
19948 /* confdefs.h.  */
19949 _ACEOF
19950 cat confdefs.h >>conftest.$ac_ext
19951 cat >>conftest.$ac_ext <<_ACEOF
19952 /* end confdefs.h.  */
19953
19954 /* pthread test headers */
19955 #include <pthread.h>
19956 #if HAVE_PTHREADS < 7
19957 #include <errno.h>
19958 #endif
19959 #ifndef NULL
19960 #define NULL (void*)0
19961 #endif
19962
19963 static void *task(p)
19964         void *p;
19965 {
19966         return (void *) (p == NULL);
19967 }
19968
19969 int
19970 main ()
19971 {
19972
19973         /* pthread test function */
19974 #ifndef PTHREAD_CREATE_DETACHED
19975 #define PTHREAD_CREATE_DETACHED 1
19976 #endif
19977         pthread_t t;
19978         int status;
19979         int detach = PTHREAD_CREATE_DETACHED;
19980
19981 #if HAVE_PTHREADS > 4
19982         /* Final pthreads */
19983         pthread_attr_t attr;
19984
19985         status = pthread_attr_init(&attr);
19986         if( status ) return status;
19987
19988 #if HAVE_PTHREADS < 7
19989         status = pthread_attr_setdetachstate(&attr, &detach);
19990         if( status < 0 ) status = errno;
19991 #else
19992         status = pthread_attr_setdetachstate(&attr, detach);
19993 #endif
19994         if( status ) return status;
19995         status = pthread_create( &t, &attr, task, NULL );
19996 #if HAVE_PTHREADS < 7
19997         if( status < 0 ) status = errno;
19998 #endif
19999         if( status ) return status;
20000 #else
20001         /* Draft 4 pthreads */
20002         status = pthread_create( &t, pthread_attr_default, task, NULL );
20003         if( status ) return errno;
20004
20005         /* give thread a chance to complete */
20006         /* it should remain joinable and hence detachable */
20007         sleep( 1 );
20008
20009         status = pthread_detach( &t );
20010         if( status ) return errno;
20011 #endif
20012
20013 #ifdef HAVE_LINUX_THREADS
20014         pthread_kill_other_threads_np();
20015 #endif
20016
20017         return 0;
20018
20019   ;
20020   return 0;
20021 }
20022 _ACEOF
20023 rm -f conftest.$ac_objext conftest$ac_exeext
20024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20025   (eval $ac_link) 2>conftest.er1
20026   ac_status=$?
20027   grep -v '^ *+' conftest.er1 >conftest.err
20028   rm -f conftest.er1
20029   cat conftest.err >&5
20030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031   (exit $ac_status); } &&
20032          { ac_try='test -z "$ac_c_werror_flag"
20033                          || test ! -s conftest.err'
20034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035   (eval $ac_try) 2>&5
20036   ac_status=$?
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); }; } &&
20039          { ac_try='test -s conftest$ac_exeext'
20040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041   (eval $ac_try) 2>&5
20042   ac_status=$?
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); }; }; then
20045   ol_cv_pthread_pthread=yes
20046 else
20047   echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20049
20050 ol_cv_pthread_pthread=no
20051 fi
20052 rm -f conftest.err conftest.$ac_objext \
20053       conftest$ac_exeext conftest.$ac_ext
20054 else
20055   cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h.  */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h.  */
20061
20062 /* pthread test headers */
20063 #include <pthread.h>
20064 #if HAVE_PTHREADS < 7
20065 #include <errno.h>
20066 #endif
20067 #ifndef NULL
20068 #define NULL (void*)0
20069 #endif
20070
20071 static void *task(p)
20072         void *p;
20073 {
20074         return (void *) (p == NULL);
20075 }
20076
20077
20078 int main(argc, argv)
20079         int argc;
20080         char **argv;
20081 {
20082
20083         /* pthread test function */
20084 #ifndef PTHREAD_CREATE_DETACHED
20085 #define PTHREAD_CREATE_DETACHED 1
20086 #endif
20087         pthread_t t;
20088         int status;
20089         int detach = PTHREAD_CREATE_DETACHED;
20090
20091 #if HAVE_PTHREADS > 4
20092         /* Final pthreads */
20093         pthread_attr_t attr;
20094
20095         status = pthread_attr_init(&attr);
20096         if( status ) return status;
20097
20098 #if HAVE_PTHREADS < 7
20099         status = pthread_attr_setdetachstate(&attr, &detach);
20100         if( status < 0 ) status = errno;
20101 #else
20102         status = pthread_attr_setdetachstate(&attr, detach);
20103 #endif
20104         if( status ) return status;
20105         status = pthread_create( &t, &attr, task, NULL );
20106 #if HAVE_PTHREADS < 7
20107         if( status < 0 ) status = errno;
20108 #endif
20109         if( status ) return status;
20110 #else
20111         /* Draft 4 pthreads */
20112         status = pthread_create( &t, pthread_attr_default, task, NULL );
20113         if( status ) return errno;
20114
20115         /* give thread a chance to complete */
20116         /* it should remain joinable and hence detachable */
20117         sleep( 1 );
20118
20119         status = pthread_detach( &t );
20120         if( status ) return errno;
20121 #endif
20122
20123 #ifdef HAVE_LINUX_THREADS
20124         pthread_kill_other_threads_np();
20125 #endif
20126
20127         return 0;
20128
20129 }
20130
20131 _ACEOF
20132 rm -f conftest$ac_exeext
20133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20134   (eval $ac_link) 2>&5
20135   ac_status=$?
20136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139   (eval $ac_try) 2>&5
20140   ac_status=$?
20141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); }; }; then
20143   ol_cv_pthread_pthread=yes
20144 else
20145   echo "$as_me: program exited with status $ac_status" >&5
20146 echo "$as_me: failed program was:" >&5
20147 sed 's/^/| /' conftest.$ac_ext >&5
20148
20149 ( exit $ac_status )
20150 ol_cv_pthread_pthread=no
20151 fi
20152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20153 fi
20154
20155                 # restore the LIBS
20156                 LIBS="$ol_LIBS"
20157
20158 fi
20159 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20160 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20161
20162         if test $ol_cv_pthread_pthread = yes ; then
20163                 ol_link_pthreads="-pthread"
20164                 ol_link_threads=posix
20165         fi
20166 fi
20167
20168                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20169 if test "$ol_link_threads" = no ; then
20170         # try -pthreads
20171         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20172 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20173 if test "${ol_cv_pthread_pthreads+set}" = set; then
20174   echo $ECHO_N "(cached) $ECHO_C" >&6
20175 else
20176
20177                 # save the flags
20178                 ol_LIBS="$LIBS"
20179                 LIBS="-pthreads $LIBS"
20180
20181                 if test "$cross_compiling" = yes; then
20182   cat >conftest.$ac_ext <<_ACEOF
20183 /* confdefs.h.  */
20184 _ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h.  */
20188
20189 /* pthread test headers */
20190 #include <pthread.h>
20191 #if HAVE_PTHREADS < 7
20192 #include <errno.h>
20193 #endif
20194 #ifndef NULL
20195 #define NULL (void*)0
20196 #endif
20197
20198 static void *task(p)
20199         void *p;
20200 {
20201         return (void *) (p == NULL);
20202 }
20203
20204 int
20205 main ()
20206 {
20207
20208         /* pthread test function */
20209 #ifndef PTHREAD_CREATE_DETACHED
20210 #define PTHREAD_CREATE_DETACHED 1
20211 #endif
20212         pthread_t t;
20213         int status;
20214         int detach = PTHREAD_CREATE_DETACHED;
20215
20216 #if HAVE_PTHREADS > 4
20217         /* Final pthreads */
20218         pthread_attr_t attr;
20219
20220         status = pthread_attr_init(&attr);
20221         if( status ) return status;
20222
20223 #if HAVE_PTHREADS < 7
20224         status = pthread_attr_setdetachstate(&attr, &detach);
20225         if( status < 0 ) status = errno;
20226 #else
20227         status = pthread_attr_setdetachstate(&attr, detach);
20228 #endif
20229         if( status ) return status;
20230         status = pthread_create( &t, &attr, task, NULL );
20231 #if HAVE_PTHREADS < 7
20232         if( status < 0 ) status = errno;
20233 #endif
20234         if( status ) return status;
20235 #else
20236         /* Draft 4 pthreads */
20237         status = pthread_create( &t, pthread_attr_default, task, NULL );
20238         if( status ) return errno;
20239
20240         /* give thread a chance to complete */
20241         /* it should remain joinable and hence detachable */
20242         sleep( 1 );
20243
20244         status = pthread_detach( &t );
20245         if( status ) return errno;
20246 #endif
20247
20248 #ifdef HAVE_LINUX_THREADS
20249         pthread_kill_other_threads_np();
20250 #endif
20251
20252         return 0;
20253
20254   ;
20255   return 0;
20256 }
20257 _ACEOF
20258 rm -f conftest.$ac_objext conftest$ac_exeext
20259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20260   (eval $ac_link) 2>conftest.er1
20261   ac_status=$?
20262   grep -v '^ *+' conftest.er1 >conftest.err
20263   rm -f conftest.er1
20264   cat conftest.err >&5
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); } &&
20267          { ac_try='test -z "$ac_c_werror_flag"
20268                          || test ! -s conftest.err'
20269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20270   (eval $ac_try) 2>&5
20271   ac_status=$?
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); }; } &&
20274          { ac_try='test -s conftest$ac_exeext'
20275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276   (eval $ac_try) 2>&5
20277   ac_status=$?
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); }; }; then
20280   ol_cv_pthread_pthreads=yes
20281 else
20282   echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20284
20285 ol_cv_pthread_pthreads=no
20286 fi
20287 rm -f conftest.err conftest.$ac_objext \
20288       conftest$ac_exeext conftest.$ac_ext
20289 else
20290   cat >conftest.$ac_ext <<_ACEOF
20291 /* confdefs.h.  */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h.  */
20296
20297 /* pthread test headers */
20298 #include <pthread.h>
20299 #if HAVE_PTHREADS < 7
20300 #include <errno.h>
20301 #endif
20302 #ifndef NULL
20303 #define NULL (void*)0
20304 #endif
20305
20306 static void *task(p)
20307         void *p;
20308 {
20309         return (void *) (p == NULL);
20310 }
20311
20312
20313 int main(argc, argv)
20314         int argc;
20315         char **argv;
20316 {
20317
20318         /* pthread test function */
20319 #ifndef PTHREAD_CREATE_DETACHED
20320 #define PTHREAD_CREATE_DETACHED 1
20321 #endif
20322         pthread_t t;
20323         int status;
20324         int detach = PTHREAD_CREATE_DETACHED;
20325
20326 #if HAVE_PTHREADS > 4
20327         /* Final pthreads */
20328         pthread_attr_t attr;
20329
20330         status = pthread_attr_init(&attr);
20331         if( status ) return status;
20332
20333 #if HAVE_PTHREADS < 7
20334         status = pthread_attr_setdetachstate(&attr, &detach);
20335         if( status < 0 ) status = errno;
20336 #else
20337         status = pthread_attr_setdetachstate(&attr, detach);
20338 #endif
20339         if( status ) return status;
20340         status = pthread_create( &t, &attr, task, NULL );
20341 #if HAVE_PTHREADS < 7
20342         if( status < 0 ) status = errno;
20343 #endif
20344         if( status ) return status;
20345 #else
20346         /* Draft 4 pthreads */
20347         status = pthread_create( &t, pthread_attr_default, task, NULL );
20348         if( status ) return errno;
20349
20350         /* give thread a chance to complete */
20351         /* it should remain joinable and hence detachable */
20352         sleep( 1 );
20353
20354         status = pthread_detach( &t );
20355         if( status ) return errno;
20356 #endif
20357
20358 #ifdef HAVE_LINUX_THREADS
20359         pthread_kill_other_threads_np();
20360 #endif
20361
20362         return 0;
20363
20364 }
20365
20366 _ACEOF
20367 rm -f conftest$ac_exeext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369   (eval $ac_link) 2>&5
20370   ac_status=$?
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374   (eval $ac_try) 2>&5
20375   ac_status=$?
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); }; }; then
20378   ol_cv_pthread_pthreads=yes
20379 else
20380   echo "$as_me: program exited with status $ac_status" >&5
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20383
20384 ( exit $ac_status )
20385 ol_cv_pthread_pthreads=no
20386 fi
20387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20388 fi
20389
20390                 # restore the LIBS
20391                 LIBS="$ol_LIBS"
20392
20393 fi
20394 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
20395 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
20396
20397         if test $ol_cv_pthread_pthreads = yes ; then
20398                 ol_link_pthreads="-pthreads"
20399                 ol_link_threads=posix
20400         fi
20401 fi
20402
20403                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20404 if test "$ol_link_threads" = no ; then
20405         # try -mthreads
20406         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
20407 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
20408 if test "${ol_cv_pthread_mthreads+set}" = set; then
20409   echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411
20412                 # save the flags
20413                 ol_LIBS="$LIBS"
20414                 LIBS="-mthreads $LIBS"
20415
20416                 if test "$cross_compiling" = yes; then
20417   cat >conftest.$ac_ext <<_ACEOF
20418 /* confdefs.h.  */
20419 _ACEOF
20420 cat confdefs.h >>conftest.$ac_ext
20421 cat >>conftest.$ac_ext <<_ACEOF
20422 /* end confdefs.h.  */
20423
20424 /* pthread test headers */
20425 #include <pthread.h>
20426 #if HAVE_PTHREADS < 7
20427 #include <errno.h>
20428 #endif
20429 #ifndef NULL
20430 #define NULL (void*)0
20431 #endif
20432
20433 static void *task(p)
20434         void *p;
20435 {
20436         return (void *) (p == NULL);
20437 }
20438
20439 int
20440 main ()
20441 {
20442
20443         /* pthread test function */
20444 #ifndef PTHREAD_CREATE_DETACHED
20445 #define PTHREAD_CREATE_DETACHED 1
20446 #endif
20447         pthread_t t;
20448         int status;
20449         int detach = PTHREAD_CREATE_DETACHED;
20450
20451 #if HAVE_PTHREADS > 4
20452         /* Final pthreads */
20453         pthread_attr_t attr;
20454
20455         status = pthread_attr_init(&attr);
20456         if( status ) return status;
20457
20458 #if HAVE_PTHREADS < 7
20459         status = pthread_attr_setdetachstate(&attr, &detach);
20460         if( status < 0 ) status = errno;
20461 #else
20462         status = pthread_attr_setdetachstate(&attr, detach);
20463 #endif
20464         if( status ) return status;
20465         status = pthread_create( &t, &attr, task, NULL );
20466 #if HAVE_PTHREADS < 7
20467         if( status < 0 ) status = errno;
20468 #endif
20469         if( status ) return status;
20470 #else
20471         /* Draft 4 pthreads */
20472         status = pthread_create( &t, pthread_attr_default, task, NULL );
20473         if( status ) return errno;
20474
20475         /* give thread a chance to complete */
20476         /* it should remain joinable and hence detachable */
20477         sleep( 1 );
20478
20479         status = pthread_detach( &t );
20480         if( status ) return errno;
20481 #endif
20482
20483 #ifdef HAVE_LINUX_THREADS
20484         pthread_kill_other_threads_np();
20485 #endif
20486
20487         return 0;
20488
20489   ;
20490   return 0;
20491 }
20492 _ACEOF
20493 rm -f conftest.$ac_objext conftest$ac_exeext
20494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20495   (eval $ac_link) 2>conftest.er1
20496   ac_status=$?
20497   grep -v '^ *+' conftest.er1 >conftest.err
20498   rm -f conftest.er1
20499   cat conftest.err >&5
20500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); } &&
20502          { ac_try='test -z "$ac_c_werror_flag"
20503                          || test ! -s conftest.err'
20504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20505   (eval $ac_try) 2>&5
20506   ac_status=$?
20507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508   (exit $ac_status); }; } &&
20509          { ac_try='test -s conftest$ac_exeext'
20510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511   (eval $ac_try) 2>&5
20512   ac_status=$?
20513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514   (exit $ac_status); }; }; then
20515   ol_cv_pthread_mthreads=yes
20516 else
20517   echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20519
20520 ol_cv_pthread_mthreads=no
20521 fi
20522 rm -f conftest.err conftest.$ac_objext \
20523       conftest$ac_exeext conftest.$ac_ext
20524 else
20525   cat >conftest.$ac_ext <<_ACEOF
20526 /* confdefs.h.  */
20527 _ACEOF
20528 cat confdefs.h >>conftest.$ac_ext
20529 cat >>conftest.$ac_ext <<_ACEOF
20530 /* end confdefs.h.  */
20531
20532 /* pthread test headers */
20533 #include <pthread.h>
20534 #if HAVE_PTHREADS < 7
20535 #include <errno.h>
20536 #endif
20537 #ifndef NULL
20538 #define NULL (void*)0
20539 #endif
20540
20541 static void *task(p)
20542         void *p;
20543 {
20544         return (void *) (p == NULL);
20545 }
20546
20547
20548 int main(argc, argv)
20549         int argc;
20550         char **argv;
20551 {
20552
20553         /* pthread test function */
20554 #ifndef PTHREAD_CREATE_DETACHED
20555 #define PTHREAD_CREATE_DETACHED 1
20556 #endif
20557         pthread_t t;
20558         int status;
20559         int detach = PTHREAD_CREATE_DETACHED;
20560
20561 #if HAVE_PTHREADS > 4
20562         /* Final pthreads */
20563         pthread_attr_t attr;
20564
20565         status = pthread_attr_init(&attr);
20566         if( status ) return status;
20567
20568 #if HAVE_PTHREADS < 7
20569         status = pthread_attr_setdetachstate(&attr, &detach);
20570         if( status < 0 ) status = errno;
20571 #else
20572         status = pthread_attr_setdetachstate(&attr, detach);
20573 #endif
20574         if( status ) return status;
20575         status = pthread_create( &t, &attr, task, NULL );
20576 #if HAVE_PTHREADS < 7
20577         if( status < 0 ) status = errno;
20578 #endif
20579         if( status ) return status;
20580 #else
20581         /* Draft 4 pthreads */
20582         status = pthread_create( &t, pthread_attr_default, task, NULL );
20583         if( status ) return errno;
20584
20585         /* give thread a chance to complete */
20586         /* it should remain joinable and hence detachable */
20587         sleep( 1 );
20588
20589         status = pthread_detach( &t );
20590         if( status ) return errno;
20591 #endif
20592
20593 #ifdef HAVE_LINUX_THREADS
20594         pthread_kill_other_threads_np();
20595 #endif
20596
20597         return 0;
20598
20599 }
20600
20601 _ACEOF
20602 rm -f conftest$ac_exeext
20603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20604   (eval $ac_link) 2>&5
20605   ac_status=$?
20606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609   (eval $ac_try) 2>&5
20610   ac_status=$?
20611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612   (exit $ac_status); }; }; then
20613   ol_cv_pthread_mthreads=yes
20614 else
20615   echo "$as_me: program exited with status $ac_status" >&5
20616 echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20618
20619 ( exit $ac_status )
20620 ol_cv_pthread_mthreads=no
20621 fi
20622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20623 fi
20624
20625                 # restore the LIBS
20626                 LIBS="$ol_LIBS"
20627
20628 fi
20629 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
20630 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
20631
20632         if test $ol_cv_pthread_mthreads = yes ; then
20633                 ol_link_pthreads="-mthreads"
20634                 ol_link_threads=posix
20635         fi
20636 fi
20637
20638                 # Pthread try link: -thread (ol_cv_pthread_thread)
20639 if test "$ol_link_threads" = no ; then
20640         # try -thread
20641         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
20642 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
20643 if test "${ol_cv_pthread_thread+set}" = set; then
20644   echo $ECHO_N "(cached) $ECHO_C" >&6
20645 else
20646
20647                 # save the flags
20648                 ol_LIBS="$LIBS"
20649                 LIBS="-thread $LIBS"
20650
20651                 if test "$cross_compiling" = yes; then
20652   cat >conftest.$ac_ext <<_ACEOF
20653 /* confdefs.h.  */
20654 _ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h.  */
20658
20659 /* pthread test headers */
20660 #include <pthread.h>
20661 #if HAVE_PTHREADS < 7
20662 #include <errno.h>
20663 #endif
20664 #ifndef NULL
20665 #define NULL (void*)0
20666 #endif
20667
20668 static void *task(p)
20669         void *p;
20670 {
20671         return (void *) (p == NULL);
20672 }
20673
20674 int
20675 main ()
20676 {
20677
20678         /* pthread test function */
20679 #ifndef PTHREAD_CREATE_DETACHED
20680 #define PTHREAD_CREATE_DETACHED 1
20681 #endif
20682         pthread_t t;
20683         int status;
20684         int detach = PTHREAD_CREATE_DETACHED;
20685
20686 #if HAVE_PTHREADS > 4
20687         /* Final pthreads */
20688         pthread_attr_t attr;
20689
20690         status = pthread_attr_init(&attr);
20691         if( status ) return status;
20692
20693 #if HAVE_PTHREADS < 7
20694         status = pthread_attr_setdetachstate(&attr, &detach);
20695         if( status < 0 ) status = errno;
20696 #else
20697         status = pthread_attr_setdetachstate(&attr, detach);
20698 #endif
20699         if( status ) return status;
20700         status = pthread_create( &t, &attr, task, NULL );
20701 #if HAVE_PTHREADS < 7
20702         if( status < 0 ) status = errno;
20703 #endif
20704         if( status ) return status;
20705 #else
20706         /* Draft 4 pthreads */
20707         status = pthread_create( &t, pthread_attr_default, task, NULL );
20708         if( status ) return errno;
20709
20710         /* give thread a chance to complete */
20711         /* it should remain joinable and hence detachable */
20712         sleep( 1 );
20713
20714         status = pthread_detach( &t );
20715         if( status ) return errno;
20716 #endif
20717
20718 #ifdef HAVE_LINUX_THREADS
20719         pthread_kill_other_threads_np();
20720 #endif
20721
20722         return 0;
20723
20724   ;
20725   return 0;
20726 }
20727 _ACEOF
20728 rm -f conftest.$ac_objext conftest$ac_exeext
20729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20730   (eval $ac_link) 2>conftest.er1
20731   ac_status=$?
20732   grep -v '^ *+' conftest.er1 >conftest.err
20733   rm -f conftest.er1
20734   cat conftest.err >&5
20735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736   (exit $ac_status); } &&
20737          { ac_try='test -z "$ac_c_werror_flag"
20738                          || test ! -s conftest.err'
20739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20740   (eval $ac_try) 2>&5
20741   ac_status=$?
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); }; } &&
20744          { ac_try='test -s conftest$ac_exeext'
20745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746   (eval $ac_try) 2>&5
20747   ac_status=$?
20748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749   (exit $ac_status); }; }; then
20750   ol_cv_pthread_thread=yes
20751 else
20752   echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20754
20755 ol_cv_pthread_thread=no
20756 fi
20757 rm -f conftest.err conftest.$ac_objext \
20758       conftest$ac_exeext conftest.$ac_ext
20759 else
20760   cat >conftest.$ac_ext <<_ACEOF
20761 /* confdefs.h.  */
20762 _ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h.  */
20766
20767 /* pthread test headers */
20768 #include <pthread.h>
20769 #if HAVE_PTHREADS < 7
20770 #include <errno.h>
20771 #endif
20772 #ifndef NULL
20773 #define NULL (void*)0
20774 #endif
20775
20776 static void *task(p)
20777         void *p;
20778 {
20779         return (void *) (p == NULL);
20780 }
20781
20782
20783 int main(argc, argv)
20784         int argc;
20785         char **argv;
20786 {
20787
20788         /* pthread test function */
20789 #ifndef PTHREAD_CREATE_DETACHED
20790 #define PTHREAD_CREATE_DETACHED 1
20791 #endif
20792         pthread_t t;
20793         int status;
20794         int detach = PTHREAD_CREATE_DETACHED;
20795
20796 #if HAVE_PTHREADS > 4
20797         /* Final pthreads */
20798         pthread_attr_t attr;
20799
20800         status = pthread_attr_init(&attr);
20801         if( status ) return status;
20802
20803 #if HAVE_PTHREADS < 7
20804         status = pthread_attr_setdetachstate(&attr, &detach);
20805         if( status < 0 ) status = errno;
20806 #else
20807         status = pthread_attr_setdetachstate(&attr, detach);
20808 #endif
20809         if( status ) return status;
20810         status = pthread_create( &t, &attr, task, NULL );
20811 #if HAVE_PTHREADS < 7
20812         if( status < 0 ) status = errno;
20813 #endif
20814         if( status ) return status;
20815 #else
20816         /* Draft 4 pthreads */
20817         status = pthread_create( &t, pthread_attr_default, task, NULL );
20818         if( status ) return errno;
20819
20820         /* give thread a chance to complete */
20821         /* it should remain joinable and hence detachable */
20822         sleep( 1 );
20823
20824         status = pthread_detach( &t );
20825         if( status ) return errno;
20826 #endif
20827
20828 #ifdef HAVE_LINUX_THREADS
20829         pthread_kill_other_threads_np();
20830 #endif
20831
20832         return 0;
20833
20834 }
20835
20836 _ACEOF
20837 rm -f conftest$ac_exeext
20838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20839   (eval $ac_link) 2>&5
20840   ac_status=$?
20841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844   (eval $ac_try) 2>&5
20845   ac_status=$?
20846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847   (exit $ac_status); }; }; then
20848   ol_cv_pthread_thread=yes
20849 else
20850   echo "$as_me: program exited with status $ac_status" >&5
20851 echo "$as_me: failed program was:" >&5
20852 sed 's/^/| /' conftest.$ac_ext >&5
20853
20854 ( exit $ac_status )
20855 ol_cv_pthread_thread=no
20856 fi
20857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20858 fi
20859
20860                 # restore the LIBS
20861                 LIBS="$ol_LIBS"
20862
20863 fi
20864 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
20865 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
20866
20867         if test $ol_cv_pthread_thread = yes ; then
20868                 ol_link_pthreads="-thread"
20869                 ol_link_threads=posix
20870         fi
20871 fi
20872
20873
20874                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
20875 if test "$ol_link_threads" = no ; then
20876         # try -lpthread -lmach -lexc -lc_r
20877         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
20878 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
20879 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
20880   echo $ECHO_N "(cached) $ECHO_C" >&6
20881 else
20882
20883                 # save the flags
20884                 ol_LIBS="$LIBS"
20885                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
20886
20887                 if test "$cross_compiling" = yes; then
20888   cat >conftest.$ac_ext <<_ACEOF
20889 /* confdefs.h.  */
20890 _ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h.  */
20894
20895 /* pthread test headers */
20896 #include <pthread.h>
20897 #if HAVE_PTHREADS < 7
20898 #include <errno.h>
20899 #endif
20900 #ifndef NULL
20901 #define NULL (void*)0
20902 #endif
20903
20904 static void *task(p)
20905         void *p;
20906 {
20907         return (void *) (p == NULL);
20908 }
20909
20910 int
20911 main ()
20912 {
20913
20914         /* pthread test function */
20915 #ifndef PTHREAD_CREATE_DETACHED
20916 #define PTHREAD_CREATE_DETACHED 1
20917 #endif
20918         pthread_t t;
20919         int status;
20920         int detach = PTHREAD_CREATE_DETACHED;
20921
20922 #if HAVE_PTHREADS > 4
20923         /* Final pthreads */
20924         pthread_attr_t attr;
20925
20926         status = pthread_attr_init(&attr);
20927         if( status ) return status;
20928
20929 #if HAVE_PTHREADS < 7
20930         status = pthread_attr_setdetachstate(&attr, &detach);
20931         if( status < 0 ) status = errno;
20932 #else
20933         status = pthread_attr_setdetachstate(&attr, detach);
20934 #endif
20935         if( status ) return status;
20936         status = pthread_create( &t, &attr, task, NULL );
20937 #if HAVE_PTHREADS < 7
20938         if( status < 0 ) status = errno;
20939 #endif
20940         if( status ) return status;
20941 #else
20942         /* Draft 4 pthreads */
20943         status = pthread_create( &t, pthread_attr_default, task, NULL );
20944         if( status ) return errno;
20945
20946         /* give thread a chance to complete */
20947         /* it should remain joinable and hence detachable */
20948         sleep( 1 );
20949
20950         status = pthread_detach( &t );
20951         if( status ) return errno;
20952 #endif
20953
20954 #ifdef HAVE_LINUX_THREADS
20955         pthread_kill_other_threads_np();
20956 #endif
20957
20958         return 0;
20959
20960   ;
20961   return 0;
20962 }
20963 _ACEOF
20964 rm -f conftest.$ac_objext conftest$ac_exeext
20965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20966   (eval $ac_link) 2>conftest.er1
20967   ac_status=$?
20968   grep -v '^ *+' conftest.er1 >conftest.err
20969   rm -f conftest.er1
20970   cat conftest.err >&5
20971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972   (exit $ac_status); } &&
20973          { ac_try='test -z "$ac_c_werror_flag"
20974                          || test ! -s conftest.err'
20975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976   (eval $ac_try) 2>&5
20977   ac_status=$?
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); }; } &&
20980          { ac_try='test -s conftest$ac_exeext'
20981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20982   (eval $ac_try) 2>&5
20983   ac_status=$?
20984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985   (exit $ac_status); }; }; then
20986   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
20987 else
20988   echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20990
20991 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
20992 fi
20993 rm -f conftest.err conftest.$ac_objext \
20994       conftest$ac_exeext conftest.$ac_ext
20995 else
20996   cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h.  */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h.  */
21002
21003 /* pthread test headers */
21004 #include <pthread.h>
21005 #if HAVE_PTHREADS < 7
21006 #include <errno.h>
21007 #endif
21008 #ifndef NULL
21009 #define NULL (void*)0
21010 #endif
21011
21012 static void *task(p)
21013         void *p;
21014 {
21015         return (void *) (p == NULL);
21016 }
21017
21018
21019 int main(argc, argv)
21020         int argc;
21021         char **argv;
21022 {
21023
21024         /* pthread test function */
21025 #ifndef PTHREAD_CREATE_DETACHED
21026 #define PTHREAD_CREATE_DETACHED 1
21027 #endif
21028         pthread_t t;
21029         int status;
21030         int detach = PTHREAD_CREATE_DETACHED;
21031
21032 #if HAVE_PTHREADS > 4
21033         /* Final pthreads */
21034         pthread_attr_t attr;
21035
21036         status = pthread_attr_init(&attr);
21037         if( status ) return status;
21038
21039 #if HAVE_PTHREADS < 7
21040         status = pthread_attr_setdetachstate(&attr, &detach);
21041         if( status < 0 ) status = errno;
21042 #else
21043         status = pthread_attr_setdetachstate(&attr, detach);
21044 #endif
21045         if( status ) return status;
21046         status = pthread_create( &t, &attr, task, NULL );
21047 #if HAVE_PTHREADS < 7
21048         if( status < 0 ) status = errno;
21049 #endif
21050         if( status ) return status;
21051 #else
21052         /* Draft 4 pthreads */
21053         status = pthread_create( &t, pthread_attr_default, task, NULL );
21054         if( status ) return errno;
21055
21056         /* give thread a chance to complete */
21057         /* it should remain joinable and hence detachable */
21058         sleep( 1 );
21059
21060         status = pthread_detach( &t );
21061         if( status ) return errno;
21062 #endif
21063
21064 #ifdef HAVE_LINUX_THREADS
21065         pthread_kill_other_threads_np();
21066 #endif
21067
21068         return 0;
21069
21070 }
21071
21072 _ACEOF
21073 rm -f conftest$ac_exeext
21074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21075   (eval $ac_link) 2>&5
21076   ac_status=$?
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080   (eval $ac_try) 2>&5
21081   ac_status=$?
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); }; }; then
21084   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21085 else
21086   echo "$as_me: program exited with status $ac_status" >&5
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21089
21090 ( exit $ac_status )
21091 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21092 fi
21093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21094 fi
21095
21096                 # restore the LIBS
21097                 LIBS="$ol_LIBS"
21098
21099 fi
21100 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21101 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21102
21103         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21104                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21105                 ol_link_threads=posix
21106         fi
21107 fi
21108
21109                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21110 if test "$ol_link_threads" = no ; then
21111         # try -lpthread -lmach -lexc
21112         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21113 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21114 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21115   echo $ECHO_N "(cached) $ECHO_C" >&6
21116 else
21117
21118                 # save the flags
21119                 ol_LIBS="$LIBS"
21120                 LIBS="-lpthread -lmach -lexc $LIBS"
21121
21122                 if test "$cross_compiling" = yes; then
21123   cat >conftest.$ac_ext <<_ACEOF
21124 /* confdefs.h.  */
21125 _ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h.  */
21129
21130 /* pthread test headers */
21131 #include <pthread.h>
21132 #if HAVE_PTHREADS < 7
21133 #include <errno.h>
21134 #endif
21135 #ifndef NULL
21136 #define NULL (void*)0
21137 #endif
21138
21139 static void *task(p)
21140         void *p;
21141 {
21142         return (void *) (p == NULL);
21143 }
21144
21145 int
21146 main ()
21147 {
21148
21149         /* pthread test function */
21150 #ifndef PTHREAD_CREATE_DETACHED
21151 #define PTHREAD_CREATE_DETACHED 1
21152 #endif
21153         pthread_t t;
21154         int status;
21155         int detach = PTHREAD_CREATE_DETACHED;
21156
21157 #if HAVE_PTHREADS > 4
21158         /* Final pthreads */
21159         pthread_attr_t attr;
21160
21161         status = pthread_attr_init(&attr);
21162         if( status ) return status;
21163
21164 #if HAVE_PTHREADS < 7
21165         status = pthread_attr_setdetachstate(&attr, &detach);
21166         if( status < 0 ) status = errno;
21167 #else
21168         status = pthread_attr_setdetachstate(&attr, detach);
21169 #endif
21170         if( status ) return status;
21171         status = pthread_create( &t, &attr, task, NULL );
21172 #if HAVE_PTHREADS < 7
21173         if( status < 0 ) status = errno;
21174 #endif
21175         if( status ) return status;
21176 #else
21177         /* Draft 4 pthreads */
21178         status = pthread_create( &t, pthread_attr_default, task, NULL );
21179         if( status ) return errno;
21180
21181         /* give thread a chance to complete */
21182         /* it should remain joinable and hence detachable */
21183         sleep( 1 );
21184
21185         status = pthread_detach( &t );
21186         if( status ) return errno;
21187 #endif
21188
21189 #ifdef HAVE_LINUX_THREADS
21190         pthread_kill_other_threads_np();
21191 #endif
21192
21193         return 0;
21194
21195   ;
21196   return 0;
21197 }
21198 _ACEOF
21199 rm -f conftest.$ac_objext conftest$ac_exeext
21200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21201   (eval $ac_link) 2>conftest.er1
21202   ac_status=$?
21203   grep -v '^ *+' conftest.er1 >conftest.err
21204   rm -f conftest.er1
21205   cat conftest.err >&5
21206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207   (exit $ac_status); } &&
21208          { ac_try='test -z "$ac_c_werror_flag"
21209                          || test ! -s conftest.err'
21210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211   (eval $ac_try) 2>&5
21212   ac_status=$?
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); }; } &&
21215          { ac_try='test -s conftest$ac_exeext'
21216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217   (eval $ac_try) 2>&5
21218   ac_status=$?
21219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220   (exit $ac_status); }; }; then
21221   ol_cv_pthread_lpthread_lmach_lexc=yes
21222 else
21223   echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21225
21226 ol_cv_pthread_lpthread_lmach_lexc=no
21227 fi
21228 rm -f conftest.err conftest.$ac_objext \
21229       conftest$ac_exeext conftest.$ac_ext
21230 else
21231   cat >conftest.$ac_ext <<_ACEOF
21232 /* confdefs.h.  */
21233 _ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h.  */
21237
21238 /* pthread test headers */
21239 #include <pthread.h>
21240 #if HAVE_PTHREADS < 7
21241 #include <errno.h>
21242 #endif
21243 #ifndef NULL
21244 #define NULL (void*)0
21245 #endif
21246
21247 static void *task(p)
21248         void *p;
21249 {
21250         return (void *) (p == NULL);
21251 }
21252
21253
21254 int main(argc, argv)
21255         int argc;
21256         char **argv;
21257 {
21258
21259         /* pthread test function */
21260 #ifndef PTHREAD_CREATE_DETACHED
21261 #define PTHREAD_CREATE_DETACHED 1
21262 #endif
21263         pthread_t t;
21264         int status;
21265         int detach = PTHREAD_CREATE_DETACHED;
21266
21267 #if HAVE_PTHREADS > 4
21268         /* Final pthreads */
21269         pthread_attr_t attr;
21270
21271         status = pthread_attr_init(&attr);
21272         if( status ) return status;
21273
21274 #if HAVE_PTHREADS < 7
21275         status = pthread_attr_setdetachstate(&attr, &detach);
21276         if( status < 0 ) status = errno;
21277 #else
21278         status = pthread_attr_setdetachstate(&attr, detach);
21279 #endif
21280         if( status ) return status;
21281         status = pthread_create( &t, &attr, task, NULL );
21282 #if HAVE_PTHREADS < 7
21283         if( status < 0 ) status = errno;
21284 #endif
21285         if( status ) return status;
21286 #else
21287         /* Draft 4 pthreads */
21288         status = pthread_create( &t, pthread_attr_default, task, NULL );
21289         if( status ) return errno;
21290
21291         /* give thread a chance to complete */
21292         /* it should remain joinable and hence detachable */
21293         sleep( 1 );
21294
21295         status = pthread_detach( &t );
21296         if( status ) return errno;
21297 #endif
21298
21299 #ifdef HAVE_LINUX_THREADS
21300         pthread_kill_other_threads_np();
21301 #endif
21302
21303         return 0;
21304
21305 }
21306
21307 _ACEOF
21308 rm -f conftest$ac_exeext
21309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21310   (eval $ac_link) 2>&5
21311   ac_status=$?
21312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315   (eval $ac_try) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); }; }; then
21319   ol_cv_pthread_lpthread_lmach_lexc=yes
21320 else
21321   echo "$as_me: program exited with status $ac_status" >&5
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21324
21325 ( exit $ac_status )
21326 ol_cv_pthread_lpthread_lmach_lexc=no
21327 fi
21328 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21329 fi
21330
21331                 # restore the LIBS
21332                 LIBS="$ol_LIBS"
21333
21334 fi
21335 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
21336 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
21337
21338         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
21339                 ol_link_pthreads="-lpthread -lmach -lexc"
21340                 ol_link_threads=posix
21341         fi
21342 fi
21343
21344
21345                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
21346 if test "$ol_link_threads" = no ; then
21347         # try -lpthread -Wl,-woff,85
21348         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
21349 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
21350 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
21351   echo $ECHO_N "(cached) $ECHO_C" >&6
21352 else
21353
21354                 # save the flags
21355                 ol_LIBS="$LIBS"
21356                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
21357
21358                 if test "$cross_compiling" = yes; then
21359   cat >conftest.$ac_ext <<_ACEOF
21360 /* confdefs.h.  */
21361 _ACEOF
21362 cat confdefs.h >>conftest.$ac_ext
21363 cat >>conftest.$ac_ext <<_ACEOF
21364 /* end confdefs.h.  */
21365
21366 /* pthread test headers */
21367 #include <pthread.h>
21368 #if HAVE_PTHREADS < 7
21369 #include <errno.h>
21370 #endif
21371 #ifndef NULL
21372 #define NULL (void*)0
21373 #endif
21374
21375 static void *task(p)
21376         void *p;
21377 {
21378         return (void *) (p == NULL);
21379 }
21380
21381 int
21382 main ()
21383 {
21384
21385         /* pthread test function */
21386 #ifndef PTHREAD_CREATE_DETACHED
21387 #define PTHREAD_CREATE_DETACHED 1
21388 #endif
21389         pthread_t t;
21390         int status;
21391         int detach = PTHREAD_CREATE_DETACHED;
21392
21393 #if HAVE_PTHREADS > 4
21394         /* Final pthreads */
21395         pthread_attr_t attr;
21396
21397         status = pthread_attr_init(&attr);
21398         if( status ) return status;
21399
21400 #if HAVE_PTHREADS < 7
21401         status = pthread_attr_setdetachstate(&attr, &detach);
21402         if( status < 0 ) status = errno;
21403 #else
21404         status = pthread_attr_setdetachstate(&attr, detach);
21405 #endif
21406         if( status ) return status;
21407         status = pthread_create( &t, &attr, task, NULL );
21408 #if HAVE_PTHREADS < 7
21409         if( status < 0 ) status = errno;
21410 #endif
21411         if( status ) return status;
21412 #else
21413         /* Draft 4 pthreads */
21414         status = pthread_create( &t, pthread_attr_default, task, NULL );
21415         if( status ) return errno;
21416
21417         /* give thread a chance to complete */
21418         /* it should remain joinable and hence detachable */
21419         sleep( 1 );
21420
21421         status = pthread_detach( &t );
21422         if( status ) return errno;
21423 #endif
21424
21425 #ifdef HAVE_LINUX_THREADS
21426         pthread_kill_other_threads_np();
21427 #endif
21428
21429         return 0;
21430
21431   ;
21432   return 0;
21433 }
21434 _ACEOF
21435 rm -f conftest.$ac_objext conftest$ac_exeext
21436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21437   (eval $ac_link) 2>conftest.er1
21438   ac_status=$?
21439   grep -v '^ *+' conftest.er1 >conftest.err
21440   rm -f conftest.er1
21441   cat conftest.err >&5
21442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443   (exit $ac_status); } &&
21444          { ac_try='test -z "$ac_c_werror_flag"
21445                          || test ! -s conftest.err'
21446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447   (eval $ac_try) 2>&5
21448   ac_status=$?
21449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450   (exit $ac_status); }; } &&
21451          { ac_try='test -s conftest$ac_exeext'
21452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453   (eval $ac_try) 2>&5
21454   ac_status=$?
21455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456   (exit $ac_status); }; }; then
21457   ol_cv_pthread_lib_lpthread_woff=yes
21458 else
21459   echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.$ac_ext >&5
21461
21462 ol_cv_pthread_lib_lpthread_woff=no
21463 fi
21464 rm -f conftest.err conftest.$ac_objext \
21465       conftest$ac_exeext conftest.$ac_ext
21466 else
21467   cat >conftest.$ac_ext <<_ACEOF
21468 /* confdefs.h.  */
21469 _ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h.  */
21473
21474 /* pthread test headers */
21475 #include <pthread.h>
21476 #if HAVE_PTHREADS < 7
21477 #include <errno.h>
21478 #endif
21479 #ifndef NULL
21480 #define NULL (void*)0
21481 #endif
21482
21483 static void *task(p)
21484         void *p;
21485 {
21486         return (void *) (p == NULL);
21487 }
21488
21489
21490 int main(argc, argv)
21491         int argc;
21492         char **argv;
21493 {
21494
21495         /* pthread test function */
21496 #ifndef PTHREAD_CREATE_DETACHED
21497 #define PTHREAD_CREATE_DETACHED 1
21498 #endif
21499         pthread_t t;
21500         int status;
21501         int detach = PTHREAD_CREATE_DETACHED;
21502
21503 #if HAVE_PTHREADS > 4
21504         /* Final pthreads */
21505         pthread_attr_t attr;
21506
21507         status = pthread_attr_init(&attr);
21508         if( status ) return status;
21509
21510 #if HAVE_PTHREADS < 7
21511         status = pthread_attr_setdetachstate(&attr, &detach);
21512         if( status < 0 ) status = errno;
21513 #else
21514         status = pthread_attr_setdetachstate(&attr, detach);
21515 #endif
21516         if( status ) return status;
21517         status = pthread_create( &t, &attr, task, NULL );
21518 #if HAVE_PTHREADS < 7
21519         if( status < 0 ) status = errno;
21520 #endif
21521         if( status ) return status;
21522 #else
21523         /* Draft 4 pthreads */
21524         status = pthread_create( &t, pthread_attr_default, task, NULL );
21525         if( status ) return errno;
21526
21527         /* give thread a chance to complete */
21528         /* it should remain joinable and hence detachable */
21529         sleep( 1 );
21530
21531         status = pthread_detach( &t );
21532         if( status ) return errno;
21533 #endif
21534
21535 #ifdef HAVE_LINUX_THREADS
21536         pthread_kill_other_threads_np();
21537 #endif
21538
21539         return 0;
21540
21541 }
21542
21543 _ACEOF
21544 rm -f conftest$ac_exeext
21545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21546   (eval $ac_link) 2>&5
21547   ac_status=$?
21548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551   (eval $ac_try) 2>&5
21552   ac_status=$?
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); }; }; then
21555   ol_cv_pthread_lib_lpthread_woff=yes
21556 else
21557   echo "$as_me: program exited with status $ac_status" >&5
21558 echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21560
21561 ( exit $ac_status )
21562 ol_cv_pthread_lib_lpthread_woff=no
21563 fi
21564 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21565 fi
21566
21567                 # restore the LIBS
21568                 LIBS="$ol_LIBS"
21569
21570 fi
21571 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21572 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
21573
21574         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21575                 ol_link_pthreads="-lpthread -Wl,-woff,85"
21576                 ol_link_threads=posix
21577         fi
21578 fi
21579
21580
21581                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21582 if test "$ol_link_threads" = no ; then
21583         # try -lpthread
21584         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
21585 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
21586 if test "${ol_cv_pthread_lpthread+set}" = set; then
21587   echo $ECHO_N "(cached) $ECHO_C" >&6
21588 else
21589
21590                 # save the flags
21591                 ol_LIBS="$LIBS"
21592                 LIBS="-lpthread $LIBS"
21593
21594                 if test "$cross_compiling" = yes; then
21595   cat >conftest.$ac_ext <<_ACEOF
21596 /* confdefs.h.  */
21597 _ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h.  */
21601
21602 /* pthread test headers */
21603 #include <pthread.h>
21604 #if HAVE_PTHREADS < 7
21605 #include <errno.h>
21606 #endif
21607 #ifndef NULL
21608 #define NULL (void*)0
21609 #endif
21610
21611 static void *task(p)
21612         void *p;
21613 {
21614         return (void *) (p == NULL);
21615 }
21616
21617 int
21618 main ()
21619 {
21620
21621         /* pthread test function */
21622 #ifndef PTHREAD_CREATE_DETACHED
21623 #define PTHREAD_CREATE_DETACHED 1
21624 #endif
21625         pthread_t t;
21626         int status;
21627         int detach = PTHREAD_CREATE_DETACHED;
21628
21629 #if HAVE_PTHREADS > 4
21630         /* Final pthreads */
21631         pthread_attr_t attr;
21632
21633         status = pthread_attr_init(&attr);
21634         if( status ) return status;
21635
21636 #if HAVE_PTHREADS < 7
21637         status = pthread_attr_setdetachstate(&attr, &detach);
21638         if( status < 0 ) status = errno;
21639 #else
21640         status = pthread_attr_setdetachstate(&attr, detach);
21641 #endif
21642         if( status ) return status;
21643         status = pthread_create( &t, &attr, task, NULL );
21644 #if HAVE_PTHREADS < 7
21645         if( status < 0 ) status = errno;
21646 #endif
21647         if( status ) return status;
21648 #else
21649         /* Draft 4 pthreads */
21650         status = pthread_create( &t, pthread_attr_default, task, NULL );
21651         if( status ) return errno;
21652
21653         /* give thread a chance to complete */
21654         /* it should remain joinable and hence detachable */
21655         sleep( 1 );
21656
21657         status = pthread_detach( &t );
21658         if( status ) return errno;
21659 #endif
21660
21661 #ifdef HAVE_LINUX_THREADS
21662         pthread_kill_other_threads_np();
21663 #endif
21664
21665         return 0;
21666
21667   ;
21668   return 0;
21669 }
21670 _ACEOF
21671 rm -f conftest.$ac_objext conftest$ac_exeext
21672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21673   (eval $ac_link) 2>conftest.er1
21674   ac_status=$?
21675   grep -v '^ *+' conftest.er1 >conftest.err
21676   rm -f conftest.er1
21677   cat conftest.err >&5
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); } &&
21680          { ac_try='test -z "$ac_c_werror_flag"
21681                          || test ! -s conftest.err'
21682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683   (eval $ac_try) 2>&5
21684   ac_status=$?
21685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686   (exit $ac_status); }; } &&
21687          { ac_try='test -s conftest$ac_exeext'
21688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689   (eval $ac_try) 2>&5
21690   ac_status=$?
21691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692   (exit $ac_status); }; }; then
21693   ol_cv_pthread_lpthread=yes
21694 else
21695   echo "$as_me: failed program was:" >&5
21696 sed 's/^/| /' conftest.$ac_ext >&5
21697
21698 ol_cv_pthread_lpthread=no
21699 fi
21700 rm -f conftest.err conftest.$ac_objext \
21701       conftest$ac_exeext conftest.$ac_ext
21702 else
21703   cat >conftest.$ac_ext <<_ACEOF
21704 /* confdefs.h.  */
21705 _ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h.  */
21709
21710 /* pthread test headers */
21711 #include <pthread.h>
21712 #if HAVE_PTHREADS < 7
21713 #include <errno.h>
21714 #endif
21715 #ifndef NULL
21716 #define NULL (void*)0
21717 #endif
21718
21719 static void *task(p)
21720         void *p;
21721 {
21722         return (void *) (p == NULL);
21723 }
21724
21725
21726 int main(argc, argv)
21727         int argc;
21728         char **argv;
21729 {
21730
21731         /* pthread test function */
21732 #ifndef PTHREAD_CREATE_DETACHED
21733 #define PTHREAD_CREATE_DETACHED 1
21734 #endif
21735         pthread_t t;
21736         int status;
21737         int detach = PTHREAD_CREATE_DETACHED;
21738
21739 #if HAVE_PTHREADS > 4
21740         /* Final pthreads */
21741         pthread_attr_t attr;
21742
21743         status = pthread_attr_init(&attr);
21744         if( status ) return status;
21745
21746 #if HAVE_PTHREADS < 7
21747         status = pthread_attr_setdetachstate(&attr, &detach);
21748         if( status < 0 ) status = errno;
21749 #else
21750         status = pthread_attr_setdetachstate(&attr, detach);
21751 #endif
21752         if( status ) return status;
21753         status = pthread_create( &t, &attr, task, NULL );
21754 #if HAVE_PTHREADS < 7
21755         if( status < 0 ) status = errno;
21756 #endif
21757         if( status ) return status;
21758 #else
21759         /* Draft 4 pthreads */
21760         status = pthread_create( &t, pthread_attr_default, task, NULL );
21761         if( status ) return errno;
21762
21763         /* give thread a chance to complete */
21764         /* it should remain joinable and hence detachable */
21765         sleep( 1 );
21766
21767         status = pthread_detach( &t );
21768         if( status ) return errno;
21769 #endif
21770
21771 #ifdef HAVE_LINUX_THREADS
21772         pthread_kill_other_threads_np();
21773 #endif
21774
21775         return 0;
21776
21777 }
21778
21779 _ACEOF
21780 rm -f conftest$ac_exeext
21781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21782   (eval $ac_link) 2>&5
21783   ac_status=$?
21784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787   (eval $ac_try) 2>&5
21788   ac_status=$?
21789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790   (exit $ac_status); }; }; then
21791   ol_cv_pthread_lpthread=yes
21792 else
21793   echo "$as_me: program exited with status $ac_status" >&5
21794 echo "$as_me: failed program was:" >&5
21795 sed 's/^/| /' conftest.$ac_ext >&5
21796
21797 ( exit $ac_status )
21798 ol_cv_pthread_lpthread=no
21799 fi
21800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21801 fi
21802
21803                 # restore the LIBS
21804                 LIBS="$ol_LIBS"
21805
21806 fi
21807 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
21808 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
21809
21810         if test $ol_cv_pthread_lpthread = yes ; then
21811                 ol_link_pthreads="-lpthread"
21812                 ol_link_threads=posix
21813         fi
21814 fi
21815
21816                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
21817 if test "$ol_link_threads" = no ; then
21818         # try -lc_r
21819         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
21820 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
21821 if test "${ol_cv_pthread_lc_r+set}" = set; then
21822   echo $ECHO_N "(cached) $ECHO_C" >&6
21823 else
21824
21825                 # save the flags
21826                 ol_LIBS="$LIBS"
21827                 LIBS="-lc_r $LIBS"
21828
21829                 if test "$cross_compiling" = yes; then
21830   cat >conftest.$ac_ext <<_ACEOF
21831 /* confdefs.h.  */
21832 _ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h.  */
21836
21837 /* pthread test headers */
21838 #include <pthread.h>
21839 #if HAVE_PTHREADS < 7
21840 #include <errno.h>
21841 #endif
21842 #ifndef NULL
21843 #define NULL (void*)0
21844 #endif
21845
21846 static void *task(p)
21847         void *p;
21848 {
21849         return (void *) (p == NULL);
21850 }
21851
21852 int
21853 main ()
21854 {
21855
21856         /* pthread test function */
21857 #ifndef PTHREAD_CREATE_DETACHED
21858 #define PTHREAD_CREATE_DETACHED 1
21859 #endif
21860         pthread_t t;
21861         int status;
21862         int detach = PTHREAD_CREATE_DETACHED;
21863
21864 #if HAVE_PTHREADS > 4
21865         /* Final pthreads */
21866         pthread_attr_t attr;
21867
21868         status = pthread_attr_init(&attr);
21869         if( status ) return status;
21870
21871 #if HAVE_PTHREADS < 7
21872         status = pthread_attr_setdetachstate(&attr, &detach);
21873         if( status < 0 ) status = errno;
21874 #else
21875         status = pthread_attr_setdetachstate(&attr, detach);
21876 #endif
21877         if( status ) return status;
21878         status = pthread_create( &t, &attr, task, NULL );
21879 #if HAVE_PTHREADS < 7
21880         if( status < 0 ) status = errno;
21881 #endif
21882         if( status ) return status;
21883 #else
21884         /* Draft 4 pthreads */
21885         status = pthread_create( &t, pthread_attr_default, task, NULL );
21886         if( status ) return errno;
21887
21888         /* give thread a chance to complete */
21889         /* it should remain joinable and hence detachable */
21890         sleep( 1 );
21891
21892         status = pthread_detach( &t );
21893         if( status ) return errno;
21894 #endif
21895
21896 #ifdef HAVE_LINUX_THREADS
21897         pthread_kill_other_threads_np();
21898 #endif
21899
21900         return 0;
21901
21902   ;
21903   return 0;
21904 }
21905 _ACEOF
21906 rm -f conftest.$ac_objext conftest$ac_exeext
21907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21908   (eval $ac_link) 2>conftest.er1
21909   ac_status=$?
21910   grep -v '^ *+' conftest.er1 >conftest.err
21911   rm -f conftest.er1
21912   cat conftest.err >&5
21913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914   (exit $ac_status); } &&
21915          { ac_try='test -z "$ac_c_werror_flag"
21916                          || test ! -s conftest.err'
21917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918   (eval $ac_try) 2>&5
21919   ac_status=$?
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); }; } &&
21922          { ac_try='test -s conftest$ac_exeext'
21923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924   (eval $ac_try) 2>&5
21925   ac_status=$?
21926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927   (exit $ac_status); }; }; then
21928   ol_cv_pthread_lc_r=yes
21929 else
21930   echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21932
21933 ol_cv_pthread_lc_r=no
21934 fi
21935 rm -f conftest.err conftest.$ac_objext \
21936       conftest$ac_exeext conftest.$ac_ext
21937 else
21938   cat >conftest.$ac_ext <<_ACEOF
21939 /* confdefs.h.  */
21940 _ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h.  */
21944
21945 /* pthread test headers */
21946 #include <pthread.h>
21947 #if HAVE_PTHREADS < 7
21948 #include <errno.h>
21949 #endif
21950 #ifndef NULL
21951 #define NULL (void*)0
21952 #endif
21953
21954 static void *task(p)
21955         void *p;
21956 {
21957         return (void *) (p == NULL);
21958 }
21959
21960
21961 int main(argc, argv)
21962         int argc;
21963         char **argv;
21964 {
21965
21966         /* pthread test function */
21967 #ifndef PTHREAD_CREATE_DETACHED
21968 #define PTHREAD_CREATE_DETACHED 1
21969 #endif
21970         pthread_t t;
21971         int status;
21972         int detach = PTHREAD_CREATE_DETACHED;
21973
21974 #if HAVE_PTHREADS > 4
21975         /* Final pthreads */
21976         pthread_attr_t attr;
21977
21978         status = pthread_attr_init(&attr);
21979         if( status ) return status;
21980
21981 #if HAVE_PTHREADS < 7
21982         status = pthread_attr_setdetachstate(&attr, &detach);
21983         if( status < 0 ) status = errno;
21984 #else
21985         status = pthread_attr_setdetachstate(&attr, detach);
21986 #endif
21987         if( status ) return status;
21988         status = pthread_create( &t, &attr, task, NULL );
21989 #if HAVE_PTHREADS < 7
21990         if( status < 0 ) status = errno;
21991 #endif
21992         if( status ) return status;
21993 #else
21994         /* Draft 4 pthreads */
21995         status = pthread_create( &t, pthread_attr_default, task, NULL );
21996         if( status ) return errno;
21997
21998         /* give thread a chance to complete */
21999         /* it should remain joinable and hence detachable */
22000         sleep( 1 );
22001
22002         status = pthread_detach( &t );
22003         if( status ) return errno;
22004 #endif
22005
22006 #ifdef HAVE_LINUX_THREADS
22007         pthread_kill_other_threads_np();
22008 #endif
22009
22010         return 0;
22011
22012 }
22013
22014 _ACEOF
22015 rm -f conftest$ac_exeext
22016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22017   (eval $ac_link) 2>&5
22018   ac_status=$?
22019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22022   (eval $ac_try) 2>&5
22023   ac_status=$?
22024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025   (exit $ac_status); }; }; then
22026   ol_cv_pthread_lc_r=yes
22027 else
22028   echo "$as_me: program exited with status $ac_status" >&5
22029 echo "$as_me: failed program was:" >&5
22030 sed 's/^/| /' conftest.$ac_ext >&5
22031
22032 ( exit $ac_status )
22033 ol_cv_pthread_lc_r=no
22034 fi
22035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22036 fi
22037
22038                 # restore the LIBS
22039                 LIBS="$ol_LIBS"
22040
22041 fi
22042 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22043 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22044
22045         if test $ol_cv_pthread_lc_r = yes ; then
22046                 ol_link_pthreads="-lc_r"
22047                 ol_link_threads=posix
22048         fi
22049 fi
22050
22051
22052                 # Pthread try link: -threads (ol_cv_pthread_threads)
22053 if test "$ol_link_threads" = no ; then
22054         # try -threads
22055         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22056 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22057 if test "${ol_cv_pthread_threads+set}" = set; then
22058   echo $ECHO_N "(cached) $ECHO_C" >&6
22059 else
22060
22061                 # save the flags
22062                 ol_LIBS="$LIBS"
22063                 LIBS="-threads $LIBS"
22064
22065                 if test "$cross_compiling" = yes; then
22066   cat >conftest.$ac_ext <<_ACEOF
22067 /* confdefs.h.  */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h.  */
22072
22073 /* pthread test headers */
22074 #include <pthread.h>
22075 #if HAVE_PTHREADS < 7
22076 #include <errno.h>
22077 #endif
22078 #ifndef NULL
22079 #define NULL (void*)0
22080 #endif
22081
22082 static void *task(p)
22083         void *p;
22084 {
22085         return (void *) (p == NULL);
22086 }
22087
22088 int
22089 main ()
22090 {
22091
22092         /* pthread test function */
22093 #ifndef PTHREAD_CREATE_DETACHED
22094 #define PTHREAD_CREATE_DETACHED 1
22095 #endif
22096         pthread_t t;
22097         int status;
22098         int detach = PTHREAD_CREATE_DETACHED;
22099
22100 #if HAVE_PTHREADS > 4
22101         /* Final pthreads */
22102         pthread_attr_t attr;
22103
22104         status = pthread_attr_init(&attr);
22105         if( status ) return status;
22106
22107 #if HAVE_PTHREADS < 7
22108         status = pthread_attr_setdetachstate(&attr, &detach);
22109         if( status < 0 ) status = errno;
22110 #else
22111         status = pthread_attr_setdetachstate(&attr, detach);
22112 #endif
22113         if( status ) return status;
22114         status = pthread_create( &t, &attr, task, NULL );
22115 #if HAVE_PTHREADS < 7
22116         if( status < 0 ) status = errno;
22117 #endif
22118         if( status ) return status;
22119 #else
22120         /* Draft 4 pthreads */
22121         status = pthread_create( &t, pthread_attr_default, task, NULL );
22122         if( status ) return errno;
22123
22124         /* give thread a chance to complete */
22125         /* it should remain joinable and hence detachable */
22126         sleep( 1 );
22127
22128         status = pthread_detach( &t );
22129         if( status ) return errno;
22130 #endif
22131
22132 #ifdef HAVE_LINUX_THREADS
22133         pthread_kill_other_threads_np();
22134 #endif
22135
22136         return 0;
22137
22138   ;
22139   return 0;
22140 }
22141 _ACEOF
22142 rm -f conftest.$ac_objext conftest$ac_exeext
22143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22144   (eval $ac_link) 2>conftest.er1
22145   ac_status=$?
22146   grep -v '^ *+' conftest.er1 >conftest.err
22147   rm -f conftest.er1
22148   cat conftest.err >&5
22149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150   (exit $ac_status); } &&
22151          { ac_try='test -z "$ac_c_werror_flag"
22152                          || test ! -s conftest.err'
22153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154   (eval $ac_try) 2>&5
22155   ac_status=$?
22156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157   (exit $ac_status); }; } &&
22158          { ac_try='test -s conftest$ac_exeext'
22159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160   (eval $ac_try) 2>&5
22161   ac_status=$?
22162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163   (exit $ac_status); }; }; then
22164   ol_cv_pthread_threads=yes
22165 else
22166   echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22168
22169 ol_cv_pthread_threads=no
22170 fi
22171 rm -f conftest.err conftest.$ac_objext \
22172       conftest$ac_exeext conftest.$ac_ext
22173 else
22174   cat >conftest.$ac_ext <<_ACEOF
22175 /* confdefs.h.  */
22176 _ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h.  */
22180
22181 /* pthread test headers */
22182 #include <pthread.h>
22183 #if HAVE_PTHREADS < 7
22184 #include <errno.h>
22185 #endif
22186 #ifndef NULL
22187 #define NULL (void*)0
22188 #endif
22189
22190 static void *task(p)
22191         void *p;
22192 {
22193         return (void *) (p == NULL);
22194 }
22195
22196
22197 int main(argc, argv)
22198         int argc;
22199         char **argv;
22200 {
22201
22202         /* pthread test function */
22203 #ifndef PTHREAD_CREATE_DETACHED
22204 #define PTHREAD_CREATE_DETACHED 1
22205 #endif
22206         pthread_t t;
22207         int status;
22208         int detach = PTHREAD_CREATE_DETACHED;
22209
22210 #if HAVE_PTHREADS > 4
22211         /* Final pthreads */
22212         pthread_attr_t attr;
22213
22214         status = pthread_attr_init(&attr);
22215         if( status ) return status;
22216
22217 #if HAVE_PTHREADS < 7
22218         status = pthread_attr_setdetachstate(&attr, &detach);
22219         if( status < 0 ) status = errno;
22220 #else
22221         status = pthread_attr_setdetachstate(&attr, detach);
22222 #endif
22223         if( status ) return status;
22224         status = pthread_create( &t, &attr, task, NULL );
22225 #if HAVE_PTHREADS < 7
22226         if( status < 0 ) status = errno;
22227 #endif
22228         if( status ) return status;
22229 #else
22230         /* Draft 4 pthreads */
22231         status = pthread_create( &t, pthread_attr_default, task, NULL );
22232         if( status ) return errno;
22233
22234         /* give thread a chance to complete */
22235         /* it should remain joinable and hence detachable */
22236         sleep( 1 );
22237
22238         status = pthread_detach( &t );
22239         if( status ) return errno;
22240 #endif
22241
22242 #ifdef HAVE_LINUX_THREADS
22243         pthread_kill_other_threads_np();
22244 #endif
22245
22246         return 0;
22247
22248 }
22249
22250 _ACEOF
22251 rm -f conftest$ac_exeext
22252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22253   (eval $ac_link) 2>&5
22254   ac_status=$?
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258   (eval $ac_try) 2>&5
22259   ac_status=$?
22260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); }; }; then
22262   ol_cv_pthread_threads=yes
22263 else
22264   echo "$as_me: program exited with status $ac_status" >&5
22265 echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22267
22268 ( exit $ac_status )
22269 ol_cv_pthread_threads=no
22270 fi
22271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22272 fi
22273
22274                 # restore the LIBS
22275                 LIBS="$ol_LIBS"
22276
22277 fi
22278 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
22279 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
22280
22281         if test $ol_cv_pthread_threads = yes ; then
22282                 ol_link_pthreads="-threads"
22283                 ol_link_threads=posix
22284         fi
22285 fi
22286
22287
22288                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
22289 if test "$ol_link_threads" = no ; then
22290         # try -lpthreads -lmach -lexc -lc_r
22291         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
22292 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
22293 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
22294   echo $ECHO_N "(cached) $ECHO_C" >&6
22295 else
22296
22297                 # save the flags
22298                 ol_LIBS="$LIBS"
22299                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
22300
22301                 if test "$cross_compiling" = yes; then
22302   cat >conftest.$ac_ext <<_ACEOF
22303 /* confdefs.h.  */
22304 _ACEOF
22305 cat confdefs.h >>conftest.$ac_ext
22306 cat >>conftest.$ac_ext <<_ACEOF
22307 /* end confdefs.h.  */
22308
22309 /* pthread test headers */
22310 #include <pthread.h>
22311 #if HAVE_PTHREADS < 7
22312 #include <errno.h>
22313 #endif
22314 #ifndef NULL
22315 #define NULL (void*)0
22316 #endif
22317
22318 static void *task(p)
22319         void *p;
22320 {
22321         return (void *) (p == NULL);
22322 }
22323
22324 int
22325 main ()
22326 {
22327
22328         /* pthread test function */
22329 #ifndef PTHREAD_CREATE_DETACHED
22330 #define PTHREAD_CREATE_DETACHED 1
22331 #endif
22332         pthread_t t;
22333         int status;
22334         int detach = PTHREAD_CREATE_DETACHED;
22335
22336 #if HAVE_PTHREADS > 4
22337         /* Final pthreads */
22338         pthread_attr_t attr;
22339
22340         status = pthread_attr_init(&attr);
22341         if( status ) return status;
22342
22343 #if HAVE_PTHREADS < 7
22344         status = pthread_attr_setdetachstate(&attr, &detach);
22345         if( status < 0 ) status = errno;
22346 #else
22347         status = pthread_attr_setdetachstate(&attr, detach);
22348 #endif
22349         if( status ) return status;
22350         status = pthread_create( &t, &attr, task, NULL );
22351 #if HAVE_PTHREADS < 7
22352         if( status < 0 ) status = errno;
22353 #endif
22354         if( status ) return status;
22355 #else
22356         /* Draft 4 pthreads */
22357         status = pthread_create( &t, pthread_attr_default, task, NULL );
22358         if( status ) return errno;
22359
22360         /* give thread a chance to complete */
22361         /* it should remain joinable and hence detachable */
22362         sleep( 1 );
22363
22364         status = pthread_detach( &t );
22365         if( status ) return errno;
22366 #endif
22367
22368 #ifdef HAVE_LINUX_THREADS
22369         pthread_kill_other_threads_np();
22370 #endif
22371
22372         return 0;
22373
22374   ;
22375   return 0;
22376 }
22377 _ACEOF
22378 rm -f conftest.$ac_objext conftest$ac_exeext
22379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22380   (eval $ac_link) 2>conftest.er1
22381   ac_status=$?
22382   grep -v '^ *+' conftest.er1 >conftest.err
22383   rm -f conftest.er1
22384   cat conftest.err >&5
22385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386   (exit $ac_status); } &&
22387          { ac_try='test -z "$ac_c_werror_flag"
22388                          || test ! -s conftest.err'
22389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22390   (eval $ac_try) 2>&5
22391   ac_status=$?
22392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393   (exit $ac_status); }; } &&
22394          { ac_try='test -s conftest$ac_exeext'
22395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22396   (eval $ac_try) 2>&5
22397   ac_status=$?
22398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399   (exit $ac_status); }; }; then
22400   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22401 else
22402   echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22404
22405 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22406 fi
22407 rm -f conftest.err conftest.$ac_objext \
22408       conftest$ac_exeext conftest.$ac_ext
22409 else
22410   cat >conftest.$ac_ext <<_ACEOF
22411 /* confdefs.h.  */
22412 _ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h.  */
22416
22417 /* pthread test headers */
22418 #include <pthread.h>
22419 #if HAVE_PTHREADS < 7
22420 #include <errno.h>
22421 #endif
22422 #ifndef NULL
22423 #define NULL (void*)0
22424 #endif
22425
22426 static void *task(p)
22427         void *p;
22428 {
22429         return (void *) (p == NULL);
22430 }
22431
22432
22433 int main(argc, argv)
22434         int argc;
22435         char **argv;
22436 {
22437
22438         /* pthread test function */
22439 #ifndef PTHREAD_CREATE_DETACHED
22440 #define PTHREAD_CREATE_DETACHED 1
22441 #endif
22442         pthread_t t;
22443         int status;
22444         int detach = PTHREAD_CREATE_DETACHED;
22445
22446 #if HAVE_PTHREADS > 4
22447         /* Final pthreads */
22448         pthread_attr_t attr;
22449
22450         status = pthread_attr_init(&attr);
22451         if( status ) return status;
22452
22453 #if HAVE_PTHREADS < 7
22454         status = pthread_attr_setdetachstate(&attr, &detach);
22455         if( status < 0 ) status = errno;
22456 #else
22457         status = pthread_attr_setdetachstate(&attr, detach);
22458 #endif
22459         if( status ) return status;
22460         status = pthread_create( &t, &attr, task, NULL );
22461 #if HAVE_PTHREADS < 7
22462         if( status < 0 ) status = errno;
22463 #endif
22464         if( status ) return status;
22465 #else
22466         /* Draft 4 pthreads */
22467         status = pthread_create( &t, pthread_attr_default, task, NULL );
22468         if( status ) return errno;
22469
22470         /* give thread a chance to complete */
22471         /* it should remain joinable and hence detachable */
22472         sleep( 1 );
22473
22474         status = pthread_detach( &t );
22475         if( status ) return errno;
22476 #endif
22477
22478 #ifdef HAVE_LINUX_THREADS
22479         pthread_kill_other_threads_np();
22480 #endif
22481
22482         return 0;
22483
22484 }
22485
22486 _ACEOF
22487 rm -f conftest$ac_exeext
22488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22489   (eval $ac_link) 2>&5
22490   ac_status=$?
22491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22494   (eval $ac_try) 2>&5
22495   ac_status=$?
22496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497   (exit $ac_status); }; }; then
22498   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22499 else
22500   echo "$as_me: program exited with status $ac_status" >&5
22501 echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22503
22504 ( exit $ac_status )
22505 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22506 fi
22507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22508 fi
22509
22510                 # restore the LIBS
22511                 LIBS="$ol_LIBS"
22512
22513 fi
22514 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
22515 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
22516
22517         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
22518                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
22519                 ol_link_threads=posix
22520         fi
22521 fi
22522
22523                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
22524 if test "$ol_link_threads" = no ; then
22525         # try -lpthreads -lmach -lexc
22526         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
22527 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
22528 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
22529   echo $ECHO_N "(cached) $ECHO_C" >&6
22530 else
22531
22532                 # save the flags
22533                 ol_LIBS="$LIBS"
22534                 LIBS="-lpthreads -lmach -lexc $LIBS"
22535
22536                 if test "$cross_compiling" = yes; then
22537   cat >conftest.$ac_ext <<_ACEOF
22538 /* confdefs.h.  */
22539 _ACEOF
22540 cat confdefs.h >>conftest.$ac_ext
22541 cat >>conftest.$ac_ext <<_ACEOF
22542 /* end confdefs.h.  */
22543
22544 /* pthread test headers */
22545 #include <pthread.h>
22546 #if HAVE_PTHREADS < 7
22547 #include <errno.h>
22548 #endif
22549 #ifndef NULL
22550 #define NULL (void*)0
22551 #endif
22552
22553 static void *task(p)
22554         void *p;
22555 {
22556         return (void *) (p == NULL);
22557 }
22558
22559 int
22560 main ()
22561 {
22562
22563         /* pthread test function */
22564 #ifndef PTHREAD_CREATE_DETACHED
22565 #define PTHREAD_CREATE_DETACHED 1
22566 #endif
22567         pthread_t t;
22568         int status;
22569         int detach = PTHREAD_CREATE_DETACHED;
22570
22571 #if HAVE_PTHREADS > 4
22572         /* Final pthreads */
22573         pthread_attr_t attr;
22574
22575         status = pthread_attr_init(&attr);
22576         if( status ) return status;
22577
22578 #if HAVE_PTHREADS < 7
22579         status = pthread_attr_setdetachstate(&attr, &detach);
22580         if( status < 0 ) status = errno;
22581 #else
22582         status = pthread_attr_setdetachstate(&attr, detach);
22583 #endif
22584         if( status ) return status;
22585         status = pthread_create( &t, &attr, task, NULL );
22586 #if HAVE_PTHREADS < 7
22587         if( status < 0 ) status = errno;
22588 #endif
22589         if( status ) return status;
22590 #else
22591         /* Draft 4 pthreads */
22592         status = pthread_create( &t, pthread_attr_default, task, NULL );
22593         if( status ) return errno;
22594
22595         /* give thread a chance to complete */
22596         /* it should remain joinable and hence detachable */
22597         sleep( 1 );
22598
22599         status = pthread_detach( &t );
22600         if( status ) return errno;
22601 #endif
22602
22603 #ifdef HAVE_LINUX_THREADS
22604         pthread_kill_other_threads_np();
22605 #endif
22606
22607         return 0;
22608
22609   ;
22610   return 0;
22611 }
22612 _ACEOF
22613 rm -f conftest.$ac_objext conftest$ac_exeext
22614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22615   (eval $ac_link) 2>conftest.er1
22616   ac_status=$?
22617   grep -v '^ *+' conftest.er1 >conftest.err
22618   rm -f conftest.er1
22619   cat conftest.err >&5
22620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621   (exit $ac_status); } &&
22622          { ac_try='test -z "$ac_c_werror_flag"
22623                          || test ! -s conftest.err'
22624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22625   (eval $ac_try) 2>&5
22626   ac_status=$?
22627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628   (exit $ac_status); }; } &&
22629          { ac_try='test -s conftest$ac_exeext'
22630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22631   (eval $ac_try) 2>&5
22632   ac_status=$?
22633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); }; }; then
22635   ol_cv_pthread_lpthreads_lmach_lexc=yes
22636 else
22637   echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22639
22640 ol_cv_pthread_lpthreads_lmach_lexc=no
22641 fi
22642 rm -f conftest.err conftest.$ac_objext \
22643       conftest$ac_exeext conftest.$ac_ext
22644 else
22645   cat >conftest.$ac_ext <<_ACEOF
22646 /* confdefs.h.  */
22647 _ACEOF
22648 cat confdefs.h >>conftest.$ac_ext
22649 cat >>conftest.$ac_ext <<_ACEOF
22650 /* end confdefs.h.  */
22651
22652 /* pthread test headers */
22653 #include <pthread.h>
22654 #if HAVE_PTHREADS < 7
22655 #include <errno.h>
22656 #endif
22657 #ifndef NULL
22658 #define NULL (void*)0
22659 #endif
22660
22661 static void *task(p)
22662         void *p;
22663 {
22664         return (void *) (p == NULL);
22665 }
22666
22667
22668 int main(argc, argv)
22669         int argc;
22670         char **argv;
22671 {
22672
22673         /* pthread test function */
22674 #ifndef PTHREAD_CREATE_DETACHED
22675 #define PTHREAD_CREATE_DETACHED 1
22676 #endif
22677         pthread_t t;
22678         int status;
22679         int detach = PTHREAD_CREATE_DETACHED;
22680
22681 #if HAVE_PTHREADS > 4
22682         /* Final pthreads */
22683         pthread_attr_t attr;
22684
22685         status = pthread_attr_init(&attr);
22686         if( status ) return status;
22687
22688 #if HAVE_PTHREADS < 7
22689         status = pthread_attr_setdetachstate(&attr, &detach);
22690         if( status < 0 ) status = errno;
22691 #else
22692         status = pthread_attr_setdetachstate(&attr, detach);
22693 #endif
22694         if( status ) return status;
22695         status = pthread_create( &t, &attr, task, NULL );
22696 #if HAVE_PTHREADS < 7
22697         if( status < 0 ) status = errno;
22698 #endif
22699         if( status ) return status;
22700 #else
22701         /* Draft 4 pthreads */
22702         status = pthread_create( &t, pthread_attr_default, task, NULL );
22703         if( status ) return errno;
22704
22705         /* give thread a chance to complete */
22706         /* it should remain joinable and hence detachable */
22707         sleep( 1 );
22708
22709         status = pthread_detach( &t );
22710         if( status ) return errno;
22711 #endif
22712
22713 #ifdef HAVE_LINUX_THREADS
22714         pthread_kill_other_threads_np();
22715 #endif
22716
22717         return 0;
22718
22719 }
22720
22721 _ACEOF
22722 rm -f conftest$ac_exeext
22723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22724   (eval $ac_link) 2>&5
22725   ac_status=$?
22726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22729   (eval $ac_try) 2>&5
22730   ac_status=$?
22731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732   (exit $ac_status); }; }; then
22733   ol_cv_pthread_lpthreads_lmach_lexc=yes
22734 else
22735   echo "$as_me: program exited with status $ac_status" >&5
22736 echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22738
22739 ( exit $ac_status )
22740 ol_cv_pthread_lpthreads_lmach_lexc=no
22741 fi
22742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22743 fi
22744
22745                 # restore the LIBS
22746                 LIBS="$ol_LIBS"
22747
22748 fi
22749 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
22750 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
22751
22752         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
22753                 ol_link_pthreads="-lpthreads -lmach -lexc"
22754                 ol_link_threads=posix
22755         fi
22756 fi
22757
22758                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
22759 if test "$ol_link_threads" = no ; then
22760         # try -lpthreads -lexc
22761         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
22762 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
22763 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
22764   echo $ECHO_N "(cached) $ECHO_C" >&6
22765 else
22766
22767                 # save the flags
22768                 ol_LIBS="$LIBS"
22769                 LIBS="-lpthreads -lexc $LIBS"
22770
22771                 if test "$cross_compiling" = yes; then
22772   cat >conftest.$ac_ext <<_ACEOF
22773 /* confdefs.h.  */
22774 _ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h.  */
22778
22779 /* pthread test headers */
22780 #include <pthread.h>
22781 #if HAVE_PTHREADS < 7
22782 #include <errno.h>
22783 #endif
22784 #ifndef NULL
22785 #define NULL (void*)0
22786 #endif
22787
22788 static void *task(p)
22789         void *p;
22790 {
22791         return (void *) (p == NULL);
22792 }
22793
22794 int
22795 main ()
22796 {
22797
22798         /* pthread test function */
22799 #ifndef PTHREAD_CREATE_DETACHED
22800 #define PTHREAD_CREATE_DETACHED 1
22801 #endif
22802         pthread_t t;
22803         int status;
22804         int detach = PTHREAD_CREATE_DETACHED;
22805
22806 #if HAVE_PTHREADS > 4
22807         /* Final pthreads */
22808         pthread_attr_t attr;
22809
22810         status = pthread_attr_init(&attr);
22811         if( status ) return status;
22812
22813 #if HAVE_PTHREADS < 7
22814         status = pthread_attr_setdetachstate(&attr, &detach);
22815         if( status < 0 ) status = errno;
22816 #else
22817         status = pthread_attr_setdetachstate(&attr, detach);
22818 #endif
22819         if( status ) return status;
22820         status = pthread_create( &t, &attr, task, NULL );
22821 #if HAVE_PTHREADS < 7
22822         if( status < 0 ) status = errno;
22823 #endif
22824         if( status ) return status;
22825 #else
22826         /* Draft 4 pthreads */
22827         status = pthread_create( &t, pthread_attr_default, task, NULL );
22828         if( status ) return errno;
22829
22830         /* give thread a chance to complete */
22831         /* it should remain joinable and hence detachable */
22832         sleep( 1 );
22833
22834         status = pthread_detach( &t );
22835         if( status ) return errno;
22836 #endif
22837
22838 #ifdef HAVE_LINUX_THREADS
22839         pthread_kill_other_threads_np();
22840 #endif
22841
22842         return 0;
22843
22844   ;
22845   return 0;
22846 }
22847 _ACEOF
22848 rm -f conftest.$ac_objext conftest$ac_exeext
22849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22850   (eval $ac_link) 2>conftest.er1
22851   ac_status=$?
22852   grep -v '^ *+' conftest.er1 >conftest.err
22853   rm -f conftest.er1
22854   cat conftest.err >&5
22855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856   (exit $ac_status); } &&
22857          { ac_try='test -z "$ac_c_werror_flag"
22858                          || test ! -s conftest.err'
22859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22860   (eval $ac_try) 2>&5
22861   ac_status=$?
22862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863   (exit $ac_status); }; } &&
22864          { ac_try='test -s conftest$ac_exeext'
22865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22866   (eval $ac_try) 2>&5
22867   ac_status=$?
22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869   (exit $ac_status); }; }; then
22870   ol_cv_pthread_lpthreads_lexc=yes
22871 else
22872   echo "$as_me: failed program was:" >&5
22873 sed 's/^/| /' conftest.$ac_ext >&5
22874
22875 ol_cv_pthread_lpthreads_lexc=no
22876 fi
22877 rm -f conftest.err conftest.$ac_objext \
22878       conftest$ac_exeext conftest.$ac_ext
22879 else
22880   cat >conftest.$ac_ext <<_ACEOF
22881 /* confdefs.h.  */
22882 _ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h.  */
22886
22887 /* pthread test headers */
22888 #include <pthread.h>
22889 #if HAVE_PTHREADS < 7
22890 #include <errno.h>
22891 #endif
22892 #ifndef NULL
22893 #define NULL (void*)0
22894 #endif
22895
22896 static void *task(p)
22897         void *p;
22898 {
22899         return (void *) (p == NULL);
22900 }
22901
22902
22903 int main(argc, argv)
22904         int argc;
22905         char **argv;
22906 {
22907
22908         /* pthread test function */
22909 #ifndef PTHREAD_CREATE_DETACHED
22910 #define PTHREAD_CREATE_DETACHED 1
22911 #endif
22912         pthread_t t;
22913         int status;
22914         int detach = PTHREAD_CREATE_DETACHED;
22915
22916 #if HAVE_PTHREADS > 4
22917         /* Final pthreads */
22918         pthread_attr_t attr;
22919
22920         status = pthread_attr_init(&attr);
22921         if( status ) return status;
22922
22923 #if HAVE_PTHREADS < 7
22924         status = pthread_attr_setdetachstate(&attr, &detach);
22925         if( status < 0 ) status = errno;
22926 #else
22927         status = pthread_attr_setdetachstate(&attr, detach);
22928 #endif
22929         if( status ) return status;
22930         status = pthread_create( &t, &attr, task, NULL );
22931 #if HAVE_PTHREADS < 7
22932         if( status < 0 ) status = errno;
22933 #endif
22934         if( status ) return status;
22935 #else
22936         /* Draft 4 pthreads */
22937         status = pthread_create( &t, pthread_attr_default, task, NULL );
22938         if( status ) return errno;
22939
22940         /* give thread a chance to complete */
22941         /* it should remain joinable and hence detachable */
22942         sleep( 1 );
22943
22944         status = pthread_detach( &t );
22945         if( status ) return errno;
22946 #endif
22947
22948 #ifdef HAVE_LINUX_THREADS
22949         pthread_kill_other_threads_np();
22950 #endif
22951
22952         return 0;
22953
22954 }
22955
22956 _ACEOF
22957 rm -f conftest$ac_exeext
22958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22959   (eval $ac_link) 2>&5
22960   ac_status=$?
22961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22964   (eval $ac_try) 2>&5
22965   ac_status=$?
22966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967   (exit $ac_status); }; }; then
22968   ol_cv_pthread_lpthreads_lexc=yes
22969 else
22970   echo "$as_me: program exited with status $ac_status" >&5
22971 echo "$as_me: failed program was:" >&5
22972 sed 's/^/| /' conftest.$ac_ext >&5
22973
22974 ( exit $ac_status )
22975 ol_cv_pthread_lpthreads_lexc=no
22976 fi
22977 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22978 fi
22979
22980                 # restore the LIBS
22981                 LIBS="$ol_LIBS"
22982
22983 fi
22984 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
22985 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
22986
22987         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
22988                 ol_link_pthreads="-lpthreads -lexc"
22989                 ol_link_threads=posix
22990         fi
22991 fi
22992
22993
22994                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
22995 if test "$ol_link_threads" = no ; then
22996         # try -lpthreads
22997         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
22998 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
22999 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23000   echo $ECHO_N "(cached) $ECHO_C" >&6
23001 else
23002
23003                 # save the flags
23004                 ol_LIBS="$LIBS"
23005                 LIBS="-lpthreads $LIBS"
23006
23007                 if test "$cross_compiling" = yes; then
23008   cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h.  */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h.  */
23014
23015 /* pthread test headers */
23016 #include <pthread.h>
23017 #if HAVE_PTHREADS < 7
23018 #include <errno.h>
23019 #endif
23020 #ifndef NULL
23021 #define NULL (void*)0
23022 #endif
23023
23024 static void *task(p)
23025         void *p;
23026 {
23027         return (void *) (p == NULL);
23028 }
23029
23030 int
23031 main ()
23032 {
23033
23034         /* pthread test function */
23035 #ifndef PTHREAD_CREATE_DETACHED
23036 #define PTHREAD_CREATE_DETACHED 1
23037 #endif
23038         pthread_t t;
23039         int status;
23040         int detach = PTHREAD_CREATE_DETACHED;
23041
23042 #if HAVE_PTHREADS > 4
23043         /* Final pthreads */
23044         pthread_attr_t attr;
23045
23046         status = pthread_attr_init(&attr);
23047         if( status ) return status;
23048
23049 #if HAVE_PTHREADS < 7
23050         status = pthread_attr_setdetachstate(&attr, &detach);
23051         if( status < 0 ) status = errno;
23052 #else
23053         status = pthread_attr_setdetachstate(&attr, detach);
23054 #endif
23055         if( status ) return status;
23056         status = pthread_create( &t, &attr, task, NULL );
23057 #if HAVE_PTHREADS < 7
23058         if( status < 0 ) status = errno;
23059 #endif
23060         if( status ) return status;
23061 #else
23062         /* Draft 4 pthreads */
23063         status = pthread_create( &t, pthread_attr_default, task, NULL );
23064         if( status ) return errno;
23065
23066         /* give thread a chance to complete */
23067         /* it should remain joinable and hence detachable */
23068         sleep( 1 );
23069
23070         status = pthread_detach( &t );
23071         if( status ) return errno;
23072 #endif
23073
23074 #ifdef HAVE_LINUX_THREADS
23075         pthread_kill_other_threads_np();
23076 #endif
23077
23078         return 0;
23079
23080   ;
23081   return 0;
23082 }
23083 _ACEOF
23084 rm -f conftest.$ac_objext conftest$ac_exeext
23085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23086   (eval $ac_link) 2>conftest.er1
23087   ac_status=$?
23088   grep -v '^ *+' conftest.er1 >conftest.err
23089   rm -f conftest.er1
23090   cat conftest.err >&5
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); } &&
23093          { ac_try='test -z "$ac_c_werror_flag"
23094                          || test ! -s conftest.err'
23095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23096   (eval $ac_try) 2>&5
23097   ac_status=$?
23098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099   (exit $ac_status); }; } &&
23100          { ac_try='test -s conftest$ac_exeext'
23101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23102   (eval $ac_try) 2>&5
23103   ac_status=$?
23104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105   (exit $ac_status); }; }; then
23106   ol_cv_pthread_lib_lpthreads=yes
23107 else
23108   echo "$as_me: failed program was:" >&5
23109 sed 's/^/| /' conftest.$ac_ext >&5
23110
23111 ol_cv_pthread_lib_lpthreads=no
23112 fi
23113 rm -f conftest.err conftest.$ac_objext \
23114       conftest$ac_exeext conftest.$ac_ext
23115 else
23116   cat >conftest.$ac_ext <<_ACEOF
23117 /* confdefs.h.  */
23118 _ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h.  */
23122
23123 /* pthread test headers */
23124 #include <pthread.h>
23125 #if HAVE_PTHREADS < 7
23126 #include <errno.h>
23127 #endif
23128 #ifndef NULL
23129 #define NULL (void*)0
23130 #endif
23131
23132 static void *task(p)
23133         void *p;
23134 {
23135         return (void *) (p == NULL);
23136 }
23137
23138
23139 int main(argc, argv)
23140         int argc;
23141         char **argv;
23142 {
23143
23144         /* pthread test function */
23145 #ifndef PTHREAD_CREATE_DETACHED
23146 #define PTHREAD_CREATE_DETACHED 1
23147 #endif
23148         pthread_t t;
23149         int status;
23150         int detach = PTHREAD_CREATE_DETACHED;
23151
23152 #if HAVE_PTHREADS > 4
23153         /* Final pthreads */
23154         pthread_attr_t attr;
23155
23156         status = pthread_attr_init(&attr);
23157         if( status ) return status;
23158
23159 #if HAVE_PTHREADS < 7
23160         status = pthread_attr_setdetachstate(&attr, &detach);
23161         if( status < 0 ) status = errno;
23162 #else
23163         status = pthread_attr_setdetachstate(&attr, detach);
23164 #endif
23165         if( status ) return status;
23166         status = pthread_create( &t, &attr, task, NULL );
23167 #if HAVE_PTHREADS < 7
23168         if( status < 0 ) status = errno;
23169 #endif
23170         if( status ) return status;
23171 #else
23172         /* Draft 4 pthreads */
23173         status = pthread_create( &t, pthread_attr_default, task, NULL );
23174         if( status ) return errno;
23175
23176         /* give thread a chance to complete */
23177         /* it should remain joinable and hence detachable */
23178         sleep( 1 );
23179
23180         status = pthread_detach( &t );
23181         if( status ) return errno;
23182 #endif
23183
23184 #ifdef HAVE_LINUX_THREADS
23185         pthread_kill_other_threads_np();
23186 #endif
23187
23188         return 0;
23189
23190 }
23191
23192 _ACEOF
23193 rm -f conftest$ac_exeext
23194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23195   (eval $ac_link) 2>&5
23196   ac_status=$?
23197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23200   (eval $ac_try) 2>&5
23201   ac_status=$?
23202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203   (exit $ac_status); }; }; then
23204   ol_cv_pthread_lib_lpthreads=yes
23205 else
23206   echo "$as_me: program exited with status $ac_status" >&5
23207 echo "$as_me: failed program was:" >&5
23208 sed 's/^/| /' conftest.$ac_ext >&5
23209
23210 ( exit $ac_status )
23211 ol_cv_pthread_lib_lpthreads=no
23212 fi
23213 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23214 fi
23215
23216                 # restore the LIBS
23217                 LIBS="$ol_LIBS"
23218
23219 fi
23220 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23221 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23222
23223         if test $ol_cv_pthread_lib_lpthreads = yes ; then
23224                 ol_link_pthreads="-lpthreads"
23225                 ol_link_threads=posix
23226         fi
23227 fi
23228
23229
23230                 if test $ol_link_threads != no ; then
23231                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23232
23233                                                 save_CPPFLAGS="$CPPFLAGS"
23234                         save_LIBS="$LIBS"
23235                         LIBS="$LTHREAD_LIBS $LIBS"
23236
23237
23238
23239
23240 for ac_func in sched_yield pthread_yield thr_yield
23241 do
23242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23243 echo "$as_me:$LINENO: checking for $ac_func" >&5
23244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23245 if eval "test \"\${$as_ac_var+set}\" = set"; then
23246   echo $ECHO_N "(cached) $ECHO_C" >&6
23247 else
23248   cat >conftest.$ac_ext <<_ACEOF
23249 /* confdefs.h.  */
23250 _ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h.  */
23254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23256 #define $ac_func innocuous_$ac_func
23257
23258 /* System header to define __stub macros and hopefully few prototypes,
23259     which can conflict with char $ac_func (); below.
23260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23261     <limits.h> exists even on freestanding compilers.  */
23262
23263 #ifdef __STDC__
23264 # include <limits.h>
23265 #else
23266 # include <assert.h>
23267 #endif
23268
23269 #undef $ac_func
23270
23271 /* Override any gcc2 internal prototype to avoid an error.  */
23272 #ifdef __cplusplus
23273 extern "C"
23274 {
23275 #endif
23276 /* We use char because int might match the return type of a gcc2
23277    builtin and then its argument prototype would still apply.  */
23278 char $ac_func ();
23279 /* The GNU C library defines this for functions which it implements
23280     to always fail with ENOSYS.  Some functions are actually named
23281     something starting with __ and the normal name is an alias.  */
23282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23283 choke me
23284 #else
23285 char (*f) () = $ac_func;
23286 #endif
23287 #ifdef __cplusplus
23288 }
23289 #endif
23290
23291 int
23292 main ()
23293 {
23294 return f != $ac_func;
23295   ;
23296   return 0;
23297 }
23298 _ACEOF
23299 rm -f conftest.$ac_objext conftest$ac_exeext
23300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23301   (eval $ac_link) 2>conftest.er1
23302   ac_status=$?
23303   grep -v '^ *+' conftest.er1 >conftest.err
23304   rm -f conftest.er1
23305   cat conftest.err >&5
23306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307   (exit $ac_status); } &&
23308          { ac_try='test -z "$ac_c_werror_flag"
23309                          || test ! -s conftest.err'
23310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23311   (eval $ac_try) 2>&5
23312   ac_status=$?
23313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314   (exit $ac_status); }; } &&
23315          { ac_try='test -s conftest$ac_exeext'
23316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317   (eval $ac_try) 2>&5
23318   ac_status=$?
23319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320   (exit $ac_status); }; }; then
23321   eval "$as_ac_var=yes"
23322 else
23323   echo "$as_me: failed program was:" >&5
23324 sed 's/^/| /' conftest.$ac_ext >&5
23325
23326 eval "$as_ac_var=no"
23327 fi
23328 rm -f conftest.err conftest.$ac_objext \
23329       conftest$ac_exeext conftest.$ac_ext
23330 fi
23331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23333 if test `eval echo '${'$as_ac_var'}'` = yes; then
23334   cat >>confdefs.h <<_ACEOF
23335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23336 _ACEOF
23337
23338 fi
23339 done
23340
23341
23342                         if test $ac_cv_func_sched_yield = no &&
23343                            test $ac_cv_func_pthread_yield = no &&
23344                            test $ac_cv_func_thr_yield = no ; then
23345                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23346 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23347 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23348   echo $ECHO_N "(cached) $ECHO_C" >&6
23349 else
23350   ac_check_lib_save_LIBS=$LIBS
23351 LIBS="-lrt  $LIBS"
23352 cat >conftest.$ac_ext <<_ACEOF
23353 /* confdefs.h.  */
23354 _ACEOF
23355 cat confdefs.h >>conftest.$ac_ext
23356 cat >>conftest.$ac_ext <<_ACEOF
23357 /* end confdefs.h.  */
23358
23359 /* Override any gcc2 internal prototype to avoid an error.  */
23360 #ifdef __cplusplus
23361 extern "C"
23362 #endif
23363 /* We use char because int might match the return type of a gcc2
23364    builtin and then its argument prototype would still apply.  */
23365 char sched_yield ();
23366 int
23367 main ()
23368 {
23369 sched_yield ();
23370   ;
23371   return 0;
23372 }
23373 _ACEOF
23374 rm -f conftest.$ac_objext conftest$ac_exeext
23375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23376   (eval $ac_link) 2>conftest.er1
23377   ac_status=$?
23378   grep -v '^ *+' conftest.er1 >conftest.err
23379   rm -f conftest.er1
23380   cat conftest.err >&5
23381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382   (exit $ac_status); } &&
23383          { ac_try='test -z "$ac_c_werror_flag"
23384                          || test ! -s conftest.err'
23385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386   (eval $ac_try) 2>&5
23387   ac_status=$?
23388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389   (exit $ac_status); }; } &&
23390          { ac_try='test -s conftest$ac_exeext'
23391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23392   (eval $ac_try) 2>&5
23393   ac_status=$?
23394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395   (exit $ac_status); }; }; then
23396   ac_cv_lib_rt_sched_yield=yes
23397 else
23398   echo "$as_me: failed program was:" >&5
23399 sed 's/^/| /' conftest.$ac_ext >&5
23400
23401 ac_cv_lib_rt_sched_yield=no
23402 fi
23403 rm -f conftest.err conftest.$ac_objext \
23404       conftest$ac_exeext conftest.$ac_ext
23405 LIBS=$ac_check_lib_save_LIBS
23406 fi
23407 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23408 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23409 if test $ac_cv_lib_rt_sched_yield = yes; then
23410   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
23411
23412 cat >>confdefs.h <<\_ACEOF
23413 #define HAVE_SCHED_YIELD 1
23414 _ACEOF
23415
23416                                         ac_cv_func_sched_yield=yes
23417 else
23418   ac_cv_func_sched_yield=no
23419 fi
23420
23421                         fi
23422                         if test $ac_cv_func_sched_yield = no &&
23423                            test $ac_cv_func_pthread_yield = no &&
23424                            test "$ac_cv_func_thr_yield" = no ; then
23425                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
23426 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
23427                         fi
23428
23429
23430 for ac_func in pthread_kill
23431 do
23432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23433 echo "$as_me:$LINENO: checking for $ac_func" >&5
23434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23435 if eval "test \"\${$as_ac_var+set}\" = set"; then
23436   echo $ECHO_N "(cached) $ECHO_C" >&6
23437 else
23438   cat >conftest.$ac_ext <<_ACEOF
23439 /* confdefs.h.  */
23440 _ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h.  */
23444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23446 #define $ac_func innocuous_$ac_func
23447
23448 /* System header to define __stub macros and hopefully few prototypes,
23449     which can conflict with char $ac_func (); below.
23450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23451     <limits.h> exists even on freestanding compilers.  */
23452
23453 #ifdef __STDC__
23454 # include <limits.h>
23455 #else
23456 # include <assert.h>
23457 #endif
23458
23459 #undef $ac_func
23460
23461 /* Override any gcc2 internal prototype to avoid an error.  */
23462 #ifdef __cplusplus
23463 extern "C"
23464 {
23465 #endif
23466 /* We use char because int might match the return type of a gcc2
23467    builtin and then its argument prototype would still apply.  */
23468 char $ac_func ();
23469 /* The GNU C library defines this for functions which it implements
23470     to always fail with ENOSYS.  Some functions are actually named
23471     something starting with __ and the normal name is an alias.  */
23472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23473 choke me
23474 #else
23475 char (*f) () = $ac_func;
23476 #endif
23477 #ifdef __cplusplus
23478 }
23479 #endif
23480
23481 int
23482 main ()
23483 {
23484 return f != $ac_func;
23485   ;
23486   return 0;
23487 }
23488 _ACEOF
23489 rm -f conftest.$ac_objext conftest$ac_exeext
23490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23491   (eval $ac_link) 2>conftest.er1
23492   ac_status=$?
23493   grep -v '^ *+' conftest.er1 >conftest.err
23494   rm -f conftest.er1
23495   cat conftest.err >&5
23496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497   (exit $ac_status); } &&
23498          { ac_try='test -z "$ac_c_werror_flag"
23499                          || test ! -s conftest.err'
23500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501   (eval $ac_try) 2>&5
23502   ac_status=$?
23503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504   (exit $ac_status); }; } &&
23505          { ac_try='test -s conftest$ac_exeext'
23506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23507   (eval $ac_try) 2>&5
23508   ac_status=$?
23509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510   (exit $ac_status); }; }; then
23511   eval "$as_ac_var=yes"
23512 else
23513   echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23515
23516 eval "$as_ac_var=no"
23517 fi
23518 rm -f conftest.err conftest.$ac_objext \
23519       conftest$ac_exeext conftest.$ac_ext
23520 fi
23521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23523 if test `eval echo '${'$as_ac_var'}'` = yes; then
23524   cat >>confdefs.h <<_ACEOF
23525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23526 _ACEOF
23527
23528 fi
23529 done
23530
23531
23532                                                                         echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
23533 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
23534 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
23535   echo $ECHO_N "(cached) $ECHO_C" >&6
23536 else
23537
23538                                                                 cat >conftest.$ac_ext <<_ACEOF
23539 /* confdefs.h.  */
23540 _ACEOF
23541 cat confdefs.h >>conftest.$ac_ext
23542 cat >>conftest.$ac_ext <<_ACEOF
23543 /* end confdefs.h.  */
23544
23545 #include <pthread.h>
23546 pthread_rwlock_t rwlock;
23547
23548 int
23549 main ()
23550 {
23551 pthread_rwlock_destroy(&rwlock);
23552   ;
23553   return 0;
23554 }
23555 _ACEOF
23556 rm -f conftest.$ac_objext conftest$ac_exeext
23557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23558   (eval $ac_link) 2>conftest.er1
23559   ac_status=$?
23560   grep -v '^ *+' conftest.er1 >conftest.err
23561   rm -f conftest.er1
23562   cat conftest.err >&5
23563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564   (exit $ac_status); } &&
23565          { ac_try='test -z "$ac_c_werror_flag"
23566                          || test ! -s conftest.err'
23567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568   (eval $ac_try) 2>&5
23569   ac_status=$?
23570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571   (exit $ac_status); }; } &&
23572          { ac_try='test -s conftest$ac_exeext'
23573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574   (eval $ac_try) 2>&5
23575   ac_status=$?
23576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577   (exit $ac_status); }; }; then
23578   ol_cv_func_pthread_rwlock_destroy=yes
23579 else
23580   echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23582
23583 ol_cv_func_pthread_rwlock_destroy=no
23584 fi
23585 rm -f conftest.err conftest.$ac_objext \
23586       conftest$ac_exeext conftest.$ac_ext
23587
23588 fi
23589 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
23590 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
23591                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
23592
23593 cat >>confdefs.h <<\_ACEOF
23594 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
23595 _ACEOF
23596
23597                         fi
23598
23599                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
23600 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
23601 if test "${ol_cv_func_pthread_detach+set}" = set; then
23602   echo $ECHO_N "(cached) $ECHO_C" >&6
23603 else
23604
23605                                                                 cat >conftest.$ac_ext <<_ACEOF
23606 /* confdefs.h.  */
23607 _ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h.  */
23611
23612 #include <pthread.h>
23613 #ifndef NULL
23614 #define NULL (void*)0
23615 #endif
23616
23617 int
23618 main ()
23619 {
23620 pthread_detach(NULL);
23621   ;
23622   return 0;
23623 }
23624 _ACEOF
23625 rm -f conftest.$ac_objext conftest$ac_exeext
23626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23627   (eval $ac_link) 2>conftest.er1
23628   ac_status=$?
23629   grep -v '^ *+' conftest.er1 >conftest.err
23630   rm -f conftest.er1
23631   cat conftest.err >&5
23632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633   (exit $ac_status); } &&
23634          { ac_try='test -z "$ac_c_werror_flag"
23635                          || test ! -s conftest.err'
23636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23637   (eval $ac_try) 2>&5
23638   ac_status=$?
23639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640   (exit $ac_status); }; } &&
23641          { ac_try='test -s conftest$ac_exeext'
23642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23643   (eval $ac_try) 2>&5
23644   ac_status=$?
23645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646   (exit $ac_status); }; }; then
23647   ol_cv_func_pthread_detach=yes
23648 else
23649   echo "$as_me: failed program was:" >&5
23650 sed 's/^/| /' conftest.$ac_ext >&5
23651
23652 ol_cv_func_pthread_detach=no
23653 fi
23654 rm -f conftest.err conftest.$ac_objext \
23655       conftest$ac_exeext conftest.$ac_ext
23656
23657 fi
23658 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
23659 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
23660
23661                         if test $ol_cv_func_pthread_detach = no ; then
23662                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
23663 echo "$as_me: error: could not locate pthread_detach()" >&2;}
23664    { (exit 1); exit 1; }; }
23665                         fi
23666
23667
23668 cat >>confdefs.h <<\_ACEOF
23669 #define HAVE_PTHREAD_DETACH 1
23670 _ACEOF
23671
23672
23673
23674
23675
23676
23677 for ac_func in \
23678                                 pthread_setconcurrency \
23679                                 pthread_getconcurrency \
23680                                 thr_setconcurrency \
23681                                 thr_getconcurrency \
23682
23683 do
23684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23685 echo "$as_me:$LINENO: checking for $ac_func" >&5
23686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23687 if eval "test \"\${$as_ac_var+set}\" = set"; then
23688   echo $ECHO_N "(cached) $ECHO_C" >&6
23689 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23698 #define $ac_func innocuous_$ac_func
23699
23700 /* System header to define __stub macros and hopefully few prototypes,
23701     which can conflict with char $ac_func (); below.
23702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23703     <limits.h> exists even on freestanding compilers.  */
23704
23705 #ifdef __STDC__
23706 # include <limits.h>
23707 #else
23708 # include <assert.h>
23709 #endif
23710
23711 #undef $ac_func
23712
23713 /* Override any gcc2 internal prototype to avoid an error.  */
23714 #ifdef __cplusplus
23715 extern "C"
23716 {
23717 #endif
23718 /* We use char because int might match the return type of a gcc2
23719    builtin and then its argument prototype would still apply.  */
23720 char $ac_func ();
23721 /* The GNU C library defines this for functions which it implements
23722     to always fail with ENOSYS.  Some functions are actually named
23723     something starting with __ and the normal name is an alias.  */
23724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23725 choke me
23726 #else
23727 char (*f) () = $ac_func;
23728 #endif
23729 #ifdef __cplusplus
23730 }
23731 #endif
23732
23733 int
23734 main ()
23735 {
23736 return f != $ac_func;
23737   ;
23738   return 0;
23739 }
23740 _ACEOF
23741 rm -f conftest.$ac_objext conftest$ac_exeext
23742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23743   (eval $ac_link) 2>conftest.er1
23744   ac_status=$?
23745   grep -v '^ *+' conftest.er1 >conftest.err
23746   rm -f conftest.er1
23747   cat conftest.err >&5
23748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749   (exit $ac_status); } &&
23750          { ac_try='test -z "$ac_c_werror_flag"
23751                          || test ! -s conftest.err'
23752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23753   (eval $ac_try) 2>&5
23754   ac_status=$?
23755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756   (exit $ac_status); }; } &&
23757          { ac_try='test -s conftest$ac_exeext'
23758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23759   (eval $ac_try) 2>&5
23760   ac_status=$?
23761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762   (exit $ac_status); }; }; then
23763   eval "$as_ac_var=yes"
23764 else
23765   echo "$as_me: failed program was:" >&5
23766 sed 's/^/| /' conftest.$ac_ext >&5
23767
23768 eval "$as_ac_var=no"
23769 fi
23770 rm -f conftest.err conftest.$ac_objext \
23771       conftest$ac_exeext conftest.$ac_ext
23772 fi
23773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23775 if test `eval echo '${'$as_ac_var'}'` = yes; then
23776   cat >>confdefs.h <<_ACEOF
23777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23778 _ACEOF
23779
23780 fi
23781 done
23782
23783
23784
23785
23786 for ac_func in pthread_kill_other_threads_np
23787 do
23788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23789 echo "$as_me:$LINENO: checking for $ac_func" >&5
23790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23791 if eval "test \"\${$as_ac_var+set}\" = set"; then
23792   echo $ECHO_N "(cached) $ECHO_C" >&6
23793 else
23794   cat >conftest.$ac_ext <<_ACEOF
23795 /* confdefs.h.  */
23796 _ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h.  */
23800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23802 #define $ac_func innocuous_$ac_func
23803
23804 /* System header to define __stub macros and hopefully few prototypes,
23805     which can conflict with char $ac_func (); below.
23806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23807     <limits.h> exists even on freestanding compilers.  */
23808
23809 #ifdef __STDC__
23810 # include <limits.h>
23811 #else
23812 # include <assert.h>
23813 #endif
23814
23815 #undef $ac_func
23816
23817 /* Override any gcc2 internal prototype to avoid an error.  */
23818 #ifdef __cplusplus
23819 extern "C"
23820 {
23821 #endif
23822 /* We use char because int might match the return type of a gcc2
23823    builtin and then its argument prototype would still apply.  */
23824 char $ac_func ();
23825 /* The GNU C library defines this for functions which it implements
23826     to always fail with ENOSYS.  Some functions are actually named
23827     something starting with __ and the normal name is an alias.  */
23828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23829 choke me
23830 #else
23831 char (*f) () = $ac_func;
23832 #endif
23833 #ifdef __cplusplus
23834 }
23835 #endif
23836
23837 int
23838 main ()
23839 {
23840 return f != $ac_func;
23841   ;
23842   return 0;
23843 }
23844 _ACEOF
23845 rm -f conftest.$ac_objext conftest$ac_exeext
23846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23847   (eval $ac_link) 2>conftest.er1
23848   ac_status=$?
23849   grep -v '^ *+' conftest.er1 >conftest.err
23850   rm -f conftest.er1
23851   cat conftest.err >&5
23852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853   (exit $ac_status); } &&
23854          { ac_try='test -z "$ac_c_werror_flag"
23855                          || test ! -s conftest.err'
23856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857   (eval $ac_try) 2>&5
23858   ac_status=$?
23859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860   (exit $ac_status); }; } &&
23861          { ac_try='test -s conftest$ac_exeext'
23862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863   (eval $ac_try) 2>&5
23864   ac_status=$?
23865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866   (exit $ac_status); }; }; then
23867   eval "$as_ac_var=yes"
23868 else
23869   echo "$as_me: failed program was:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23871
23872 eval "$as_ac_var=no"
23873 fi
23874 rm -f conftest.err conftest.$ac_objext \
23875       conftest$ac_exeext conftest.$ac_ext
23876 fi
23877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23879 if test `eval echo '${'$as_ac_var'}'` = yes; then
23880   cat >>confdefs.h <<_ACEOF
23881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23882 _ACEOF
23883
23884 fi
23885 done
23886
23887         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
23888 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
23889 if test "${ol_cv_sys_linux_threads+set}" = set; then
23890   echo $ECHO_N "(cached) $ECHO_C" >&6
23891 else
23892   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
23893 fi
23894 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
23895 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
23896
23897
23898
23899
23900         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
23901 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
23902 if test "${ol_cv_linux_threads+set}" = set; then
23903   echo $ECHO_N "(cached) $ECHO_C" >&6
23904 else
23905
23906                 if test $ol_cv_header_linux_threads = yes &&
23907                    test $ol_cv_sys_linux_threads = yes; then
23908                         ol_cv_linux_threads=yes
23909                 elif test $ol_cv_header_linux_threads = no &&
23910                      test $ol_cv_sys_linux_threads = no; then
23911                         ol_cv_linux_threads=no
23912                 else
23913                         ol_cv_linux_threads=error
23914                 fi
23915
23916 fi
23917 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
23918 echo "${ECHO_T}$ol_cv_linux_threads" >&6
23919
23920
23921                         if test $ol_cv_linux_threads = error; then
23922                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
23923 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
23924    { (exit 1); exit 1; }; };
23925                         fi
23926
23927                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
23928 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
23929 if test "${ol_cv_pthread_create_works+set}" = set; then
23930   echo $ECHO_N "(cached) $ECHO_C" >&6
23931 else
23932
23933                         if test "$cross_compiling" = yes; then
23934                                 ol_cv_pthread_create_works=yes
23935 else
23936   cat >conftest.$ac_ext <<_ACEOF
23937 /* confdefs.h.  */
23938 _ACEOF
23939 cat confdefs.h >>conftest.$ac_ext
23940 cat >>conftest.$ac_ext <<_ACEOF
23941 /* end confdefs.h.  */
23942
23943 /* pthread test headers */
23944 #include <pthread.h>
23945 #if HAVE_PTHREADS < 7
23946 #include <errno.h>
23947 #endif
23948 #ifndef NULL
23949 #define NULL (void*)0
23950 #endif
23951
23952 static void *task(p)
23953         void *p;
23954 {
23955         return (void *) (p == NULL);
23956 }
23957
23958
23959 int main(argc, argv)
23960         int argc;
23961         char **argv;
23962 {
23963
23964         /* pthread test function */
23965 #ifndef PTHREAD_CREATE_DETACHED
23966 #define PTHREAD_CREATE_DETACHED 1
23967 #endif
23968         pthread_t t;
23969         int status;
23970         int detach = PTHREAD_CREATE_DETACHED;
23971
23972 #if HAVE_PTHREADS > 4
23973         /* Final pthreads */
23974         pthread_attr_t attr;
23975
23976         status = pthread_attr_init(&attr);
23977         if( status ) return status;
23978
23979 #if HAVE_PTHREADS < 7
23980         status = pthread_attr_setdetachstate(&attr, &detach);
23981         if( status < 0 ) status = errno;
23982 #else
23983         status = pthread_attr_setdetachstate(&attr, detach);
23984 #endif
23985         if( status ) return status;
23986         status = pthread_create( &t, &attr, task, NULL );
23987 #if HAVE_PTHREADS < 7
23988         if( status < 0 ) status = errno;
23989 #endif
23990         if( status ) return status;
23991 #else
23992         /* Draft 4 pthreads */
23993         status = pthread_create( &t, pthread_attr_default, task, NULL );
23994         if( status ) return errno;
23995
23996         /* give thread a chance to complete */
23997         /* it should remain joinable and hence detachable */
23998         sleep( 1 );
23999
24000         status = pthread_detach( &t );
24001         if( status ) return errno;
24002 #endif
24003
24004 #ifdef HAVE_LINUX_THREADS
24005         pthread_kill_other_threads_np();
24006 #endif
24007
24008         return 0;
24009
24010 }
24011
24012 _ACEOF
24013 rm -f conftest$ac_exeext
24014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24015   (eval $ac_link) 2>&5
24016   ac_status=$?
24017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24020   (eval $ac_try) 2>&5
24021   ac_status=$?
24022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023   (exit $ac_status); }; }; then
24024   ol_cv_pthread_create_works=yes
24025 else
24026   echo "$as_me: program exited with status $ac_status" >&5
24027 echo "$as_me: failed program was:" >&5
24028 sed 's/^/| /' conftest.$ac_ext >&5
24029
24030 ( exit $ac_status )
24031 ol_cv_pthread_create_works=no
24032 fi
24033 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24034 fi
24035 fi
24036 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24037 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24038
24039                         if test $ol_cv_pthread_create_works = no ; then
24040                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24041 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24042    { (exit 1); exit 1; }; }
24043                         fi
24044
24045                         ol_replace_broken_yield=no
24046
24047                         if test $ol_replace_broken_yield = yes ; then
24048
24049 cat >>confdefs.h <<\_ACEOF
24050 #define REPLACE_BROKEN_YIELD 1
24051 _ACEOF
24052
24053                         fi
24054
24055                                                 if test $ol_with_yielding_select = auto ; then
24056                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24057 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24058 if test "${ol_cv_pthread_select_yields+set}" = set; then
24059   echo $ECHO_N "(cached) $ECHO_C" >&6
24060 else
24061
24062                                 if test "$cross_compiling" = yes; then
24063   ol_cv_pthread_select_yields=cross
24064 else
24065   cat >conftest.$ac_ext <<_ACEOF
24066 /* confdefs.h.  */
24067 _ACEOF
24068 cat confdefs.h >>conftest.$ac_ext
24069 cat >>conftest.$ac_ext <<_ACEOF
24070 /* end confdefs.h.  */
24071
24072 #include <sys/types.h>
24073 #include <sys/time.h>
24074 #include <unistd.h>
24075 #include <pthread.h>
24076 #ifndef NULL
24077 #define NULL (void*) 0
24078 #endif
24079
24080 static int fildes[2];
24081
24082 static void *task(p)
24083         void *p;
24084 {
24085         int i;
24086         struct timeval tv;
24087
24088         fd_set rfds;
24089
24090         tv.tv_sec=10;
24091         tv.tv_usec=0;
24092
24093         FD_ZERO(&rfds);
24094         FD_SET(fildes[0], &rfds);
24095
24096         /* we're not interested in any fds */
24097         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24098
24099         if(i < 0) {
24100                 perror("select");
24101                 exit(10);
24102         }
24103
24104         exit(0); /* if we exit here, the select blocked the whole process */
24105 }
24106
24107 int main(argc, argv)
24108         int argc;
24109         char **argv;
24110 {
24111         pthread_t t;
24112
24113         /* create a pipe to select */
24114         if(pipe(&fildes[0])) {
24115                 perror("select");
24116                 exit(1);
24117         }
24118
24119 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24120         (void) pthread_setconcurrency(2);
24121 #else
24122 #ifdef HAVE_THR_SETCONCURRENCY
24123         /* Set Solaris LWP concurrency to 2 */
24124         thr_setconcurrency(2);
24125 #endif
24126 #endif
24127
24128 #if HAVE_PTHREADS < 6
24129         pthread_create(&t, pthread_attr_default, task, NULL);
24130 #else
24131         pthread_create(&t, NULL, task, NULL);
24132 #endif
24133
24134         /* make sure task runs first */
24135 #if HAVE_THR_YIELD
24136         thr_yield();
24137 #elif defined( HAVE_SCHED_YIELD )
24138         sched_yield();
24139 #elif defined( HAVE_PTHREAD_YIELD )
24140         pthread_yield();
24141 #endif
24142
24143         exit(2);
24144 }
24145 _ACEOF
24146 rm -f conftest$ac_exeext
24147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24148   (eval $ac_link) 2>&5
24149   ac_status=$?
24150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153   (eval $ac_try) 2>&5
24154   ac_status=$?
24155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156   (exit $ac_status); }; }; then
24157   ol_cv_pthread_select_yields=no
24158 else
24159   echo "$as_me: program exited with status $ac_status" >&5
24160 echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24162
24163 ( exit $ac_status )
24164 ol_cv_pthread_select_yields=yes
24165 fi
24166 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24167 fi
24168 fi
24169 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24170 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24171
24172                                 if test $ol_cv_pthread_select_yields = cross ; then
24173                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24174 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24175    { (exit 1); exit 1; }; }
24176                                 fi
24177
24178                                 if test $ol_cv_pthread_select_yields = yes ; then
24179                                         ol_with_yielding_select=yes
24180                                 fi
24181                         fi
24182
24183                                                 CPPFLAGS="$save_CPPFLAGS"
24184                         LIBS="$save_LIBS"
24185                 else
24186                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24187 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24188    { (exit 1); exit 1; }; }
24189                 fi
24190         fi
24191
24192         if test $ol_with_threads = posix ; then
24193                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24194 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24195    { (exit 1); exit 1; }; }
24196         fi
24197         ;;
24198 esac
24199
24200 case $ol_with_threads in auto | yes | mach)
24201
24202
24203
24204 for ac_header in mach/cthreads.h cthreads.h
24205 do
24206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24208   echo "$as_me:$LINENO: checking for $ac_header" >&5
24209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24211   echo $ECHO_N "(cached) $ECHO_C" >&6
24212 fi
24213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24215 else
24216   # Is the header compilable?
24217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24219 cat >conftest.$ac_ext <<_ACEOF
24220 /* confdefs.h.  */
24221 _ACEOF
24222 cat confdefs.h >>conftest.$ac_ext
24223 cat >>conftest.$ac_ext <<_ACEOF
24224 /* end confdefs.h.  */
24225 $ac_includes_default
24226 #include <$ac_header>
24227 _ACEOF
24228 rm -f conftest.$ac_objext
24229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24230   (eval $ac_compile) 2>conftest.er1
24231   ac_status=$?
24232   grep -v '^ *+' conftest.er1 >conftest.err
24233   rm -f conftest.er1
24234   cat conftest.err >&5
24235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236   (exit $ac_status); } &&
24237          { ac_try='test -z "$ac_c_werror_flag"
24238                          || test ! -s conftest.err'
24239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24240   (eval $ac_try) 2>&5
24241   ac_status=$?
24242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243   (exit $ac_status); }; } &&
24244          { ac_try='test -s conftest.$ac_objext'
24245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24246   (eval $ac_try) 2>&5
24247   ac_status=$?
24248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249   (exit $ac_status); }; }; then
24250   ac_header_compiler=yes
24251 else
24252   echo "$as_me: failed program was:" >&5
24253 sed 's/^/| /' conftest.$ac_ext >&5
24254
24255 ac_header_compiler=no
24256 fi
24257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24259 echo "${ECHO_T}$ac_header_compiler" >&6
24260
24261 # Is the header present?
24262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24264 cat >conftest.$ac_ext <<_ACEOF
24265 /* confdefs.h.  */
24266 _ACEOF
24267 cat confdefs.h >>conftest.$ac_ext
24268 cat >>conftest.$ac_ext <<_ACEOF
24269 /* end confdefs.h.  */
24270 #include <$ac_header>
24271 _ACEOF
24272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24273   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24274   ac_status=$?
24275   grep -v '^ *+' conftest.er1 >conftest.err
24276   rm -f conftest.er1
24277   cat conftest.err >&5
24278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279   (exit $ac_status); } >/dev/null; then
24280   if test -s conftest.err; then
24281     ac_cpp_err=$ac_c_preproc_warn_flag
24282     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24283   else
24284     ac_cpp_err=
24285   fi
24286 else
24287   ac_cpp_err=yes
24288 fi
24289 if test -z "$ac_cpp_err"; then
24290   ac_header_preproc=yes
24291 else
24292   echo "$as_me: failed program was:" >&5
24293 sed 's/^/| /' conftest.$ac_ext >&5
24294
24295   ac_header_preproc=no
24296 fi
24297 rm -f conftest.err conftest.$ac_ext
24298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24299 echo "${ECHO_T}$ac_header_preproc" >&6
24300
24301 # So?  What about this header?
24302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24303   yes:no: )
24304     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24308     ac_header_preproc=yes
24309     ;;
24310   no:yes:* )
24311     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24313     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24314 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24315     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24317     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24318 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24321     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24323     (
24324       cat <<\_ASBOX
24325 ## --------------------------------------------- ##
24326 ## Report this to <http://www.openldap.org/its/> ##
24327 ## --------------------------------------------- ##
24328 _ASBOX
24329     ) |
24330       sed "s/^/$as_me: WARNING:     /" >&2
24331     ;;
24332 esac
24333 echo "$as_me:$LINENO: checking for $ac_header" >&5
24334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24336   echo $ECHO_N "(cached) $ECHO_C" >&6
24337 else
24338   eval "$as_ac_Header=\$ac_header_preproc"
24339 fi
24340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24342
24343 fi
24344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24345   cat >>confdefs.h <<_ACEOF
24346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24347 _ACEOF
24348
24349 fi
24350
24351 done
24352
24353         if test $ac_cv_header_mach_cthreads_h = yes ; then
24354                 ol_with_threads=found
24355
24356                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24357 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24358 if test "${ac_cv_func_cthread_fork+set}" = set; then
24359   echo $ECHO_N "(cached) $ECHO_C" >&6
24360 else
24361   cat >conftest.$ac_ext <<_ACEOF
24362 /* confdefs.h.  */
24363 _ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h.  */
24367 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24369 #define cthread_fork innocuous_cthread_fork
24370
24371 /* System header to define __stub macros and hopefully few prototypes,
24372     which can conflict with char cthread_fork (); below.
24373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24374     <limits.h> exists even on freestanding compilers.  */
24375
24376 #ifdef __STDC__
24377 # include <limits.h>
24378 #else
24379 # include <assert.h>
24380 #endif
24381
24382 #undef cthread_fork
24383
24384 /* Override any gcc2 internal prototype to avoid an error.  */
24385 #ifdef __cplusplus
24386 extern "C"
24387 {
24388 #endif
24389 /* We use char because int might match the return type of a gcc2
24390    builtin and then its argument prototype would still apply.  */
24391 char cthread_fork ();
24392 /* The GNU C library defines this for functions which it implements
24393     to always fail with ENOSYS.  Some functions are actually named
24394     something starting with __ and the normal name is an alias.  */
24395 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24396 choke me
24397 #else
24398 char (*f) () = cthread_fork;
24399 #endif
24400 #ifdef __cplusplus
24401 }
24402 #endif
24403
24404 int
24405 main ()
24406 {
24407 return f != cthread_fork;
24408   ;
24409   return 0;
24410 }
24411 _ACEOF
24412 rm -f conftest.$ac_objext conftest$ac_exeext
24413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24414   (eval $ac_link) 2>conftest.er1
24415   ac_status=$?
24416   grep -v '^ *+' conftest.er1 >conftest.err
24417   rm -f conftest.er1
24418   cat conftest.err >&5
24419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420   (exit $ac_status); } &&
24421          { ac_try='test -z "$ac_c_werror_flag"
24422                          || test ! -s conftest.err'
24423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24424   (eval $ac_try) 2>&5
24425   ac_status=$?
24426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427   (exit $ac_status); }; } &&
24428          { ac_try='test -s conftest$ac_exeext'
24429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24430   (eval $ac_try) 2>&5
24431   ac_status=$?
24432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433   (exit $ac_status); }; }; then
24434   ac_cv_func_cthread_fork=yes
24435 else
24436   echo "$as_me: failed program was:" >&5
24437 sed 's/^/| /' conftest.$ac_ext >&5
24438
24439 ac_cv_func_cthread_fork=no
24440 fi
24441 rm -f conftest.err conftest.$ac_objext \
24442       conftest$ac_exeext conftest.$ac_ext
24443 fi
24444 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24445 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24446 if test $ac_cv_func_cthread_fork = yes; then
24447   ol_link_threads=yes
24448 fi
24449
24450
24451                 if test $ol_link_threads = no ; then
24452                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
24453 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
24454 if test "${ol_cv_cthread_all_load+set}" = set; then
24455   echo $ECHO_N "(cached) $ECHO_C" >&6
24456 else
24457
24458                                                                 save_LIBS="$LIBS"
24459                                 LIBS="-all_load $LIBS"
24460                                 cat >conftest.$ac_ext <<_ACEOF
24461 /* confdefs.h.  */
24462 _ACEOF
24463 cat confdefs.h >>conftest.$ac_ext
24464 cat >>conftest.$ac_ext <<_ACEOF
24465 /* end confdefs.h.  */
24466 #include <mach/cthreads.h>
24467 int
24468 main ()
24469 {
24470
24471                                         cthread_fork((void *)0, (void *)0);
24472
24473   ;
24474   return 0;
24475 }
24476 _ACEOF
24477 rm -f conftest.$ac_objext conftest$ac_exeext
24478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24479   (eval $ac_link) 2>conftest.er1
24480   ac_status=$?
24481   grep -v '^ *+' conftest.er1 >conftest.err
24482   rm -f conftest.er1
24483   cat conftest.err >&5
24484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485   (exit $ac_status); } &&
24486          { ac_try='test -z "$ac_c_werror_flag"
24487                          || test ! -s conftest.err'
24488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489   (eval $ac_try) 2>&5
24490   ac_status=$?
24491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492   (exit $ac_status); }; } &&
24493          { ac_try='test -s conftest$ac_exeext'
24494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24495   (eval $ac_try) 2>&5
24496   ac_status=$?
24497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24498   (exit $ac_status); }; }; then
24499   ol_cv_cthread_all_load=yes
24500 else
24501   echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24503
24504 ol_cv_cthread_all_load=no
24505 fi
24506 rm -f conftest.err conftest.$ac_objext \
24507       conftest$ac_exeext conftest.$ac_ext
24508                                                                 LIBS="$save_LIBS"
24509
24510 fi
24511 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
24512 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
24513
24514                         if test $ol_cv_cthread_all_load = yes ; then
24515                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
24516                                 ol_link_threads=mach
24517                                 ol_with_threads=found
24518                         fi
24519                 fi
24520
24521         elif test $ac_cv_header_cthreads_h = yes ; then
24522
24523                 ol_with_threads=found
24524
24525                                 save_LIBS="$LIBS"
24526                 LIBS="$LIBS -lthreads"
24527                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24528 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24529 if test "${ac_cv_func_cthread_fork+set}" = set; then
24530   echo $ECHO_N "(cached) $ECHO_C" >&6
24531 else
24532   cat >conftest.$ac_ext <<_ACEOF
24533 /* confdefs.h.  */
24534 _ACEOF
24535 cat confdefs.h >>conftest.$ac_ext
24536 cat >>conftest.$ac_ext <<_ACEOF
24537 /* end confdefs.h.  */
24538 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24540 #define cthread_fork innocuous_cthread_fork
24541
24542 /* System header to define __stub macros and hopefully few prototypes,
24543     which can conflict with char cthread_fork (); below.
24544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24545     <limits.h> exists even on freestanding compilers.  */
24546
24547 #ifdef __STDC__
24548 # include <limits.h>
24549 #else
24550 # include <assert.h>
24551 #endif
24552
24553 #undef cthread_fork
24554
24555 /* Override any gcc2 internal prototype to avoid an error.  */
24556 #ifdef __cplusplus
24557 extern "C"
24558 {
24559 #endif
24560 /* We use char because int might match the return type of a gcc2
24561    builtin and then its argument prototype would still apply.  */
24562 char cthread_fork ();
24563 /* The GNU C library defines this for functions which it implements
24564     to always fail with ENOSYS.  Some functions are actually named
24565     something starting with __ and the normal name is an alias.  */
24566 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24567 choke me
24568 #else
24569 char (*f) () = cthread_fork;
24570 #endif
24571 #ifdef __cplusplus
24572 }
24573 #endif
24574
24575 int
24576 main ()
24577 {
24578 return f != cthread_fork;
24579   ;
24580   return 0;
24581 }
24582 _ACEOF
24583 rm -f conftest.$ac_objext conftest$ac_exeext
24584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24585   (eval $ac_link) 2>conftest.er1
24586   ac_status=$?
24587   grep -v '^ *+' conftest.er1 >conftest.err
24588   rm -f conftest.er1
24589   cat conftest.err >&5
24590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591   (exit $ac_status); } &&
24592          { ac_try='test -z "$ac_c_werror_flag"
24593                          || test ! -s conftest.err'
24594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24595   (eval $ac_try) 2>&5
24596   ac_status=$?
24597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598   (exit $ac_status); }; } &&
24599          { ac_try='test -s conftest$ac_exeext'
24600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24601   (eval $ac_try) 2>&5
24602   ac_status=$?
24603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604   (exit $ac_status); }; }; then
24605   ac_cv_func_cthread_fork=yes
24606 else
24607   echo "$as_me: failed program was:" >&5
24608 sed 's/^/| /' conftest.$ac_ext >&5
24609
24610 ac_cv_func_cthread_fork=no
24611 fi
24612 rm -f conftest.err conftest.$ac_objext \
24613       conftest$ac_exeext conftest.$ac_ext
24614 fi
24615 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24616 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24617 if test $ac_cv_func_cthread_fork = yes; then
24618   ol_link_threads=yes
24619 fi
24620
24621                 LIBS="$save_LIBS"
24622
24623                 if test $ol_link_threads = yes ; then
24624                         LTHREAD_LIBS="-lthreads"
24625                         ol_link_threads=mach
24626                         ol_with_threads=found
24627                 else
24628                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24629 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24630    { (exit 1); exit 1; }; }
24631                 fi
24632
24633         elif test $ol_with_threads = mach ; then
24634                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
24635 echo "$as_me: error: could not locate Mach CThreads" >&2;}
24636    { (exit 1); exit 1; }; }
24637         fi
24638
24639         if test $ol_link_threads = mach ; then
24640
24641 cat >>confdefs.h <<\_ACEOF
24642 #define HAVE_MACH_CTHREADS 1
24643 _ACEOF
24644
24645         elif test $ol_with_threads = found ; then
24646                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24647 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24648    { (exit 1); exit 1; }; }
24649         fi
24650         ;;
24651 esac
24652
24653 case $ol_with_threads in auto | yes | pth)
24654
24655
24656 for ac_header in pth.h
24657 do
24658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24660   echo "$as_me:$LINENO: checking for $ac_header" >&5
24661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24663   echo $ECHO_N "(cached) $ECHO_C" >&6
24664 fi
24665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24667 else
24668   # Is the header compilable?
24669 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24671 cat >conftest.$ac_ext <<_ACEOF
24672 /* confdefs.h.  */
24673 _ACEOF
24674 cat confdefs.h >>conftest.$ac_ext
24675 cat >>conftest.$ac_ext <<_ACEOF
24676 /* end confdefs.h.  */
24677 $ac_includes_default
24678 #include <$ac_header>
24679 _ACEOF
24680 rm -f conftest.$ac_objext
24681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24682   (eval $ac_compile) 2>conftest.er1
24683   ac_status=$?
24684   grep -v '^ *+' conftest.er1 >conftest.err
24685   rm -f conftest.er1
24686   cat conftest.err >&5
24687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688   (exit $ac_status); } &&
24689          { ac_try='test -z "$ac_c_werror_flag"
24690                          || test ! -s conftest.err'
24691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24692   (eval $ac_try) 2>&5
24693   ac_status=$?
24694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695   (exit $ac_status); }; } &&
24696          { ac_try='test -s conftest.$ac_objext'
24697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24698   (eval $ac_try) 2>&5
24699   ac_status=$?
24700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701   (exit $ac_status); }; }; then
24702   ac_header_compiler=yes
24703 else
24704   echo "$as_me: failed program was:" >&5
24705 sed 's/^/| /' conftest.$ac_ext >&5
24706
24707 ac_header_compiler=no
24708 fi
24709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24711 echo "${ECHO_T}$ac_header_compiler" >&6
24712
24713 # Is the header present?
24714 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24716 cat >conftest.$ac_ext <<_ACEOF
24717 /* confdefs.h.  */
24718 _ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h.  */
24722 #include <$ac_header>
24723 _ACEOF
24724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24725   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24726   ac_status=$?
24727   grep -v '^ *+' conftest.er1 >conftest.err
24728   rm -f conftest.er1
24729   cat conftest.err >&5
24730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731   (exit $ac_status); } >/dev/null; then
24732   if test -s conftest.err; then
24733     ac_cpp_err=$ac_c_preproc_warn_flag
24734     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24735   else
24736     ac_cpp_err=
24737   fi
24738 else
24739   ac_cpp_err=yes
24740 fi
24741 if test -z "$ac_cpp_err"; then
24742   ac_header_preproc=yes
24743 else
24744   echo "$as_me: failed program was:" >&5
24745 sed 's/^/| /' conftest.$ac_ext >&5
24746
24747   ac_header_preproc=no
24748 fi
24749 rm -f conftest.err conftest.$ac_ext
24750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24751 echo "${ECHO_T}$ac_header_preproc" >&6
24752
24753 # So?  What about this header?
24754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24755   yes:no: )
24756     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24760     ac_header_preproc=yes
24761     ;;
24762   no:yes:* )
24763     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24765     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24766 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24767     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24769     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24770 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24773     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24775     (
24776       cat <<\_ASBOX
24777 ## --------------------------------------------- ##
24778 ## Report this to <http://www.openldap.org/its/> ##
24779 ## --------------------------------------------- ##
24780 _ASBOX
24781     ) |
24782       sed "s/^/$as_me: WARNING:     /" >&2
24783     ;;
24784 esac
24785 echo "$as_me:$LINENO: checking for $ac_header" >&5
24786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24788   echo $ECHO_N "(cached) $ECHO_C" >&6
24789 else
24790   eval "$as_ac_Header=\$ac_header_preproc"
24791 fi
24792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24794
24795 fi
24796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24797   cat >>confdefs.h <<_ACEOF
24798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24799 _ACEOF
24800
24801 fi
24802
24803 done
24804
24805
24806         if test $ac_cv_header_pth_h = yes ; then
24807                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
24808 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
24809 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
24810   echo $ECHO_N "(cached) $ECHO_C" >&6
24811 else
24812   ac_check_lib_save_LIBS=$LIBS
24813 LIBS="-lpth  $LIBS"
24814 cat >conftest.$ac_ext <<_ACEOF
24815 /* confdefs.h.  */
24816 _ACEOF
24817 cat confdefs.h >>conftest.$ac_ext
24818 cat >>conftest.$ac_ext <<_ACEOF
24819 /* end confdefs.h.  */
24820
24821 /* Override any gcc2 internal prototype to avoid an error.  */
24822 #ifdef __cplusplus
24823 extern "C"
24824 #endif
24825 /* We use char because int might match the return type of a gcc2
24826    builtin and then its argument prototype would still apply.  */
24827 char pth_version ();
24828 int
24829 main ()
24830 {
24831 pth_version ();
24832   ;
24833   return 0;
24834 }
24835 _ACEOF
24836 rm -f conftest.$ac_objext conftest$ac_exeext
24837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24838   (eval $ac_link) 2>conftest.er1
24839   ac_status=$?
24840   grep -v '^ *+' conftest.er1 >conftest.err
24841   rm -f conftest.er1
24842   cat conftest.err >&5
24843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844   (exit $ac_status); } &&
24845          { ac_try='test -z "$ac_c_werror_flag"
24846                          || test ! -s conftest.err'
24847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24848   (eval $ac_try) 2>&5
24849   ac_status=$?
24850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851   (exit $ac_status); }; } &&
24852          { ac_try='test -s conftest$ac_exeext'
24853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24854   (eval $ac_try) 2>&5
24855   ac_status=$?
24856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857   (exit $ac_status); }; }; then
24858   ac_cv_lib_pth_pth_version=yes
24859 else
24860   echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24862
24863 ac_cv_lib_pth_pth_version=no
24864 fi
24865 rm -f conftest.err conftest.$ac_objext \
24866       conftest$ac_exeext conftest.$ac_ext
24867 LIBS=$ac_check_lib_save_LIBS
24868 fi
24869 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
24870 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
24871 if test $ac_cv_lib_pth_pth_version = yes; then
24872   have_pth=yes
24873 else
24874   have_pth=no
24875 fi
24876
24877
24878                 if test $have_pth = yes ; then
24879
24880 cat >>confdefs.h <<\_ACEOF
24881 #define HAVE_GNU_PTH 1
24882 _ACEOF
24883
24884                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
24885                         ol_link_threads=pth
24886                         ol_with_threads=found
24887
24888                         if test $ol_with_yielding_select = auto ; then
24889                                 ol_with_yielding_select=yes
24890                         fi
24891                 fi
24892         fi
24893         ;;
24894 esac
24895
24896 case $ol_with_threads in auto | yes | lwp)
24897
24898
24899
24900 for ac_header in thread.h synch.h
24901 do
24902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24904   echo "$as_me:$LINENO: checking for $ac_header" >&5
24905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24907   echo $ECHO_N "(cached) $ECHO_C" >&6
24908 fi
24909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24911 else
24912   # Is the header compilable?
24913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24915 cat >conftest.$ac_ext <<_ACEOF
24916 /* confdefs.h.  */
24917 _ACEOF
24918 cat confdefs.h >>conftest.$ac_ext
24919 cat >>conftest.$ac_ext <<_ACEOF
24920 /* end confdefs.h.  */
24921 $ac_includes_default
24922 #include <$ac_header>
24923 _ACEOF
24924 rm -f conftest.$ac_objext
24925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24926   (eval $ac_compile) 2>conftest.er1
24927   ac_status=$?
24928   grep -v '^ *+' conftest.er1 >conftest.err
24929   rm -f conftest.er1
24930   cat conftest.err >&5
24931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932   (exit $ac_status); } &&
24933          { ac_try='test -z "$ac_c_werror_flag"
24934                          || test ! -s conftest.err'
24935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936   (eval $ac_try) 2>&5
24937   ac_status=$?
24938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); }; } &&
24940          { ac_try='test -s conftest.$ac_objext'
24941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24942   (eval $ac_try) 2>&5
24943   ac_status=$?
24944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945   (exit $ac_status); }; }; then
24946   ac_header_compiler=yes
24947 else
24948   echo "$as_me: failed program was:" >&5
24949 sed 's/^/| /' conftest.$ac_ext >&5
24950
24951 ac_header_compiler=no
24952 fi
24953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24955 echo "${ECHO_T}$ac_header_compiler" >&6
24956
24957 # Is the header present?
24958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24960 cat >conftest.$ac_ext <<_ACEOF
24961 /* confdefs.h.  */
24962 _ACEOF
24963 cat confdefs.h >>conftest.$ac_ext
24964 cat >>conftest.$ac_ext <<_ACEOF
24965 /* end confdefs.h.  */
24966 #include <$ac_header>
24967 _ACEOF
24968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24970   ac_status=$?
24971   grep -v '^ *+' conftest.er1 >conftest.err
24972   rm -f conftest.er1
24973   cat conftest.err >&5
24974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975   (exit $ac_status); } >/dev/null; then
24976   if test -s conftest.err; then
24977     ac_cpp_err=$ac_c_preproc_warn_flag
24978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24979   else
24980     ac_cpp_err=
24981   fi
24982 else
24983   ac_cpp_err=yes
24984 fi
24985 if test -z "$ac_cpp_err"; then
24986   ac_header_preproc=yes
24987 else
24988   echo "$as_me: failed program was:" >&5
24989 sed 's/^/| /' conftest.$ac_ext >&5
24990
24991   ac_header_preproc=no
24992 fi
24993 rm -f conftest.err conftest.$ac_ext
24994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24995 echo "${ECHO_T}$ac_header_preproc" >&6
24996
24997 # So?  What about this header?
24998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24999   yes:no: )
25000     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25004     ac_header_preproc=yes
25005     ;;
25006   no:yes:* )
25007     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25009     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25010 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25011     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25013     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25014 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25017     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25019     (
25020       cat <<\_ASBOX
25021 ## --------------------------------------------- ##
25022 ## Report this to <http://www.openldap.org/its/> ##
25023 ## --------------------------------------------- ##
25024 _ASBOX
25025     ) |
25026       sed "s/^/$as_me: WARNING:     /" >&2
25027     ;;
25028 esac
25029 echo "$as_me:$LINENO: checking for $ac_header" >&5
25030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25032   echo $ECHO_N "(cached) $ECHO_C" >&6
25033 else
25034   eval "$as_ac_Header=\$ac_header_preproc"
25035 fi
25036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25038
25039 fi
25040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25041   cat >>confdefs.h <<_ACEOF
25042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25043 _ACEOF
25044
25045 fi
25046
25047 done
25048
25049         if test $ac_cv_header_thread_h = yes &&
25050            test $ac_cv_header_synch_h = yes ; then
25051                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25052 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25053 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25054   echo $ECHO_N "(cached) $ECHO_C" >&6
25055 else
25056   ac_check_lib_save_LIBS=$LIBS
25057 LIBS="-lthread  $LIBS"
25058 cat >conftest.$ac_ext <<_ACEOF
25059 /* confdefs.h.  */
25060 _ACEOF
25061 cat confdefs.h >>conftest.$ac_ext
25062 cat >>conftest.$ac_ext <<_ACEOF
25063 /* end confdefs.h.  */
25064
25065 /* Override any gcc2 internal prototype to avoid an error.  */
25066 #ifdef __cplusplus
25067 extern "C"
25068 #endif
25069 /* We use char because int might match the return type of a gcc2
25070    builtin and then its argument prototype would still apply.  */
25071 char thr_create ();
25072 int
25073 main ()
25074 {
25075 thr_create ();
25076   ;
25077   return 0;
25078 }
25079 _ACEOF
25080 rm -f conftest.$ac_objext conftest$ac_exeext
25081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25082   (eval $ac_link) 2>conftest.er1
25083   ac_status=$?
25084   grep -v '^ *+' conftest.er1 >conftest.err
25085   rm -f conftest.er1
25086   cat conftest.err >&5
25087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088   (exit $ac_status); } &&
25089          { ac_try='test -z "$ac_c_werror_flag"
25090                          || test ! -s conftest.err'
25091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25092   (eval $ac_try) 2>&5
25093   ac_status=$?
25094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095   (exit $ac_status); }; } &&
25096          { ac_try='test -s conftest$ac_exeext'
25097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25098   (eval $ac_try) 2>&5
25099   ac_status=$?
25100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101   (exit $ac_status); }; }; then
25102   ac_cv_lib_thread_thr_create=yes
25103 else
25104   echo "$as_me: failed program was:" >&5
25105 sed 's/^/| /' conftest.$ac_ext >&5
25106
25107 ac_cv_lib_thread_thr_create=no
25108 fi
25109 rm -f conftest.err conftest.$ac_objext \
25110       conftest$ac_exeext conftest.$ac_ext
25111 LIBS=$ac_check_lib_save_LIBS
25112 fi
25113 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25114 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25115 if test $ac_cv_lib_thread_thr_create = yes; then
25116   have_thr=yes
25117 else
25118   have_thr=no
25119 fi
25120
25121
25122                 if test $have_thr = yes ; then
25123
25124 cat >>confdefs.h <<\_ACEOF
25125 #define HAVE_THR 1
25126 _ACEOF
25127
25128                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25129                         ol_link_threads=thr
25130
25131                         if test $ol_with_yielding_select = auto ; then
25132                                 ol_with_yielding_select=yes
25133                         fi
25134
25135
25136
25137 for ac_func in \
25138                                 thr_setconcurrency \
25139                                 thr_getconcurrency \
25140
25141 do
25142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25143 echo "$as_me:$LINENO: checking for $ac_func" >&5
25144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25145 if eval "test \"\${$as_ac_var+set}\" = set"; then
25146   echo $ECHO_N "(cached) $ECHO_C" >&6
25147 else
25148   cat >conftest.$ac_ext <<_ACEOF
25149 /* confdefs.h.  */
25150 _ACEOF
25151 cat confdefs.h >>conftest.$ac_ext
25152 cat >>conftest.$ac_ext <<_ACEOF
25153 /* end confdefs.h.  */
25154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25156 #define $ac_func innocuous_$ac_func
25157
25158 /* System header to define __stub macros and hopefully few prototypes,
25159     which can conflict with char $ac_func (); below.
25160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25161     <limits.h> exists even on freestanding compilers.  */
25162
25163 #ifdef __STDC__
25164 # include <limits.h>
25165 #else
25166 # include <assert.h>
25167 #endif
25168
25169 #undef $ac_func
25170
25171 /* Override any gcc2 internal prototype to avoid an error.  */
25172 #ifdef __cplusplus
25173 extern "C"
25174 {
25175 #endif
25176 /* We use char because int might match the return type of a gcc2
25177    builtin and then its argument prototype would still apply.  */
25178 char $ac_func ();
25179 /* The GNU C library defines this for functions which it implements
25180     to always fail with ENOSYS.  Some functions are actually named
25181     something starting with __ and the normal name is an alias.  */
25182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25183 choke me
25184 #else
25185 char (*f) () = $ac_func;
25186 #endif
25187 #ifdef __cplusplus
25188 }
25189 #endif
25190
25191 int
25192 main ()
25193 {
25194 return f != $ac_func;
25195   ;
25196   return 0;
25197 }
25198 _ACEOF
25199 rm -f conftest.$ac_objext conftest$ac_exeext
25200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25201   (eval $ac_link) 2>conftest.er1
25202   ac_status=$?
25203   grep -v '^ *+' conftest.er1 >conftest.err
25204   rm -f conftest.er1
25205   cat conftest.err >&5
25206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207   (exit $ac_status); } &&
25208          { ac_try='test -z "$ac_c_werror_flag"
25209                          || test ! -s conftest.err'
25210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211   (eval $ac_try) 2>&5
25212   ac_status=$?
25213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214   (exit $ac_status); }; } &&
25215          { ac_try='test -s conftest$ac_exeext'
25216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25217   (eval $ac_try) 2>&5
25218   ac_status=$?
25219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220   (exit $ac_status); }; }; then
25221   eval "$as_ac_var=yes"
25222 else
25223   echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25225
25226 eval "$as_ac_var=no"
25227 fi
25228 rm -f conftest.err conftest.$ac_objext \
25229       conftest$ac_exeext conftest.$ac_ext
25230 fi
25231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25233 if test `eval echo '${'$as_ac_var'}'` = yes; then
25234   cat >>confdefs.h <<_ACEOF
25235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25236 _ACEOF
25237
25238 fi
25239 done
25240
25241                 fi
25242         fi
25243
25244
25245 for ac_header in lwp/lwp.h
25246 do
25247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25249   echo "$as_me:$LINENO: checking for $ac_header" >&5
25250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25252   echo $ECHO_N "(cached) $ECHO_C" >&6
25253 fi
25254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25256 else
25257   # Is the header compilable?
25258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25260 cat >conftest.$ac_ext <<_ACEOF
25261 /* confdefs.h.  */
25262 _ACEOF
25263 cat confdefs.h >>conftest.$ac_ext
25264 cat >>conftest.$ac_ext <<_ACEOF
25265 /* end confdefs.h.  */
25266 $ac_includes_default
25267 #include <$ac_header>
25268 _ACEOF
25269 rm -f conftest.$ac_objext
25270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25271   (eval $ac_compile) 2>conftest.er1
25272   ac_status=$?
25273   grep -v '^ *+' conftest.er1 >conftest.err
25274   rm -f conftest.er1
25275   cat conftest.err >&5
25276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25277   (exit $ac_status); } &&
25278          { ac_try='test -z "$ac_c_werror_flag"
25279                          || test ! -s conftest.err'
25280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25281   (eval $ac_try) 2>&5
25282   ac_status=$?
25283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284   (exit $ac_status); }; } &&
25285          { ac_try='test -s conftest.$ac_objext'
25286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25287   (eval $ac_try) 2>&5
25288   ac_status=$?
25289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290   (exit $ac_status); }; }; then
25291   ac_header_compiler=yes
25292 else
25293   echo "$as_me: failed program was:" >&5
25294 sed 's/^/| /' conftest.$ac_ext >&5
25295
25296 ac_header_compiler=no
25297 fi
25298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25300 echo "${ECHO_T}$ac_header_compiler" >&6
25301
25302 # Is the header present?
25303 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25305 cat >conftest.$ac_ext <<_ACEOF
25306 /* confdefs.h.  */
25307 _ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h.  */
25311 #include <$ac_header>
25312 _ACEOF
25313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25314   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25315   ac_status=$?
25316   grep -v '^ *+' conftest.er1 >conftest.err
25317   rm -f conftest.er1
25318   cat conftest.err >&5
25319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320   (exit $ac_status); } >/dev/null; then
25321   if test -s conftest.err; then
25322     ac_cpp_err=$ac_c_preproc_warn_flag
25323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25324   else
25325     ac_cpp_err=
25326   fi
25327 else
25328   ac_cpp_err=yes
25329 fi
25330 if test -z "$ac_cpp_err"; then
25331   ac_header_preproc=yes
25332 else
25333   echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.$ac_ext >&5
25335
25336   ac_header_preproc=no
25337 fi
25338 rm -f conftest.err conftest.$ac_ext
25339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25340 echo "${ECHO_T}$ac_header_preproc" >&6
25341
25342 # So?  What about this header?
25343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25344   yes:no: )
25345     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25349     ac_header_preproc=yes
25350     ;;
25351   no:yes:* )
25352     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25354     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25355 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25356     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25358     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25359 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25362     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25364     (
25365       cat <<\_ASBOX
25366 ## --------------------------------------------- ##
25367 ## Report this to <http://www.openldap.org/its/> ##
25368 ## --------------------------------------------- ##
25369 _ASBOX
25370     ) |
25371       sed "s/^/$as_me: WARNING:     /" >&2
25372     ;;
25373 esac
25374 echo "$as_me:$LINENO: checking for $ac_header" >&5
25375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25377   echo $ECHO_N "(cached) $ECHO_C" >&6
25378 else
25379   eval "$as_ac_Header=\$ac_header_preproc"
25380 fi
25381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25383
25384 fi
25385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25386   cat >>confdefs.h <<_ACEOF
25387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25388 _ACEOF
25389
25390 fi
25391
25392 done
25393
25394         if test $ac_cv_header_lwp_lwp_h = yes ; then
25395                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
25396 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
25397 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
25398   echo $ECHO_N "(cached) $ECHO_C" >&6
25399 else
25400   ac_check_lib_save_LIBS=$LIBS
25401 LIBS="-llwp  $LIBS"
25402 cat >conftest.$ac_ext <<_ACEOF
25403 /* confdefs.h.  */
25404 _ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h.  */
25408
25409 /* Override any gcc2 internal prototype to avoid an error.  */
25410 #ifdef __cplusplus
25411 extern "C"
25412 #endif
25413 /* We use char because int might match the return type of a gcc2
25414    builtin and then its argument prototype would still apply.  */
25415 char lwp_create ();
25416 int
25417 main ()
25418 {
25419 lwp_create ();
25420   ;
25421   return 0;
25422 }
25423 _ACEOF
25424 rm -f conftest.$ac_objext conftest$ac_exeext
25425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25426   (eval $ac_link) 2>conftest.er1
25427   ac_status=$?
25428   grep -v '^ *+' conftest.er1 >conftest.err
25429   rm -f conftest.er1
25430   cat conftest.err >&5
25431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432   (exit $ac_status); } &&
25433          { ac_try='test -z "$ac_c_werror_flag"
25434                          || test ! -s conftest.err'
25435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436   (eval $ac_try) 2>&5
25437   ac_status=$?
25438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439   (exit $ac_status); }; } &&
25440          { ac_try='test -s conftest$ac_exeext'
25441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442   (eval $ac_try) 2>&5
25443   ac_status=$?
25444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445   (exit $ac_status); }; }; then
25446   ac_cv_lib_lwp_lwp_create=yes
25447 else
25448   echo "$as_me: failed program was:" >&5
25449 sed 's/^/| /' conftest.$ac_ext >&5
25450
25451 ac_cv_lib_lwp_lwp_create=no
25452 fi
25453 rm -f conftest.err conftest.$ac_objext \
25454       conftest$ac_exeext conftest.$ac_ext
25455 LIBS=$ac_check_lib_save_LIBS
25456 fi
25457 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
25458 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
25459 if test $ac_cv_lib_lwp_lwp_create = yes; then
25460   have_lwp=yes
25461 else
25462   have_lwp=no
25463 fi
25464
25465
25466                 if test $have_lwp = yes ; then
25467
25468 cat >>confdefs.h <<\_ACEOF
25469 #define HAVE_LWP 1
25470 _ACEOF
25471
25472                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
25473                         ol_link_threads=lwp
25474
25475                         if test $ol_with_yielding_select = auto ; then
25476                                 ol_with_yielding_select=no
25477                         fi
25478                 fi
25479         fi
25480         ;;
25481 esac
25482
25483 if test $ol_with_yielding_select = yes ; then
25484
25485 cat >>confdefs.h <<\_ACEOF
25486 #define HAVE_YIELDING_SELECT 1
25487 _ACEOF
25488
25489 fi
25490
25491 if test $ol_with_threads = manual ; then
25492                 ol_link_threads=yes
25493
25494         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
25495 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
25496
25497
25498
25499 for ac_header in pthread.h sched.h
25500 do
25501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25503   echo "$as_me:$LINENO: checking for $ac_header" >&5
25504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25506   echo $ECHO_N "(cached) $ECHO_C" >&6
25507 fi
25508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25510 else
25511   # Is the header compilable?
25512 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25514 cat >conftest.$ac_ext <<_ACEOF
25515 /* confdefs.h.  */
25516 _ACEOF
25517 cat confdefs.h >>conftest.$ac_ext
25518 cat >>conftest.$ac_ext <<_ACEOF
25519 /* end confdefs.h.  */
25520 $ac_includes_default
25521 #include <$ac_header>
25522 _ACEOF
25523 rm -f conftest.$ac_objext
25524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25525   (eval $ac_compile) 2>conftest.er1
25526   ac_status=$?
25527   grep -v '^ *+' conftest.er1 >conftest.err
25528   rm -f conftest.er1
25529   cat conftest.err >&5
25530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531   (exit $ac_status); } &&
25532          { ac_try='test -z "$ac_c_werror_flag"
25533                          || test ! -s conftest.err'
25534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25535   (eval $ac_try) 2>&5
25536   ac_status=$?
25537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538   (exit $ac_status); }; } &&
25539          { ac_try='test -s conftest.$ac_objext'
25540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25541   (eval $ac_try) 2>&5
25542   ac_status=$?
25543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544   (exit $ac_status); }; }; then
25545   ac_header_compiler=yes
25546 else
25547   echo "$as_me: failed program was:" >&5
25548 sed 's/^/| /' conftest.$ac_ext >&5
25549
25550 ac_header_compiler=no
25551 fi
25552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25554 echo "${ECHO_T}$ac_header_compiler" >&6
25555
25556 # Is the header present?
25557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25559 cat >conftest.$ac_ext <<_ACEOF
25560 /* confdefs.h.  */
25561 _ACEOF
25562 cat confdefs.h >>conftest.$ac_ext
25563 cat >>conftest.$ac_ext <<_ACEOF
25564 /* end confdefs.h.  */
25565 #include <$ac_header>
25566 _ACEOF
25567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25568   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25569   ac_status=$?
25570   grep -v '^ *+' conftest.er1 >conftest.err
25571   rm -f conftest.er1
25572   cat conftest.err >&5
25573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574   (exit $ac_status); } >/dev/null; then
25575   if test -s conftest.err; then
25576     ac_cpp_err=$ac_c_preproc_warn_flag
25577     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25578   else
25579     ac_cpp_err=
25580   fi
25581 else
25582   ac_cpp_err=yes
25583 fi
25584 if test -z "$ac_cpp_err"; then
25585   ac_header_preproc=yes
25586 else
25587   echo "$as_me: failed program was:" >&5
25588 sed 's/^/| /' conftest.$ac_ext >&5
25589
25590   ac_header_preproc=no
25591 fi
25592 rm -f conftest.err conftest.$ac_ext
25593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25594 echo "${ECHO_T}$ac_header_preproc" >&6
25595
25596 # So?  What about this header?
25597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25598   yes:no: )
25599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25603     ac_header_preproc=yes
25604     ;;
25605   no:yes:* )
25606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25608     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25609 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25610     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25612     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25613 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25616     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25618     (
25619       cat <<\_ASBOX
25620 ## --------------------------------------------- ##
25621 ## Report this to <http://www.openldap.org/its/> ##
25622 ## --------------------------------------------- ##
25623 _ASBOX
25624     ) |
25625       sed "s/^/$as_me: WARNING:     /" >&2
25626     ;;
25627 esac
25628 echo "$as_me:$LINENO: checking for $ac_header" >&5
25629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25631   echo $ECHO_N "(cached) $ECHO_C" >&6
25632 else
25633   eval "$as_ac_Header=\$ac_header_preproc"
25634 fi
25635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25637
25638 fi
25639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25640   cat >>confdefs.h <<_ACEOF
25641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25642 _ACEOF
25643
25644 fi
25645
25646 done
25647
25648
25649
25650 for ac_func in sched_yield pthread_yield
25651 do
25652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25653 echo "$as_me:$LINENO: checking for $ac_func" >&5
25654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25655 if eval "test \"\${$as_ac_var+set}\" = set"; then
25656   echo $ECHO_N "(cached) $ECHO_C" >&6
25657 else
25658   cat >conftest.$ac_ext <<_ACEOF
25659 /* confdefs.h.  */
25660 _ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h.  */
25664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25666 #define $ac_func innocuous_$ac_func
25667
25668 /* System header to define __stub macros and hopefully few prototypes,
25669     which can conflict with char $ac_func (); below.
25670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25671     <limits.h> exists even on freestanding compilers.  */
25672
25673 #ifdef __STDC__
25674 # include <limits.h>
25675 #else
25676 # include <assert.h>
25677 #endif
25678
25679 #undef $ac_func
25680
25681 /* Override any gcc2 internal prototype to avoid an error.  */
25682 #ifdef __cplusplus
25683 extern "C"
25684 {
25685 #endif
25686 /* We use char because int might match the return type of a gcc2
25687    builtin and then its argument prototype would still apply.  */
25688 char $ac_func ();
25689 /* The GNU C library defines this for functions which it implements
25690     to always fail with ENOSYS.  Some functions are actually named
25691     something starting with __ and the normal name is an alias.  */
25692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25693 choke me
25694 #else
25695 char (*f) () = $ac_func;
25696 #endif
25697 #ifdef __cplusplus
25698 }
25699 #endif
25700
25701 int
25702 main ()
25703 {
25704 return f != $ac_func;
25705   ;
25706   return 0;
25707 }
25708 _ACEOF
25709 rm -f conftest.$ac_objext conftest$ac_exeext
25710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25711   (eval $ac_link) 2>conftest.er1
25712   ac_status=$?
25713   grep -v '^ *+' conftest.er1 >conftest.err
25714   rm -f conftest.er1
25715   cat conftest.err >&5
25716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717   (exit $ac_status); } &&
25718          { ac_try='test -z "$ac_c_werror_flag"
25719                          || test ! -s conftest.err'
25720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25721   (eval $ac_try) 2>&5
25722   ac_status=$?
25723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724   (exit $ac_status); }; } &&
25725          { ac_try='test -s conftest$ac_exeext'
25726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25727   (eval $ac_try) 2>&5
25728   ac_status=$?
25729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730   (exit $ac_status); }; }; then
25731   eval "$as_ac_var=yes"
25732 else
25733   echo "$as_me: failed program was:" >&5
25734 sed 's/^/| /' conftest.$ac_ext >&5
25735
25736 eval "$as_ac_var=no"
25737 fi
25738 rm -f conftest.err conftest.$ac_objext \
25739       conftest$ac_exeext conftest.$ac_ext
25740 fi
25741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25743 if test `eval echo '${'$as_ac_var'}'` = yes; then
25744   cat >>confdefs.h <<_ACEOF
25745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25746 _ACEOF
25747
25748 fi
25749 done
25750
25751
25752         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
25753 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
25754 if test "${ol_cv_header_linux_threads+set}" = set; then
25755   echo $ECHO_N "(cached) $ECHO_C" >&6
25756 else
25757   cat >conftest.$ac_ext <<_ACEOF
25758 /* confdefs.h.  */
25759 _ACEOF
25760 cat confdefs.h >>conftest.$ac_ext
25761 cat >>conftest.$ac_ext <<_ACEOF
25762 /* end confdefs.h.  */
25763 #include <pthread.h>
25764 _ACEOF
25765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25766   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
25767   ol_cv_header_linux_threads=yes
25768 else
25769   ol_cv_header_linux_threads=no
25770 fi
25771 rm -f conftest*
25772
25773
25774 fi
25775 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
25776 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
25777         if test $ol_cv_header_linux_threads = yes; then
25778
25779 cat >>confdefs.h <<\_ACEOF
25780 #define HAVE_LINUX_THREADS 1
25781 _ACEOF
25782
25783         fi
25784
25785
25786
25787 for ac_header in mach/cthreads.h
25788 do
25789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25791   echo "$as_me:$LINENO: checking for $ac_header" >&5
25792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25794   echo $ECHO_N "(cached) $ECHO_C" >&6
25795 fi
25796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25798 else
25799   # Is the header compilable?
25800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25802 cat >conftest.$ac_ext <<_ACEOF
25803 /* confdefs.h.  */
25804 _ACEOF
25805 cat confdefs.h >>conftest.$ac_ext
25806 cat >>conftest.$ac_ext <<_ACEOF
25807 /* end confdefs.h.  */
25808 $ac_includes_default
25809 #include <$ac_header>
25810 _ACEOF
25811 rm -f conftest.$ac_objext
25812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25813   (eval $ac_compile) 2>conftest.er1
25814   ac_status=$?
25815   grep -v '^ *+' conftest.er1 >conftest.err
25816   rm -f conftest.er1
25817   cat conftest.err >&5
25818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819   (exit $ac_status); } &&
25820          { ac_try='test -z "$ac_c_werror_flag"
25821                          || test ! -s conftest.err'
25822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25823   (eval $ac_try) 2>&5
25824   ac_status=$?
25825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826   (exit $ac_status); }; } &&
25827          { ac_try='test -s conftest.$ac_objext'
25828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25829   (eval $ac_try) 2>&5
25830   ac_status=$?
25831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25832   (exit $ac_status); }; }; then
25833   ac_header_compiler=yes
25834 else
25835   echo "$as_me: failed program was:" >&5
25836 sed 's/^/| /' conftest.$ac_ext >&5
25837
25838 ac_header_compiler=no
25839 fi
25840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25842 echo "${ECHO_T}$ac_header_compiler" >&6
25843
25844 # Is the header present?
25845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25847 cat >conftest.$ac_ext <<_ACEOF
25848 /* confdefs.h.  */
25849 _ACEOF
25850 cat confdefs.h >>conftest.$ac_ext
25851 cat >>conftest.$ac_ext <<_ACEOF
25852 /* end confdefs.h.  */
25853 #include <$ac_header>
25854 _ACEOF
25855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25856   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25857   ac_status=$?
25858   grep -v '^ *+' conftest.er1 >conftest.err
25859   rm -f conftest.er1
25860   cat conftest.err >&5
25861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862   (exit $ac_status); } >/dev/null; then
25863   if test -s conftest.err; then
25864     ac_cpp_err=$ac_c_preproc_warn_flag
25865     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25866   else
25867     ac_cpp_err=
25868   fi
25869 else
25870   ac_cpp_err=yes
25871 fi
25872 if test -z "$ac_cpp_err"; then
25873   ac_header_preproc=yes
25874 else
25875   echo "$as_me: failed program was:" >&5
25876 sed 's/^/| /' conftest.$ac_ext >&5
25877
25878   ac_header_preproc=no
25879 fi
25880 rm -f conftest.err conftest.$ac_ext
25881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25882 echo "${ECHO_T}$ac_header_preproc" >&6
25883
25884 # So?  What about this header?
25885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25886   yes:no: )
25887     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25891     ac_header_preproc=yes
25892     ;;
25893   no:yes:* )
25894     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25896     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25897 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25898     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25900     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25901 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25904     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25906     (
25907       cat <<\_ASBOX
25908 ## --------------------------------------------- ##
25909 ## Report this to <http://www.openldap.org/its/> ##
25910 ## --------------------------------------------- ##
25911 _ASBOX
25912     ) |
25913       sed "s/^/$as_me: WARNING:     /" >&2
25914     ;;
25915 esac
25916 echo "$as_me:$LINENO: checking for $ac_header" >&5
25917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25919   echo $ECHO_N "(cached) $ECHO_C" >&6
25920 else
25921   eval "$as_ac_Header=\$ac_header_preproc"
25922 fi
25923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25925
25926 fi
25927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25928   cat >>confdefs.h <<_ACEOF
25929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25930 _ACEOF
25931
25932 fi
25933
25934 done
25935
25936
25937 for ac_header in lwp/lwp.h
25938 do
25939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25941   echo "$as_me:$LINENO: checking for $ac_header" >&5
25942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25944   echo $ECHO_N "(cached) $ECHO_C" >&6
25945 fi
25946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25948 else
25949   # Is the header compilable?
25950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25952 cat >conftest.$ac_ext <<_ACEOF
25953 /* confdefs.h.  */
25954 _ACEOF
25955 cat confdefs.h >>conftest.$ac_ext
25956 cat >>conftest.$ac_ext <<_ACEOF
25957 /* end confdefs.h.  */
25958 $ac_includes_default
25959 #include <$ac_header>
25960 _ACEOF
25961 rm -f conftest.$ac_objext
25962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25963   (eval $ac_compile) 2>conftest.er1
25964   ac_status=$?
25965   grep -v '^ *+' conftest.er1 >conftest.err
25966   rm -f conftest.er1
25967   cat conftest.err >&5
25968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969   (exit $ac_status); } &&
25970          { ac_try='test -z "$ac_c_werror_flag"
25971                          || test ! -s conftest.err'
25972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973   (eval $ac_try) 2>&5
25974   ac_status=$?
25975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976   (exit $ac_status); }; } &&
25977          { ac_try='test -s conftest.$ac_objext'
25978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25979   (eval $ac_try) 2>&5
25980   ac_status=$?
25981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982   (exit $ac_status); }; }; then
25983   ac_header_compiler=yes
25984 else
25985   echo "$as_me: failed program was:" >&5
25986 sed 's/^/| /' conftest.$ac_ext >&5
25987
25988 ac_header_compiler=no
25989 fi
25990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25992 echo "${ECHO_T}$ac_header_compiler" >&6
25993
25994 # Is the header present?
25995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25997 cat >conftest.$ac_ext <<_ACEOF
25998 /* confdefs.h.  */
25999 _ACEOF
26000 cat confdefs.h >>conftest.$ac_ext
26001 cat >>conftest.$ac_ext <<_ACEOF
26002 /* end confdefs.h.  */
26003 #include <$ac_header>
26004 _ACEOF
26005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26006   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26007   ac_status=$?
26008   grep -v '^ *+' conftest.er1 >conftest.err
26009   rm -f conftest.er1
26010   cat conftest.err >&5
26011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012   (exit $ac_status); } >/dev/null; then
26013   if test -s conftest.err; then
26014     ac_cpp_err=$ac_c_preproc_warn_flag
26015     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26016   else
26017     ac_cpp_err=
26018   fi
26019 else
26020   ac_cpp_err=yes
26021 fi
26022 if test -z "$ac_cpp_err"; then
26023   ac_header_preproc=yes
26024 else
26025   echo "$as_me: failed program was:" >&5
26026 sed 's/^/| /' conftest.$ac_ext >&5
26027
26028   ac_header_preproc=no
26029 fi
26030 rm -f conftest.err conftest.$ac_ext
26031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26032 echo "${ECHO_T}$ac_header_preproc" >&6
26033
26034 # So?  What about this header?
26035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26036   yes:no: )
26037     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26041     ac_header_preproc=yes
26042     ;;
26043   no:yes:* )
26044     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26046     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26047 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26048     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26050     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26051 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26054     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26056     (
26057       cat <<\_ASBOX
26058 ## --------------------------------------------- ##
26059 ## Report this to <http://www.openldap.org/its/> ##
26060 ## --------------------------------------------- ##
26061 _ASBOX
26062     ) |
26063       sed "s/^/$as_me: WARNING:     /" >&2
26064     ;;
26065 esac
26066 echo "$as_me:$LINENO: checking for $ac_header" >&5
26067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26069   echo $ECHO_N "(cached) $ECHO_C" >&6
26070 else
26071   eval "$as_ac_Header=\$ac_header_preproc"
26072 fi
26073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26075
26076 fi
26077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26078   cat >>confdefs.h <<_ACEOF
26079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26080 _ACEOF
26081
26082 fi
26083
26084 done
26085
26086
26087
26088 for ac_header in thread.h synch.h
26089 do
26090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26092   echo "$as_me:$LINENO: checking for $ac_header" >&5
26093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26095   echo $ECHO_N "(cached) $ECHO_C" >&6
26096 fi
26097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26099 else
26100   # Is the header compilable?
26101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26103 cat >conftest.$ac_ext <<_ACEOF
26104 /* confdefs.h.  */
26105 _ACEOF
26106 cat confdefs.h >>conftest.$ac_ext
26107 cat >>conftest.$ac_ext <<_ACEOF
26108 /* end confdefs.h.  */
26109 $ac_includes_default
26110 #include <$ac_header>
26111 _ACEOF
26112 rm -f conftest.$ac_objext
26113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26114   (eval $ac_compile) 2>conftest.er1
26115   ac_status=$?
26116   grep -v '^ *+' conftest.er1 >conftest.err
26117   rm -f conftest.er1
26118   cat conftest.err >&5
26119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120   (exit $ac_status); } &&
26121          { ac_try='test -z "$ac_c_werror_flag"
26122                          || test ! -s conftest.err'
26123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26124   (eval $ac_try) 2>&5
26125   ac_status=$?
26126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127   (exit $ac_status); }; } &&
26128          { ac_try='test -s conftest.$ac_objext'
26129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26130   (eval $ac_try) 2>&5
26131   ac_status=$?
26132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133   (exit $ac_status); }; }; then
26134   ac_header_compiler=yes
26135 else
26136   echo "$as_me: failed program was:" >&5
26137 sed 's/^/| /' conftest.$ac_ext >&5
26138
26139 ac_header_compiler=no
26140 fi
26141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26143 echo "${ECHO_T}$ac_header_compiler" >&6
26144
26145 # Is the header present?
26146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26148 cat >conftest.$ac_ext <<_ACEOF
26149 /* confdefs.h.  */
26150 _ACEOF
26151 cat confdefs.h >>conftest.$ac_ext
26152 cat >>conftest.$ac_ext <<_ACEOF
26153 /* end confdefs.h.  */
26154 #include <$ac_header>
26155 _ACEOF
26156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26157   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26158   ac_status=$?
26159   grep -v '^ *+' conftest.er1 >conftest.err
26160   rm -f conftest.er1
26161   cat conftest.err >&5
26162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163   (exit $ac_status); } >/dev/null; then
26164   if test -s conftest.err; then
26165     ac_cpp_err=$ac_c_preproc_warn_flag
26166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26167   else
26168     ac_cpp_err=
26169   fi
26170 else
26171   ac_cpp_err=yes
26172 fi
26173 if test -z "$ac_cpp_err"; then
26174   ac_header_preproc=yes
26175 else
26176   echo "$as_me: failed program was:" >&5
26177 sed 's/^/| /' conftest.$ac_ext >&5
26178
26179   ac_header_preproc=no
26180 fi
26181 rm -f conftest.err conftest.$ac_ext
26182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26183 echo "${ECHO_T}$ac_header_preproc" >&6
26184
26185 # So?  What about this header?
26186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26187   yes:no: )
26188     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26192     ac_header_preproc=yes
26193     ;;
26194   no:yes:* )
26195     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26197     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26198 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26199     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26201     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26202 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26205     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26207     (
26208       cat <<\_ASBOX
26209 ## --------------------------------------------- ##
26210 ## Report this to <http://www.openldap.org/its/> ##
26211 ## --------------------------------------------- ##
26212 _ASBOX
26213     ) |
26214       sed "s/^/$as_me: WARNING:     /" >&2
26215     ;;
26216 esac
26217 echo "$as_me:$LINENO: checking for $ac_header" >&5
26218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26220   echo $ECHO_N "(cached) $ECHO_C" >&6
26221 else
26222   eval "$as_ac_Header=\$ac_header_preproc"
26223 fi
26224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26226
26227 fi
26228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26229   cat >>confdefs.h <<_ACEOF
26230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26231 _ACEOF
26232
26233 fi
26234
26235 done
26236
26237 fi
26238
26239 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26240                         cat >>confdefs.h <<\_ACEOF
26241 #define REENTRANT 1
26242 _ACEOF
26243
26244         cat >>confdefs.h <<\_ACEOF
26245 #define _REENTRANT 1
26246 _ACEOF
26247
26248         cat >>confdefs.h <<\_ACEOF
26249 #define THREAD_SAFE 1
26250 _ACEOF
26251
26252         cat >>confdefs.h <<\_ACEOF
26253 #define _THREAD_SAFE 1
26254 _ACEOF
26255
26256         cat >>confdefs.h <<\_ACEOF
26257 #define THREADSAFE 1
26258 _ACEOF
26259
26260         cat >>confdefs.h <<\_ACEOF
26261 #define _THREADSAFE 1
26262 _ACEOF
26263
26264         cat >>confdefs.h <<\_ACEOF
26265 #define _SGI_MP_SOURCE 1
26266 _ACEOF
26267
26268
26269                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
26270 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26271 if test "${ol_cv_errno_thread_specific+set}" = set; then
26272   echo $ECHO_N "(cached) $ECHO_C" >&6
26273 else
26274
26275                 cat >conftest.$ac_ext <<_ACEOF
26276 /* confdefs.h.  */
26277 _ACEOF
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h.  */
26281 #include <errno.h>
26282 int
26283 main ()
26284 {
26285 errno = 0;
26286   ;
26287   return 0;
26288 }
26289 _ACEOF
26290 rm -f conftest.$ac_objext conftest$ac_exeext
26291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26292   (eval $ac_link) 2>conftest.er1
26293   ac_status=$?
26294   grep -v '^ *+' conftest.er1 >conftest.err
26295   rm -f conftest.er1
26296   cat conftest.err >&5
26297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298   (exit $ac_status); } &&
26299          { ac_try='test -z "$ac_c_werror_flag"
26300                          || test ! -s conftest.err'
26301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26302   (eval $ac_try) 2>&5
26303   ac_status=$?
26304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305   (exit $ac_status); }; } &&
26306          { ac_try='test -s conftest$ac_exeext'
26307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26308   (eval $ac_try) 2>&5
26309   ac_status=$?
26310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311   (exit $ac_status); }; }; then
26312   ol_cv_errno_thread_specific=yes
26313 else
26314   echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26316
26317 ol_cv_errno_thread_specific=no
26318 fi
26319 rm -f conftest.err conftest.$ac_objext \
26320       conftest$ac_exeext conftest.$ac_ext
26321
26322 fi
26323 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
26324 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
26325
26326                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
26327 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
26328 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
26329   echo $ECHO_N "(cached) $ECHO_C" >&6
26330 else
26331
26332                 cat >conftest.$ac_ext <<_ACEOF
26333 /* confdefs.h.  */
26334 _ACEOF
26335 cat confdefs.h >>conftest.$ac_ext
26336 cat >>conftest.$ac_ext <<_ACEOF
26337 /* end confdefs.h.  */
26338 #include <netdb.h>
26339 int
26340 main ()
26341 {
26342 h_errno = 0;
26343   ;
26344   return 0;
26345 }
26346 _ACEOF
26347 rm -f conftest.$ac_objext conftest$ac_exeext
26348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26349   (eval $ac_link) 2>conftest.er1
26350   ac_status=$?
26351   grep -v '^ *+' conftest.er1 >conftest.err
26352   rm -f conftest.er1
26353   cat conftest.err >&5
26354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355   (exit $ac_status); } &&
26356          { ac_try='test -z "$ac_c_werror_flag"
26357                          || test ! -s conftest.err'
26358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26359   (eval $ac_try) 2>&5
26360   ac_status=$?
26361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362   (exit $ac_status); }; } &&
26363          { ac_try='test -s conftest$ac_exeext'
26364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26365   (eval $ac_try) 2>&5
26366   ac_status=$?
26367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368   (exit $ac_status); }; }; then
26369   ol_cv_h_errno_thread_specific=yes
26370 else
26371   echo "$as_me: failed program was:" >&5
26372 sed 's/^/| /' conftest.$ac_ext >&5
26373
26374 ol_cv_h_errno_thread_specific=no
26375 fi
26376 rm -f conftest.err conftest.$ac_objext \
26377       conftest$ac_exeext conftest.$ac_ext
26378
26379 fi
26380 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
26381 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
26382
26383         if test $ol_cv_errno_thread_specific != yes ||
26384            test $ol_cv_h_errno_thread_specific != yes ; then
26385                 LIBS="$LTHREAD_LIBS $LIBS"
26386                 LTHREAD_LIBS=""
26387         fi
26388
26389 fi
26390
26391 if test $ol_link_threads = no ; then
26392         if test $ol_with_threads = yes ; then
26393                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
26394 echo "$as_me: error: no suitable thread support" >&2;}
26395    { (exit 1); exit 1; }; }
26396         fi
26397
26398         if test $ol_with_threads = auto ; then
26399                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
26400 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26401                 ol_with_threads=no
26402         fi
26403
26404
26405 cat >>confdefs.h <<\_ACEOF
26406 #define NO_THREADS 1
26407 _ACEOF
26408
26409         LTHREAD_LIBS=""
26410         BUILD_THREAD=no
26411 else
26412         BUILD_THREAD=yes
26413 fi
26414
26415 if test $ol_link_threads != no ; then
26416
26417 cat >>confdefs.h <<\_ACEOF
26418 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
26419 _ACEOF
26420
26421 fi
26422
26423
26424
26425
26426 for ac_func in \
26427         ctime_r                 \
26428         gethostbyname_r gethostbyaddr_r \
26429
26430 do
26431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26432 echo "$as_me:$LINENO: checking for $ac_func" >&5
26433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26434 if eval "test \"\${$as_ac_var+set}\" = set"; then
26435   echo $ECHO_N "(cached) $ECHO_C" >&6
26436 else
26437   cat >conftest.$ac_ext <<_ACEOF
26438 /* confdefs.h.  */
26439 _ACEOF
26440 cat confdefs.h >>conftest.$ac_ext
26441 cat >>conftest.$ac_ext <<_ACEOF
26442 /* end confdefs.h.  */
26443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26445 #define $ac_func innocuous_$ac_func
26446
26447 /* System header to define __stub macros and hopefully few prototypes,
26448     which can conflict with char $ac_func (); below.
26449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26450     <limits.h> exists even on freestanding compilers.  */
26451
26452 #ifdef __STDC__
26453 # include <limits.h>
26454 #else
26455 # include <assert.h>
26456 #endif
26457
26458 #undef $ac_func
26459
26460 /* Override any gcc2 internal prototype to avoid an error.  */
26461 #ifdef __cplusplus
26462 extern "C"
26463 {
26464 #endif
26465 /* We use char because int might match the return type of a gcc2
26466    builtin and then its argument prototype would still apply.  */
26467 char $ac_func ();
26468 /* The GNU C library defines this for functions which it implements
26469     to always fail with ENOSYS.  Some functions are actually named
26470     something starting with __ and the normal name is an alias.  */
26471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26472 choke me
26473 #else
26474 char (*f) () = $ac_func;
26475 #endif
26476 #ifdef __cplusplus
26477 }
26478 #endif
26479
26480 int
26481 main ()
26482 {
26483 return f != $ac_func;
26484   ;
26485   return 0;
26486 }
26487 _ACEOF
26488 rm -f conftest.$ac_objext conftest$ac_exeext
26489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26490   (eval $ac_link) 2>conftest.er1
26491   ac_status=$?
26492   grep -v '^ *+' conftest.er1 >conftest.err
26493   rm -f conftest.er1
26494   cat conftest.err >&5
26495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496   (exit $ac_status); } &&
26497          { ac_try='test -z "$ac_c_werror_flag"
26498                          || test ! -s conftest.err'
26499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26500   (eval $ac_try) 2>&5
26501   ac_status=$?
26502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503   (exit $ac_status); }; } &&
26504          { ac_try='test -s conftest$ac_exeext'
26505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26506   (eval $ac_try) 2>&5
26507   ac_status=$?
26508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509   (exit $ac_status); }; }; then
26510   eval "$as_ac_var=yes"
26511 else
26512   echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26514
26515 eval "$as_ac_var=no"
26516 fi
26517 rm -f conftest.err conftest.$ac_objext \
26518       conftest$ac_exeext conftest.$ac_ext
26519 fi
26520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26522 if test `eval echo '${'$as_ac_var'}'` = yes; then
26523   cat >>confdefs.h <<_ACEOF
26524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26525 _ACEOF
26526
26527 fi
26528 done
26529
26530
26531 if test "$ac_cv_func_ctime_r" = no ; then
26532         ol_cv_func_ctime_r_nargs=0
26533 else
26534         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
26535 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
26536 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
26537   echo $ECHO_N "(cached) $ECHO_C" >&6
26538 else
26539   cat >conftest.$ac_ext <<_ACEOF
26540 /* confdefs.h.  */
26541 _ACEOF
26542 cat confdefs.h >>conftest.$ac_ext
26543 cat >>conftest.$ac_ext <<_ACEOF
26544 /* end confdefs.h.  */
26545 #include <time.h>
26546 int
26547 main ()
26548 {
26549 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
26550   ;
26551   return 0;
26552 }
26553 _ACEOF
26554 rm -f conftest.$ac_objext
26555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26556   (eval $ac_compile) 2>conftest.er1
26557   ac_status=$?
26558   grep -v '^ *+' conftest.er1 >conftest.err
26559   rm -f conftest.er1
26560   cat conftest.err >&5
26561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562   (exit $ac_status); } &&
26563          { ac_try='test -z "$ac_c_werror_flag"
26564                          || test ! -s conftest.err'
26565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26566   (eval $ac_try) 2>&5
26567   ac_status=$?
26568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569   (exit $ac_status); }; } &&
26570          { ac_try='test -s conftest.$ac_objext'
26571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572   (eval $ac_try) 2>&5
26573   ac_status=$?
26574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575   (exit $ac_status); }; }; then
26576   ol_cv_func_ctime_r_nargs3=yes
26577 else
26578   echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26580
26581 ol_cv_func_ctime_r_nargs3=no
26582 fi
26583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26584
26585         cat >conftest.$ac_ext <<_ACEOF
26586 /* confdefs.h.  */
26587 _ACEOF
26588 cat confdefs.h >>conftest.$ac_ext
26589 cat >>conftest.$ac_ext <<_ACEOF
26590 /* end confdefs.h.  */
26591 #include <time.h>
26592 int
26593 main ()
26594 {
26595 time_t ti; char *buffer; ctime_r(&ti,buffer);
26596   ;
26597   return 0;
26598 }
26599 _ACEOF
26600 rm -f conftest.$ac_objext
26601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26602   (eval $ac_compile) 2>conftest.er1
26603   ac_status=$?
26604   grep -v '^ *+' conftest.er1 >conftest.err
26605   rm -f conftest.er1
26606   cat conftest.err >&5
26607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608   (exit $ac_status); } &&
26609          { ac_try='test -z "$ac_c_werror_flag"
26610                          || test ! -s conftest.err'
26611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26612   (eval $ac_try) 2>&5
26613   ac_status=$?
26614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615   (exit $ac_status); }; } &&
26616          { ac_try='test -s conftest.$ac_objext'
26617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26618   (eval $ac_try) 2>&5
26619   ac_status=$?
26620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621   (exit $ac_status); }; }; then
26622   ol_cv_func_ctime_r_nargs2=yes
26623 else
26624   echo "$as_me: failed program was:" >&5
26625 sed 's/^/| /' conftest.$ac_ext >&5
26626
26627 ol_cv_func_ctime_r_nargs2=no
26628 fi
26629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26630
26631         if test $ol_cv_func_ctime_r_nargs3 = yes &&
26632            test $ol_cv_func_ctime_r_nargs2 = no ; then
26633
26634                 ol_cv_func_ctime_r_nargs=3
26635
26636         elif test $ol_cv_func_ctime_r_nargs3 = no &&
26637              test $ol_cv_func_ctime_r_nargs2 = yes ; then
26638
26639                 ol_cv_func_ctime_r_nargs=2
26640
26641         else
26642                 ol_cv_func_ctime_r_nargs=0
26643         fi
26644
26645 fi
26646 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
26647 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
26648
26649   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
26650
26651 cat >>confdefs.h <<_ACEOF
26652 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
26653 _ACEOF
26654
26655   fi
26656
26657 fi
26658
26659 if test "$ac_cv_func_gethostbyname_r" = yes ; then
26660         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
26661 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
26662 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
26663   echo $ECHO_N "(cached) $ECHO_C" >&6
26664 else
26665   cat >conftest.$ac_ext <<_ACEOF
26666 /* confdefs.h.  */
26667 _ACEOF
26668 cat confdefs.h >>conftest.$ac_ext
26669 cat >>conftest.$ac_ext <<_ACEOF
26670 /* end confdefs.h.  */
26671 #include <sys/types.h>
26672 #include <sys/socket.h>
26673 #include <netinet/in.h>
26674 #include <netdb.h>
26675 #define BUFSIZE (sizeof(struct hostent)+10)
26676 int
26677 main ()
26678 {
26679 struct hostent hent; char buffer[BUFSIZE];
26680                 int bufsize=BUFSIZE;int h_errno;
26681                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
26682                         buffer, bufsize, &h_errno);
26683   ;
26684   return 0;
26685 }
26686 _ACEOF
26687 rm -f conftest.$ac_objext
26688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26689   (eval $ac_compile) 2>conftest.er1
26690   ac_status=$?
26691   grep -v '^ *+' conftest.er1 >conftest.err
26692   rm -f conftest.er1
26693   cat conftest.err >&5
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); } &&
26696          { ac_try='test -z "$ac_c_werror_flag"
26697                          || test ! -s conftest.err'
26698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26699   (eval $ac_try) 2>&5
26700   ac_status=$?
26701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702   (exit $ac_status); }; } &&
26703          { ac_try='test -s conftest.$ac_objext'
26704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26705   (eval $ac_try) 2>&5
26706   ac_status=$?
26707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708   (exit $ac_status); }; }; then
26709   ol_cv_func_gethostbyname_r_nargs5=yes
26710 else
26711   echo "$as_me: failed program was:" >&5
26712 sed 's/^/| /' conftest.$ac_ext >&5
26713
26714 ol_cv_func_gethostbyname_r_nargs5=no
26715 fi
26716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26717
26718         cat >conftest.$ac_ext <<_ACEOF
26719 /* confdefs.h.  */
26720 _ACEOF
26721 cat confdefs.h >>conftest.$ac_ext
26722 cat >>conftest.$ac_ext <<_ACEOF
26723 /* end confdefs.h.  */
26724 #include <sys/types.h>
26725 #include <sys/socket.h>
26726 #include <netinet/in.h>
26727 #include <netdb.h>
26728 #define BUFSIZE (sizeof(struct hostent)+10)
26729 int
26730 main ()
26731 {
26732 struct hostent hent;struct hostent *rhent;
26733                 char buffer[BUFSIZE];
26734                 int bufsize=BUFSIZE;int h_errno;
26735                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
26736                         &rhent, &h_errno);
26737   ;
26738   return 0;
26739 }
26740 _ACEOF
26741 rm -f conftest.$ac_objext
26742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26743   (eval $ac_compile) 2>conftest.er1
26744   ac_status=$?
26745   grep -v '^ *+' conftest.er1 >conftest.err
26746   rm -f conftest.er1
26747   cat conftest.err >&5
26748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749   (exit $ac_status); } &&
26750          { ac_try='test -z "$ac_c_werror_flag"
26751                          || test ! -s conftest.err'
26752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26753   (eval $ac_try) 2>&5
26754   ac_status=$?
26755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756   (exit $ac_status); }; } &&
26757          { ac_try='test -s conftest.$ac_objext'
26758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26759   (eval $ac_try) 2>&5
26760   ac_status=$?
26761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762   (exit $ac_status); }; }; then
26763   ol_cv_func_gethostbyname_r_nargs6=yes
26764 else
26765   echo "$as_me: failed program was:" >&5
26766 sed 's/^/| /' conftest.$ac_ext >&5
26767
26768 ol_cv_func_gethostbyname_r_nargs6=no
26769 fi
26770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26771
26772         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
26773            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
26774
26775                 ol_cv_func_gethostbyname_r_nargs=5
26776
26777         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
26778              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
26779
26780                 ol_cv_func_gethostbyname_r_nargs=6
26781
26782         else
26783                 ol_cv_func_gethostbyname_r_nargs=0
26784         fi
26785
26786 fi
26787 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
26788 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
26789   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
26790
26791 cat >>confdefs.h <<_ACEOF
26792 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
26793 _ACEOF
26794
26795   fi
26796
26797 else
26798         ol_cv_func_gethostbyname_r_nargs=0
26799 fi
26800
26801 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
26802         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
26803 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
26804 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
26805   echo $ECHO_N "(cached) $ECHO_C" >&6
26806 else
26807   cat >conftest.$ac_ext <<_ACEOF
26808 /* confdefs.h.  */
26809 _ACEOF
26810 cat confdefs.h >>conftest.$ac_ext
26811 cat >>conftest.$ac_ext <<_ACEOF
26812 /* end confdefs.h.  */
26813 #include <sys/types.h>
26814 #include <sys/socket.h>
26815 #include <netinet/in.h>
26816 #include <netdb.h>
26817 #define BUFSIZE (sizeof(struct hostent)+10)
26818 int
26819 main ()
26820 {
26821 struct hostent hent; char buffer[BUFSIZE];
26822             struct in_addr add;
26823             size_t alen=sizeof(struct in_addr);
26824             int bufsize=BUFSIZE;int h_errno;
26825                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
26826                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
26827   ;
26828   return 0;
26829 }
26830 _ACEOF
26831 rm -f conftest.$ac_objext
26832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26833   (eval $ac_compile) 2>conftest.er1
26834   ac_status=$?
26835   grep -v '^ *+' conftest.er1 >conftest.err
26836   rm -f conftest.er1
26837   cat conftest.err >&5
26838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839   (exit $ac_status); } &&
26840          { ac_try='test -z "$ac_c_werror_flag"
26841                          || test ! -s conftest.err'
26842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26843   (eval $ac_try) 2>&5
26844   ac_status=$?
26845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846   (exit $ac_status); }; } &&
26847          { ac_try='test -s conftest.$ac_objext'
26848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26849   (eval $ac_try) 2>&5
26850   ac_status=$?
26851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852   (exit $ac_status); }; }; then
26853   ol_cv_func_gethostbyaddr_r_nargs7=yes
26854 else
26855   echo "$as_me: failed program was:" >&5
26856 sed 's/^/| /' conftest.$ac_ext >&5
26857
26858 ol_cv_func_gethostbyaddr_r_nargs7=no
26859 fi
26860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26861
26862         cat >conftest.$ac_ext <<_ACEOF
26863 /* confdefs.h.  */
26864 _ACEOF
26865 cat confdefs.h >>conftest.$ac_ext
26866 cat >>conftest.$ac_ext <<_ACEOF
26867 /* end confdefs.h.  */
26868 #include <sys/types.h>
26869 #include <sys/socket.h>
26870 #include <netinet/in.h>
26871 #include <netdb.h>
26872 #define BUFSIZE (sizeof(struct hostent)+10)
26873 int
26874 main ()
26875 {
26876 struct hostent hent;
26877                 struct hostent *rhent; char buffer[BUFSIZE];
26878                 struct in_addr add;
26879                 size_t alen=sizeof(struct in_addr);
26880                 int bufsize=BUFSIZE;int h_errno;
26881                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
26882                         alen, AF_INET, &hent, buffer, bufsize,
26883                         &rhent, &h_errno);
26884   ;
26885   return 0;
26886 }
26887 _ACEOF
26888 rm -f conftest.$ac_objext
26889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26890   (eval $ac_compile) 2>conftest.er1
26891   ac_status=$?
26892   grep -v '^ *+' conftest.er1 >conftest.err
26893   rm -f conftest.er1
26894   cat conftest.err >&5
26895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896   (exit $ac_status); } &&
26897          { ac_try='test -z "$ac_c_werror_flag"
26898                          || test ! -s conftest.err'
26899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26900   (eval $ac_try) 2>&5
26901   ac_status=$?
26902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903   (exit $ac_status); }; } &&
26904          { ac_try='test -s conftest.$ac_objext'
26905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26906   (eval $ac_try) 2>&5
26907   ac_status=$?
26908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909   (exit $ac_status); }; }; then
26910   ol_cv_func_gethostbyaddr_r_nargs8=yes
26911 else
26912   echo "$as_me: failed program was:" >&5
26913 sed 's/^/| /' conftest.$ac_ext >&5
26914
26915 ol_cv_func_gethostbyaddr_r_nargs8=no
26916 fi
26917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26918
26919         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
26920            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
26921
26922                 ol_cv_func_gethostbyaddr_r_nargs=7
26923
26924         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
26925              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
26926
26927                 ol_cv_func_gethostbyaddr_r_nargs=8
26928
26929         else
26930                 ol_cv_func_gethostbyaddr_r_nargs=0
26931         fi
26932
26933 fi
26934 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
26935 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
26936   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
26937
26938 cat >>confdefs.h <<_ACEOF
26939 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
26940 _ACEOF
26941
26942   fi
26943
26944 else
26945         ol_cv_func_gethostbyaddr_r_nargs=0
26946 fi
26947
26948 ol_link_bdb=no
26949
26950 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
26951         ol_cv_berkeley_db=no
26952
26953 for ac_header in db.h
26954 do
26955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26957   echo "$as_me:$LINENO: checking for $ac_header" >&5
26958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26960   echo $ECHO_N "(cached) $ECHO_C" >&6
26961 fi
26962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26964 else
26965   # Is the header compilable?
26966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26968 cat >conftest.$ac_ext <<_ACEOF
26969 /* confdefs.h.  */
26970 _ACEOF
26971 cat confdefs.h >>conftest.$ac_ext
26972 cat >>conftest.$ac_ext <<_ACEOF
26973 /* end confdefs.h.  */
26974 $ac_includes_default
26975 #include <$ac_header>
26976 _ACEOF
26977 rm -f conftest.$ac_objext
26978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26979   (eval $ac_compile) 2>conftest.er1
26980   ac_status=$?
26981   grep -v '^ *+' conftest.er1 >conftest.err
26982   rm -f conftest.er1
26983   cat conftest.err >&5
26984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985   (exit $ac_status); } &&
26986          { ac_try='test -z "$ac_c_werror_flag"
26987                          || test ! -s conftest.err'
26988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989   (eval $ac_try) 2>&5
26990   ac_status=$?
26991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992   (exit $ac_status); }; } &&
26993          { ac_try='test -s conftest.$ac_objext'
26994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26995   (eval $ac_try) 2>&5
26996   ac_status=$?
26997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998   (exit $ac_status); }; }; then
26999   ac_header_compiler=yes
27000 else
27001   echo "$as_me: failed program was:" >&5
27002 sed 's/^/| /' conftest.$ac_ext >&5
27003
27004 ac_header_compiler=no
27005 fi
27006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27008 echo "${ECHO_T}$ac_header_compiler" >&6
27009
27010 # Is the header present?
27011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27013 cat >conftest.$ac_ext <<_ACEOF
27014 /* confdefs.h.  */
27015 _ACEOF
27016 cat confdefs.h >>conftest.$ac_ext
27017 cat >>conftest.$ac_ext <<_ACEOF
27018 /* end confdefs.h.  */
27019 #include <$ac_header>
27020 _ACEOF
27021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27022   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27023   ac_status=$?
27024   grep -v '^ *+' conftest.er1 >conftest.err
27025   rm -f conftest.er1
27026   cat conftest.err >&5
27027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028   (exit $ac_status); } >/dev/null; then
27029   if test -s conftest.err; then
27030     ac_cpp_err=$ac_c_preproc_warn_flag
27031     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27032   else
27033     ac_cpp_err=
27034   fi
27035 else
27036   ac_cpp_err=yes
27037 fi
27038 if test -z "$ac_cpp_err"; then
27039   ac_header_preproc=yes
27040 else
27041   echo "$as_me: failed program was:" >&5
27042 sed 's/^/| /' conftest.$ac_ext >&5
27043
27044   ac_header_preproc=no
27045 fi
27046 rm -f conftest.err conftest.$ac_ext
27047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27048 echo "${ECHO_T}$ac_header_preproc" >&6
27049
27050 # So?  What about this header?
27051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27052   yes:no: )
27053     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27057     ac_header_preproc=yes
27058     ;;
27059   no:yes:* )
27060     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27062     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27063 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27064     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27066     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27067 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27070     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27072     (
27073       cat <<\_ASBOX
27074 ## --------------------------------------------- ##
27075 ## Report this to <http://www.openldap.org/its/> ##
27076 ## --------------------------------------------- ##
27077 _ASBOX
27078     ) |
27079       sed "s/^/$as_me: WARNING:     /" >&2
27080     ;;
27081 esac
27082 echo "$as_me:$LINENO: checking for $ac_header" >&5
27083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27085   echo $ECHO_N "(cached) $ECHO_C" >&6
27086 else
27087   eval "$as_ac_Header=\$ac_header_preproc"
27088 fi
27089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27091
27092 fi
27093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27094   cat >>confdefs.h <<_ACEOF
27095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27096 _ACEOF
27097
27098 fi
27099
27100 done
27101
27102 if test $ac_cv_header_db_h = yes; then
27103         ol_cv_lib_db=no
27104
27105 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27106 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27107 if test "${ol_cv_bdb_major+set}" = set; then
27108   echo $ECHO_N "(cached) $ECHO_C" >&6
27109 else
27110
27111         ol_cv_bdb_major=0
27112         if test $ol_cv_bdb_major = 0 ; then
27113                 cat >conftest.$ac_ext <<_ACEOF
27114 /* confdefs.h.  */
27115 _ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h.  */
27119
27120 #include <db.h>
27121 #ifndef DB_VERSION_MAJOR
27122 #       define DB_VERSION_MAJOR 1
27123 #endif
27124 #if DB_VERSION_MAJOR == 4
27125 __db_version
27126 #endif
27127
27128 _ACEOF
27129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27130   $EGREP "__db_version" >/dev/null 2>&1; then
27131   ol_cv_bdb_major=4
27132 else
27133   :
27134 fi
27135 rm -f conftest*
27136
27137         fi
27138         if test $ol_cv_bdb_major = 0 ; then
27139                 cat >conftest.$ac_ext <<_ACEOF
27140 /* confdefs.h.  */
27141 _ACEOF
27142 cat confdefs.h >>conftest.$ac_ext
27143 cat >>conftest.$ac_ext <<_ACEOF
27144 /* end confdefs.h.  */
27145
27146 #include <db.h>
27147 #ifndef DB_VERSION_MAJOR
27148 #       define DB_VERSION_MAJOR 1
27149 #endif
27150 #if DB_VERSION_MAJOR == 3
27151 __db_version
27152 #endif
27153
27154 _ACEOF
27155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27156   $EGREP "__db_version" >/dev/null 2>&1; then
27157   ol_cv_bdb_major=3
27158 else
27159   :
27160 fi
27161 rm -f conftest*
27162
27163         fi
27164         if test $ol_cv_bdb_major = 0 ; then
27165                 cat >conftest.$ac_ext <<_ACEOF
27166 /* confdefs.h.  */
27167 _ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h.  */
27171
27172 #include <db.h>
27173 #ifndef DB_VERSION_MAJOR
27174 #       define DB_VERSION_MAJOR 1
27175 #endif
27176 #if DB_VERSION_MAJOR == 2
27177 __db_version
27178 #endif
27179
27180 _ACEOF
27181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27182   $EGREP "__db_version" >/dev/null 2>&1; then
27183   ol_cv_bdb_major=2
27184 else
27185   :
27186 fi
27187 rm -f conftest*
27188
27189         fi
27190         if test $ol_cv_bdb_major = 0 ; then
27191                 cat >conftest.$ac_ext <<_ACEOF
27192 /* confdefs.h.  */
27193 _ACEOF
27194 cat confdefs.h >>conftest.$ac_ext
27195 cat >>conftest.$ac_ext <<_ACEOF
27196 /* end confdefs.h.  */
27197
27198 #include <db.h>
27199 #ifndef DB_VERSION_MAJOR
27200 #       define DB_VERSION_MAJOR 1
27201 #endif
27202 #if DB_VERSION_MAJOR == 1
27203 __db_version
27204 #endif
27205
27206 _ACEOF
27207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27208   $EGREP "__db_version" >/dev/null 2>&1; then
27209   ol_cv_bdb_major=1
27210 else
27211   :
27212 fi
27213 rm -f conftest*
27214
27215         fi
27216
27217         if test $ol_cv_bdb_major = 0 ; then
27218                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27219 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27220    { (exit 1); exit 1; }; }
27221         fi
27222
27223 fi
27224 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27225 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27226
27227 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
27228 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
27229 if test "${ol_cv_bdb_minor+set}" = set; then
27230   echo $ECHO_N "(cached) $ECHO_C" >&6
27231 else
27232
27233         ol_cv_bdb_minor=0
27234         if test $ol_cv_bdb_minor = 0 ; then
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
27242 #include <db.h>
27243 #ifndef DB_VERSION_MINOR
27244 #       define DB_VERSION_MINOR 0
27245 #endif
27246 #if DB_VERSION_MINOR == 9
27247 __db_version
27248 #endif
27249
27250 _ACEOF
27251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27252   $EGREP "__db_version" >/dev/null 2>&1; then
27253   ol_cv_bdb_minor=9
27254 else
27255   :
27256 fi
27257 rm -f conftest*
27258
27259         fi
27260         if test $ol_cv_bdb_minor = 0 ; then
27261                 cat >conftest.$ac_ext <<_ACEOF
27262 /* confdefs.h.  */
27263 _ACEOF
27264 cat confdefs.h >>conftest.$ac_ext
27265 cat >>conftest.$ac_ext <<_ACEOF
27266 /* end confdefs.h.  */
27267
27268 #include <db.h>
27269 #ifndef DB_VERSION_MINOR
27270 #       define DB_VERSION_MINOR 0
27271 #endif
27272 #if DB_VERSION_MINOR == 8
27273 __db_version
27274 #endif
27275
27276 _ACEOF
27277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27278   $EGREP "__db_version" >/dev/null 2>&1; then
27279   ol_cv_bdb_minor=8
27280 else
27281   :
27282 fi
27283 rm -f conftest*
27284
27285         fi
27286         if test $ol_cv_bdb_minor = 0 ; then
27287                 cat >conftest.$ac_ext <<_ACEOF
27288 /* confdefs.h.  */
27289 _ACEOF
27290 cat confdefs.h >>conftest.$ac_ext
27291 cat >>conftest.$ac_ext <<_ACEOF
27292 /* end confdefs.h.  */
27293
27294 #include <db.h>
27295 #ifndef DB_VERSION_MINOR
27296 #       define DB_VERSION_MINOR 0
27297 #endif
27298 #if DB_VERSION_MINOR == 7
27299 __db_version
27300 #endif
27301
27302 _ACEOF
27303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27304   $EGREP "__db_version" >/dev/null 2>&1; then
27305   ol_cv_bdb_minor=7
27306 else
27307   :
27308 fi
27309 rm -f conftest*
27310
27311         fi
27312         if test $ol_cv_bdb_minor = 0 ; then
27313                 cat >conftest.$ac_ext <<_ACEOF
27314 /* confdefs.h.  */
27315 _ACEOF
27316 cat confdefs.h >>conftest.$ac_ext
27317 cat >>conftest.$ac_ext <<_ACEOF
27318 /* end confdefs.h.  */
27319
27320 #include <db.h>
27321 #ifndef DB_VERSION_MINOR
27322 #       define DB_VERSION_MINOR 0
27323 #endif
27324 #if DB_VERSION_MINOR == 6
27325 __db_version
27326 #endif
27327
27328 _ACEOF
27329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27330   $EGREP "__db_version" >/dev/null 2>&1; then
27331   ol_cv_bdb_minor=6
27332 else
27333   :
27334 fi
27335 rm -f conftest*
27336
27337         fi
27338         if test $ol_cv_bdb_minor = 0 ; then
27339                 cat >conftest.$ac_ext <<_ACEOF
27340 /* confdefs.h.  */
27341 _ACEOF
27342 cat confdefs.h >>conftest.$ac_ext
27343 cat >>conftest.$ac_ext <<_ACEOF
27344 /* end confdefs.h.  */
27345
27346 #include <db.h>
27347 #ifndef DB_VERSION_MINOR
27348 #       define DB_VERSION_MINOR 0
27349 #endif
27350 #if DB_VERSION_MINOR == 5
27351 __db_version
27352 #endif
27353
27354 _ACEOF
27355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27356   $EGREP "__db_version" >/dev/null 2>&1; then
27357   ol_cv_bdb_minor=5
27358 else
27359   :
27360 fi
27361 rm -f conftest*
27362
27363         fi
27364         if test $ol_cv_bdb_minor = 0 ; then
27365                 cat >conftest.$ac_ext <<_ACEOF
27366 /* confdefs.h.  */
27367 _ACEOF
27368 cat confdefs.h >>conftest.$ac_ext
27369 cat >>conftest.$ac_ext <<_ACEOF
27370 /* end confdefs.h.  */
27371
27372 #include <db.h>
27373 #ifndef DB_VERSION_MINOR
27374 #       define DB_VERSION_MINOR 0
27375 #endif
27376 #if DB_VERSION_MINOR == 4
27377 __db_version
27378 #endif
27379
27380 _ACEOF
27381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27382   $EGREP "__db_version" >/dev/null 2>&1; then
27383   ol_cv_bdb_minor=4
27384 else
27385   :
27386 fi
27387 rm -f conftest*
27388
27389         fi
27390         if test $ol_cv_bdb_minor = 0 ; then
27391                 cat >conftest.$ac_ext <<_ACEOF
27392 /* confdefs.h.  */
27393 _ACEOF
27394 cat confdefs.h >>conftest.$ac_ext
27395 cat >>conftest.$ac_ext <<_ACEOF
27396 /* end confdefs.h.  */
27397
27398 #include <db.h>
27399 #ifndef DB_VERSION_MINOR
27400 #       define DB_VERSION_MINOR 0
27401 #endif
27402 #if DB_VERSION_MINOR == 3
27403 __db_version
27404 #endif
27405
27406 _ACEOF
27407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27408   $EGREP "__db_version" >/dev/null 2>&1; then
27409   ol_cv_bdb_minor=3
27410 else
27411   :
27412 fi
27413 rm -f conftest*
27414
27415         fi
27416         if test $ol_cv_bdb_minor = 0 ; then
27417                 cat >conftest.$ac_ext <<_ACEOF
27418 /* confdefs.h.  */
27419 _ACEOF
27420 cat confdefs.h >>conftest.$ac_ext
27421 cat >>conftest.$ac_ext <<_ACEOF
27422 /* end confdefs.h.  */
27423
27424 #include <db.h>
27425 #ifndef DB_VERSION_MINOR
27426 #       define DB_VERSION_MINOR 0
27427 #endif
27428 #if DB_VERSION_MINOR == 2
27429 __db_version
27430 #endif
27431
27432 _ACEOF
27433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27434   $EGREP "__db_version" >/dev/null 2>&1; then
27435   ol_cv_bdb_minor=2
27436 else
27437   :
27438 fi
27439 rm -f conftest*
27440
27441         fi
27442         if test $ol_cv_bdb_minor = 0 ; then
27443                 cat >conftest.$ac_ext <<_ACEOF
27444 /* confdefs.h.  */
27445 _ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h.  */
27449
27450 #include <db.h>
27451 #ifndef DB_VERSION_MINOR
27452 #       define DB_VERSION_MINOR 0
27453 #endif
27454 #if DB_VERSION_MINOR == 1
27455 __db_version
27456 #endif
27457
27458 _ACEOF
27459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27460   $EGREP "__db_version" >/dev/null 2>&1; then
27461   ol_cv_bdb_minor=1
27462 else
27463   :
27464 fi
27465 rm -f conftest*
27466
27467         fi
27468
27469 fi
27470 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
27471 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
27472
27473 if test $ol_cv_bdb_major = 4 ; then
27474         if test $ol_cv_bdb_minor = 5 ; then
27475                 if test $ol_cv_lib_db = no ; then
27476         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb45)" >&5
27477 echo $ECHO_N "checking for Berkeley DB link (-ldb45)... $ECHO_C" >&6
27478 if test "${ol_cv_db_db45+set}" = set; then
27479   echo $ECHO_N "(cached) $ECHO_C" >&6
27480 else
27481
27482         ol_DB_LIB=-ldb45
27483         ol_LIBS=$LIBS
27484         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27485
27486         cat >conftest.$ac_ext <<_ACEOF
27487 /* confdefs.h.  */
27488 _ACEOF
27489 cat confdefs.h >>conftest.$ac_ext
27490 cat >>conftest.$ac_ext <<_ACEOF
27491 /* end confdefs.h.  */
27492
27493 #ifdef HAVE_DB_185_H
27494 # include <db_185.h>
27495 #else
27496 # include <db.h>
27497 #endif
27498
27499 #ifndef DB_VERSION_MAJOR
27500 # define DB_VERSION_MAJOR 1
27501 #endif
27502
27503 #ifndef NULL
27504 #define NULL ((void*)0)
27505 #endif
27506
27507 int
27508 main ()
27509 {
27510
27511 #if DB_VERSION_MAJOR > 1
27512         {
27513                 char *version;
27514                 int major, minor, patch;
27515
27516                 version = db_version( &major, &minor, &patch );
27517
27518                 if( major != DB_VERSION_MAJOR ||
27519                         minor < DB_VERSION_MINOR )
27520                 {
27521                         printf("Berkeley DB version mismatch\n"
27522                                 "\theader: %s\n\tlibrary: %s\n",
27523                                 DB_VERSION_STRING, version);
27524                         return 1;
27525                 }
27526         }
27527 #endif
27528
27529 #if DB_VERSION_MAJOR > 2
27530         db_env_create( NULL, 0 );
27531 #elif DB_VERSION_MAJOR > 1
27532         db_appexit( NULL );
27533 #else
27534         (void) dbopen( NULL, 0, 0, 0, NULL);
27535 #endif
27536
27537   ;
27538   return 0;
27539 }
27540 _ACEOF
27541 rm -f conftest.$ac_objext conftest$ac_exeext
27542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27543   (eval $ac_link) 2>conftest.er1
27544   ac_status=$?
27545   grep -v '^ *+' conftest.er1 >conftest.err
27546   rm -f conftest.er1
27547   cat conftest.err >&5
27548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549   (exit $ac_status); } &&
27550          { ac_try='test -z "$ac_c_werror_flag"
27551                          || test ! -s conftest.err'
27552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27553   (eval $ac_try) 2>&5
27554   ac_status=$?
27555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556   (exit $ac_status); }; } &&
27557          { ac_try='test -s conftest$ac_exeext'
27558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27559   (eval $ac_try) 2>&5
27560   ac_status=$?
27561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562   (exit $ac_status); }; }; then
27563   ol_cv_db_db45=yes
27564 else
27565   echo "$as_me: failed program was:" >&5
27566 sed 's/^/| /' conftest.$ac_ext >&5
27567
27568 ol_cv_db_db45=no
27569 fi
27570 rm -f conftest.err conftest.$ac_objext \
27571       conftest$ac_exeext conftest.$ac_ext
27572
27573         LIBS="$ol_LIBS"
27574
27575 fi
27576 echo "$as_me:$LINENO: result: $ol_cv_db_db45" >&5
27577 echo "${ECHO_T}$ol_cv_db_db45" >&6
27578
27579         if test $ol_cv_db_db45 = yes ; then
27580                 ol_cv_lib_db=-ldb45
27581         fi
27582 fi
27583
27584                 if test $ol_cv_lib_db = no ; then
27585         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-45)" >&5
27586 echo $ECHO_N "checking for Berkeley DB link (-ldb-45)... $ECHO_C" >&6
27587 if test "${ol_cv_db_db_45+set}" = set; then
27588   echo $ECHO_N "(cached) $ECHO_C" >&6
27589 else
27590
27591         ol_DB_LIB=-ldb-45
27592         ol_LIBS=$LIBS
27593         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27594
27595         cat >conftest.$ac_ext <<_ACEOF
27596 /* confdefs.h.  */
27597 _ACEOF
27598 cat confdefs.h >>conftest.$ac_ext
27599 cat >>conftest.$ac_ext <<_ACEOF
27600 /* end confdefs.h.  */
27601
27602 #ifdef HAVE_DB_185_H
27603 # include <db_185.h>
27604 #else
27605 # include <db.h>
27606 #endif
27607
27608 #ifndef DB_VERSION_MAJOR
27609 # define DB_VERSION_MAJOR 1
27610 #endif
27611
27612 #ifndef NULL
27613 #define NULL ((void*)0)
27614 #endif
27615
27616 int
27617 main ()
27618 {
27619
27620 #if DB_VERSION_MAJOR > 1
27621         {
27622                 char *version;
27623                 int major, minor, patch;
27624
27625                 version = db_version( &major, &minor, &patch );
27626
27627                 if( major != DB_VERSION_MAJOR ||
27628                         minor < DB_VERSION_MINOR )
27629                 {
27630                         printf("Berkeley DB version mismatch\n"
27631                                 "\theader: %s\n\tlibrary: %s\n",
27632                                 DB_VERSION_STRING, version);
27633                         return 1;
27634                 }
27635         }
27636 #endif
27637
27638 #if DB_VERSION_MAJOR > 2
27639         db_env_create( NULL, 0 );
27640 #elif DB_VERSION_MAJOR > 1
27641         db_appexit( NULL );
27642 #else
27643         (void) dbopen( NULL, 0, 0, 0, NULL);
27644 #endif
27645
27646   ;
27647   return 0;
27648 }
27649 _ACEOF
27650 rm -f conftest.$ac_objext conftest$ac_exeext
27651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27652   (eval $ac_link) 2>conftest.er1
27653   ac_status=$?
27654   grep -v '^ *+' conftest.er1 >conftest.err
27655   rm -f conftest.er1
27656   cat conftest.err >&5
27657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658   (exit $ac_status); } &&
27659          { ac_try='test -z "$ac_c_werror_flag"
27660                          || test ! -s conftest.err'
27661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27662   (eval $ac_try) 2>&5
27663   ac_status=$?
27664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665   (exit $ac_status); }; } &&
27666          { ac_try='test -s conftest$ac_exeext'
27667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27668   (eval $ac_try) 2>&5
27669   ac_status=$?
27670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671   (exit $ac_status); }; }; then
27672   ol_cv_db_db_45=yes
27673 else
27674   echo "$as_me: failed program was:" >&5
27675 sed 's/^/| /' conftest.$ac_ext >&5
27676
27677 ol_cv_db_db_45=no
27678 fi
27679 rm -f conftest.err conftest.$ac_objext \
27680       conftest$ac_exeext conftest.$ac_ext
27681
27682         LIBS="$ol_LIBS"
27683
27684 fi
27685 echo "$as_me:$LINENO: result: $ol_cv_db_db_45" >&5
27686 echo "${ECHO_T}$ol_cv_db_db_45" >&6
27687
27688         if test $ol_cv_db_db_45 = yes ; then
27689                 ol_cv_lib_db=-ldb-45
27690         fi
27691 fi
27692
27693                 if test $ol_cv_lib_db = no ; then
27694         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.5)" >&5
27695 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.5)... $ECHO_C" >&6
27696 if test "${ol_cv_db_db_4_dot_5+set}" = set; then
27697   echo $ECHO_N "(cached) $ECHO_C" >&6
27698 else
27699
27700         ol_DB_LIB=-ldb-4.5
27701         ol_LIBS=$LIBS
27702         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27703
27704         cat >conftest.$ac_ext <<_ACEOF
27705 /* confdefs.h.  */
27706 _ACEOF
27707 cat confdefs.h >>conftest.$ac_ext
27708 cat >>conftest.$ac_ext <<_ACEOF
27709 /* end confdefs.h.  */
27710
27711 #ifdef HAVE_DB_185_H
27712 # include <db_185.h>
27713 #else
27714 # include <db.h>
27715 #endif
27716
27717 #ifndef DB_VERSION_MAJOR
27718 # define DB_VERSION_MAJOR 1
27719 #endif
27720
27721 #ifndef NULL
27722 #define NULL ((void*)0)
27723 #endif
27724
27725 int
27726 main ()
27727 {
27728
27729 #if DB_VERSION_MAJOR > 1
27730         {
27731                 char *version;
27732                 int major, minor, patch;
27733
27734                 version = db_version( &major, &minor, &patch );
27735
27736                 if( major != DB_VERSION_MAJOR ||
27737                         minor < DB_VERSION_MINOR )
27738                 {
27739                         printf("Berkeley DB version mismatch\n"
27740                                 "\theader: %s\n\tlibrary: %s\n",
27741                                 DB_VERSION_STRING, version);
27742                         return 1;
27743                 }
27744         }
27745 #endif
27746
27747 #if DB_VERSION_MAJOR > 2
27748         db_env_create( NULL, 0 );
27749 #elif DB_VERSION_MAJOR > 1
27750         db_appexit( NULL );
27751 #else
27752         (void) dbopen( NULL, 0, 0, 0, NULL);
27753 #endif
27754
27755   ;
27756   return 0;
27757 }
27758 _ACEOF
27759 rm -f conftest.$ac_objext conftest$ac_exeext
27760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27761   (eval $ac_link) 2>conftest.er1
27762   ac_status=$?
27763   grep -v '^ *+' conftest.er1 >conftest.err
27764   rm -f conftest.er1
27765   cat conftest.err >&5
27766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767   (exit $ac_status); } &&
27768          { ac_try='test -z "$ac_c_werror_flag"
27769                          || test ! -s conftest.err'
27770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27771   (eval $ac_try) 2>&5
27772   ac_status=$?
27773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774   (exit $ac_status); }; } &&
27775          { ac_try='test -s conftest$ac_exeext'
27776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27777   (eval $ac_try) 2>&5
27778   ac_status=$?
27779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780   (exit $ac_status); }; }; then
27781   ol_cv_db_db_4_dot_5=yes
27782 else
27783   echo "$as_me: failed program was:" >&5
27784 sed 's/^/| /' conftest.$ac_ext >&5
27785
27786 ol_cv_db_db_4_dot_5=no
27787 fi
27788 rm -f conftest.err conftest.$ac_objext \
27789       conftest$ac_exeext conftest.$ac_ext
27790
27791         LIBS="$ol_LIBS"
27792
27793 fi
27794 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_5" >&5
27795 echo "${ECHO_T}$ol_cv_db_db_4_dot_5" >&6
27796
27797         if test $ol_cv_db_db_4_dot_5 = yes ; then
27798                 ol_cv_lib_db=-ldb-4.5
27799         fi
27800 fi
27801
27802                 if test $ol_cv_lib_db = no ; then
27803         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-5)" >&5
27804 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-5)... $ECHO_C" >&6
27805 if test "${ol_cv_db_db_4_5+set}" = set; then
27806   echo $ECHO_N "(cached) $ECHO_C" >&6
27807 else
27808
27809         ol_DB_LIB=-ldb-4-5
27810         ol_LIBS=$LIBS
27811         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27812
27813         cat >conftest.$ac_ext <<_ACEOF
27814 /* confdefs.h.  */
27815 _ACEOF
27816 cat confdefs.h >>conftest.$ac_ext
27817 cat >>conftest.$ac_ext <<_ACEOF
27818 /* end confdefs.h.  */
27819
27820 #ifdef HAVE_DB_185_H
27821 # include <db_185.h>
27822 #else
27823 # include <db.h>
27824 #endif
27825
27826 #ifndef DB_VERSION_MAJOR
27827 # define DB_VERSION_MAJOR 1
27828 #endif
27829
27830 #ifndef NULL
27831 #define NULL ((void*)0)
27832 #endif
27833
27834 int
27835 main ()
27836 {
27837
27838 #if DB_VERSION_MAJOR > 1
27839         {
27840                 char *version;
27841                 int major, minor, patch;
27842
27843                 version = db_version( &major, &minor, &patch );
27844
27845                 if( major != DB_VERSION_MAJOR ||
27846                         minor < DB_VERSION_MINOR )
27847                 {
27848                         printf("Berkeley DB version mismatch\n"
27849                                 "\theader: %s\n\tlibrary: %s\n",
27850                                 DB_VERSION_STRING, version);
27851                         return 1;
27852                 }
27853         }
27854 #endif
27855
27856 #if DB_VERSION_MAJOR > 2
27857         db_env_create( NULL, 0 );
27858 #elif DB_VERSION_MAJOR > 1
27859         db_appexit( NULL );
27860 #else
27861         (void) dbopen( NULL, 0, 0, 0, NULL);
27862 #endif
27863
27864   ;
27865   return 0;
27866 }
27867 _ACEOF
27868 rm -f conftest.$ac_objext conftest$ac_exeext
27869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27870   (eval $ac_link) 2>conftest.er1
27871   ac_status=$?
27872   grep -v '^ *+' conftest.er1 >conftest.err
27873   rm -f conftest.er1
27874   cat conftest.err >&5
27875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); } &&
27877          { ac_try='test -z "$ac_c_werror_flag"
27878                          || test ! -s conftest.err'
27879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880   (eval $ac_try) 2>&5
27881   ac_status=$?
27882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883   (exit $ac_status); }; } &&
27884          { ac_try='test -s conftest$ac_exeext'
27885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27886   (eval $ac_try) 2>&5
27887   ac_status=$?
27888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889   (exit $ac_status); }; }; then
27890   ol_cv_db_db_4_5=yes
27891 else
27892   echo "$as_me: failed program was:" >&5
27893 sed 's/^/| /' conftest.$ac_ext >&5
27894
27895 ol_cv_db_db_4_5=no
27896 fi
27897 rm -f conftest.err conftest.$ac_objext \
27898       conftest$ac_exeext conftest.$ac_ext
27899
27900         LIBS="$ol_LIBS"
27901
27902 fi
27903 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_5" >&5
27904 echo "${ECHO_T}$ol_cv_db_db_4_5" >&6
27905
27906         if test $ol_cv_db_db_4_5 = yes ; then
27907                 ol_cv_lib_db=-ldb-4-5
27908         fi
27909 fi
27910
27911         elif test $ol_cv_bdb_minor = 4 ; then
27912                 if test $ol_cv_lib_db = no ; then
27913         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
27914 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
27915 if test "${ol_cv_db_db44+set}" = set; then
27916   echo $ECHO_N "(cached) $ECHO_C" >&6
27917 else
27918
27919         ol_DB_LIB=-ldb44
27920         ol_LIBS=$LIBS
27921         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27922
27923         cat >conftest.$ac_ext <<_ACEOF
27924 /* confdefs.h.  */
27925 _ACEOF
27926 cat confdefs.h >>conftest.$ac_ext
27927 cat >>conftest.$ac_ext <<_ACEOF
27928 /* end confdefs.h.  */
27929
27930 #ifdef HAVE_DB_185_H
27931 # include <db_185.h>
27932 #else
27933 # include <db.h>
27934 #endif
27935
27936 #ifndef DB_VERSION_MAJOR
27937 # define DB_VERSION_MAJOR 1
27938 #endif
27939
27940 #ifndef NULL
27941 #define NULL ((void*)0)
27942 #endif
27943
27944 int
27945 main ()
27946 {
27947
27948 #if DB_VERSION_MAJOR > 1
27949         {
27950                 char *version;
27951                 int major, minor, patch;
27952
27953                 version = db_version( &major, &minor, &patch );
27954
27955                 if( major != DB_VERSION_MAJOR ||
27956                         minor < DB_VERSION_MINOR )
27957                 {
27958                         printf("Berkeley DB version mismatch\n"
27959                                 "\theader: %s\n\tlibrary: %s\n",
27960                                 DB_VERSION_STRING, version);
27961                         return 1;
27962                 }
27963         }
27964 #endif
27965
27966 #if DB_VERSION_MAJOR > 2
27967         db_env_create( NULL, 0 );
27968 #elif DB_VERSION_MAJOR > 1
27969         db_appexit( NULL );
27970 #else
27971         (void) dbopen( NULL, 0, 0, 0, NULL);
27972 #endif
27973
27974   ;
27975   return 0;
27976 }
27977 _ACEOF
27978 rm -f conftest.$ac_objext conftest$ac_exeext
27979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27980   (eval $ac_link) 2>conftest.er1
27981   ac_status=$?
27982   grep -v '^ *+' conftest.er1 >conftest.err
27983   rm -f conftest.er1
27984   cat conftest.err >&5
27985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986   (exit $ac_status); } &&
27987          { ac_try='test -z "$ac_c_werror_flag"
27988                          || test ! -s conftest.err'
27989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27990   (eval $ac_try) 2>&5
27991   ac_status=$?
27992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993   (exit $ac_status); }; } &&
27994          { ac_try='test -s conftest$ac_exeext'
27995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27996   (eval $ac_try) 2>&5
27997   ac_status=$?
27998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999   (exit $ac_status); }; }; then
28000   ol_cv_db_db44=yes
28001 else
28002   echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28004
28005 ol_cv_db_db44=no
28006 fi
28007 rm -f conftest.err conftest.$ac_objext \
28008       conftest$ac_exeext conftest.$ac_ext
28009
28010         LIBS="$ol_LIBS"
28011
28012 fi
28013 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28014 echo "${ECHO_T}$ol_cv_db_db44" >&6
28015
28016         if test $ol_cv_db_db44 = yes ; then
28017                 ol_cv_lib_db=-ldb44
28018         fi
28019 fi
28020
28021                 if test $ol_cv_lib_db = no ; then
28022         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28023 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28024 if test "${ol_cv_db_db_44+set}" = set; then
28025   echo $ECHO_N "(cached) $ECHO_C" >&6
28026 else
28027
28028         ol_DB_LIB=-ldb-44
28029         ol_LIBS=$LIBS
28030         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28031
28032         cat >conftest.$ac_ext <<_ACEOF
28033 /* confdefs.h.  */
28034 _ACEOF
28035 cat confdefs.h >>conftest.$ac_ext
28036 cat >>conftest.$ac_ext <<_ACEOF
28037 /* end confdefs.h.  */
28038
28039 #ifdef HAVE_DB_185_H
28040 # include <db_185.h>
28041 #else
28042 # include <db.h>
28043 #endif
28044
28045 #ifndef DB_VERSION_MAJOR
28046 # define DB_VERSION_MAJOR 1
28047 #endif
28048
28049 #ifndef NULL
28050 #define NULL ((void*)0)
28051 #endif
28052
28053 int
28054 main ()
28055 {
28056
28057 #if DB_VERSION_MAJOR > 1
28058         {
28059                 char *version;
28060                 int major, minor, patch;
28061
28062                 version = db_version( &major, &minor, &patch );
28063
28064                 if( major != DB_VERSION_MAJOR ||
28065                         minor < DB_VERSION_MINOR )
28066                 {
28067                         printf("Berkeley DB version mismatch\n"
28068                                 "\theader: %s\n\tlibrary: %s\n",
28069                                 DB_VERSION_STRING, version);
28070                         return 1;
28071                 }
28072         }
28073 #endif
28074
28075 #if DB_VERSION_MAJOR > 2
28076         db_env_create( NULL, 0 );
28077 #elif DB_VERSION_MAJOR > 1
28078         db_appexit( NULL );
28079 #else
28080         (void) dbopen( NULL, 0, 0, 0, NULL);
28081 #endif
28082
28083   ;
28084   return 0;
28085 }
28086 _ACEOF
28087 rm -f conftest.$ac_objext conftest$ac_exeext
28088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28089   (eval $ac_link) 2>conftest.er1
28090   ac_status=$?
28091   grep -v '^ *+' conftest.er1 >conftest.err
28092   rm -f conftest.er1
28093   cat conftest.err >&5
28094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095   (exit $ac_status); } &&
28096          { ac_try='test -z "$ac_c_werror_flag"
28097                          || test ! -s conftest.err'
28098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28099   (eval $ac_try) 2>&5
28100   ac_status=$?
28101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102   (exit $ac_status); }; } &&
28103          { ac_try='test -s conftest$ac_exeext'
28104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28105   (eval $ac_try) 2>&5
28106   ac_status=$?
28107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108   (exit $ac_status); }; }; then
28109   ol_cv_db_db_44=yes
28110 else
28111   echo "$as_me: failed program was:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28113
28114 ol_cv_db_db_44=no
28115 fi
28116 rm -f conftest.err conftest.$ac_objext \
28117       conftest$ac_exeext conftest.$ac_ext
28118
28119         LIBS="$ol_LIBS"
28120
28121 fi
28122 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28123 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28124
28125         if test $ol_cv_db_db_44 = yes ; then
28126                 ol_cv_lib_db=-ldb-44
28127         fi
28128 fi
28129
28130                 if test $ol_cv_lib_db = no ; then
28131         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28132 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28133 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28134   echo $ECHO_N "(cached) $ECHO_C" >&6
28135 else
28136
28137         ol_DB_LIB=-ldb-4.4
28138         ol_LIBS=$LIBS
28139         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28140
28141         cat >conftest.$ac_ext <<_ACEOF
28142 /* confdefs.h.  */
28143 _ACEOF
28144 cat confdefs.h >>conftest.$ac_ext
28145 cat >>conftest.$ac_ext <<_ACEOF
28146 /* end confdefs.h.  */
28147
28148 #ifdef HAVE_DB_185_H
28149 # include <db_185.h>
28150 #else
28151 # include <db.h>
28152 #endif
28153
28154 #ifndef DB_VERSION_MAJOR
28155 # define DB_VERSION_MAJOR 1
28156 #endif
28157
28158 #ifndef NULL
28159 #define NULL ((void*)0)
28160 #endif
28161
28162 int
28163 main ()
28164 {
28165
28166 #if DB_VERSION_MAJOR > 1
28167         {
28168                 char *version;
28169                 int major, minor, patch;
28170
28171                 version = db_version( &major, &minor, &patch );
28172
28173                 if( major != DB_VERSION_MAJOR ||
28174                         minor < DB_VERSION_MINOR )
28175                 {
28176                         printf("Berkeley DB version mismatch\n"
28177                                 "\theader: %s\n\tlibrary: %s\n",
28178                                 DB_VERSION_STRING, version);
28179                         return 1;
28180                 }
28181         }
28182 #endif
28183
28184 #if DB_VERSION_MAJOR > 2
28185         db_env_create( NULL, 0 );
28186 #elif DB_VERSION_MAJOR > 1
28187         db_appexit( NULL );
28188 #else
28189         (void) dbopen( NULL, 0, 0, 0, NULL);
28190 #endif
28191
28192   ;
28193   return 0;
28194 }
28195 _ACEOF
28196 rm -f conftest.$ac_objext conftest$ac_exeext
28197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28198   (eval $ac_link) 2>conftest.er1
28199   ac_status=$?
28200   grep -v '^ *+' conftest.er1 >conftest.err
28201   rm -f conftest.er1
28202   cat conftest.err >&5
28203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204   (exit $ac_status); } &&
28205          { ac_try='test -z "$ac_c_werror_flag"
28206                          || test ! -s conftest.err'
28207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28208   (eval $ac_try) 2>&5
28209   ac_status=$?
28210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211   (exit $ac_status); }; } &&
28212          { ac_try='test -s conftest$ac_exeext'
28213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28214   (eval $ac_try) 2>&5
28215   ac_status=$?
28216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217   (exit $ac_status); }; }; then
28218   ol_cv_db_db_4_dot_4=yes
28219 else
28220   echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28222
28223 ol_cv_db_db_4_dot_4=no
28224 fi
28225 rm -f conftest.err conftest.$ac_objext \
28226       conftest$ac_exeext conftest.$ac_ext
28227
28228         LIBS="$ol_LIBS"
28229
28230 fi
28231 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28232 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28233
28234         if test $ol_cv_db_db_4_dot_4 = yes ; then
28235                 ol_cv_lib_db=-ldb-4.4
28236         fi
28237 fi
28238
28239                 if test $ol_cv_lib_db = no ; then
28240         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28241 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28242 if test "${ol_cv_db_db_4_4+set}" = set; then
28243   echo $ECHO_N "(cached) $ECHO_C" >&6
28244 else
28245
28246         ol_DB_LIB=-ldb-4-4
28247         ol_LIBS=$LIBS
28248         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28249
28250         cat >conftest.$ac_ext <<_ACEOF
28251 /* confdefs.h.  */
28252 _ACEOF
28253 cat confdefs.h >>conftest.$ac_ext
28254 cat >>conftest.$ac_ext <<_ACEOF
28255 /* end confdefs.h.  */
28256
28257 #ifdef HAVE_DB_185_H
28258 # include <db_185.h>
28259 #else
28260 # include <db.h>
28261 #endif
28262
28263 #ifndef DB_VERSION_MAJOR
28264 # define DB_VERSION_MAJOR 1
28265 #endif
28266
28267 #ifndef NULL
28268 #define NULL ((void*)0)
28269 #endif
28270
28271 int
28272 main ()
28273 {
28274
28275 #if DB_VERSION_MAJOR > 1
28276         {
28277                 char *version;
28278                 int major, minor, patch;
28279
28280                 version = db_version( &major, &minor, &patch );
28281
28282                 if( major != DB_VERSION_MAJOR ||
28283                         minor < DB_VERSION_MINOR )
28284                 {
28285                         printf("Berkeley DB version mismatch\n"
28286                                 "\theader: %s\n\tlibrary: %s\n",
28287                                 DB_VERSION_STRING, version);
28288                         return 1;
28289                 }
28290         }
28291 #endif
28292
28293 #if DB_VERSION_MAJOR > 2
28294         db_env_create( NULL, 0 );
28295 #elif DB_VERSION_MAJOR > 1
28296         db_appexit( NULL );
28297 #else
28298         (void) dbopen( NULL, 0, 0, 0, NULL);
28299 #endif
28300
28301   ;
28302   return 0;
28303 }
28304 _ACEOF
28305 rm -f conftest.$ac_objext conftest$ac_exeext
28306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28307   (eval $ac_link) 2>conftest.er1
28308   ac_status=$?
28309   grep -v '^ *+' conftest.er1 >conftest.err
28310   rm -f conftest.er1
28311   cat conftest.err >&5
28312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313   (exit $ac_status); } &&
28314          { ac_try='test -z "$ac_c_werror_flag"
28315                          || test ! -s conftest.err'
28316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28317   (eval $ac_try) 2>&5
28318   ac_status=$?
28319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320   (exit $ac_status); }; } &&
28321          { ac_try='test -s conftest$ac_exeext'
28322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28323   (eval $ac_try) 2>&5
28324   ac_status=$?
28325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326   (exit $ac_status); }; }; then
28327   ol_cv_db_db_4_4=yes
28328 else
28329   echo "$as_me: failed program was:" >&5
28330 sed 's/^/| /' conftest.$ac_ext >&5
28331
28332 ol_cv_db_db_4_4=no
28333 fi
28334 rm -f conftest.err conftest.$ac_objext \
28335       conftest$ac_exeext conftest.$ac_ext
28336
28337         LIBS="$ol_LIBS"
28338
28339 fi
28340 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28341 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28342
28343         if test $ol_cv_db_db_4_4 = yes ; then
28344                 ol_cv_lib_db=-ldb-4-4
28345         fi
28346 fi
28347
28348         elif test $ol_cv_bdb_minor = 3 ; then
28349                 if test $ol_cv_lib_db = no ; then
28350         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28351 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28352 if test "${ol_cv_db_db43+set}" = set; then
28353   echo $ECHO_N "(cached) $ECHO_C" >&6
28354 else
28355
28356         ol_DB_LIB=-ldb43
28357         ol_LIBS=$LIBS
28358         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28359
28360         cat >conftest.$ac_ext <<_ACEOF
28361 /* confdefs.h.  */
28362 _ACEOF
28363 cat confdefs.h >>conftest.$ac_ext
28364 cat >>conftest.$ac_ext <<_ACEOF
28365 /* end confdefs.h.  */
28366
28367 #ifdef HAVE_DB_185_H
28368 # include <db_185.h>
28369 #else
28370 # include <db.h>
28371 #endif
28372
28373 #ifndef DB_VERSION_MAJOR
28374 # define DB_VERSION_MAJOR 1
28375 #endif
28376
28377 #ifndef NULL
28378 #define NULL ((void*)0)
28379 #endif
28380
28381 int
28382 main ()
28383 {
28384
28385 #if DB_VERSION_MAJOR > 1
28386         {
28387                 char *version;
28388                 int major, minor, patch;
28389
28390                 version = db_version( &major, &minor, &patch );
28391
28392                 if( major != DB_VERSION_MAJOR ||
28393                         minor < DB_VERSION_MINOR )
28394                 {
28395                         printf("Berkeley DB version mismatch\n"
28396                                 "\theader: %s\n\tlibrary: %s\n",
28397                                 DB_VERSION_STRING, version);
28398                         return 1;
28399                 }
28400         }
28401 #endif
28402
28403 #if DB_VERSION_MAJOR > 2
28404         db_env_create( NULL, 0 );
28405 #elif DB_VERSION_MAJOR > 1
28406         db_appexit( NULL );
28407 #else
28408         (void) dbopen( NULL, 0, 0, 0, NULL);
28409 #endif
28410
28411   ;
28412   return 0;
28413 }
28414 _ACEOF
28415 rm -f conftest.$ac_objext conftest$ac_exeext
28416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28417   (eval $ac_link) 2>conftest.er1
28418   ac_status=$?
28419   grep -v '^ *+' conftest.er1 >conftest.err
28420   rm -f conftest.er1
28421   cat conftest.err >&5
28422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423   (exit $ac_status); } &&
28424          { ac_try='test -z "$ac_c_werror_flag"
28425                          || test ! -s conftest.err'
28426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28427   (eval $ac_try) 2>&5
28428   ac_status=$?
28429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430   (exit $ac_status); }; } &&
28431          { ac_try='test -s conftest$ac_exeext'
28432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28433   (eval $ac_try) 2>&5
28434   ac_status=$?
28435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436   (exit $ac_status); }; }; then
28437   ol_cv_db_db43=yes
28438 else
28439   echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28441
28442 ol_cv_db_db43=no
28443 fi
28444 rm -f conftest.err conftest.$ac_objext \
28445       conftest$ac_exeext conftest.$ac_ext
28446
28447         LIBS="$ol_LIBS"
28448
28449 fi
28450 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28451 echo "${ECHO_T}$ol_cv_db_db43" >&6
28452
28453         if test $ol_cv_db_db43 = yes ; then
28454                 ol_cv_lib_db=-ldb43
28455         fi
28456 fi
28457
28458                 if test $ol_cv_lib_db = no ; then
28459         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28460 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28461 if test "${ol_cv_db_db_43+set}" = set; then
28462   echo $ECHO_N "(cached) $ECHO_C" >&6
28463 else
28464
28465         ol_DB_LIB=-ldb-43
28466         ol_LIBS=$LIBS
28467         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28468
28469         cat >conftest.$ac_ext <<_ACEOF
28470 /* confdefs.h.  */
28471 _ACEOF
28472 cat confdefs.h >>conftest.$ac_ext
28473 cat >>conftest.$ac_ext <<_ACEOF
28474 /* end confdefs.h.  */
28475
28476 #ifdef HAVE_DB_185_H
28477 # include <db_185.h>
28478 #else
28479 # include <db.h>
28480 #endif
28481
28482 #ifndef DB_VERSION_MAJOR
28483 # define DB_VERSION_MAJOR 1
28484 #endif
28485
28486 #ifndef NULL
28487 #define NULL ((void*)0)
28488 #endif
28489
28490 int
28491 main ()
28492 {
28493
28494 #if DB_VERSION_MAJOR > 1
28495         {
28496                 char *version;
28497                 int major, minor, patch;
28498
28499                 version = db_version( &major, &minor, &patch );
28500
28501                 if( major != DB_VERSION_MAJOR ||
28502                         minor < DB_VERSION_MINOR )
28503                 {
28504                         printf("Berkeley DB version mismatch\n"
28505                                 "\theader: %s\n\tlibrary: %s\n",
28506                                 DB_VERSION_STRING, version);
28507                         return 1;
28508                 }
28509         }
28510 #endif
28511
28512 #if DB_VERSION_MAJOR > 2
28513         db_env_create( NULL, 0 );
28514 #elif DB_VERSION_MAJOR > 1
28515         db_appexit( NULL );
28516 #else
28517         (void) dbopen( NULL, 0, 0, 0, NULL);
28518 #endif
28519
28520   ;
28521   return 0;
28522 }
28523 _ACEOF
28524 rm -f conftest.$ac_objext conftest$ac_exeext
28525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28526   (eval $ac_link) 2>conftest.er1
28527   ac_status=$?
28528   grep -v '^ *+' conftest.er1 >conftest.err
28529   rm -f conftest.er1
28530   cat conftest.err >&5
28531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532   (exit $ac_status); } &&
28533          { ac_try='test -z "$ac_c_werror_flag"
28534                          || test ! -s conftest.err'
28535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28536   (eval $ac_try) 2>&5
28537   ac_status=$?
28538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539   (exit $ac_status); }; } &&
28540          { ac_try='test -s conftest$ac_exeext'
28541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28542   (eval $ac_try) 2>&5
28543   ac_status=$?
28544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545   (exit $ac_status); }; }; then
28546   ol_cv_db_db_43=yes
28547 else
28548   echo "$as_me: failed program was:" >&5
28549 sed 's/^/| /' conftest.$ac_ext >&5
28550
28551 ol_cv_db_db_43=no
28552 fi
28553 rm -f conftest.err conftest.$ac_objext \
28554       conftest$ac_exeext conftest.$ac_ext
28555
28556         LIBS="$ol_LIBS"
28557
28558 fi
28559 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28560 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28561
28562         if test $ol_cv_db_db_43 = yes ; then
28563                 ol_cv_lib_db=-ldb-43
28564         fi
28565 fi
28566
28567                 if test $ol_cv_lib_db = no ; then
28568         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28569 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28570 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28571   echo $ECHO_N "(cached) $ECHO_C" >&6
28572 else
28573
28574         ol_DB_LIB=-ldb-4.3
28575         ol_LIBS=$LIBS
28576         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28577
28578         cat >conftest.$ac_ext <<_ACEOF
28579 /* confdefs.h.  */
28580 _ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h.  */
28584
28585 #ifdef HAVE_DB_185_H
28586 # include <db_185.h>
28587 #else
28588 # include <db.h>
28589 #endif
28590
28591 #ifndef DB_VERSION_MAJOR
28592 # define DB_VERSION_MAJOR 1
28593 #endif
28594
28595 #ifndef NULL
28596 #define NULL ((void*)0)
28597 #endif
28598
28599 int
28600 main ()
28601 {
28602
28603 #if DB_VERSION_MAJOR > 1
28604         {
28605                 char *version;
28606                 int major, minor, patch;
28607
28608                 version = db_version( &major, &minor, &patch );
28609
28610                 if( major != DB_VERSION_MAJOR ||
28611                         minor < DB_VERSION_MINOR )
28612                 {
28613                         printf("Berkeley DB version mismatch\n"
28614                                 "\theader: %s\n\tlibrary: %s\n",
28615                                 DB_VERSION_STRING, version);
28616                         return 1;
28617                 }
28618         }
28619 #endif
28620
28621 #if DB_VERSION_MAJOR > 2
28622         db_env_create( NULL, 0 );
28623 #elif DB_VERSION_MAJOR > 1
28624         db_appexit( NULL );
28625 #else
28626         (void) dbopen( NULL, 0, 0, 0, NULL);
28627 #endif
28628
28629   ;
28630   return 0;
28631 }
28632 _ACEOF
28633 rm -f conftest.$ac_objext conftest$ac_exeext
28634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28635   (eval $ac_link) 2>conftest.er1
28636   ac_status=$?
28637   grep -v '^ *+' conftest.er1 >conftest.err
28638   rm -f conftest.er1
28639   cat conftest.err >&5
28640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641   (exit $ac_status); } &&
28642          { ac_try='test -z "$ac_c_werror_flag"
28643                          || test ! -s conftest.err'
28644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28645   (eval $ac_try) 2>&5
28646   ac_status=$?
28647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648   (exit $ac_status); }; } &&
28649          { ac_try='test -s conftest$ac_exeext'
28650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28651   (eval $ac_try) 2>&5
28652   ac_status=$?
28653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654   (exit $ac_status); }; }; then
28655   ol_cv_db_db_4_dot_3=yes
28656 else
28657   echo "$as_me: failed program was:" >&5
28658 sed 's/^/| /' conftest.$ac_ext >&5
28659
28660 ol_cv_db_db_4_dot_3=no
28661 fi
28662 rm -f conftest.err conftest.$ac_objext \
28663       conftest$ac_exeext conftest.$ac_ext
28664
28665         LIBS="$ol_LIBS"
28666
28667 fi
28668 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28669 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28670
28671         if test $ol_cv_db_db_4_dot_3 = yes ; then
28672                 ol_cv_lib_db=-ldb-4.3
28673         fi
28674 fi
28675
28676                 if test $ol_cv_lib_db = no ; then
28677         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28678 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28679 if test "${ol_cv_db_db_4_3+set}" = set; then
28680   echo $ECHO_N "(cached) $ECHO_C" >&6
28681 else
28682
28683         ol_DB_LIB=-ldb-4-3
28684         ol_LIBS=$LIBS
28685         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28686
28687         cat >conftest.$ac_ext <<_ACEOF
28688 /* confdefs.h.  */
28689 _ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h.  */
28693
28694 #ifdef HAVE_DB_185_H
28695 # include <db_185.h>
28696 #else
28697 # include <db.h>
28698 #endif
28699
28700 #ifndef DB_VERSION_MAJOR
28701 # define DB_VERSION_MAJOR 1
28702 #endif
28703
28704 #ifndef NULL
28705 #define NULL ((void*)0)
28706 #endif
28707
28708 int
28709 main ()
28710 {
28711
28712 #if DB_VERSION_MAJOR > 1
28713         {
28714                 char *version;
28715                 int major, minor, patch;
28716
28717                 version = db_version( &major, &minor, &patch );
28718
28719                 if( major != DB_VERSION_MAJOR ||
28720                         minor < DB_VERSION_MINOR )
28721                 {
28722                         printf("Berkeley DB version mismatch\n"
28723                                 "\theader: %s\n\tlibrary: %s\n",
28724                                 DB_VERSION_STRING, version);
28725                         return 1;
28726                 }
28727         }
28728 #endif
28729
28730 #if DB_VERSION_MAJOR > 2
28731         db_env_create( NULL, 0 );
28732 #elif DB_VERSION_MAJOR > 1
28733         db_appexit( NULL );
28734 #else
28735         (void) dbopen( NULL, 0, 0, 0, NULL);
28736 #endif
28737
28738   ;
28739   return 0;
28740 }
28741 _ACEOF
28742 rm -f conftest.$ac_objext conftest$ac_exeext
28743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28744   (eval $ac_link) 2>conftest.er1
28745   ac_status=$?
28746   grep -v '^ *+' conftest.er1 >conftest.err
28747   rm -f conftest.er1
28748   cat conftest.err >&5
28749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750   (exit $ac_status); } &&
28751          { ac_try='test -z "$ac_c_werror_flag"
28752                          || test ! -s conftest.err'
28753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28754   (eval $ac_try) 2>&5
28755   ac_status=$?
28756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757   (exit $ac_status); }; } &&
28758          { ac_try='test -s conftest$ac_exeext'
28759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28760   (eval $ac_try) 2>&5
28761   ac_status=$?
28762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763   (exit $ac_status); }; }; then
28764   ol_cv_db_db_4_3=yes
28765 else
28766   echo "$as_me: failed program was:" >&5
28767 sed 's/^/| /' conftest.$ac_ext >&5
28768
28769 ol_cv_db_db_4_3=no
28770 fi
28771 rm -f conftest.err conftest.$ac_objext \
28772       conftest$ac_exeext conftest.$ac_ext
28773
28774         LIBS="$ol_LIBS"
28775
28776 fi
28777 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
28778 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
28779
28780         if test $ol_cv_db_db_4_3 = yes ; then
28781                 ol_cv_lib_db=-ldb-4-3
28782         fi
28783 fi
28784
28785         elif test $ol_cv_bdb_minor = 2 ; then
28786                 if test $ol_cv_lib_db = no ; then
28787         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
28788 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
28789 if test "${ol_cv_db_db42+set}" = set; then
28790   echo $ECHO_N "(cached) $ECHO_C" >&6
28791 else
28792
28793         ol_DB_LIB=-ldb42
28794         ol_LIBS=$LIBS
28795         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28796
28797         cat >conftest.$ac_ext <<_ACEOF
28798 /* confdefs.h.  */
28799 _ACEOF
28800 cat confdefs.h >>conftest.$ac_ext
28801 cat >>conftest.$ac_ext <<_ACEOF
28802 /* end confdefs.h.  */
28803
28804 #ifdef HAVE_DB_185_H
28805 # include <db_185.h>
28806 #else
28807 # include <db.h>
28808 #endif
28809
28810 #ifndef DB_VERSION_MAJOR
28811 # define DB_VERSION_MAJOR 1
28812 #endif
28813
28814 #ifndef NULL
28815 #define NULL ((void*)0)
28816 #endif
28817
28818 int
28819 main ()
28820 {
28821
28822 #if DB_VERSION_MAJOR > 1
28823         {
28824                 char *version;
28825                 int major, minor, patch;
28826
28827                 version = db_version( &major, &minor, &patch );
28828
28829                 if( major != DB_VERSION_MAJOR ||
28830                         minor < DB_VERSION_MINOR )
28831                 {
28832                         printf("Berkeley DB version mismatch\n"
28833                                 "\theader: %s\n\tlibrary: %s\n",
28834                                 DB_VERSION_STRING, version);
28835                         return 1;
28836                 }
28837         }
28838 #endif
28839
28840 #if DB_VERSION_MAJOR > 2
28841         db_env_create( NULL, 0 );
28842 #elif DB_VERSION_MAJOR > 1
28843         db_appexit( NULL );
28844 #else
28845         (void) dbopen( NULL, 0, 0, 0, NULL);
28846 #endif
28847
28848   ;
28849   return 0;
28850 }
28851 _ACEOF
28852 rm -f conftest.$ac_objext conftest$ac_exeext
28853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28854   (eval $ac_link) 2>conftest.er1
28855   ac_status=$?
28856   grep -v '^ *+' conftest.er1 >conftest.err
28857   rm -f conftest.er1
28858   cat conftest.err >&5
28859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860   (exit $ac_status); } &&
28861          { ac_try='test -z "$ac_c_werror_flag"
28862                          || test ! -s conftest.err'
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); }; } &&
28868          { ac_try='test -s conftest$ac_exeext'
28869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28870   (eval $ac_try) 2>&5
28871   ac_status=$?
28872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873   (exit $ac_status); }; }; then
28874   ol_cv_db_db42=yes
28875 else
28876   echo "$as_me: failed program was:" >&5
28877 sed 's/^/| /' conftest.$ac_ext >&5
28878
28879 ol_cv_db_db42=no
28880 fi
28881 rm -f conftest.err conftest.$ac_objext \
28882       conftest$ac_exeext conftest.$ac_ext
28883
28884         LIBS="$ol_LIBS"
28885
28886 fi
28887 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
28888 echo "${ECHO_T}$ol_cv_db_db42" >&6
28889
28890         if test $ol_cv_db_db42 = yes ; then
28891                 ol_cv_lib_db=-ldb42
28892         fi
28893 fi
28894
28895                 if test $ol_cv_lib_db = no ; then
28896         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
28897 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
28898 if test "${ol_cv_db_db_42+set}" = set; then
28899   echo $ECHO_N "(cached) $ECHO_C" >&6
28900 else
28901
28902         ol_DB_LIB=-ldb-42
28903         ol_LIBS=$LIBS
28904         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28905
28906         cat >conftest.$ac_ext <<_ACEOF
28907 /* confdefs.h.  */
28908 _ACEOF
28909 cat confdefs.h >>conftest.$ac_ext
28910 cat >>conftest.$ac_ext <<_ACEOF
28911 /* end confdefs.h.  */
28912
28913 #ifdef HAVE_DB_185_H
28914 # include <db_185.h>
28915 #else
28916 # include <db.h>
28917 #endif
28918
28919 #ifndef DB_VERSION_MAJOR
28920 # define DB_VERSION_MAJOR 1
28921 #endif
28922
28923 #ifndef NULL
28924 #define NULL ((void*)0)
28925 #endif
28926
28927 int
28928 main ()
28929 {
28930
28931 #if DB_VERSION_MAJOR > 1
28932         {
28933                 char *version;
28934                 int major, minor, patch;
28935
28936                 version = db_version( &major, &minor, &patch );
28937
28938                 if( major != DB_VERSION_MAJOR ||
28939                         minor < DB_VERSION_MINOR )
28940                 {
28941                         printf("Berkeley DB version mismatch\n"
28942                                 "\theader: %s\n\tlibrary: %s\n",
28943                                 DB_VERSION_STRING, version);
28944                         return 1;
28945                 }
28946         }
28947 #endif
28948
28949 #if DB_VERSION_MAJOR > 2
28950         db_env_create( NULL, 0 );
28951 #elif DB_VERSION_MAJOR > 1
28952         db_appexit( NULL );
28953 #else
28954         (void) dbopen( NULL, 0, 0, 0, NULL);
28955 #endif
28956
28957   ;
28958   return 0;
28959 }
28960 _ACEOF
28961 rm -f conftest.$ac_objext conftest$ac_exeext
28962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28963   (eval $ac_link) 2>conftest.er1
28964   ac_status=$?
28965   grep -v '^ *+' conftest.er1 >conftest.err
28966   rm -f conftest.er1
28967   cat conftest.err >&5
28968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969   (exit $ac_status); } &&
28970          { ac_try='test -z "$ac_c_werror_flag"
28971                          || test ! -s conftest.err'
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); }; } &&
28977          { ac_try='test -s conftest$ac_exeext'
28978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28979   (eval $ac_try) 2>&5
28980   ac_status=$?
28981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982   (exit $ac_status); }; }; then
28983   ol_cv_db_db_42=yes
28984 else
28985   echo "$as_me: failed program was:" >&5
28986 sed 's/^/| /' conftest.$ac_ext >&5
28987
28988 ol_cv_db_db_42=no
28989 fi
28990 rm -f conftest.err conftest.$ac_objext \
28991       conftest$ac_exeext conftest.$ac_ext
28992
28993         LIBS="$ol_LIBS"
28994
28995 fi
28996 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
28997 echo "${ECHO_T}$ol_cv_db_db_42" >&6
28998
28999         if test $ol_cv_db_db_42 = yes ; then
29000                 ol_cv_lib_db=-ldb-42
29001         fi
29002 fi
29003
29004                 if test $ol_cv_lib_db = no ; then
29005         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29006 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29007 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29008   echo $ECHO_N "(cached) $ECHO_C" >&6
29009 else
29010
29011         ol_DB_LIB=-ldb-4.2
29012         ol_LIBS=$LIBS
29013         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29014
29015         cat >conftest.$ac_ext <<_ACEOF
29016 /* confdefs.h.  */
29017 _ACEOF
29018 cat confdefs.h >>conftest.$ac_ext
29019 cat >>conftest.$ac_ext <<_ACEOF
29020 /* end confdefs.h.  */
29021
29022 #ifdef HAVE_DB_185_H
29023 # include <db_185.h>
29024 #else
29025 # include <db.h>
29026 #endif
29027
29028 #ifndef DB_VERSION_MAJOR
29029 # define DB_VERSION_MAJOR 1
29030 #endif
29031
29032 #ifndef NULL
29033 #define NULL ((void*)0)
29034 #endif
29035
29036 int
29037 main ()
29038 {
29039
29040 #if DB_VERSION_MAJOR > 1
29041         {
29042                 char *version;
29043                 int major, minor, patch;
29044
29045                 version = db_version( &major, &minor, &patch );
29046
29047                 if( major != DB_VERSION_MAJOR ||
29048                         minor < DB_VERSION_MINOR )
29049                 {
29050                         printf("Berkeley DB version mismatch\n"
29051                                 "\theader: %s\n\tlibrary: %s\n",
29052                                 DB_VERSION_STRING, version);
29053                         return 1;
29054                 }
29055         }
29056 #endif
29057
29058 #if DB_VERSION_MAJOR > 2
29059         db_env_create( NULL, 0 );
29060 #elif DB_VERSION_MAJOR > 1
29061         db_appexit( NULL );
29062 #else
29063         (void) dbopen( NULL, 0, 0, 0, NULL);
29064 #endif
29065
29066   ;
29067   return 0;
29068 }
29069 _ACEOF
29070 rm -f conftest.$ac_objext conftest$ac_exeext
29071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29072   (eval $ac_link) 2>conftest.er1
29073   ac_status=$?
29074   grep -v '^ *+' conftest.er1 >conftest.err
29075   rm -f conftest.er1
29076   cat conftest.err >&5
29077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078   (exit $ac_status); } &&
29079          { ac_try='test -z "$ac_c_werror_flag"
29080                          || test ! -s conftest.err'
29081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29082   (eval $ac_try) 2>&5
29083   ac_status=$?
29084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085   (exit $ac_status); }; } &&
29086          { ac_try='test -s conftest$ac_exeext'
29087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29088   (eval $ac_try) 2>&5
29089   ac_status=$?
29090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29091   (exit $ac_status); }; }; then
29092   ol_cv_db_db_4_dot_2=yes
29093 else
29094   echo "$as_me: failed program was:" >&5
29095 sed 's/^/| /' conftest.$ac_ext >&5
29096
29097 ol_cv_db_db_4_dot_2=no
29098 fi
29099 rm -f conftest.err conftest.$ac_objext \
29100       conftest$ac_exeext conftest.$ac_ext
29101
29102         LIBS="$ol_LIBS"
29103
29104 fi
29105 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29106 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29107
29108         if test $ol_cv_db_db_4_dot_2 = yes ; then
29109                 ol_cv_lib_db=-ldb-4.2
29110         fi
29111 fi
29112
29113                 if test $ol_cv_lib_db = no ; then
29114         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29115 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29116 if test "${ol_cv_db_db_4_2+set}" = set; then
29117   echo $ECHO_N "(cached) $ECHO_C" >&6
29118 else
29119
29120         ol_DB_LIB=-ldb-4-2
29121         ol_LIBS=$LIBS
29122         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29123
29124         cat >conftest.$ac_ext <<_ACEOF
29125 /* confdefs.h.  */
29126 _ACEOF
29127 cat confdefs.h >>conftest.$ac_ext
29128 cat >>conftest.$ac_ext <<_ACEOF
29129 /* end confdefs.h.  */
29130
29131 #ifdef HAVE_DB_185_H
29132 # include <db_185.h>
29133 #else
29134 # include <db.h>
29135 #endif
29136
29137 #ifndef DB_VERSION_MAJOR
29138 # define DB_VERSION_MAJOR 1
29139 #endif
29140
29141 #ifndef NULL
29142 #define NULL ((void*)0)
29143 #endif
29144
29145 int
29146 main ()
29147 {
29148
29149 #if DB_VERSION_MAJOR > 1
29150         {
29151                 char *version;
29152                 int major, minor, patch;
29153
29154                 version = db_version( &major, &minor, &patch );
29155
29156                 if( major != DB_VERSION_MAJOR ||
29157                         minor < DB_VERSION_MINOR )
29158                 {
29159                         printf("Berkeley DB version mismatch\n"
29160                                 "\theader: %s\n\tlibrary: %s\n",
29161                                 DB_VERSION_STRING, version);
29162                         return 1;
29163                 }
29164         }
29165 #endif
29166
29167 #if DB_VERSION_MAJOR > 2
29168         db_env_create( NULL, 0 );
29169 #elif DB_VERSION_MAJOR > 1
29170         db_appexit( NULL );
29171 #else
29172         (void) dbopen( NULL, 0, 0, 0, NULL);
29173 #endif
29174
29175   ;
29176   return 0;
29177 }
29178 _ACEOF
29179 rm -f conftest.$ac_objext conftest$ac_exeext
29180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29181   (eval $ac_link) 2>conftest.er1
29182   ac_status=$?
29183   grep -v '^ *+' conftest.er1 >conftest.err
29184   rm -f conftest.er1
29185   cat conftest.err >&5
29186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187   (exit $ac_status); } &&
29188          { ac_try='test -z "$ac_c_werror_flag"
29189                          || test ! -s conftest.err'
29190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29191   (eval $ac_try) 2>&5
29192   ac_status=$?
29193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194   (exit $ac_status); }; } &&
29195          { ac_try='test -s conftest$ac_exeext'
29196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29197   (eval $ac_try) 2>&5
29198   ac_status=$?
29199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200   (exit $ac_status); }; }; then
29201   ol_cv_db_db_4_2=yes
29202 else
29203   echo "$as_me: failed program was:" >&5
29204 sed 's/^/| /' conftest.$ac_ext >&5
29205
29206 ol_cv_db_db_4_2=no
29207 fi
29208 rm -f conftest.err conftest.$ac_objext \
29209       conftest$ac_exeext conftest.$ac_ext
29210
29211         LIBS="$ol_LIBS"
29212
29213 fi
29214 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29215 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29216
29217         if test $ol_cv_db_db_4_2 = yes ; then
29218                 ol_cv_lib_db=-ldb-4-2
29219         fi
29220 fi
29221
29222         elif test $ol_cv_bdb_minor = 1 ; then
29223                 if test $ol_cv_lib_db = no ; then
29224         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29225 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29226 if test "${ol_cv_db_db41+set}" = set; then
29227   echo $ECHO_N "(cached) $ECHO_C" >&6
29228 else
29229
29230         ol_DB_LIB=-ldb41
29231         ol_LIBS=$LIBS
29232         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29233
29234         cat >conftest.$ac_ext <<_ACEOF
29235 /* confdefs.h.  */
29236 _ACEOF
29237 cat confdefs.h >>conftest.$ac_ext
29238 cat >>conftest.$ac_ext <<_ACEOF
29239 /* end confdefs.h.  */
29240
29241 #ifdef HAVE_DB_185_H
29242 # include <db_185.h>
29243 #else
29244 # include <db.h>
29245 #endif
29246
29247 #ifndef DB_VERSION_MAJOR
29248 # define DB_VERSION_MAJOR 1
29249 #endif
29250
29251 #ifndef NULL
29252 #define NULL ((void*)0)
29253 #endif
29254
29255 int
29256 main ()
29257 {
29258
29259 #if DB_VERSION_MAJOR > 1
29260         {
29261                 char *version;
29262                 int major, minor, patch;
29263
29264                 version = db_version( &major, &minor, &patch );
29265
29266                 if( major != DB_VERSION_MAJOR ||
29267                         minor < DB_VERSION_MINOR )
29268                 {
29269                         printf("Berkeley DB version mismatch\n"
29270                                 "\theader: %s\n\tlibrary: %s\n",
29271                                 DB_VERSION_STRING, version);
29272                         return 1;
29273                 }
29274         }
29275 #endif
29276
29277 #if DB_VERSION_MAJOR > 2
29278         db_env_create( NULL, 0 );
29279 #elif DB_VERSION_MAJOR > 1
29280         db_appexit( NULL );
29281 #else
29282         (void) dbopen( NULL, 0, 0, 0, NULL);
29283 #endif
29284
29285   ;
29286   return 0;
29287 }
29288 _ACEOF
29289 rm -f conftest.$ac_objext conftest$ac_exeext
29290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29291   (eval $ac_link) 2>conftest.er1
29292   ac_status=$?
29293   grep -v '^ *+' conftest.er1 >conftest.err
29294   rm -f conftest.er1
29295   cat conftest.err >&5
29296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297   (exit $ac_status); } &&
29298          { ac_try='test -z "$ac_c_werror_flag"
29299                          || test ! -s conftest.err'
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); }; } &&
29305          { ac_try='test -s conftest$ac_exeext'
29306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29307   (eval $ac_try) 2>&5
29308   ac_status=$?
29309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310   (exit $ac_status); }; }; then
29311   ol_cv_db_db41=yes
29312 else
29313   echo "$as_me: failed program was:" >&5
29314 sed 's/^/| /' conftest.$ac_ext >&5
29315
29316 ol_cv_db_db41=no
29317 fi
29318 rm -f conftest.err conftest.$ac_objext \
29319       conftest$ac_exeext conftest.$ac_ext
29320
29321         LIBS="$ol_LIBS"
29322
29323 fi
29324 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29325 echo "${ECHO_T}$ol_cv_db_db41" >&6
29326
29327         if test $ol_cv_db_db41 = yes ; then
29328                 ol_cv_lib_db=-ldb41
29329         fi
29330 fi
29331
29332                 if test $ol_cv_lib_db = no ; then
29333         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29334 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29335 if test "${ol_cv_db_db_41+set}" = set; then
29336   echo $ECHO_N "(cached) $ECHO_C" >&6
29337 else
29338
29339         ol_DB_LIB=-ldb-41
29340         ol_LIBS=$LIBS
29341         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29342
29343         cat >conftest.$ac_ext <<_ACEOF
29344 /* confdefs.h.  */
29345 _ACEOF
29346 cat confdefs.h >>conftest.$ac_ext
29347 cat >>conftest.$ac_ext <<_ACEOF
29348 /* end confdefs.h.  */
29349
29350 #ifdef HAVE_DB_185_H
29351 # include <db_185.h>
29352 #else
29353 # include <db.h>
29354 #endif
29355
29356 #ifndef DB_VERSION_MAJOR
29357 # define DB_VERSION_MAJOR 1
29358 #endif
29359
29360 #ifndef NULL
29361 #define NULL ((void*)0)
29362 #endif
29363
29364 int
29365 main ()
29366 {
29367
29368 #if DB_VERSION_MAJOR > 1
29369         {
29370                 char *version;
29371                 int major, minor, patch;
29372
29373                 version = db_version( &major, &minor, &patch );
29374
29375                 if( major != DB_VERSION_MAJOR ||
29376                         minor < DB_VERSION_MINOR )
29377                 {
29378                         printf("Berkeley DB version mismatch\n"
29379                                 "\theader: %s\n\tlibrary: %s\n",
29380                                 DB_VERSION_STRING, version);
29381                         return 1;
29382                 }
29383         }
29384 #endif
29385
29386 #if DB_VERSION_MAJOR > 2
29387         db_env_create( NULL, 0 );
29388 #elif DB_VERSION_MAJOR > 1
29389         db_appexit( NULL );
29390 #else
29391         (void) dbopen( NULL, 0, 0, 0, NULL);
29392 #endif
29393
29394   ;
29395   return 0;
29396 }
29397 _ACEOF
29398 rm -f conftest.$ac_objext conftest$ac_exeext
29399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29400   (eval $ac_link) 2>conftest.er1
29401   ac_status=$?
29402   grep -v '^ *+' conftest.er1 >conftest.err
29403   rm -f conftest.er1
29404   cat conftest.err >&5
29405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406   (exit $ac_status); } &&
29407          { ac_try='test -z "$ac_c_werror_flag"
29408                          || test ! -s conftest.err'
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); }; } &&
29414          { ac_try='test -s conftest$ac_exeext'
29415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29416   (eval $ac_try) 2>&5
29417   ac_status=$?
29418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419   (exit $ac_status); }; }; then
29420   ol_cv_db_db_41=yes
29421 else
29422   echo "$as_me: failed program was:" >&5
29423 sed 's/^/| /' conftest.$ac_ext >&5
29424
29425 ol_cv_db_db_41=no
29426 fi
29427 rm -f conftest.err conftest.$ac_objext \
29428       conftest$ac_exeext conftest.$ac_ext
29429
29430         LIBS="$ol_LIBS"
29431
29432 fi
29433 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29434 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29435
29436         if test $ol_cv_db_db_41 = yes ; then
29437                 ol_cv_lib_db=-ldb-41
29438         fi
29439 fi
29440
29441                 if test $ol_cv_lib_db = no ; then
29442         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29443 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29444 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29445   echo $ECHO_N "(cached) $ECHO_C" >&6
29446 else
29447
29448         ol_DB_LIB=-ldb-4.1
29449         ol_LIBS=$LIBS
29450         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29451
29452         cat >conftest.$ac_ext <<_ACEOF
29453 /* confdefs.h.  */
29454 _ACEOF
29455 cat confdefs.h >>conftest.$ac_ext
29456 cat >>conftest.$ac_ext <<_ACEOF
29457 /* end confdefs.h.  */
29458
29459 #ifdef HAVE_DB_185_H
29460 # include <db_185.h>
29461 #else
29462 # include <db.h>
29463 #endif
29464
29465 #ifndef DB_VERSION_MAJOR
29466 # define DB_VERSION_MAJOR 1
29467 #endif
29468
29469 #ifndef NULL
29470 #define NULL ((void*)0)
29471 #endif
29472
29473 int
29474 main ()
29475 {
29476
29477 #if DB_VERSION_MAJOR > 1
29478         {
29479                 char *version;
29480                 int major, minor, patch;
29481
29482                 version = db_version( &major, &minor, &patch );
29483
29484                 if( major != DB_VERSION_MAJOR ||
29485                         minor < DB_VERSION_MINOR )
29486                 {
29487                         printf("Berkeley DB version mismatch\n"
29488                                 "\theader: %s\n\tlibrary: %s\n",
29489                                 DB_VERSION_STRING, version);
29490                         return 1;
29491                 }
29492         }
29493 #endif
29494
29495 #if DB_VERSION_MAJOR > 2
29496         db_env_create( NULL, 0 );
29497 #elif DB_VERSION_MAJOR > 1
29498         db_appexit( NULL );
29499 #else
29500         (void) dbopen( NULL, 0, 0, 0, NULL);
29501 #endif
29502
29503   ;
29504   return 0;
29505 }
29506 _ACEOF
29507 rm -f conftest.$ac_objext conftest$ac_exeext
29508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29509   (eval $ac_link) 2>conftest.er1
29510   ac_status=$?
29511   grep -v '^ *+' conftest.er1 >conftest.err
29512   rm -f conftest.er1
29513   cat conftest.err >&5
29514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515   (exit $ac_status); } &&
29516          { ac_try='test -z "$ac_c_werror_flag"
29517                          || test ! -s conftest.err'
29518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29519   (eval $ac_try) 2>&5
29520   ac_status=$?
29521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522   (exit $ac_status); }; } &&
29523          { ac_try='test -s conftest$ac_exeext'
29524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525   (eval $ac_try) 2>&5
29526   ac_status=$?
29527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528   (exit $ac_status); }; }; then
29529   ol_cv_db_db_4_dot_1=yes
29530 else
29531   echo "$as_me: failed program was:" >&5
29532 sed 's/^/| /' conftest.$ac_ext >&5
29533
29534 ol_cv_db_db_4_dot_1=no
29535 fi
29536 rm -f conftest.err conftest.$ac_objext \
29537       conftest$ac_exeext conftest.$ac_ext
29538
29539         LIBS="$ol_LIBS"
29540
29541 fi
29542 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29543 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29544
29545         if test $ol_cv_db_db_4_dot_1 = yes ; then
29546                 ol_cv_lib_db=-ldb-4.1
29547         fi
29548 fi
29549
29550                 if test $ol_cv_lib_db = no ; then
29551         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29552 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29553 if test "${ol_cv_db_db_4_1+set}" = set; then
29554   echo $ECHO_N "(cached) $ECHO_C" >&6
29555 else
29556
29557         ol_DB_LIB=-ldb-4-1
29558         ol_LIBS=$LIBS
29559         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29560
29561         cat >conftest.$ac_ext <<_ACEOF
29562 /* confdefs.h.  */
29563 _ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h.  */
29567
29568 #ifdef HAVE_DB_185_H
29569 # include <db_185.h>
29570 #else
29571 # include <db.h>
29572 #endif
29573
29574 #ifndef DB_VERSION_MAJOR
29575 # define DB_VERSION_MAJOR 1
29576 #endif
29577
29578 #ifndef NULL
29579 #define NULL ((void*)0)
29580 #endif
29581
29582 int
29583 main ()
29584 {
29585
29586 #if DB_VERSION_MAJOR > 1
29587         {
29588                 char *version;
29589                 int major, minor, patch;
29590
29591                 version = db_version( &major, &minor, &patch );
29592
29593                 if( major != DB_VERSION_MAJOR ||
29594                         minor < DB_VERSION_MINOR )
29595                 {
29596                         printf("Berkeley DB version mismatch\n"
29597                                 "\theader: %s\n\tlibrary: %s\n",
29598                                 DB_VERSION_STRING, version);
29599                         return 1;
29600                 }
29601         }
29602 #endif
29603
29604 #if DB_VERSION_MAJOR > 2
29605         db_env_create( NULL, 0 );
29606 #elif DB_VERSION_MAJOR > 1
29607         db_appexit( NULL );
29608 #else
29609         (void) dbopen( NULL, 0, 0, 0, NULL);
29610 #endif
29611
29612   ;
29613   return 0;
29614 }
29615 _ACEOF
29616 rm -f conftest.$ac_objext conftest$ac_exeext
29617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29618   (eval $ac_link) 2>conftest.er1
29619   ac_status=$?
29620   grep -v '^ *+' conftest.er1 >conftest.err
29621   rm -f conftest.er1
29622   cat conftest.err >&5
29623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624   (exit $ac_status); } &&
29625          { ac_try='test -z "$ac_c_werror_flag"
29626                          || test ! -s conftest.err'
29627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29628   (eval $ac_try) 2>&5
29629   ac_status=$?
29630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631   (exit $ac_status); }; } &&
29632          { ac_try='test -s conftest$ac_exeext'
29633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29634   (eval $ac_try) 2>&5
29635   ac_status=$?
29636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637   (exit $ac_status); }; }; then
29638   ol_cv_db_db_4_1=yes
29639 else
29640   echo "$as_me: failed program was:" >&5
29641 sed 's/^/| /' conftest.$ac_ext >&5
29642
29643 ol_cv_db_db_4_1=no
29644 fi
29645 rm -f conftest.err conftest.$ac_objext \
29646       conftest$ac_exeext conftest.$ac_ext
29647
29648         LIBS="$ol_LIBS"
29649
29650 fi
29651 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29652 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29653
29654         if test $ol_cv_db_db_4_1 = yes ; then
29655                 ol_cv_lib_db=-ldb-4-1
29656         fi
29657 fi
29658
29659         fi
29660         if test $ol_cv_lib_db = no ; then
29661         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29662 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
29663 if test "${ol_cv_db_db_4+set}" = set; then
29664   echo $ECHO_N "(cached) $ECHO_C" >&6
29665 else
29666
29667         ol_DB_LIB=-ldb-4
29668         ol_LIBS=$LIBS
29669         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29670
29671         cat >conftest.$ac_ext <<_ACEOF
29672 /* confdefs.h.  */
29673 _ACEOF
29674 cat confdefs.h >>conftest.$ac_ext
29675 cat >>conftest.$ac_ext <<_ACEOF
29676 /* end confdefs.h.  */
29677
29678 #ifdef HAVE_DB_185_H
29679 # include <db_185.h>
29680 #else
29681 # include <db.h>
29682 #endif
29683
29684 #ifndef DB_VERSION_MAJOR
29685 # define DB_VERSION_MAJOR 1
29686 #endif
29687
29688 #ifndef NULL
29689 #define NULL ((void*)0)
29690 #endif
29691
29692 int
29693 main ()
29694 {
29695
29696 #if DB_VERSION_MAJOR > 1
29697         {
29698                 char *version;
29699                 int major, minor, patch;
29700
29701                 version = db_version( &major, &minor, &patch );
29702
29703                 if( major != DB_VERSION_MAJOR ||
29704                         minor < DB_VERSION_MINOR )
29705                 {
29706                         printf("Berkeley DB version mismatch\n"
29707                                 "\theader: %s\n\tlibrary: %s\n",
29708                                 DB_VERSION_STRING, version);
29709                         return 1;
29710                 }
29711         }
29712 #endif
29713
29714 #if DB_VERSION_MAJOR > 2
29715         db_env_create( NULL, 0 );
29716 #elif DB_VERSION_MAJOR > 1
29717         db_appexit( NULL );
29718 #else
29719         (void) dbopen( NULL, 0, 0, 0, NULL);
29720 #endif
29721
29722   ;
29723   return 0;
29724 }
29725 _ACEOF
29726 rm -f conftest.$ac_objext conftest$ac_exeext
29727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29728   (eval $ac_link) 2>conftest.er1
29729   ac_status=$?
29730   grep -v '^ *+' conftest.er1 >conftest.err
29731   rm -f conftest.er1
29732   cat conftest.err >&5
29733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734   (exit $ac_status); } &&
29735          { ac_try='test -z "$ac_c_werror_flag"
29736                          || test ! -s conftest.err'
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); }; } &&
29742          { ac_try='test -s conftest$ac_exeext'
29743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29744   (eval $ac_try) 2>&5
29745   ac_status=$?
29746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747   (exit $ac_status); }; }; then
29748   ol_cv_db_db_4=yes
29749 else
29750   echo "$as_me: failed program was:" >&5
29751 sed 's/^/| /' conftest.$ac_ext >&5
29752
29753 ol_cv_db_db_4=no
29754 fi
29755 rm -f conftest.err conftest.$ac_objext \
29756       conftest$ac_exeext conftest.$ac_ext
29757
29758         LIBS="$ol_LIBS"
29759
29760 fi
29761 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29762 echo "${ECHO_T}$ol_cv_db_db_4" >&6
29763
29764         if test $ol_cv_db_db_4 = yes ; then
29765                 ol_cv_lib_db=-ldb-4
29766         fi
29767 fi
29768
29769         if test $ol_cv_lib_db = no ; then
29770         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29771 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
29772 if test "${ol_cv_db_db4+set}" = set; then
29773   echo $ECHO_N "(cached) $ECHO_C" >&6
29774 else
29775
29776         ol_DB_LIB=-ldb4
29777         ol_LIBS=$LIBS
29778         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29779
29780         cat >conftest.$ac_ext <<_ACEOF
29781 /* confdefs.h.  */
29782 _ACEOF
29783 cat confdefs.h >>conftest.$ac_ext
29784 cat >>conftest.$ac_ext <<_ACEOF
29785 /* end confdefs.h.  */
29786
29787 #ifdef HAVE_DB_185_H
29788 # include <db_185.h>
29789 #else
29790 # include <db.h>
29791 #endif
29792
29793 #ifndef DB_VERSION_MAJOR
29794 # define DB_VERSION_MAJOR 1
29795 #endif
29796
29797 #ifndef NULL
29798 #define NULL ((void*)0)
29799 #endif
29800
29801 int
29802 main ()
29803 {
29804
29805 #if DB_VERSION_MAJOR > 1
29806         {
29807                 char *version;
29808                 int major, minor, patch;
29809
29810                 version = db_version( &major, &minor, &patch );
29811
29812                 if( major != DB_VERSION_MAJOR ||
29813                         minor < DB_VERSION_MINOR )
29814                 {
29815                         printf("Berkeley DB version mismatch\n"
29816                                 "\theader: %s\n\tlibrary: %s\n",
29817                                 DB_VERSION_STRING, version);
29818                         return 1;
29819                 }
29820         }
29821 #endif
29822
29823 #if DB_VERSION_MAJOR > 2
29824         db_env_create( NULL, 0 );
29825 #elif DB_VERSION_MAJOR > 1
29826         db_appexit( NULL );
29827 #else
29828         (void) dbopen( NULL, 0, 0, 0, NULL);
29829 #endif
29830
29831   ;
29832   return 0;
29833 }
29834 _ACEOF
29835 rm -f conftest.$ac_objext conftest$ac_exeext
29836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29837   (eval $ac_link) 2>conftest.er1
29838   ac_status=$?
29839   grep -v '^ *+' conftest.er1 >conftest.err
29840   rm -f conftest.er1
29841   cat conftest.err >&5
29842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29843   (exit $ac_status); } &&
29844          { ac_try='test -z "$ac_c_werror_flag"
29845                          || test ! -s conftest.err'
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); }; } &&
29851          { ac_try='test -s conftest$ac_exeext'
29852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29853   (eval $ac_try) 2>&5
29854   ac_status=$?
29855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856   (exit $ac_status); }; }; then
29857   ol_cv_db_db4=yes
29858 else
29859   echo "$as_me: failed program was:" >&5
29860 sed 's/^/| /' conftest.$ac_ext >&5
29861
29862 ol_cv_db_db4=no
29863 fi
29864 rm -f conftest.err conftest.$ac_objext \
29865       conftest$ac_exeext conftest.$ac_ext
29866
29867         LIBS="$ol_LIBS"
29868
29869 fi
29870 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29871 echo "${ECHO_T}$ol_cv_db_db4" >&6
29872
29873         if test $ol_cv_db_db4 = yes ; then
29874                 ol_cv_lib_db=-ldb4
29875         fi
29876 fi
29877
29878         if test $ol_cv_lib_db = no ; then
29879         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29880 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29881 if test "${ol_cv_db_db+set}" = set; then
29882   echo $ECHO_N "(cached) $ECHO_C" >&6
29883 else
29884
29885         ol_DB_LIB=-ldb
29886         ol_LIBS=$LIBS
29887         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29888
29889         cat >conftest.$ac_ext <<_ACEOF
29890 /* confdefs.h.  */
29891 _ACEOF
29892 cat confdefs.h >>conftest.$ac_ext
29893 cat >>conftest.$ac_ext <<_ACEOF
29894 /* end confdefs.h.  */
29895
29896 #ifdef HAVE_DB_185_H
29897 # include <db_185.h>
29898 #else
29899 # include <db.h>
29900 #endif
29901
29902 #ifndef DB_VERSION_MAJOR
29903 # define DB_VERSION_MAJOR 1
29904 #endif
29905
29906 #ifndef NULL
29907 #define NULL ((void*)0)
29908 #endif
29909
29910 int
29911 main ()
29912 {
29913
29914 #if DB_VERSION_MAJOR > 1
29915         {
29916                 char *version;
29917                 int major, minor, patch;
29918
29919                 version = db_version( &major, &minor, &patch );
29920
29921                 if( major != DB_VERSION_MAJOR ||
29922                         minor < DB_VERSION_MINOR )
29923                 {
29924                         printf("Berkeley DB version mismatch\n"
29925                                 "\theader: %s\n\tlibrary: %s\n",
29926                                 DB_VERSION_STRING, version);
29927                         return 1;
29928                 }
29929         }
29930 #endif
29931
29932 #if DB_VERSION_MAJOR > 2
29933         db_env_create( NULL, 0 );
29934 #elif DB_VERSION_MAJOR > 1
29935         db_appexit( NULL );
29936 #else
29937         (void) dbopen( NULL, 0, 0, 0, NULL);
29938 #endif
29939
29940   ;
29941   return 0;
29942 }
29943 _ACEOF
29944 rm -f conftest.$ac_objext conftest$ac_exeext
29945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29946   (eval $ac_link) 2>conftest.er1
29947   ac_status=$?
29948   grep -v '^ *+' conftest.er1 >conftest.err
29949   rm -f conftest.er1
29950   cat conftest.err >&5
29951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952   (exit $ac_status); } &&
29953          { ac_try='test -z "$ac_c_werror_flag"
29954                          || test ! -s conftest.err'
29955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29956   (eval $ac_try) 2>&5
29957   ac_status=$?
29958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959   (exit $ac_status); }; } &&
29960          { ac_try='test -s conftest$ac_exeext'
29961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29962   (eval $ac_try) 2>&5
29963   ac_status=$?
29964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965   (exit $ac_status); }; }; then
29966   ol_cv_db_db=yes
29967 else
29968   echo "$as_me: failed program was:" >&5
29969 sed 's/^/| /' conftest.$ac_ext >&5
29970
29971 ol_cv_db_db=no
29972 fi
29973 rm -f conftest.err conftest.$ac_objext \
29974       conftest$ac_exeext conftest.$ac_ext
29975
29976         LIBS="$ol_LIBS"
29977
29978 fi
29979 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29980 echo "${ECHO_T}$ol_cv_db_db" >&6
29981
29982         if test $ol_cv_db_db = yes ; then
29983                 ol_cv_lib_db=-ldb
29984         fi
29985 fi
29986
29987
29988 elif test $ol_cv_bdb_major = 3 ; then
29989         if test $ol_cv_lib_db = no ; then
29990         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
29991 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
29992 if test "${ol_cv_db_db3+set}" = set; then
29993   echo $ECHO_N "(cached) $ECHO_C" >&6
29994 else
29995
29996         ol_DB_LIB=-ldb3
29997         ol_LIBS=$LIBS
29998         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29999
30000         cat >conftest.$ac_ext <<_ACEOF
30001 /* confdefs.h.  */
30002 _ACEOF
30003 cat confdefs.h >>conftest.$ac_ext
30004 cat >>conftest.$ac_ext <<_ACEOF
30005 /* end confdefs.h.  */
30006
30007 #ifdef HAVE_DB_185_H
30008 # include <db_185.h>
30009 #else
30010 # include <db.h>
30011 #endif
30012
30013 #ifndef DB_VERSION_MAJOR
30014 # define DB_VERSION_MAJOR 1
30015 #endif
30016
30017 #ifndef NULL
30018 #define NULL ((void*)0)
30019 #endif
30020
30021 int
30022 main ()
30023 {
30024
30025 #if DB_VERSION_MAJOR > 1
30026         {
30027                 char *version;
30028                 int major, minor, patch;
30029
30030                 version = db_version( &major, &minor, &patch );
30031
30032                 if( major != DB_VERSION_MAJOR ||
30033                         minor < DB_VERSION_MINOR )
30034                 {
30035                         printf("Berkeley DB version mismatch\n"
30036                                 "\theader: %s\n\tlibrary: %s\n",
30037                                 DB_VERSION_STRING, version);
30038                         return 1;
30039                 }
30040         }
30041 #endif
30042
30043 #if DB_VERSION_MAJOR > 2
30044         db_env_create( NULL, 0 );
30045 #elif DB_VERSION_MAJOR > 1
30046         db_appexit( NULL );
30047 #else
30048         (void) dbopen( NULL, 0, 0, 0, NULL);
30049 #endif
30050
30051   ;
30052   return 0;
30053 }
30054 _ACEOF
30055 rm -f conftest.$ac_objext conftest$ac_exeext
30056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30057   (eval $ac_link) 2>conftest.er1
30058   ac_status=$?
30059   grep -v '^ *+' conftest.er1 >conftest.err
30060   rm -f conftest.er1
30061   cat conftest.err >&5
30062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063   (exit $ac_status); } &&
30064          { ac_try='test -z "$ac_c_werror_flag"
30065                          || test ! -s conftest.err'
30066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30067   (eval $ac_try) 2>&5
30068   ac_status=$?
30069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070   (exit $ac_status); }; } &&
30071          { ac_try='test -s conftest$ac_exeext'
30072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30073   (eval $ac_try) 2>&5
30074   ac_status=$?
30075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076   (exit $ac_status); }; }; then
30077   ol_cv_db_db3=yes
30078 else
30079   echo "$as_me: failed program was:" >&5
30080 sed 's/^/| /' conftest.$ac_ext >&5
30081
30082 ol_cv_db_db3=no
30083 fi
30084 rm -f conftest.err conftest.$ac_objext \
30085       conftest$ac_exeext conftest.$ac_ext
30086
30087         LIBS="$ol_LIBS"
30088
30089 fi
30090 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30091 echo "${ECHO_T}$ol_cv_db_db3" >&6
30092
30093         if test $ol_cv_db_db3 = yes ; then
30094                 ol_cv_lib_db=-ldb3
30095         fi
30096 fi
30097
30098         if test $ol_cv_lib_db = no ; then
30099         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30100 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30101 if test "${ol_cv_db_db_3+set}" = set; then
30102   echo $ECHO_N "(cached) $ECHO_C" >&6
30103 else
30104
30105         ol_DB_LIB=-ldb-3
30106         ol_LIBS=$LIBS
30107         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30108
30109         cat >conftest.$ac_ext <<_ACEOF
30110 /* confdefs.h.  */
30111 _ACEOF
30112 cat confdefs.h >>conftest.$ac_ext
30113 cat >>conftest.$ac_ext <<_ACEOF
30114 /* end confdefs.h.  */
30115
30116 #ifdef HAVE_DB_185_H
30117 # include <db_185.h>
30118 #else
30119 # include <db.h>
30120 #endif
30121
30122 #ifndef DB_VERSION_MAJOR
30123 # define DB_VERSION_MAJOR 1
30124 #endif
30125
30126 #ifndef NULL
30127 #define NULL ((void*)0)
30128 #endif
30129
30130 int
30131 main ()
30132 {
30133
30134 #if DB_VERSION_MAJOR > 1
30135         {
30136                 char *version;
30137                 int major, minor, patch;
30138
30139                 version = db_version( &major, &minor, &patch );
30140
30141                 if( major != DB_VERSION_MAJOR ||
30142                         minor < DB_VERSION_MINOR )
30143                 {
30144                         printf("Berkeley DB version mismatch\n"
30145                                 "\theader: %s\n\tlibrary: %s\n",
30146                                 DB_VERSION_STRING, version);
30147                         return 1;
30148                 }
30149         }
30150 #endif
30151
30152 #if DB_VERSION_MAJOR > 2
30153         db_env_create( NULL, 0 );
30154 #elif DB_VERSION_MAJOR > 1
30155         db_appexit( NULL );
30156 #else
30157         (void) dbopen( NULL, 0, 0, 0, NULL);
30158 #endif
30159
30160   ;
30161   return 0;
30162 }
30163 _ACEOF
30164 rm -f conftest.$ac_objext conftest$ac_exeext
30165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30166   (eval $ac_link) 2>conftest.er1
30167   ac_status=$?
30168   grep -v '^ *+' conftest.er1 >conftest.err
30169   rm -f conftest.er1
30170   cat conftest.err >&5
30171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172   (exit $ac_status); } &&
30173          { ac_try='test -z "$ac_c_werror_flag"
30174                          || test ! -s conftest.err'
30175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30176   (eval $ac_try) 2>&5
30177   ac_status=$?
30178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179   (exit $ac_status); }; } &&
30180          { ac_try='test -s conftest$ac_exeext'
30181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30182   (eval $ac_try) 2>&5
30183   ac_status=$?
30184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185   (exit $ac_status); }; }; then
30186   ol_cv_db_db_3=yes
30187 else
30188   echo "$as_me: failed program was:" >&5
30189 sed 's/^/| /' conftest.$ac_ext >&5
30190
30191 ol_cv_db_db_3=no
30192 fi
30193 rm -f conftest.err conftest.$ac_objext \
30194       conftest$ac_exeext conftest.$ac_ext
30195
30196         LIBS="$ol_LIBS"
30197
30198 fi
30199 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30200 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30201
30202         if test $ol_cv_db_db_3 = yes ; then
30203                 ol_cv_lib_db=-ldb-3
30204         fi
30205 fi
30206
30207
30208 elif test $ol_cv_bdb_major = 2 ; then
30209         if test $ol_cv_lib_db = no ; then
30210         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30211 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30212 if test "${ol_cv_db_db2+set}" = set; then
30213   echo $ECHO_N "(cached) $ECHO_C" >&6
30214 else
30215
30216         ol_DB_LIB=-ldb2
30217         ol_LIBS=$LIBS
30218         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30219
30220         cat >conftest.$ac_ext <<_ACEOF
30221 /* confdefs.h.  */
30222 _ACEOF
30223 cat confdefs.h >>conftest.$ac_ext
30224 cat >>conftest.$ac_ext <<_ACEOF
30225 /* end confdefs.h.  */
30226
30227 #ifdef HAVE_DB_185_H
30228 # include <db_185.h>
30229 #else
30230 # include <db.h>
30231 #endif
30232
30233 #ifndef DB_VERSION_MAJOR
30234 # define DB_VERSION_MAJOR 1
30235 #endif
30236
30237 #ifndef NULL
30238 #define NULL ((void*)0)
30239 #endif
30240
30241 int
30242 main ()
30243 {
30244
30245 #if DB_VERSION_MAJOR > 1
30246         {
30247                 char *version;
30248                 int major, minor, patch;
30249
30250                 version = db_version( &major, &minor, &patch );
30251
30252                 if( major != DB_VERSION_MAJOR ||
30253                         minor < DB_VERSION_MINOR )
30254                 {
30255                         printf("Berkeley DB version mismatch\n"
30256                                 "\theader: %s\n\tlibrary: %s\n",
30257                                 DB_VERSION_STRING, version);
30258                         return 1;
30259                 }
30260         }
30261 #endif
30262
30263 #if DB_VERSION_MAJOR > 2
30264         db_env_create( NULL, 0 );
30265 #elif DB_VERSION_MAJOR > 1
30266         db_appexit( NULL );
30267 #else
30268         (void) dbopen( NULL, 0, 0, 0, NULL);
30269 #endif
30270
30271   ;
30272   return 0;
30273 }
30274 _ACEOF
30275 rm -f conftest.$ac_objext conftest$ac_exeext
30276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30277   (eval $ac_link) 2>conftest.er1
30278   ac_status=$?
30279   grep -v '^ *+' conftest.er1 >conftest.err
30280   rm -f conftest.er1
30281   cat conftest.err >&5
30282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283   (exit $ac_status); } &&
30284          { ac_try='test -z "$ac_c_werror_flag"
30285                          || test ! -s conftest.err'
30286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30287   (eval $ac_try) 2>&5
30288   ac_status=$?
30289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290   (exit $ac_status); }; } &&
30291          { ac_try='test -s conftest$ac_exeext'
30292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30293   (eval $ac_try) 2>&5
30294   ac_status=$?
30295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296   (exit $ac_status); }; }; then
30297   ol_cv_db_db2=yes
30298 else
30299   echo "$as_me: failed program was:" >&5
30300 sed 's/^/| /' conftest.$ac_ext >&5
30301
30302 ol_cv_db_db2=no
30303 fi
30304 rm -f conftest.err conftest.$ac_objext \
30305       conftest$ac_exeext conftest.$ac_ext
30306
30307         LIBS="$ol_LIBS"
30308
30309 fi
30310 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30311 echo "${ECHO_T}$ol_cv_db_db2" >&6
30312
30313         if test $ol_cv_db_db2 = yes ; then
30314                 ol_cv_lib_db=-ldb2
30315         fi
30316 fi
30317
30318         if test $ol_cv_lib_db = no ; then
30319         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30320 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30321 if test "${ol_cv_db_db_2+set}" = set; then
30322   echo $ECHO_N "(cached) $ECHO_C" >&6
30323 else
30324
30325         ol_DB_LIB=-ldb-2
30326         ol_LIBS=$LIBS
30327         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30328
30329         cat >conftest.$ac_ext <<_ACEOF
30330 /* confdefs.h.  */
30331 _ACEOF
30332 cat confdefs.h >>conftest.$ac_ext
30333 cat >>conftest.$ac_ext <<_ACEOF
30334 /* end confdefs.h.  */
30335
30336 #ifdef HAVE_DB_185_H
30337 # include <db_185.h>
30338 #else
30339 # include <db.h>
30340 #endif
30341
30342 #ifndef DB_VERSION_MAJOR
30343 # define DB_VERSION_MAJOR 1
30344 #endif
30345
30346 #ifndef NULL
30347 #define NULL ((void*)0)
30348 #endif
30349
30350 int
30351 main ()
30352 {
30353
30354 #if DB_VERSION_MAJOR > 1
30355         {
30356                 char *version;
30357                 int major, minor, patch;
30358
30359                 version = db_version( &major, &minor, &patch );
30360
30361                 if( major != DB_VERSION_MAJOR ||
30362                         minor < DB_VERSION_MINOR )
30363                 {
30364                         printf("Berkeley DB version mismatch\n"
30365                                 "\theader: %s\n\tlibrary: %s\n",
30366                                 DB_VERSION_STRING, version);
30367                         return 1;
30368                 }
30369         }
30370 #endif
30371
30372 #if DB_VERSION_MAJOR > 2
30373         db_env_create( NULL, 0 );
30374 #elif DB_VERSION_MAJOR > 1
30375         db_appexit( NULL );
30376 #else
30377         (void) dbopen( NULL, 0, 0, 0, NULL);
30378 #endif
30379
30380   ;
30381   return 0;
30382 }
30383 _ACEOF
30384 rm -f conftest.$ac_objext conftest$ac_exeext
30385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30386   (eval $ac_link) 2>conftest.er1
30387   ac_status=$?
30388   grep -v '^ *+' conftest.er1 >conftest.err
30389   rm -f conftest.er1
30390   cat conftest.err >&5
30391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392   (exit $ac_status); } &&
30393          { ac_try='test -z "$ac_c_werror_flag"
30394                          || test ! -s conftest.err'
30395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30396   (eval $ac_try) 2>&5
30397   ac_status=$?
30398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30399   (exit $ac_status); }; } &&
30400          { ac_try='test -s conftest$ac_exeext'
30401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30402   (eval $ac_try) 2>&5
30403   ac_status=$?
30404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405   (exit $ac_status); }; }; then
30406   ol_cv_db_db_2=yes
30407 else
30408   echo "$as_me: failed program was:" >&5
30409 sed 's/^/| /' conftest.$ac_ext >&5
30410
30411 ol_cv_db_db_2=no
30412 fi
30413 rm -f conftest.err conftest.$ac_objext \
30414       conftest$ac_exeext conftest.$ac_ext
30415
30416         LIBS="$ol_LIBS"
30417
30418 fi
30419 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30420 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30421
30422         if test $ol_cv_db_db_2 = yes ; then
30423                 ol_cv_lib_db=-ldb-2
30424         fi
30425 fi
30426
30427
30428 elif test $ol_cv_bdb_major = 1 ; then
30429         if test $ol_cv_lib_db = no ; then
30430         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30431 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30432 if test "${ol_cv_db_db1+set}" = set; then
30433   echo $ECHO_N "(cached) $ECHO_C" >&6
30434 else
30435
30436         ol_DB_LIB=-ldb1
30437         ol_LIBS=$LIBS
30438         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30439
30440         cat >conftest.$ac_ext <<_ACEOF
30441 /* confdefs.h.  */
30442 _ACEOF
30443 cat confdefs.h >>conftest.$ac_ext
30444 cat >>conftest.$ac_ext <<_ACEOF
30445 /* end confdefs.h.  */
30446
30447 #ifdef HAVE_DB_185_H
30448 # include <db_185.h>
30449 #else
30450 # include <db.h>
30451 #endif
30452
30453 #ifndef DB_VERSION_MAJOR
30454 # define DB_VERSION_MAJOR 1
30455 #endif
30456
30457 #ifndef NULL
30458 #define NULL ((void*)0)
30459 #endif
30460
30461 int
30462 main ()
30463 {
30464
30465 #if DB_VERSION_MAJOR > 1
30466         {
30467                 char *version;
30468                 int major, minor, patch;
30469
30470                 version = db_version( &major, &minor, &patch );
30471
30472                 if( major != DB_VERSION_MAJOR ||
30473                         minor < DB_VERSION_MINOR )
30474                 {
30475                         printf("Berkeley DB version mismatch\n"
30476                                 "\theader: %s\n\tlibrary: %s\n",
30477                                 DB_VERSION_STRING, version);
30478                         return 1;
30479                 }
30480         }
30481 #endif
30482
30483 #if DB_VERSION_MAJOR > 2
30484         db_env_create( NULL, 0 );
30485 #elif DB_VERSION_MAJOR > 1
30486         db_appexit( NULL );
30487 #else
30488         (void) dbopen( NULL, 0, 0, 0, NULL);
30489 #endif
30490
30491   ;
30492   return 0;
30493 }
30494 _ACEOF
30495 rm -f conftest.$ac_objext conftest$ac_exeext
30496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30497   (eval $ac_link) 2>conftest.er1
30498   ac_status=$?
30499   grep -v '^ *+' conftest.er1 >conftest.err
30500   rm -f conftest.er1
30501   cat conftest.err >&5
30502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30503   (exit $ac_status); } &&
30504          { ac_try='test -z "$ac_c_werror_flag"
30505                          || test ! -s conftest.err'
30506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30507   (eval $ac_try) 2>&5
30508   ac_status=$?
30509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510   (exit $ac_status); }; } &&
30511          { ac_try='test -s conftest$ac_exeext'
30512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30513   (eval $ac_try) 2>&5
30514   ac_status=$?
30515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516   (exit $ac_status); }; }; then
30517   ol_cv_db_db1=yes
30518 else
30519   echo "$as_me: failed program was:" >&5
30520 sed 's/^/| /' conftest.$ac_ext >&5
30521
30522 ol_cv_db_db1=no
30523 fi
30524 rm -f conftest.err conftest.$ac_objext \
30525       conftest$ac_exeext conftest.$ac_ext
30526
30527         LIBS="$ol_LIBS"
30528
30529 fi
30530 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30531 echo "${ECHO_T}$ol_cv_db_db1" >&6
30532
30533         if test $ol_cv_db_db1 = yes ; then
30534                 ol_cv_lib_db=-ldb1
30535         fi
30536 fi
30537
30538         if test $ol_cv_lib_db = no ; then
30539         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30540 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30541 if test "${ol_cv_db_db_1+set}" = set; then
30542   echo $ECHO_N "(cached) $ECHO_C" >&6
30543 else
30544
30545         ol_DB_LIB=-ldb-1
30546         ol_LIBS=$LIBS
30547         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30548
30549         cat >conftest.$ac_ext <<_ACEOF
30550 /* confdefs.h.  */
30551 _ACEOF
30552 cat confdefs.h >>conftest.$ac_ext
30553 cat >>conftest.$ac_ext <<_ACEOF
30554 /* end confdefs.h.  */
30555
30556 #ifdef HAVE_DB_185_H
30557 # include <db_185.h>
30558 #else
30559 # include <db.h>
30560 #endif
30561
30562 #ifndef DB_VERSION_MAJOR
30563 # define DB_VERSION_MAJOR 1
30564 #endif
30565
30566 #ifndef NULL
30567 #define NULL ((void*)0)
30568 #endif
30569
30570 int
30571 main ()
30572 {
30573
30574 #if DB_VERSION_MAJOR > 1
30575         {
30576                 char *version;
30577                 int major, minor, patch;
30578
30579                 version = db_version( &major, &minor, &patch );
30580
30581                 if( major != DB_VERSION_MAJOR ||
30582                         minor < DB_VERSION_MINOR )
30583                 {
30584                         printf("Berkeley DB version mismatch\n"
30585                                 "\theader: %s\n\tlibrary: %s\n",
30586                                 DB_VERSION_STRING, version);
30587                         return 1;
30588                 }
30589         }
30590 #endif
30591
30592 #if DB_VERSION_MAJOR > 2
30593         db_env_create( NULL, 0 );
30594 #elif DB_VERSION_MAJOR > 1
30595         db_appexit( NULL );
30596 #else
30597         (void) dbopen( NULL, 0, 0, 0, NULL);
30598 #endif
30599
30600   ;
30601   return 0;
30602 }
30603 _ACEOF
30604 rm -f conftest.$ac_objext conftest$ac_exeext
30605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30606   (eval $ac_link) 2>conftest.er1
30607   ac_status=$?
30608   grep -v '^ *+' conftest.er1 >conftest.err
30609   rm -f conftest.er1
30610   cat conftest.err >&5
30611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612   (exit $ac_status); } &&
30613          { ac_try='test -z "$ac_c_werror_flag"
30614                          || test ! -s conftest.err'
30615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30616   (eval $ac_try) 2>&5
30617   ac_status=$?
30618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619   (exit $ac_status); }; } &&
30620          { ac_try='test -s conftest$ac_exeext'
30621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30622   (eval $ac_try) 2>&5
30623   ac_status=$?
30624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625   (exit $ac_status); }; }; then
30626   ol_cv_db_db_1=yes
30627 else
30628   echo "$as_me: failed program was:" >&5
30629 sed 's/^/| /' conftest.$ac_ext >&5
30630
30631 ol_cv_db_db_1=no
30632 fi
30633 rm -f conftest.err conftest.$ac_objext \
30634       conftest$ac_exeext conftest.$ac_ext
30635
30636         LIBS="$ol_LIBS"
30637
30638 fi
30639 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30640 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30641
30642         if test $ol_cv_db_db_1 = yes ; then
30643                 ol_cv_lib_db=-ldb-1
30644         fi
30645 fi
30646
30647 fi
30648 if test $ol_cv_lib_db = no ; then
30649         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30650 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30651 if test "${ol_cv_db_none+set}" = set; then
30652   echo $ECHO_N "(cached) $ECHO_C" >&6
30653 else
30654
30655         ol_DB_LIB=
30656         ol_LIBS=$LIBS
30657         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30658
30659         cat >conftest.$ac_ext <<_ACEOF
30660 /* confdefs.h.  */
30661 _ACEOF
30662 cat confdefs.h >>conftest.$ac_ext
30663 cat >>conftest.$ac_ext <<_ACEOF
30664 /* end confdefs.h.  */
30665
30666 #ifdef HAVE_DB_185_H
30667 # include <db_185.h>
30668 #else
30669 # include <db.h>
30670 #endif
30671
30672 #ifndef DB_VERSION_MAJOR
30673 # define DB_VERSION_MAJOR 1
30674 #endif
30675
30676 #ifndef NULL
30677 #define NULL ((void*)0)
30678 #endif
30679
30680 int
30681 main ()
30682 {
30683
30684 #if DB_VERSION_MAJOR > 1
30685         {
30686                 char *version;
30687                 int major, minor, patch;
30688
30689                 version = db_version( &major, &minor, &patch );
30690
30691                 if( major != DB_VERSION_MAJOR ||
30692                         minor < DB_VERSION_MINOR )
30693                 {
30694                         printf("Berkeley DB version mismatch\n"
30695                                 "\theader: %s\n\tlibrary: %s\n",
30696                                 DB_VERSION_STRING, version);
30697                         return 1;
30698                 }
30699         }
30700 #endif
30701
30702 #if DB_VERSION_MAJOR > 2
30703         db_env_create( NULL, 0 );
30704 #elif DB_VERSION_MAJOR > 1
30705         db_appexit( NULL );
30706 #else
30707         (void) dbopen( NULL, 0, 0, 0, NULL);
30708 #endif
30709
30710   ;
30711   return 0;
30712 }
30713 _ACEOF
30714 rm -f conftest.$ac_objext conftest$ac_exeext
30715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30716   (eval $ac_link) 2>conftest.er1
30717   ac_status=$?
30718   grep -v '^ *+' conftest.er1 >conftest.err
30719   rm -f conftest.er1
30720   cat conftest.err >&5
30721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722   (exit $ac_status); } &&
30723          { ac_try='test -z "$ac_c_werror_flag"
30724                          || test ! -s conftest.err'
30725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30726   (eval $ac_try) 2>&5
30727   ac_status=$?
30728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30729   (exit $ac_status); }; } &&
30730          { ac_try='test -s conftest$ac_exeext'
30731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30732   (eval $ac_try) 2>&5
30733   ac_status=$?
30734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30735   (exit $ac_status); }; }; then
30736   ol_cv_db_none=yes
30737 else
30738   echo "$as_me: failed program was:" >&5
30739 sed 's/^/| /' conftest.$ac_ext >&5
30740
30741 ol_cv_db_none=no
30742 fi
30743 rm -f conftest.err conftest.$ac_objext \
30744       conftest$ac_exeext conftest.$ac_ext
30745
30746         LIBS="$ol_LIBS"
30747
30748 fi
30749 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30750 echo "${ECHO_T}$ol_cv_db_none" >&6
30751
30752         if test $ol_cv_db_none = yes ; then
30753                 ol_cv_lib_db=yes
30754         fi
30755 fi
30756
30757
30758         if test "$ol_cv_lib_db" != no ; then
30759                 ol_cv_berkeley_db=yes
30760                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
30761 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
30762 if test "${ol_cv_berkeley_db_version+set}" = set; then
30763   echo $ECHO_N "(cached) $ECHO_C" >&6
30764 else
30765
30766         ol_LIBS="$LIBS"
30767         LIBS="$LTHREAD_LIBS $LIBS"
30768         if test $ol_cv_lib_db != yes ; then
30769                 LIBS="$ol_cv_lib_db $LIBS"
30770         fi
30771
30772         if test "$cross_compiling" = yes; then
30773   ol_cv_berkeley_db_version=cross
30774 else
30775   cat >conftest.$ac_ext <<_ACEOF
30776 /* confdefs.h.  */
30777 _ACEOF
30778 cat confdefs.h >>conftest.$ac_ext
30779 cat >>conftest.$ac_ext <<_ACEOF
30780 /* end confdefs.h.  */
30781
30782 #ifdef HAVE_DB_185_H
30783         choke me;
30784 #else
30785 #include <db.h>
30786 #endif
30787 #ifndef DB_VERSION_MAJOR
30788 # define DB_VERSION_MAJOR 1
30789 #endif
30790 #ifndef NULL
30791 #define NULL ((void *)0)
30792 #endif
30793 main()
30794 {
30795 #if DB_VERSION_MAJOR > 1
30796         char *version;
30797         int major, minor, patch;
30798
30799         version = db_version( &major, &minor, &patch );
30800
30801         if( major != DB_VERSION_MAJOR ||
30802                 minor != DB_VERSION_MINOR ||
30803                 patch != DB_VERSION_PATCH )
30804         {
30805                 printf("Berkeley DB version mismatch\n"
30806                         "\theader: %s\n\tlibrary: %s\n",
30807                         DB_VERSION_STRING, version);
30808                 return 1;
30809         }
30810 #endif
30811
30812         return 0;
30813 }
30814 _ACEOF
30815 rm -f conftest$ac_exeext
30816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30817   (eval $ac_link) 2>&5
30818   ac_status=$?
30819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30822   (eval $ac_try) 2>&5
30823   ac_status=$?
30824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825   (exit $ac_status); }; }; then
30826   ol_cv_berkeley_db_version=yes
30827 else
30828   echo "$as_me: program exited with status $ac_status" >&5
30829 echo "$as_me: failed program was:" >&5
30830 sed 's/^/| /' conftest.$ac_ext >&5
30831
30832 ( exit $ac_status )
30833 ol_cv_berkeley_db_version=no
30834 fi
30835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30836 fi
30837
30838         LIBS="$ol_LIBS"
30839
30840 fi
30841 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
30842 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
30843
30844         if test $ol_cv_berkeley_db_version = no ; then
30845                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
30846 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
30847    { (exit 1); exit 1; }; }
30848         fi
30849
30850                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
30851 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
30852 if test "${ol_cv_berkeley_db_thread+set}" = set; then
30853   echo $ECHO_N "(cached) $ECHO_C" >&6
30854 else
30855
30856         ol_LIBS="$LIBS"
30857         LIBS="$LTHREAD_LIBS $LIBS"
30858         if test $ol_cv_lib_db != yes ; then
30859                 LIBS="$ol_cv_lib_db $LIBS"
30860         fi
30861
30862         if test "$cross_compiling" = yes; then
30863   ol_cv_berkeley_db_thread=cross
30864 else
30865   cat >conftest.$ac_ext <<_ACEOF
30866 /* confdefs.h.  */
30867 _ACEOF
30868 cat confdefs.h >>conftest.$ac_ext
30869 cat >>conftest.$ac_ext <<_ACEOF
30870 /* end confdefs.h.  */
30871
30872 #ifdef HAVE_DB_185_H
30873         choke me;
30874 #else
30875 #include <db.h>
30876 #endif
30877 #ifndef NULL
30878 #define NULL ((void *)0)
30879 #endif
30880 main()
30881 {
30882         int rc;
30883         u_int32_t flags = DB_CREATE |
30884 #ifdef DB_PRIVATE
30885                 DB_PRIVATE |
30886 #endif
30887                 DB_THREAD;
30888
30889 #if DB_VERSION_MAJOR > 2
30890         DB_ENV *env = NULL;
30891
30892         rc = db_env_create( &env, 0 );
30893
30894         flags |= DB_INIT_MPOOL;
30895 #ifdef DB_MPOOL_PRIVATE
30896         flags |= DB_MPOOL_PRIVATE;
30897 #endif
30898
30899         if( rc ) {
30900                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
30901                 return rc;
30902         }
30903
30904 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
30905         rc = env->open( env, NULL, flags, 0 );
30906 #else
30907         rc = env->open( env, NULL, NULL, flags, 0 );
30908 #endif
30909
30910         if ( rc == 0 ) {
30911                 rc = env->close( env, 0 );
30912         }
30913
30914         if( rc ) {
30915                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
30916                 return rc;
30917         }
30918
30919 #else
30920         DB_ENV env;
30921         memset( &env, '\0', sizeof(env) );
30922
30923         rc = db_appinit( NULL, NULL, &env, flags );
30924
30925         if( rc == 0 ) {
30926                 db_appexit( &env );
30927         }
30928
30929         unlink("__db_mpool.share");
30930         unlink("__db_lock.share");
30931 #endif
30932
30933         return rc;
30934 }
30935 _ACEOF
30936 rm -f conftest$ac_exeext
30937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30938   (eval $ac_link) 2>&5
30939   ac_status=$?
30940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941   (exit $ac_status); } && { ac_try='./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_berkeley_db_thread=yes
30948 else
30949   echo "$as_me: program exited with status $ac_status" >&5
30950 echo "$as_me: failed program was:" >&5
30951 sed 's/^/| /' conftest.$ac_ext >&5
30952
30953 ( exit $ac_status )
30954 ol_cv_berkeley_db_thread=no
30955 fi
30956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30957 fi
30958
30959         LIBS="$ol_LIBS"
30960
30961 fi
30962 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
30963 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
30964
30965         if test $ol_cv_berkeley_db_thread != no ; then
30966
30967 cat >>confdefs.h <<\_ACEOF
30968 #define HAVE_BERKELEY_DB_THREAD 1
30969 _ACEOF
30970
30971         fi
30972
30973         fi
30974 fi
30975
30976
30977         if test $ol_cv_berkeley_db = no ; then
30978                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
30979 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
30980    { (exit 1); exit 1; }; }
30981         fi
30982
30983
30984 cat >>confdefs.h <<\_ACEOF
30985 #define HAVE_BERKELEY_DB 1
30986 _ACEOF
30987
30988
30989                         if test $ol_cv_lib_db != yes ; then
30990                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
30991         fi
30992
30993         echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
30994 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
30995 if test "${ol_cv_bdb_compat+set}" = set; then
30996   echo $ECHO_N "(cached) $ECHO_C" >&6
30997 else
30998
30999         cat >conftest.$ac_ext <<_ACEOF
31000 /* confdefs.h.  */
31001 _ACEOF
31002 cat confdefs.h >>conftest.$ac_ext
31003 cat >>conftest.$ac_ext <<_ACEOF
31004 /* end confdefs.h.  */
31005
31006 #include <db.h>
31007
31008  /* this check could be improved */
31009 #ifndef DB_VERSION_MAJOR
31010 #       define DB_VERSION_MAJOR 1
31011 #endif
31012 #ifndef DB_VERSION_MINOR
31013 #       define DB_VERSION_MINOR 0
31014 #endif
31015
31016 /* require 4.2 or later, but exclude 4.3 */
31017 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2) && (DB_VERSION_MINOR !=3)
31018         __db_version_compat
31019 #endif
31020
31021 _ACEOF
31022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31023   $EGREP "__db_version_compat" >/dev/null 2>&1; then
31024   ol_cv_bdb_compat=yes
31025 else
31026   ol_cv_bdb_compat=no
31027 fi
31028 rm -f conftest*
31029
31030 fi
31031 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31032 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31033
31034
31035         if test $ol_cv_bdb_compat != yes ; then
31036                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31037 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31038    { (exit 1); exit 1; }; }
31039         fi
31040
31041         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31042
31043         ol_link_bdb=yes
31044 fi
31045
31046
31047 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31048         BUILD_LIBS_DYNAMIC=shared
31049
31050 cat >>confdefs.h <<\_ACEOF
31051 #define LDAP_LIBS_DYNAMIC 1
31052 _ACEOF
31053
31054         LTSTATIC=""
31055 else
31056         BUILD_LIBS_DYNAMIC=static
31057         LTSTATIC="-static"
31058 fi
31059
31060 if test $ol_enable_wrappers != no ; then
31061
31062 for ac_header in tcpd.h
31063 do
31064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31066   echo "$as_me:$LINENO: checking for $ac_header" >&5
31067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31069   echo $ECHO_N "(cached) $ECHO_C" >&6
31070 fi
31071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31073 else
31074   # Is the header compilable?
31075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31077 cat >conftest.$ac_ext <<_ACEOF
31078 /* confdefs.h.  */
31079 _ACEOF
31080 cat confdefs.h >>conftest.$ac_ext
31081 cat >>conftest.$ac_ext <<_ACEOF
31082 /* end confdefs.h.  */
31083 $ac_includes_default
31084 #include <$ac_header>
31085 _ACEOF
31086 rm -f conftest.$ac_objext
31087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31088   (eval $ac_compile) 2>conftest.er1
31089   ac_status=$?
31090   grep -v '^ *+' conftest.er1 >conftest.err
31091   rm -f conftest.er1
31092   cat conftest.err >&5
31093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094   (exit $ac_status); } &&
31095          { ac_try='test -z "$ac_c_werror_flag"
31096                          || test ! -s conftest.err'
31097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31098   (eval $ac_try) 2>&5
31099   ac_status=$?
31100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31101   (exit $ac_status); }; } &&
31102          { ac_try='test -s conftest.$ac_objext'
31103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31104   (eval $ac_try) 2>&5
31105   ac_status=$?
31106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31107   (exit $ac_status); }; }; then
31108   ac_header_compiler=yes
31109 else
31110   echo "$as_me: failed program was:" >&5
31111 sed 's/^/| /' conftest.$ac_ext >&5
31112
31113 ac_header_compiler=no
31114 fi
31115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31117 echo "${ECHO_T}$ac_header_compiler" >&6
31118
31119 # Is the header present?
31120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31122 cat >conftest.$ac_ext <<_ACEOF
31123 /* confdefs.h.  */
31124 _ACEOF
31125 cat confdefs.h >>conftest.$ac_ext
31126 cat >>conftest.$ac_ext <<_ACEOF
31127 /* end confdefs.h.  */
31128 #include <$ac_header>
31129 _ACEOF
31130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31131   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31132   ac_status=$?
31133   grep -v '^ *+' conftest.er1 >conftest.err
31134   rm -f conftest.er1
31135   cat conftest.err >&5
31136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137   (exit $ac_status); } >/dev/null; then
31138   if test -s conftest.err; then
31139     ac_cpp_err=$ac_c_preproc_warn_flag
31140     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31141   else
31142     ac_cpp_err=
31143   fi
31144 else
31145   ac_cpp_err=yes
31146 fi
31147 if test -z "$ac_cpp_err"; then
31148   ac_header_preproc=yes
31149 else
31150   echo "$as_me: failed program was:" >&5
31151 sed 's/^/| /' conftest.$ac_ext >&5
31152
31153   ac_header_preproc=no
31154 fi
31155 rm -f conftest.err conftest.$ac_ext
31156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31157 echo "${ECHO_T}$ac_header_preproc" >&6
31158
31159 # So?  What about this header?
31160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31161   yes:no: )
31162     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31166     ac_header_preproc=yes
31167     ;;
31168   no:yes:* )
31169     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31171     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31172 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31173     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31175     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31176 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31179     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31181     (
31182       cat <<\_ASBOX
31183 ## --------------------------------------------- ##
31184 ## Report this to <http://www.openldap.org/its/> ##
31185 ## --------------------------------------------- ##
31186 _ASBOX
31187     ) |
31188       sed "s/^/$as_me: WARNING:     /" >&2
31189     ;;
31190 esac
31191 echo "$as_me:$LINENO: checking for $ac_header" >&5
31192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31194   echo $ECHO_N "(cached) $ECHO_C" >&6
31195 else
31196   eval "$as_ac_Header=\$ac_header_preproc"
31197 fi
31198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31200
31201 fi
31202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31203   cat >>confdefs.h <<_ACEOF
31204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31205 _ACEOF
31206
31207                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31208 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31209                 save_LIBS="$LIBS"
31210                 LIBS="$LIBS -lwrap"
31211                 cat >conftest.$ac_ext <<_ACEOF
31212 /* confdefs.h.  */
31213 _ACEOF
31214 cat confdefs.h >>conftest.$ac_ext
31215 cat >>conftest.$ac_ext <<_ACEOF
31216 /* end confdefs.h.  */
31217
31218 #include <tcpd.h>
31219 int allow_severity = 0;
31220 int deny_severity  = 0;
31221
31222 struct request_info *req;
31223
31224 int
31225 main ()
31226 {
31227
31228 hosts_access(req)
31229
31230   ;
31231   return 0;
31232 }
31233 _ACEOF
31234 rm -f conftest.$ac_objext conftest$ac_exeext
31235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31236   (eval $ac_link) 2>conftest.er1
31237   ac_status=$?
31238   grep -v '^ *+' conftest.er1 >conftest.err
31239   rm -f conftest.er1
31240   cat conftest.err >&5
31241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242   (exit $ac_status); } &&
31243          { ac_try='test -z "$ac_c_werror_flag"
31244                          || test ! -s conftest.err'
31245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31246   (eval $ac_try) 2>&5
31247   ac_status=$?
31248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249   (exit $ac_status); }; } &&
31250          { ac_try='test -s conftest$ac_exeext'
31251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31252   (eval $ac_try) 2>&5
31253   ac_status=$?
31254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255   (exit $ac_status); }; }; then
31256   echo "$as_me:$LINENO: result: -lwrap" >&5
31257 echo "${ECHO_T}-lwrap" >&6
31258                 have_wrappers=yes
31259                 LIBS="$save_LIBS"
31260 else
31261   echo "$as_me: failed program was:" >&5
31262 sed 's/^/| /' conftest.$ac_ext >&5
31263
31264
31265                                 LIBS="$LIBS -lnsl"
31266                 cat >conftest.$ac_ext <<_ACEOF
31267 /* confdefs.h.  */
31268 _ACEOF
31269 cat confdefs.h >>conftest.$ac_ext
31270 cat >>conftest.$ac_ext <<_ACEOF
31271 /* end confdefs.h.  */
31272
31273 #include <tcpd.h>
31274 int allow_severity = 0;
31275 int deny_severity  = 0;
31276
31277 struct request_info *req;
31278
31279 int
31280 main ()
31281 {
31282
31283 hosts_access(req)
31284
31285   ;
31286   return 0;
31287 }
31288 _ACEOF
31289 rm -f conftest.$ac_objext conftest$ac_exeext
31290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31291   (eval $ac_link) 2>conftest.er1
31292   ac_status=$?
31293   grep -v '^ *+' conftest.er1 >conftest.err
31294   rm -f conftest.er1
31295   cat conftest.err >&5
31296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297   (exit $ac_status); } &&
31298          { ac_try='test -z "$ac_c_werror_flag"
31299                          || test ! -s conftest.err'
31300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31301   (eval $ac_try) 2>&5
31302   ac_status=$?
31303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304   (exit $ac_status); }; } &&
31305          { ac_try='test -s conftest$ac_exeext'
31306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31307   (eval $ac_try) 2>&5
31308   ac_status=$?
31309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310   (exit $ac_status); }; }; then
31311   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31312 echo "${ECHO_T}-lwrap -lnsl" >&6
31313                 have_wrappers=yes
31314                 LIBS="$save_LIBS -lnsl"
31315 else
31316   echo "$as_me: failed program was:" >&5
31317 sed 's/^/| /' conftest.$ac_ext >&5
31318
31319
31320                 echo "$as_me:$LINENO: result: no" >&5
31321 echo "${ECHO_T}no" >&6
31322                 have_wrappers=no
31323                 LIBS=$save_LIBS
31324 fi
31325 rm -f conftest.err conftest.$ac_objext \
31326       conftest$ac_exeext conftest.$ac_ext
31327 fi
31328 rm -f conftest.err conftest.$ac_objext \
31329       conftest$ac_exeext conftest.$ac_ext
31330 else
31331   have_wrappers=no
31332 fi
31333
31334 done
31335
31336
31337         if test $have_wrappers = yes ; then
31338
31339 cat >>confdefs.h <<\_ACEOF
31340 #define HAVE_TCPD 1
31341 _ACEOF
31342
31343                 WRAP_LIBS="-lwrap"
31344         elif test $ol_enable_wrappers = yes ; then
31345                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31346 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31347    { (exit 1); exit 1; }; }
31348         else
31349                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31350 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31351                 WRAP_LIBS=""
31352         fi
31353 fi
31354
31355 if test $ol_enable_syslog != no ; then
31356         echo "$as_me:$LINENO: checking for openlog" >&5
31357 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31358 if test "${ac_cv_func_openlog+set}" = set; then
31359   echo $ECHO_N "(cached) $ECHO_C" >&6
31360 else
31361   cat >conftest.$ac_ext <<_ACEOF
31362 /* confdefs.h.  */
31363 _ACEOF
31364 cat confdefs.h >>conftest.$ac_ext
31365 cat >>conftest.$ac_ext <<_ACEOF
31366 /* end confdefs.h.  */
31367 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31369 #define openlog innocuous_openlog
31370
31371 /* System header to define __stub macros and hopefully few prototypes,
31372     which can conflict with char openlog (); below.
31373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31374     <limits.h> exists even on freestanding compilers.  */
31375
31376 #ifdef __STDC__
31377 # include <limits.h>
31378 #else
31379 # include <assert.h>
31380 #endif
31381
31382 #undef openlog
31383
31384 /* Override any gcc2 internal prototype to avoid an error.  */
31385 #ifdef __cplusplus
31386 extern "C"
31387 {
31388 #endif
31389 /* We use char because int might match the return type of a gcc2
31390    builtin and then its argument prototype would still apply.  */
31391 char openlog ();
31392 /* The GNU C library defines this for functions which it implements
31393     to always fail with ENOSYS.  Some functions are actually named
31394     something starting with __ and the normal name is an alias.  */
31395 #if defined (__stub_openlog) || defined (__stub___openlog)
31396 choke me
31397 #else
31398 char (*f) () = openlog;
31399 #endif
31400 #ifdef __cplusplus
31401 }
31402 #endif
31403
31404 int
31405 main ()
31406 {
31407 return f != openlog;
31408   ;
31409   return 0;
31410 }
31411 _ACEOF
31412 rm -f conftest.$ac_objext conftest$ac_exeext
31413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31414   (eval $ac_link) 2>conftest.er1
31415   ac_status=$?
31416   grep -v '^ *+' conftest.er1 >conftest.err
31417   rm -f conftest.er1
31418   cat conftest.err >&5
31419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31420   (exit $ac_status); } &&
31421          { ac_try='test -z "$ac_c_werror_flag"
31422                          || test ! -s conftest.err'
31423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31424   (eval $ac_try) 2>&5
31425   ac_status=$?
31426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427   (exit $ac_status); }; } &&
31428          { ac_try='test -s conftest$ac_exeext'
31429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31430   (eval $ac_try) 2>&5
31431   ac_status=$?
31432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433   (exit $ac_status); }; }; then
31434   ac_cv_func_openlog=yes
31435 else
31436   echo "$as_me: failed program was:" >&5
31437 sed 's/^/| /' conftest.$ac_ext >&5
31438
31439 ac_cv_func_openlog=no
31440 fi
31441 rm -f conftest.err conftest.$ac_objext \
31442       conftest$ac_exeext conftest.$ac_ext
31443 fi
31444 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
31445 echo "${ECHO_T}$ac_cv_func_openlog" >&6
31446
31447         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
31448                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
31449 echo "$as_me: error: could not find syslog" >&2;}
31450    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
31451         fi
31452         ol_enable_syslog=$ac_cv_func_openlog
31453 fi
31454
31455 ol_link_sql=no
31456 if test $ol_enable_sql != no ; then
31457
31458
31459 for ac_header in sql.h sqlext.h
31460 do
31461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31463   echo "$as_me:$LINENO: checking for $ac_header" >&5
31464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31466   echo $ECHO_N "(cached) $ECHO_C" >&6
31467 fi
31468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31470 else
31471   # Is the header compilable?
31472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31474 cat >conftest.$ac_ext <<_ACEOF
31475 /* confdefs.h.  */
31476 _ACEOF
31477 cat confdefs.h >>conftest.$ac_ext
31478 cat >>conftest.$ac_ext <<_ACEOF
31479 /* end confdefs.h.  */
31480 $ac_includes_default
31481 #include <$ac_header>
31482 _ACEOF
31483 rm -f conftest.$ac_objext
31484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31485   (eval $ac_compile) 2>conftest.er1
31486   ac_status=$?
31487   grep -v '^ *+' conftest.er1 >conftest.err
31488   rm -f conftest.er1
31489   cat conftest.err >&5
31490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491   (exit $ac_status); } &&
31492          { ac_try='test -z "$ac_c_werror_flag"
31493                          || test ! -s conftest.err'
31494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31495   (eval $ac_try) 2>&5
31496   ac_status=$?
31497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498   (exit $ac_status); }; } &&
31499          { ac_try='test -s conftest.$ac_objext'
31500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31501   (eval $ac_try) 2>&5
31502   ac_status=$?
31503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31504   (exit $ac_status); }; }; then
31505   ac_header_compiler=yes
31506 else
31507   echo "$as_me: failed program was:" >&5
31508 sed 's/^/| /' conftest.$ac_ext >&5
31509
31510 ac_header_compiler=no
31511 fi
31512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31514 echo "${ECHO_T}$ac_header_compiler" >&6
31515
31516 # Is the header present?
31517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31519 cat >conftest.$ac_ext <<_ACEOF
31520 /* confdefs.h.  */
31521 _ACEOF
31522 cat confdefs.h >>conftest.$ac_ext
31523 cat >>conftest.$ac_ext <<_ACEOF
31524 /* end confdefs.h.  */
31525 #include <$ac_header>
31526 _ACEOF
31527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31529   ac_status=$?
31530   grep -v '^ *+' conftest.er1 >conftest.err
31531   rm -f conftest.er1
31532   cat conftest.err >&5
31533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534   (exit $ac_status); } >/dev/null; then
31535   if test -s conftest.err; then
31536     ac_cpp_err=$ac_c_preproc_warn_flag
31537     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31538   else
31539     ac_cpp_err=
31540   fi
31541 else
31542   ac_cpp_err=yes
31543 fi
31544 if test -z "$ac_cpp_err"; then
31545   ac_header_preproc=yes
31546 else
31547   echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.$ac_ext >&5
31549
31550   ac_header_preproc=no
31551 fi
31552 rm -f conftest.err conftest.$ac_ext
31553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31554 echo "${ECHO_T}$ac_header_preproc" >&6
31555
31556 # So?  What about this header?
31557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31558   yes:no: )
31559     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31561     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31563     ac_header_preproc=yes
31564     ;;
31565   no:yes:* )
31566     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31568     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31569 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31570     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31572     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31573 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31576     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31578     (
31579       cat <<\_ASBOX
31580 ## --------------------------------------------- ##
31581 ## Report this to <http://www.openldap.org/its/> ##
31582 ## --------------------------------------------- ##
31583 _ASBOX
31584     ) |
31585       sed "s/^/$as_me: WARNING:     /" >&2
31586     ;;
31587 esac
31588 echo "$as_me:$LINENO: checking for $ac_header" >&5
31589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31591   echo $ECHO_N "(cached) $ECHO_C" >&6
31592 else
31593   eval "$as_ac_Header=\$ac_header_preproc"
31594 fi
31595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31597
31598 fi
31599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31600   cat >>confdefs.h <<_ACEOF
31601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31602 _ACEOF
31603
31604 else
31605
31606                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
31607 echo "$as_me: error: could not locate SQL headers" >&2;}
31608    { (exit 1); exit 1; }; }
31609
31610 fi
31611
31612 done
31613
31614
31615         sql_LIBS="$LIBS"
31616         LIBS="$LTHREAD_LIBS"
31617
31618         if test $ol_with_odbc = auto ; then
31619                 ol_with_odbc="iodbc unixodbc"
31620         fi
31621
31622         for odbc in $ol_with_odbc ; do
31623                 if test $ol_link_sql = no ; then
31624                         case $odbc in
31625                         iodbc)
31626                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
31627 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
31628 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
31629   echo $ECHO_N "(cached) $ECHO_C" >&6
31630 else
31631   ac_check_lib_save_LIBS=$LIBS
31632 LIBS="-liodbc  $LIBS"
31633 cat >conftest.$ac_ext <<_ACEOF
31634 /* confdefs.h.  */
31635 _ACEOF
31636 cat confdefs.h >>conftest.$ac_ext
31637 cat >>conftest.$ac_ext <<_ACEOF
31638 /* end confdefs.h.  */
31639
31640 /* Override any gcc2 internal prototype to avoid an error.  */
31641 #ifdef __cplusplus
31642 extern "C"
31643 #endif
31644 /* We use char because int might match the return type of a gcc2
31645    builtin and then its argument prototype would still apply.  */
31646 char SQLDriverConnect ();
31647 int
31648 main ()
31649 {
31650 SQLDriverConnect ();
31651   ;
31652   return 0;
31653 }
31654 _ACEOF
31655 rm -f conftest.$ac_objext conftest$ac_exeext
31656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31657   (eval $ac_link) 2>conftest.er1
31658   ac_status=$?
31659   grep -v '^ *+' conftest.er1 >conftest.err
31660   rm -f conftest.er1
31661   cat conftest.err >&5
31662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663   (exit $ac_status); } &&
31664          { ac_try='test -z "$ac_c_werror_flag"
31665                          || test ! -s conftest.err'
31666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31667   (eval $ac_try) 2>&5
31668   ac_status=$?
31669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670   (exit $ac_status); }; } &&
31671          { ac_try='test -s conftest$ac_exeext'
31672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31673   (eval $ac_try) 2>&5
31674   ac_status=$?
31675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31676   (exit $ac_status); }; }; then
31677   ac_cv_lib_iodbc_SQLDriverConnect=yes
31678 else
31679   echo "$as_me: failed program was:" >&5
31680 sed 's/^/| /' conftest.$ac_ext >&5
31681
31682 ac_cv_lib_iodbc_SQLDriverConnect=no
31683 fi
31684 rm -f conftest.err conftest.$ac_objext \
31685       conftest$ac_exeext conftest.$ac_ext
31686 LIBS=$ac_check_lib_save_LIBS
31687 fi
31688 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
31689 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
31690 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
31691   have_iodbc=yes
31692 else
31693   have_iodbc=no
31694 fi
31695
31696                                 if test $have_iodbc = yes ; then
31697                                         ol_link_sql="-liodbc"
31698                                 fi
31699                                 ;;
31700
31701                         unixodbc)
31702                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
31703 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
31704 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
31705   echo $ECHO_N "(cached) $ECHO_C" >&6
31706 else
31707   ac_check_lib_save_LIBS=$LIBS
31708 LIBS="-lodbc  $LIBS"
31709 cat >conftest.$ac_ext <<_ACEOF
31710 /* confdefs.h.  */
31711 _ACEOF
31712 cat confdefs.h >>conftest.$ac_ext
31713 cat >>conftest.$ac_ext <<_ACEOF
31714 /* end confdefs.h.  */
31715
31716 /* Override any gcc2 internal prototype to avoid an error.  */
31717 #ifdef __cplusplus
31718 extern "C"
31719 #endif
31720 /* We use char because int might match the return type of a gcc2
31721    builtin and then its argument prototype would still apply.  */
31722 char SQLDriverConnect ();
31723 int
31724 main ()
31725 {
31726 SQLDriverConnect ();
31727   ;
31728   return 0;
31729 }
31730 _ACEOF
31731 rm -f conftest.$ac_objext conftest$ac_exeext
31732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31733   (eval $ac_link) 2>conftest.er1
31734   ac_status=$?
31735   grep -v '^ *+' conftest.er1 >conftest.err
31736   rm -f conftest.er1
31737   cat conftest.err >&5
31738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739   (exit $ac_status); } &&
31740          { ac_try='test -z "$ac_c_werror_flag"
31741                          || test ! -s conftest.err'
31742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31743   (eval $ac_try) 2>&5
31744   ac_status=$?
31745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746   (exit $ac_status); }; } &&
31747          { ac_try='test -s conftest$ac_exeext'
31748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31749   (eval $ac_try) 2>&5
31750   ac_status=$?
31751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752   (exit $ac_status); }; }; then
31753   ac_cv_lib_odbc_SQLDriverConnect=yes
31754 else
31755   echo "$as_me: failed program was:" >&5
31756 sed 's/^/| /' conftest.$ac_ext >&5
31757
31758 ac_cv_lib_odbc_SQLDriverConnect=no
31759 fi
31760 rm -f conftest.err conftest.$ac_objext \
31761       conftest$ac_exeext conftest.$ac_ext
31762 LIBS=$ac_check_lib_save_LIBS
31763 fi
31764 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
31765 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
31766 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
31767   have_odbc=yes
31768 else
31769   have_odbc=no
31770 fi
31771
31772                                 if test $have_odbc = yes ; then
31773                                         ol_link_sql="-lodbc"
31774                                 fi
31775                                 ;;
31776
31777                         *)
31778                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
31779 echo "$as_me: error: unknown ODBC library" >&2;}
31780    { (exit 1); exit 1; }; }
31781                                 ;;
31782                         esac
31783                 fi
31784         done
31785
31786         LIBS="$sql_LIBS"
31787
31788         if test $ol_link_sql != no ; then
31789                 SLAPD_SQL_LIBS="$ol_link_sql"
31790
31791         elif test $ol_enable_sql != auto ; then
31792                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
31793 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
31794    { (exit 1); exit 1; }; }
31795         fi
31796 fi
31797
31798 ol_icu=no
31799
31800 for ac_header in unicode/utypes.h
31801 do
31802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31804   echo "$as_me:$LINENO: checking for $ac_header" >&5
31805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31807   echo $ECHO_N "(cached) $ECHO_C" >&6
31808 fi
31809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31811 else
31812   # Is the header compilable?
31813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31815 cat >conftest.$ac_ext <<_ACEOF
31816 /* confdefs.h.  */
31817 _ACEOF
31818 cat confdefs.h >>conftest.$ac_ext
31819 cat >>conftest.$ac_ext <<_ACEOF
31820 /* end confdefs.h.  */
31821 $ac_includes_default
31822 #include <$ac_header>
31823 _ACEOF
31824 rm -f conftest.$ac_objext
31825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31826   (eval $ac_compile) 2>conftest.er1
31827   ac_status=$?
31828   grep -v '^ *+' conftest.er1 >conftest.err
31829   rm -f conftest.er1
31830   cat conftest.err >&5
31831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832   (exit $ac_status); } &&
31833          { ac_try='test -z "$ac_c_werror_flag"
31834                          || test ! -s conftest.err'
31835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31836   (eval $ac_try) 2>&5
31837   ac_status=$?
31838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839   (exit $ac_status); }; } &&
31840          { ac_try='test -s conftest.$ac_objext'
31841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31842   (eval $ac_try) 2>&5
31843   ac_status=$?
31844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845   (exit $ac_status); }; }; then
31846   ac_header_compiler=yes
31847 else
31848   echo "$as_me: failed program was:" >&5
31849 sed 's/^/| /' conftest.$ac_ext >&5
31850
31851 ac_header_compiler=no
31852 fi
31853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31855 echo "${ECHO_T}$ac_header_compiler" >&6
31856
31857 # Is the header present?
31858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31860 cat >conftest.$ac_ext <<_ACEOF
31861 /* confdefs.h.  */
31862 _ACEOF
31863 cat confdefs.h >>conftest.$ac_ext
31864 cat >>conftest.$ac_ext <<_ACEOF
31865 /* end confdefs.h.  */
31866 #include <$ac_header>
31867 _ACEOF
31868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31869   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31870   ac_status=$?
31871   grep -v '^ *+' conftest.er1 >conftest.err
31872   rm -f conftest.er1
31873   cat conftest.err >&5
31874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31875   (exit $ac_status); } >/dev/null; then
31876   if test -s conftest.err; then
31877     ac_cpp_err=$ac_c_preproc_warn_flag
31878     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31879   else
31880     ac_cpp_err=
31881   fi
31882 else
31883   ac_cpp_err=yes
31884 fi
31885 if test -z "$ac_cpp_err"; then
31886   ac_header_preproc=yes
31887 else
31888   echo "$as_me: failed program was:" >&5
31889 sed 's/^/| /' conftest.$ac_ext >&5
31890
31891   ac_header_preproc=no
31892 fi
31893 rm -f conftest.err conftest.$ac_ext
31894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31895 echo "${ECHO_T}$ac_header_preproc" >&6
31896
31897 # So?  What about this header?
31898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31899   yes:no: )
31900     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31904     ac_header_preproc=yes
31905     ;;
31906   no:yes:* )
31907     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31909     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31910 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31911     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31913     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31914 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31917     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31919     (
31920       cat <<\_ASBOX
31921 ## --------------------------------------------- ##
31922 ## Report this to <http://www.openldap.org/its/> ##
31923 ## --------------------------------------------- ##
31924 _ASBOX
31925     ) |
31926       sed "s/^/$as_me: WARNING:     /" >&2
31927     ;;
31928 esac
31929 echo "$as_me:$LINENO: checking for $ac_header" >&5
31930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31932   echo $ECHO_N "(cached) $ECHO_C" >&6
31933 else
31934   eval "$as_ac_Header=\$ac_header_preproc"
31935 fi
31936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31938
31939 fi
31940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31941   cat >>confdefs.h <<_ACEOF
31942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31943 _ACEOF
31944
31945 fi
31946
31947 done
31948
31949 if test $ac_cv_header_unicode_utypes_h = yes ; then
31950                 OL_ICULIBS="-licuuc -licudata"
31951
31952         echo "$as_me:$LINENO: checking for ICU libraries" >&5
31953 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
31954 if test "${ol_cv_lib_icu+set}" = set; then
31955   echo $ECHO_N "(cached) $ECHO_C" >&6
31956 else
31957
31958                 ol_LIBS="$LIBS"
31959                 LIBS="$OL_ICULIBS $LIBS"
31960                 cat >conftest.$ac_ext <<_ACEOF
31961 /* confdefs.h.  */
31962 _ACEOF
31963 cat confdefs.h >>conftest.$ac_ext
31964 cat >>conftest.$ac_ext <<_ACEOF
31965 /* end confdefs.h.  */
31966
31967 #include <unicode/utypes.h>
31968
31969 int
31970 main ()
31971 {
31972
31973 (void) u_errorName(0);
31974
31975   ;
31976   return 0;
31977 }
31978 _ACEOF
31979 rm -f conftest.$ac_objext conftest$ac_exeext
31980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31981   (eval $ac_link) 2>conftest.er1
31982   ac_status=$?
31983   grep -v '^ *+' conftest.er1 >conftest.err
31984   rm -f conftest.er1
31985   cat conftest.err >&5
31986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987   (exit $ac_status); } &&
31988          { ac_try='test -z "$ac_c_werror_flag"
31989                          || test ! -s conftest.err'
31990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31991   (eval $ac_try) 2>&5
31992   ac_status=$?
31993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994   (exit $ac_status); }; } &&
31995          { ac_try='test -s conftest$ac_exeext'
31996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31997   (eval $ac_try) 2>&5
31998   ac_status=$?
31999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000   (exit $ac_status); }; }; then
32001   ol_cv_lib_icu=yes
32002 else
32003   echo "$as_me: failed program was:" >&5
32004 sed 's/^/| /' conftest.$ac_ext >&5
32005
32006 ol_cv_lib_icu=no
32007 fi
32008 rm -f conftest.err conftest.$ac_objext \
32009       conftest$ac_exeext conftest.$ac_ext
32010                 LIBS="$ol_LIBS"
32011
32012 fi
32013 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32014 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32015
32016         if test $ol_cv_lib_icu != no ; then
32017                 ol_icu="$OL_ICULIBS"
32018
32019 cat >>confdefs.h <<\_ACEOF
32020 #define HAVE_ICU 1
32021 _ACEOF
32022
32023         fi
32024 fi
32025
32026 if test "$ol_icu" = no ; then
32027         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32028 echo "$as_me: WARNING: ICU not available" >&2;}
32029 else
32030         ICU_LIBS="$ol_icu"
32031 fi
32032 WITH_SASL=no
32033 ol_link_sasl=no
32034 ol_link_spasswd=no
32035 if test $ol_with_cyrus_sasl != no ; then
32036
32037
32038 for ac_header in sasl/sasl.h sasl.h
32039 do
32040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32042   echo "$as_me:$LINENO: checking for $ac_header" >&5
32043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32045   echo $ECHO_N "(cached) $ECHO_C" >&6
32046 fi
32047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32049 else
32050   # Is the header compilable?
32051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32053 cat >conftest.$ac_ext <<_ACEOF
32054 /* confdefs.h.  */
32055 _ACEOF
32056 cat confdefs.h >>conftest.$ac_ext
32057 cat >>conftest.$ac_ext <<_ACEOF
32058 /* end confdefs.h.  */
32059 $ac_includes_default
32060 #include <$ac_header>
32061 _ACEOF
32062 rm -f conftest.$ac_objext
32063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32064   (eval $ac_compile) 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_objext'
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_header_compiler=yes
32085 else
32086   echo "$as_me: failed program was:" >&5
32087 sed 's/^/| /' conftest.$ac_ext >&5
32088
32089 ac_header_compiler=no
32090 fi
32091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32093 echo "${ECHO_T}$ac_header_compiler" >&6
32094
32095 # Is the header present?
32096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32098 cat >conftest.$ac_ext <<_ACEOF
32099 /* confdefs.h.  */
32100 _ACEOF
32101 cat confdefs.h >>conftest.$ac_ext
32102 cat >>conftest.$ac_ext <<_ACEOF
32103 /* end confdefs.h.  */
32104 #include <$ac_header>
32105 _ACEOF
32106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32107   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32108   ac_status=$?
32109   grep -v '^ *+' conftest.er1 >conftest.err
32110   rm -f conftest.er1
32111   cat conftest.err >&5
32112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113   (exit $ac_status); } >/dev/null; then
32114   if test -s conftest.err; then
32115     ac_cpp_err=$ac_c_preproc_warn_flag
32116     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32117   else
32118     ac_cpp_err=
32119   fi
32120 else
32121   ac_cpp_err=yes
32122 fi
32123 if test -z "$ac_cpp_err"; then
32124   ac_header_preproc=yes
32125 else
32126   echo "$as_me: failed program was:" >&5
32127 sed 's/^/| /' conftest.$ac_ext >&5
32128
32129   ac_header_preproc=no
32130 fi
32131 rm -f conftest.err conftest.$ac_ext
32132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32133 echo "${ECHO_T}$ac_header_preproc" >&6
32134
32135 # So?  What about this header?
32136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32137   yes:no: )
32138     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32142     ac_header_preproc=yes
32143     ;;
32144   no:yes:* )
32145     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32147     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32148 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32149     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32151     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32152 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32155     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32157     (
32158       cat <<\_ASBOX
32159 ## --------------------------------------------- ##
32160 ## Report this to <http://www.openldap.org/its/> ##
32161 ## --------------------------------------------- ##
32162 _ASBOX
32163     ) |
32164       sed "s/^/$as_me: WARNING:     /" >&2
32165     ;;
32166 esac
32167 echo "$as_me:$LINENO: checking for $ac_header" >&5
32168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32170   echo $ECHO_N "(cached) $ECHO_C" >&6
32171 else
32172   eval "$as_ac_Header=\$ac_header_preproc"
32173 fi
32174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32176
32177 fi
32178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32179   cat >>confdefs.h <<_ACEOF
32180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32181 _ACEOF
32182
32183 fi
32184
32185 done
32186
32187
32188         if test $ac_cv_header_sasl_sasl_h = yes ||
32189            test $ac_cv_header_sasl_h = yes; then
32190                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32191 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32192 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32193   echo $ECHO_N "(cached) $ECHO_C" >&6
32194 else
32195   ac_check_lib_save_LIBS=$LIBS
32196 LIBS="-lsasl2  $LIBS"
32197 cat >conftest.$ac_ext <<_ACEOF
32198 /* confdefs.h.  */
32199 _ACEOF
32200 cat confdefs.h >>conftest.$ac_ext
32201 cat >>conftest.$ac_ext <<_ACEOF
32202 /* end confdefs.h.  */
32203
32204 /* Override any gcc2 internal prototype to avoid an error.  */
32205 #ifdef __cplusplus
32206 extern "C"
32207 #endif
32208 /* We use char because int might match the return type of a gcc2
32209    builtin and then its argument prototype would still apply.  */
32210 char sasl_client_init ();
32211 int
32212 main ()
32213 {
32214 sasl_client_init ();
32215   ;
32216   return 0;
32217 }
32218 _ACEOF
32219 rm -f conftest.$ac_objext conftest$ac_exeext
32220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32221   (eval $ac_link) 2>conftest.er1
32222   ac_status=$?
32223   grep -v '^ *+' conftest.er1 >conftest.err
32224   rm -f conftest.er1
32225   cat conftest.err >&5
32226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227   (exit $ac_status); } &&
32228          { ac_try='test -z "$ac_c_werror_flag"
32229                          || test ! -s conftest.err'
32230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32231   (eval $ac_try) 2>&5
32232   ac_status=$?
32233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234   (exit $ac_status); }; } &&
32235          { ac_try='test -s conftest$ac_exeext'
32236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32237   (eval $ac_try) 2>&5
32238   ac_status=$?
32239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240   (exit $ac_status); }; }; then
32241   ac_cv_lib_sasl2_sasl_client_init=yes
32242 else
32243   echo "$as_me: failed program was:" >&5
32244 sed 's/^/| /' conftest.$ac_ext >&5
32245
32246 ac_cv_lib_sasl2_sasl_client_init=no
32247 fi
32248 rm -f conftest.err conftest.$ac_objext \
32249       conftest$ac_exeext conftest.$ac_ext
32250 LIBS=$ac_check_lib_save_LIBS
32251 fi
32252 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32253 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32254 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32255   ol_link_sasl="-lsasl2"
32256 else
32257   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32258 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32259 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32260   echo $ECHO_N "(cached) $ECHO_C" >&6
32261 else
32262   ac_check_lib_save_LIBS=$LIBS
32263 LIBS="-lsasl  $LIBS"
32264 cat >conftest.$ac_ext <<_ACEOF
32265 /* confdefs.h.  */
32266 _ACEOF
32267 cat confdefs.h >>conftest.$ac_ext
32268 cat >>conftest.$ac_ext <<_ACEOF
32269 /* end confdefs.h.  */
32270
32271 /* Override any gcc2 internal prototype to avoid an error.  */
32272 #ifdef __cplusplus
32273 extern "C"
32274 #endif
32275 /* We use char because int might match the return type of a gcc2
32276    builtin and then its argument prototype would still apply.  */
32277 char sasl_client_init ();
32278 int
32279 main ()
32280 {
32281 sasl_client_init ();
32282   ;
32283   return 0;
32284 }
32285 _ACEOF
32286 rm -f conftest.$ac_objext conftest$ac_exeext
32287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32288   (eval $ac_link) 2>conftest.er1
32289   ac_status=$?
32290   grep -v '^ *+' conftest.er1 >conftest.err
32291   rm -f conftest.er1
32292   cat conftest.err >&5
32293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294   (exit $ac_status); } &&
32295          { ac_try='test -z "$ac_c_werror_flag"
32296                          || test ! -s conftest.err'
32297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32298   (eval $ac_try) 2>&5
32299   ac_status=$?
32300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301   (exit $ac_status); }; } &&
32302          { ac_try='test -s conftest$ac_exeext'
32303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32304   (eval $ac_try) 2>&5
32305   ac_status=$?
32306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32307   (exit $ac_status); }; }; then
32308   ac_cv_lib_sasl_sasl_client_init=yes
32309 else
32310   echo "$as_me: failed program was:" >&5
32311 sed 's/^/| /' conftest.$ac_ext >&5
32312
32313 ac_cv_lib_sasl_sasl_client_init=no
32314 fi
32315 rm -f conftest.err conftest.$ac_objext \
32316       conftest$ac_exeext conftest.$ac_ext
32317 LIBS=$ac_check_lib_save_LIBS
32318 fi
32319 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32320 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32321 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32322   ol_link_sasl="-lsasl"
32323 fi
32324
32325 fi
32326
32327         fi
32328
32329         if test $ol_link_sasl = no ; then
32330                 if test $ol_with_cyrus_sasl != auto ; then
32331                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32332 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32333    { (exit 1); exit 1; }; }
32334                 else
32335                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32336 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32337                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32338 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32339                         if test $ol_link_tls = no ; then
32340                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32341 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32342                         fi
32343                 fi
32344         else
32345                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32346 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32347 if test "${ol_cv_sasl_compat+set}" = set; then
32348   echo $ECHO_N "(cached) $ECHO_C" >&6
32349 else
32350
32351         cat >conftest.$ac_ext <<_ACEOF
32352 /* confdefs.h.  */
32353 _ACEOF
32354 cat confdefs.h >>conftest.$ac_ext
32355 cat >>conftest.$ac_ext <<_ACEOF
32356 /* end confdefs.h.  */
32357
32358 #ifdef HAVE_SASL_SASL_H
32359 #include <sasl/sasl.h>
32360 #else
32361 #include <sasl.h>
32362 #endif
32363
32364 /* Require 2.1.15+ */
32365 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
32366         char *__sasl_compat = "2.2+ or better okay (we guess)";
32367 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
32368         && SASL_VERSION_STEP >=15
32369         char *__sasl_compat = "2.1.15+ or better okay";
32370 #endif
32371
32372 _ACEOF
32373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32374   $EGREP "__sasl_compat" >/dev/null 2>&1; then
32375   ol_cv_sasl_compat=yes
32376 else
32377   ol_cv_sasl_compat=no
32378 fi
32379 rm -f conftest*
32380
32381 fi
32382 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32383 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32384
32385                 if test $ol_cv_sasl_compat = no ; then
32386                         ol_link_sasl=no
32387                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32388 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32389    { (exit 1); exit 1; }; }
32390                 fi
32391
32392
32393 cat >>confdefs.h <<\_ACEOF
32394 #define HAVE_CYRUS_SASL 1
32395 _ACEOF
32396
32397                 SASL_LIBS="$ol_link_sasl"
32398                 if test $ol_enable_spasswd != no ; then
32399                         ol_link_spasswd=yes
32400                 fi
32401
32402                 ac_save_LIBS="$LIBS"
32403                 LIBS="$LIBS $ol_link_sasl"
32404                 echo "$as_me:$LINENO: checking for sasl_version" >&5
32405 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32406 if test "${ac_cv_func_sasl_version+set}" = set; then
32407   echo $ECHO_N "(cached) $ECHO_C" >&6
32408 else
32409   cat >conftest.$ac_ext <<_ACEOF
32410 /* confdefs.h.  */
32411 _ACEOF
32412 cat confdefs.h >>conftest.$ac_ext
32413 cat >>conftest.$ac_ext <<_ACEOF
32414 /* end confdefs.h.  */
32415 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
32416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32417 #define sasl_version innocuous_sasl_version
32418
32419 /* System header to define __stub macros and hopefully few prototypes,
32420     which can conflict with char sasl_version (); below.
32421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32422     <limits.h> exists even on freestanding compilers.  */
32423
32424 #ifdef __STDC__
32425 # include <limits.h>
32426 #else
32427 # include <assert.h>
32428 #endif
32429
32430 #undef sasl_version
32431
32432 /* Override any gcc2 internal prototype to avoid an error.  */
32433 #ifdef __cplusplus
32434 extern "C"
32435 {
32436 #endif
32437 /* We use char because int might match the return type of a gcc2
32438    builtin and then its argument prototype would still apply.  */
32439 char sasl_version ();
32440 /* The GNU C library defines this for functions which it implements
32441     to always fail with ENOSYS.  Some functions are actually named
32442     something starting with __ and the normal name is an alias.  */
32443 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
32444 choke me
32445 #else
32446 char (*f) () = sasl_version;
32447 #endif
32448 #ifdef __cplusplus
32449 }
32450 #endif
32451
32452 int
32453 main ()
32454 {
32455 return f != sasl_version;
32456   ;
32457   return 0;
32458 }
32459 _ACEOF
32460 rm -f conftest.$ac_objext conftest$ac_exeext
32461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32462   (eval $ac_link) 2>conftest.er1
32463   ac_status=$?
32464   grep -v '^ *+' conftest.er1 >conftest.err
32465   rm -f conftest.er1
32466   cat conftest.err >&5
32467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468   (exit $ac_status); } &&
32469          { ac_try='test -z "$ac_c_werror_flag"
32470                          || test ! -s conftest.err'
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); }; } &&
32476          { ac_try='test -s conftest$ac_exeext'
32477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32478   (eval $ac_try) 2>&5
32479   ac_status=$?
32480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32481   (exit $ac_status); }; }; then
32482   ac_cv_func_sasl_version=yes
32483 else
32484   echo "$as_me: failed program was:" >&5
32485 sed 's/^/| /' conftest.$ac_ext >&5
32486
32487 ac_cv_func_sasl_version=no
32488 fi
32489 rm -f conftest.err conftest.$ac_objext \
32490       conftest$ac_exeext conftest.$ac_ext
32491 fi
32492 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
32493 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
32494 if test $ac_cv_func_sasl_version = yes; then
32495
32496 cat >>confdefs.h <<\_ACEOF
32497 #define HAVE_SASL_VERSION 1
32498 _ACEOF
32499
32500 fi
32501
32502                 LIBS="$ac_save_LIBS"
32503
32504                 WITH_SASL=yes
32505         fi
32506
32507 else
32508         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32509 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32510         if test $ol_link_tls = no ; then
32511                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32512 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32513         fi
32514 fi
32515
32516 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
32517         dev=no
32518         if test -r /dev/urandom ; then
32519                 dev="/dev/urandom";
32520         elif test -r /idev/urandom ; then
32521                 dev="/idev/urandom";
32522         elif test -r /dev/srandom ; then
32523                 dev="/dev/srandom";
32524         elif test -r /dev/random ; then
32525                 dev="/dev/random";
32526         elif test -r /idev/random ; then
32527                 dev="/idev/random";
32528         fi
32529
32530         if test $dev != no ; then
32531
32532 cat >>confdefs.h <<_ACEOF
32533 #define URANDOM_DEVICE "$dev"
32534 _ACEOF
32535
32536         fi
32537 fi
32538
32539 ol_link_fetch=no
32540 if test $ol_with_fetch != no ; then
32541         ol_LIBS=$LIBS
32542 LIBS="-lfetch -lcom_err $LIBS"
32543 echo "$as_me:$LINENO: checking fetch(3) library" >&5
32544 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
32545 if test "${ol_cv_lib_fetch+set}" = set; then
32546   echo $ECHO_N "(cached) $ECHO_C" >&6
32547 else
32548
32549         cat >conftest.$ac_ext <<_ACEOF
32550 /* confdefs.h.  */
32551 _ACEOF
32552 cat confdefs.h >>conftest.$ac_ext
32553 cat >>conftest.$ac_ext <<_ACEOF
32554 /* end confdefs.h.  */
32555
32556 #include <sys/param.h>
32557 #include <stdio.h>
32558 #include <fetch.h>
32559 int
32560 main ()
32561 {
32562 struct url *u = fetchParseURL("file:///");
32563   ;
32564   return 0;
32565 }
32566 _ACEOF
32567 rm -f conftest.$ac_objext conftest$ac_exeext
32568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32569   (eval $ac_link) 2>conftest.er1
32570   ac_status=$?
32571   grep -v '^ *+' conftest.er1 >conftest.err
32572   rm -f conftest.er1
32573   cat conftest.err >&5
32574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32575   (exit $ac_status); } &&
32576          { ac_try='test -z "$ac_c_werror_flag"
32577                          || test ! -s conftest.err'
32578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32579   (eval $ac_try) 2>&5
32580   ac_status=$?
32581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582   (exit $ac_status); }; } &&
32583          { ac_try='test -s conftest$ac_exeext'
32584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32585   (eval $ac_try) 2>&5
32586   ac_status=$?
32587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588   (exit $ac_status); }; }; then
32589   ol_cv_lib_fetch=yes
32590 else
32591   echo "$as_me: failed program was:" >&5
32592 sed 's/^/| /' conftest.$ac_ext >&5
32593
32594 ol_cv_lib_fetch=no
32595 fi
32596 rm -f conftest.err conftest.$ac_objext \
32597       conftest$ac_exeext conftest.$ac_ext
32598 fi
32599 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
32600 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
32601 LIBS=$ol_LIBS
32602 if test $ol_cv_lib_fetch != no ; then
32603         ol_link_fetch="-lfetch -lcom_err"
32604
32605 cat >>confdefs.h <<\_ACEOF
32606 #define HAVE_FETCH 1
32607 _ACEOF
32608
32609 fi
32610
32611
32612         if test $ol_cv_lib_fetch != no ; then
32613                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
32614                 ol_link_fetch=freebsd
32615
32616         elif test $ol_with_fetch != auto ; then
32617                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
32618 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
32619    { (exit 1); exit 1; }; }
32620         fi
32621 fi
32622
32623 if test $ol_enable_crypt != no ; then
32624         save_LIBS="$LIBS"
32625         LIBS="$TLS_LIBS $LIBS"
32626
32627         echo "$as_me:$LINENO: checking for crypt" >&5
32628 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
32629 if test "${ac_cv_func_crypt+set}" = set; then
32630   echo $ECHO_N "(cached) $ECHO_C" >&6
32631 else
32632   cat >conftest.$ac_ext <<_ACEOF
32633 /* confdefs.h.  */
32634 _ACEOF
32635 cat confdefs.h >>conftest.$ac_ext
32636 cat >>conftest.$ac_ext <<_ACEOF
32637 /* end confdefs.h.  */
32638 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
32639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32640 #define crypt innocuous_crypt
32641
32642 /* System header to define __stub macros and hopefully few prototypes,
32643     which can conflict with char crypt (); below.
32644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32645     <limits.h> exists even on freestanding compilers.  */
32646
32647 #ifdef __STDC__
32648 # include <limits.h>
32649 #else
32650 # include <assert.h>
32651 #endif
32652
32653 #undef crypt
32654
32655 /* Override any gcc2 internal prototype to avoid an error.  */
32656 #ifdef __cplusplus
32657 extern "C"
32658 {
32659 #endif
32660 /* We use char because int might match the return type of a gcc2
32661    builtin and then its argument prototype would still apply.  */
32662 char crypt ();
32663 /* The GNU C library defines this for functions which it implements
32664     to always fail with ENOSYS.  Some functions are actually named
32665     something starting with __ and the normal name is an alias.  */
32666 #if defined (__stub_crypt) || defined (__stub___crypt)
32667 choke me
32668 #else
32669 char (*f) () = crypt;
32670 #endif
32671 #ifdef __cplusplus
32672 }
32673 #endif
32674
32675 int
32676 main ()
32677 {
32678 return f != crypt;
32679   ;
32680   return 0;
32681 }
32682 _ACEOF
32683 rm -f conftest.$ac_objext conftest$ac_exeext
32684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32685   (eval $ac_link) 2>conftest.er1
32686   ac_status=$?
32687   grep -v '^ *+' conftest.er1 >conftest.err
32688   rm -f conftest.er1
32689   cat conftest.err >&5
32690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691   (exit $ac_status); } &&
32692          { ac_try='test -z "$ac_c_werror_flag"
32693                          || test ! -s conftest.err'
32694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32695   (eval $ac_try) 2>&5
32696   ac_status=$?
32697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698   (exit $ac_status); }; } &&
32699          { ac_try='test -s conftest$ac_exeext'
32700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32701   (eval $ac_try) 2>&5
32702   ac_status=$?
32703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704   (exit $ac_status); }; }; then
32705   ac_cv_func_crypt=yes
32706 else
32707   echo "$as_me: failed program was:" >&5
32708 sed 's/^/| /' conftest.$ac_ext >&5
32709
32710 ac_cv_func_crypt=no
32711 fi
32712 rm -f conftest.err conftest.$ac_objext \
32713       conftest$ac_exeext conftest.$ac_ext
32714 fi
32715 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
32716 echo "${ECHO_T}$ac_cv_func_crypt" >&6
32717 if test $ac_cv_func_crypt = yes; then
32718   have_crypt=yes
32719 else
32720
32721                 LIBS="$save_LIBS"
32722                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
32723 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
32724 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
32725   echo $ECHO_N "(cached) $ECHO_C" >&6
32726 else
32727   ac_check_lib_save_LIBS=$LIBS
32728 LIBS="-lcrypt  $LIBS"
32729 cat >conftest.$ac_ext <<_ACEOF
32730 /* confdefs.h.  */
32731 _ACEOF
32732 cat confdefs.h >>conftest.$ac_ext
32733 cat >>conftest.$ac_ext <<_ACEOF
32734 /* end confdefs.h.  */
32735
32736 /* Override any gcc2 internal prototype to avoid an error.  */
32737 #ifdef __cplusplus
32738 extern "C"
32739 #endif
32740 /* We use char because int might match the return type of a gcc2
32741    builtin and then its argument prototype would still apply.  */
32742 char crypt ();
32743 int
32744 main ()
32745 {
32746 crypt ();
32747   ;
32748   return 0;
32749 }
32750 _ACEOF
32751 rm -f conftest.$ac_objext conftest$ac_exeext
32752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32753   (eval $ac_link) 2>conftest.er1
32754   ac_status=$?
32755   grep -v '^ *+' conftest.er1 >conftest.err
32756   rm -f conftest.er1
32757   cat conftest.err >&5
32758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759   (exit $ac_status); } &&
32760          { ac_try='test -z "$ac_c_werror_flag"
32761                          || test ! -s conftest.err'
32762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32763   (eval $ac_try) 2>&5
32764   ac_status=$?
32765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766   (exit $ac_status); }; } &&
32767          { ac_try='test -s conftest$ac_exeext'
32768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32769   (eval $ac_try) 2>&5
32770   ac_status=$?
32771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772   (exit $ac_status); }; }; then
32773   ac_cv_lib_crypt_crypt=yes
32774 else
32775   echo "$as_me: failed program was:" >&5
32776 sed 's/^/| /' conftest.$ac_ext >&5
32777
32778 ac_cv_lib_crypt_crypt=no
32779 fi
32780 rm -f conftest.err conftest.$ac_objext \
32781       conftest$ac_exeext conftest.$ac_ext
32782 LIBS=$ac_check_lib_save_LIBS
32783 fi
32784 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
32785 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
32786 if test $ac_cv_lib_crypt_crypt = yes; then
32787   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
32788                         have_crypt=yes
32789 else
32790   have_crypt=no
32791 fi
32792
32793 fi
32794
32795
32796         LIBS="$save_LIBS"
32797
32798         if test $have_crypt = yes ; then
32799
32800 cat >>confdefs.h <<\_ACEOF
32801 #define HAVE_CRYPT 1
32802 _ACEOF
32803
32804         else
32805                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
32806 echo "$as_me: WARNING: could not find crypt" >&2;}
32807                 if test $ol_enable_crypt = yes ; then
32808                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
32809 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
32810    { (exit 1); exit 1; }; }
32811                 fi
32812
32813                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
32814 echo "$as_me: WARNING: disabling crypt support" >&2;}
32815                 ol_enable_crypt=no
32816         fi
32817 fi
32818
32819 if test $ol_enable_proctitle != no ; then
32820         echo "$as_me:$LINENO: checking for setproctitle" >&5
32821 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
32822 if test "${ac_cv_func_setproctitle+set}" = set; then
32823   echo $ECHO_N "(cached) $ECHO_C" >&6
32824 else
32825   cat >conftest.$ac_ext <<_ACEOF
32826 /* confdefs.h.  */
32827 _ACEOF
32828 cat confdefs.h >>conftest.$ac_ext
32829 cat >>conftest.$ac_ext <<_ACEOF
32830 /* end confdefs.h.  */
32831 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
32832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32833 #define setproctitle innocuous_setproctitle
32834
32835 /* System header to define __stub macros and hopefully few prototypes,
32836     which can conflict with char setproctitle (); below.
32837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32838     <limits.h> exists even on freestanding compilers.  */
32839
32840 #ifdef __STDC__
32841 # include <limits.h>
32842 #else
32843 # include <assert.h>
32844 #endif
32845
32846 #undef setproctitle
32847
32848 /* Override any gcc2 internal prototype to avoid an error.  */
32849 #ifdef __cplusplus
32850 extern "C"
32851 {
32852 #endif
32853 /* We use char because int might match the return type of a gcc2
32854    builtin and then its argument prototype would still apply.  */
32855 char setproctitle ();
32856 /* The GNU C library defines this for functions which it implements
32857     to always fail with ENOSYS.  Some functions are actually named
32858     something starting with __ and the normal name is an alias.  */
32859 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
32860 choke me
32861 #else
32862 char (*f) () = setproctitle;
32863 #endif
32864 #ifdef __cplusplus
32865 }
32866 #endif
32867
32868 int
32869 main ()
32870 {
32871 return f != setproctitle;
32872   ;
32873   return 0;
32874 }
32875 _ACEOF
32876 rm -f conftest.$ac_objext conftest$ac_exeext
32877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32878   (eval $ac_link) 2>conftest.er1
32879   ac_status=$?
32880   grep -v '^ *+' conftest.er1 >conftest.err
32881   rm -f conftest.er1
32882   cat conftest.err >&5
32883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884   (exit $ac_status); } &&
32885          { ac_try='test -z "$ac_c_werror_flag"
32886                          || test ! -s conftest.err'
32887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32888   (eval $ac_try) 2>&5
32889   ac_status=$?
32890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891   (exit $ac_status); }; } &&
32892          { ac_try='test -s conftest$ac_exeext'
32893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32894   (eval $ac_try) 2>&5
32895   ac_status=$?
32896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32897   (exit $ac_status); }; }; then
32898   ac_cv_func_setproctitle=yes
32899 else
32900   echo "$as_me: failed program was:" >&5
32901 sed 's/^/| /' conftest.$ac_ext >&5
32902
32903 ac_cv_func_setproctitle=no
32904 fi
32905 rm -f conftest.err conftest.$ac_objext \
32906       conftest$ac_exeext conftest.$ac_ext
32907 fi
32908 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
32909 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
32910 if test $ac_cv_func_setproctitle = yes; then
32911   have_setproctitle=yes
32912 else
32913
32914                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
32915 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
32916 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
32917   echo $ECHO_N "(cached) $ECHO_C" >&6
32918 else
32919   ac_check_lib_save_LIBS=$LIBS
32920 LIBS="-lutil  $LIBS"
32921 cat >conftest.$ac_ext <<_ACEOF
32922 /* confdefs.h.  */
32923 _ACEOF
32924 cat confdefs.h >>conftest.$ac_ext
32925 cat >>conftest.$ac_ext <<_ACEOF
32926 /* end confdefs.h.  */
32927
32928 /* Override any gcc2 internal prototype to avoid an error.  */
32929 #ifdef __cplusplus
32930 extern "C"
32931 #endif
32932 /* We use char because int might match the return type of a gcc2
32933    builtin and then its argument prototype would still apply.  */
32934 char setproctitle ();
32935 int
32936 main ()
32937 {
32938 setproctitle ();
32939   ;
32940   return 0;
32941 }
32942 _ACEOF
32943 rm -f conftest.$ac_objext conftest$ac_exeext
32944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32945   (eval $ac_link) 2>conftest.er1
32946   ac_status=$?
32947   grep -v '^ *+' conftest.er1 >conftest.err
32948   rm -f conftest.er1
32949   cat conftest.err >&5
32950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951   (exit $ac_status); } &&
32952          { ac_try='test -z "$ac_c_werror_flag"
32953                          || test ! -s conftest.err'
32954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32955   (eval $ac_try) 2>&5
32956   ac_status=$?
32957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958   (exit $ac_status); }; } &&
32959          { ac_try='test -s conftest$ac_exeext'
32960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32961   (eval $ac_try) 2>&5
32962   ac_status=$?
32963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964   (exit $ac_status); }; }; then
32965   ac_cv_lib_util_setproctitle=yes
32966 else
32967   echo "$as_me: failed program was:" >&5
32968 sed 's/^/| /' conftest.$ac_ext >&5
32969
32970 ac_cv_lib_util_setproctitle=no
32971 fi
32972 rm -f conftest.err conftest.$ac_objext \
32973       conftest$ac_exeext conftest.$ac_ext
32974 LIBS=$ac_check_lib_save_LIBS
32975 fi
32976 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
32977 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
32978 if test $ac_cv_lib_util_setproctitle = yes; then
32979   have_setproctitle=yes
32980                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
32981 else
32982   have_setproctitle=no
32983                         case $LIBOBJS in
32984     "setproctitle.$ac_objext"   | \
32985   *" setproctitle.$ac_objext"   | \
32986     "setproctitle.$ac_objext "* | \
32987   *" setproctitle.$ac_objext "* ) ;;
32988   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
32989 esac
32990
32991                         LIBSRCS="$LIBSRCS setproctitle.c"
32992 fi
32993
32994 fi
32995
32996
32997         if test $have_setproctitle = yes ; then
32998
32999 cat >>confdefs.h <<\_ACEOF
33000 #define HAVE_SETPROCTITLE 1
33001 _ACEOF
33002
33003         fi
33004 fi
33005
33006 if test $ol_enable_slp != no ; then
33007
33008 for ac_header in slp.h
33009 do
33010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33012   echo "$as_me:$LINENO: checking for $ac_header" >&5
33013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33015   echo $ECHO_N "(cached) $ECHO_C" >&6
33016 fi
33017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33019 else
33020   # Is the header compilable?
33021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33023 cat >conftest.$ac_ext <<_ACEOF
33024 /* confdefs.h.  */
33025 _ACEOF
33026 cat confdefs.h >>conftest.$ac_ext
33027 cat >>conftest.$ac_ext <<_ACEOF
33028 /* end confdefs.h.  */
33029 $ac_includes_default
33030 #include <$ac_header>
33031 _ACEOF
33032 rm -f conftest.$ac_objext
33033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33034   (eval $ac_compile) 2>conftest.er1
33035   ac_status=$?
33036   grep -v '^ *+' conftest.er1 >conftest.err
33037   rm -f conftest.er1
33038   cat conftest.err >&5
33039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040   (exit $ac_status); } &&
33041          { ac_try='test -z "$ac_c_werror_flag"
33042                          || test ! -s conftest.err'
33043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33044   (eval $ac_try) 2>&5
33045   ac_status=$?
33046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047   (exit $ac_status); }; } &&
33048          { ac_try='test -s conftest.$ac_objext'
33049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33050   (eval $ac_try) 2>&5
33051   ac_status=$?
33052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053   (exit $ac_status); }; }; then
33054   ac_header_compiler=yes
33055 else
33056   echo "$as_me: failed program was:" >&5
33057 sed 's/^/| /' conftest.$ac_ext >&5
33058
33059 ac_header_compiler=no
33060 fi
33061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33063 echo "${ECHO_T}$ac_header_compiler" >&6
33064
33065 # Is the header present?
33066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33068 cat >conftest.$ac_ext <<_ACEOF
33069 /* confdefs.h.  */
33070 _ACEOF
33071 cat confdefs.h >>conftest.$ac_ext
33072 cat >>conftest.$ac_ext <<_ACEOF
33073 /* end confdefs.h.  */
33074 #include <$ac_header>
33075 _ACEOF
33076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33078   ac_status=$?
33079   grep -v '^ *+' conftest.er1 >conftest.err
33080   rm -f conftest.er1
33081   cat conftest.err >&5
33082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083   (exit $ac_status); } >/dev/null; then
33084   if test -s conftest.err; then
33085     ac_cpp_err=$ac_c_preproc_warn_flag
33086     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33087   else
33088     ac_cpp_err=
33089   fi
33090 else
33091   ac_cpp_err=yes
33092 fi
33093 if test -z "$ac_cpp_err"; then
33094   ac_header_preproc=yes
33095 else
33096   echo "$as_me: failed program was:" >&5
33097 sed 's/^/| /' conftest.$ac_ext >&5
33098
33099   ac_header_preproc=no
33100 fi
33101 rm -f conftest.err conftest.$ac_ext
33102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33103 echo "${ECHO_T}$ac_header_preproc" >&6
33104
33105 # So?  What about this header?
33106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33107   yes:no: )
33108     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33112     ac_header_preproc=yes
33113     ;;
33114   no:yes:* )
33115     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33117     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33118 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33119     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33121     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33122 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33125     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33127     (
33128       cat <<\_ASBOX
33129 ## --------------------------------------------- ##
33130 ## Report this to <http://www.openldap.org/its/> ##
33131 ## --------------------------------------------- ##
33132 _ASBOX
33133     ) |
33134       sed "s/^/$as_me: WARNING:     /" >&2
33135     ;;
33136 esac
33137 echo "$as_me:$LINENO: checking for $ac_header" >&5
33138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33140   echo $ECHO_N "(cached) $ECHO_C" >&6
33141 else
33142   eval "$as_ac_Header=\$ac_header_preproc"
33143 fi
33144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33146
33147 fi
33148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33149   cat >>confdefs.h <<_ACEOF
33150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33151 _ACEOF
33152
33153 fi
33154
33155 done
33156
33157
33158         if test $ac_cv_header_slp_h = yes ; then
33159                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33160 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33161 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33162   echo $ECHO_N "(cached) $ECHO_C" >&6
33163 else
33164   ac_check_lib_save_LIBS=$LIBS
33165 LIBS="-lslp  $LIBS"
33166 cat >conftest.$ac_ext <<_ACEOF
33167 /* confdefs.h.  */
33168 _ACEOF
33169 cat confdefs.h >>conftest.$ac_ext
33170 cat >>conftest.$ac_ext <<_ACEOF
33171 /* end confdefs.h.  */
33172
33173 /* Override any gcc2 internal prototype to avoid an error.  */
33174 #ifdef __cplusplus
33175 extern "C"
33176 #endif
33177 /* We use char because int might match the return type of a gcc2
33178    builtin and then its argument prototype would still apply.  */
33179 char SLPOpen ();
33180 int
33181 main ()
33182 {
33183 SLPOpen ();
33184   ;
33185   return 0;
33186 }
33187 _ACEOF
33188 rm -f conftest.$ac_objext conftest$ac_exeext
33189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33190   (eval $ac_link) 2>conftest.er1
33191   ac_status=$?
33192   grep -v '^ *+' conftest.er1 >conftest.err
33193   rm -f conftest.er1
33194   cat conftest.err >&5
33195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33196   (exit $ac_status); } &&
33197          { ac_try='test -z "$ac_c_werror_flag"
33198                          || test ! -s conftest.err'
33199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33200   (eval $ac_try) 2>&5
33201   ac_status=$?
33202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203   (exit $ac_status); }; } &&
33204          { ac_try='test -s conftest$ac_exeext'
33205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33206   (eval $ac_try) 2>&5
33207   ac_status=$?
33208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209   (exit $ac_status); }; }; then
33210   ac_cv_lib_slp_SLPOpen=yes
33211 else
33212   echo "$as_me: failed program was:" >&5
33213 sed 's/^/| /' conftest.$ac_ext >&5
33214
33215 ac_cv_lib_slp_SLPOpen=no
33216 fi
33217 rm -f conftest.err conftest.$ac_objext \
33218       conftest$ac_exeext conftest.$ac_ext
33219 LIBS=$ac_check_lib_save_LIBS
33220 fi
33221 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33222 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33223 if test $ac_cv_lib_slp_SLPOpen = yes; then
33224   have_slp=yes
33225 else
33226   have_slp=no
33227 fi
33228
33229                 if test $have_slp = yes ; then
33230
33231 cat >>confdefs.h <<\_ACEOF
33232 #define HAVE_SLP 1
33233 _ACEOF
33234
33235                         SLAPD_SLP_LIBS=-lslp
33236                 fi
33237
33238         elif test $ol_enable_slp = yes ; then
33239                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33240 echo "$as_me: error: SLP not found" >&2;}
33241    { (exit 1); exit 1; }; }
33242         fi
33243 fi
33244
33245
33246 echo "$as_me:$LINENO: checking for mode_t" >&5
33247 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33248 if test "${ac_cv_type_mode_t+set}" = set; then
33249   echo $ECHO_N "(cached) $ECHO_C" >&6
33250 else
33251   cat >conftest.$ac_ext <<_ACEOF
33252 /* confdefs.h.  */
33253 _ACEOF
33254 cat confdefs.h >>conftest.$ac_ext
33255 cat >>conftest.$ac_ext <<_ACEOF
33256 /* end confdefs.h.  */
33257 $ac_includes_default
33258 int
33259 main ()
33260 {
33261 if ((mode_t *) 0)
33262   return 0;
33263 if (sizeof (mode_t))
33264   return 0;
33265   ;
33266   return 0;
33267 }
33268 _ACEOF
33269 rm -f conftest.$ac_objext
33270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33271   (eval $ac_compile) 2>conftest.er1
33272   ac_status=$?
33273   grep -v '^ *+' conftest.er1 >conftest.err
33274   rm -f conftest.er1
33275   cat conftest.err >&5
33276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33277   (exit $ac_status); } &&
33278          { ac_try='test -z "$ac_c_werror_flag"
33279                          || test ! -s conftest.err'
33280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33281   (eval $ac_try) 2>&5
33282   ac_status=$?
33283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33284   (exit $ac_status); }; } &&
33285          { ac_try='test -s conftest.$ac_objext'
33286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33287   (eval $ac_try) 2>&5
33288   ac_status=$?
33289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290   (exit $ac_status); }; }; then
33291   ac_cv_type_mode_t=yes
33292 else
33293   echo "$as_me: failed program was:" >&5
33294 sed 's/^/| /' conftest.$ac_ext >&5
33295
33296 ac_cv_type_mode_t=no
33297 fi
33298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33299 fi
33300 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33301 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33302 if test $ac_cv_type_mode_t = yes; then
33303   :
33304 else
33305
33306 cat >>confdefs.h <<_ACEOF
33307 #define mode_t int
33308 _ACEOF
33309
33310 fi
33311
33312 echo "$as_me:$LINENO: checking for off_t" >&5
33313 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33314 if test "${ac_cv_type_off_t+set}" = set; then
33315   echo $ECHO_N "(cached) $ECHO_C" >&6
33316 else
33317   cat >conftest.$ac_ext <<_ACEOF
33318 /* confdefs.h.  */
33319 _ACEOF
33320 cat confdefs.h >>conftest.$ac_ext
33321 cat >>conftest.$ac_ext <<_ACEOF
33322 /* end confdefs.h.  */
33323 $ac_includes_default
33324 int
33325 main ()
33326 {
33327 if ((off_t *) 0)
33328   return 0;
33329 if (sizeof (off_t))
33330   return 0;
33331   ;
33332   return 0;
33333 }
33334 _ACEOF
33335 rm -f conftest.$ac_objext
33336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33337   (eval $ac_compile) 2>conftest.er1
33338   ac_status=$?
33339   grep -v '^ *+' conftest.er1 >conftest.err
33340   rm -f conftest.er1
33341   cat conftest.err >&5
33342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343   (exit $ac_status); } &&
33344          { ac_try='test -z "$ac_c_werror_flag"
33345                          || test ! -s conftest.err'
33346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33347   (eval $ac_try) 2>&5
33348   ac_status=$?
33349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350   (exit $ac_status); }; } &&
33351          { ac_try='test -s conftest.$ac_objext'
33352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33353   (eval $ac_try) 2>&5
33354   ac_status=$?
33355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356   (exit $ac_status); }; }; then
33357   ac_cv_type_off_t=yes
33358 else
33359   echo "$as_me: failed program was:" >&5
33360 sed 's/^/| /' conftest.$ac_ext >&5
33361
33362 ac_cv_type_off_t=no
33363 fi
33364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33365 fi
33366 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33367 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33368 if test $ac_cv_type_off_t = yes; then
33369   :
33370 else
33371
33372 cat >>confdefs.h <<_ACEOF
33373 #define off_t long
33374 _ACEOF
33375
33376 fi
33377
33378 echo "$as_me:$LINENO: checking for pid_t" >&5
33379 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33380 if test "${ac_cv_type_pid_t+set}" = set; then
33381   echo $ECHO_N "(cached) $ECHO_C" >&6
33382 else
33383   cat >conftest.$ac_ext <<_ACEOF
33384 /* confdefs.h.  */
33385 _ACEOF
33386 cat confdefs.h >>conftest.$ac_ext
33387 cat >>conftest.$ac_ext <<_ACEOF
33388 /* end confdefs.h.  */
33389 $ac_includes_default
33390 int
33391 main ()
33392 {
33393 if ((pid_t *) 0)
33394   return 0;
33395 if (sizeof (pid_t))
33396   return 0;
33397   ;
33398   return 0;
33399 }
33400 _ACEOF
33401 rm -f conftest.$ac_objext
33402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33403   (eval $ac_compile) 2>conftest.er1
33404   ac_status=$?
33405   grep -v '^ *+' conftest.er1 >conftest.err
33406   rm -f conftest.er1
33407   cat conftest.err >&5
33408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409   (exit $ac_status); } &&
33410          { ac_try='test -z "$ac_c_werror_flag"
33411                          || test ! -s conftest.err'
33412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33413   (eval $ac_try) 2>&5
33414   ac_status=$?
33415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416   (exit $ac_status); }; } &&
33417          { ac_try='test -s conftest.$ac_objext'
33418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33419   (eval $ac_try) 2>&5
33420   ac_status=$?
33421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422   (exit $ac_status); }; }; then
33423   ac_cv_type_pid_t=yes
33424 else
33425   echo "$as_me: failed program was:" >&5
33426 sed 's/^/| /' conftest.$ac_ext >&5
33427
33428 ac_cv_type_pid_t=no
33429 fi
33430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33431 fi
33432 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33433 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33434 if test $ac_cv_type_pid_t = yes; then
33435   :
33436 else
33437
33438 cat >>confdefs.h <<_ACEOF
33439 #define pid_t int
33440 _ACEOF
33441
33442 fi
33443
33444 echo "$as_me:$LINENO: checking for ssize_t" >&5
33445 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33446 if test "${ac_cv_type_ssize_t+set}" = set; then
33447   echo $ECHO_N "(cached) $ECHO_C" >&6
33448 else
33449   cat >conftest.$ac_ext <<_ACEOF
33450 /* confdefs.h.  */
33451 _ACEOF
33452 cat confdefs.h >>conftest.$ac_ext
33453 cat >>conftest.$ac_ext <<_ACEOF
33454 /* end confdefs.h.  */
33455 $ac_includes_default
33456 int
33457 main ()
33458 {
33459 if ((ssize_t *) 0)
33460   return 0;
33461 if (sizeof (ssize_t))
33462   return 0;
33463   ;
33464   return 0;
33465 }
33466 _ACEOF
33467 rm -f conftest.$ac_objext
33468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33469   (eval $ac_compile) 2>conftest.er1
33470   ac_status=$?
33471   grep -v '^ *+' conftest.er1 >conftest.err
33472   rm -f conftest.er1
33473   cat conftest.err >&5
33474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475   (exit $ac_status); } &&
33476          { ac_try='test -z "$ac_c_werror_flag"
33477                          || test ! -s conftest.err'
33478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33479   (eval $ac_try) 2>&5
33480   ac_status=$?
33481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482   (exit $ac_status); }; } &&
33483          { ac_try='test -s conftest.$ac_objext'
33484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33485   (eval $ac_try) 2>&5
33486   ac_status=$?
33487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488   (exit $ac_status); }; }; then
33489   ac_cv_type_ssize_t=yes
33490 else
33491   echo "$as_me: failed program was:" >&5
33492 sed 's/^/| /' conftest.$ac_ext >&5
33493
33494 ac_cv_type_ssize_t=no
33495 fi
33496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33497 fi
33498 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33499 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33500 if test $ac_cv_type_ssize_t = yes; then
33501   :
33502 else
33503
33504 cat >>confdefs.h <<_ACEOF
33505 #define ssize_t signed int
33506 _ACEOF
33507
33508 fi
33509
33510 echo "$as_me:$LINENO: checking for caddr_t" >&5
33511 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
33512 if test "${ac_cv_type_caddr_t+set}" = set; then
33513   echo $ECHO_N "(cached) $ECHO_C" >&6
33514 else
33515   cat >conftest.$ac_ext <<_ACEOF
33516 /* confdefs.h.  */
33517 _ACEOF
33518 cat confdefs.h >>conftest.$ac_ext
33519 cat >>conftest.$ac_ext <<_ACEOF
33520 /* end confdefs.h.  */
33521 $ac_includes_default
33522 int
33523 main ()
33524 {
33525 if ((caddr_t *) 0)
33526   return 0;
33527 if (sizeof (caddr_t))
33528   return 0;
33529   ;
33530   return 0;
33531 }
33532 _ACEOF
33533 rm -f conftest.$ac_objext
33534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33535   (eval $ac_compile) 2>conftest.er1
33536   ac_status=$?
33537   grep -v '^ *+' conftest.er1 >conftest.err
33538   rm -f conftest.er1
33539   cat conftest.err >&5
33540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541   (exit $ac_status); } &&
33542          { ac_try='test -z "$ac_c_werror_flag"
33543                          || test ! -s conftest.err'
33544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33545   (eval $ac_try) 2>&5
33546   ac_status=$?
33547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548   (exit $ac_status); }; } &&
33549          { ac_try='test -s conftest.$ac_objext'
33550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33551   (eval $ac_try) 2>&5
33552   ac_status=$?
33553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554   (exit $ac_status); }; }; then
33555   ac_cv_type_caddr_t=yes
33556 else
33557   echo "$as_me: failed program was:" >&5
33558 sed 's/^/| /' conftest.$ac_ext >&5
33559
33560 ac_cv_type_caddr_t=no
33561 fi
33562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33563 fi
33564 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
33565 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
33566 if test $ac_cv_type_caddr_t = yes; then
33567   :
33568 else
33569
33570 cat >>confdefs.h <<_ACEOF
33571 #define caddr_t char *
33572 _ACEOF
33573
33574 fi
33575
33576 echo "$as_me:$LINENO: checking for size_t" >&5
33577 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33578 if test "${ac_cv_type_size_t+set}" = set; then
33579   echo $ECHO_N "(cached) $ECHO_C" >&6
33580 else
33581   cat >conftest.$ac_ext <<_ACEOF
33582 /* confdefs.h.  */
33583 _ACEOF
33584 cat confdefs.h >>conftest.$ac_ext
33585 cat >>conftest.$ac_ext <<_ACEOF
33586 /* end confdefs.h.  */
33587 $ac_includes_default
33588 int
33589 main ()
33590 {
33591 if ((size_t *) 0)
33592   return 0;
33593 if (sizeof (size_t))
33594   return 0;
33595   ;
33596   return 0;
33597 }
33598 _ACEOF
33599 rm -f conftest.$ac_objext
33600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33601   (eval $ac_compile) 2>conftest.er1
33602   ac_status=$?
33603   grep -v '^ *+' conftest.er1 >conftest.err
33604   rm -f conftest.er1
33605   cat conftest.err >&5
33606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607   (exit $ac_status); } &&
33608          { ac_try='test -z "$ac_c_werror_flag"
33609                          || test ! -s conftest.err'
33610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33611   (eval $ac_try) 2>&5
33612   ac_status=$?
33613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614   (exit $ac_status); }; } &&
33615          { ac_try='test -s conftest.$ac_objext'
33616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33617   (eval $ac_try) 2>&5
33618   ac_status=$?
33619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620   (exit $ac_status); }; }; then
33621   ac_cv_type_size_t=yes
33622 else
33623   echo "$as_me: failed program was:" >&5
33624 sed 's/^/| /' conftest.$ac_ext >&5
33625
33626 ac_cv_type_size_t=no
33627 fi
33628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33629 fi
33630 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33631 echo "${ECHO_T}$ac_cv_type_size_t" >&6
33632 if test $ac_cv_type_size_t = yes; then
33633   :
33634 else
33635
33636 cat >>confdefs.h <<_ACEOF
33637 #define size_t unsigned
33638 _ACEOF
33639
33640 fi
33641
33642
33643 echo "$as_me:$LINENO: checking for long long" >&5
33644 echo $ECHO_N "checking for long long... $ECHO_C" >&6
33645 if test "${ac_cv_type_long_long+set}" = set; then
33646   echo $ECHO_N "(cached) $ECHO_C" >&6
33647 else
33648   cat >conftest.$ac_ext <<_ACEOF
33649 /* confdefs.h.  */
33650 _ACEOF
33651 cat confdefs.h >>conftest.$ac_ext
33652 cat >>conftest.$ac_ext <<_ACEOF
33653 /* end confdefs.h.  */
33654 $ac_includes_default
33655 int
33656 main ()
33657 {
33658 if ((long long *) 0)
33659   return 0;
33660 if (sizeof (long long))
33661   return 0;
33662   ;
33663   return 0;
33664 }
33665 _ACEOF
33666 rm -f conftest.$ac_objext
33667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33668   (eval $ac_compile) 2>conftest.er1
33669   ac_status=$?
33670   grep -v '^ *+' conftest.er1 >conftest.err
33671   rm -f conftest.er1
33672   cat conftest.err >&5
33673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33674   (exit $ac_status); } &&
33675          { ac_try='test -z "$ac_c_werror_flag"
33676                          || test ! -s conftest.err'
33677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33678   (eval $ac_try) 2>&5
33679   ac_status=$?
33680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681   (exit $ac_status); }; } &&
33682          { ac_try='test -s conftest.$ac_objext'
33683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33684   (eval $ac_try) 2>&5
33685   ac_status=$?
33686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687   (exit $ac_status); }; }; then
33688   ac_cv_type_long_long=yes
33689 else
33690   echo "$as_me: failed program was:" >&5
33691 sed 's/^/| /' conftest.$ac_ext >&5
33692
33693 ac_cv_type_long_long=no
33694 fi
33695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33696 fi
33697 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
33698 echo "${ECHO_T}$ac_cv_type_long_long" >&6
33699 if test $ac_cv_type_long_long = yes; then
33700
33701 cat >>confdefs.h <<_ACEOF
33702 #define HAVE_LONG_LONG 1
33703 _ACEOF
33704
33705
33706 fi
33707
33708 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
33709 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
33710 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
33711   echo $ECHO_N "(cached) $ECHO_C" >&6
33712 else
33713   cat >conftest.$ac_ext <<_ACEOF
33714 /* confdefs.h.  */
33715 _ACEOF
33716 cat confdefs.h >>conftest.$ac_ext
33717 cat >>conftest.$ac_ext <<_ACEOF
33718 /* end confdefs.h.  */
33719 $ac_includes_default
33720 int
33721 main ()
33722 {
33723 if ((ptrdiff_t *) 0)
33724   return 0;
33725 if (sizeof (ptrdiff_t))
33726   return 0;
33727   ;
33728   return 0;
33729 }
33730 _ACEOF
33731 rm -f conftest.$ac_objext
33732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33733   (eval $ac_compile) 2>conftest.er1
33734   ac_status=$?
33735   grep -v '^ *+' conftest.er1 >conftest.err
33736   rm -f conftest.er1
33737   cat conftest.err >&5
33738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739   (exit $ac_status); } &&
33740          { ac_try='test -z "$ac_c_werror_flag"
33741                          || test ! -s conftest.err'
33742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33743   (eval $ac_try) 2>&5
33744   ac_status=$?
33745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746   (exit $ac_status); }; } &&
33747          { ac_try='test -s conftest.$ac_objext'
33748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33749   (eval $ac_try) 2>&5
33750   ac_status=$?
33751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752   (exit $ac_status); }; }; then
33753   ac_cv_type_ptrdiff_t=yes
33754 else
33755   echo "$as_me: failed program was:" >&5
33756 sed 's/^/| /' conftest.$ac_ext >&5
33757
33758 ac_cv_type_ptrdiff_t=no
33759 fi
33760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33761 fi
33762 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
33763 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
33764 if test $ac_cv_type_ptrdiff_t = yes; then
33765
33766 cat >>confdefs.h <<_ACEOF
33767 #define HAVE_PTRDIFF_T 1
33768 _ACEOF
33769
33770
33771 fi
33772
33773
33774 echo "$as_me:$LINENO: checking for socklen_t" >&5
33775 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
33776 if test "${ac_cv_type_socklen_t+set}" = set; then
33777   echo $ECHO_N "(cached) $ECHO_C" >&6
33778 else
33779   cat >conftest.$ac_ext <<_ACEOF
33780 /* confdefs.h.  */
33781 _ACEOF
33782 cat confdefs.h >>conftest.$ac_ext
33783 cat >>conftest.$ac_ext <<_ACEOF
33784 /* end confdefs.h.  */
33785 $ac_includes_default
33786 #ifdef HAVE_SYS_SOCKET_H
33787 #include <sys/socket.h>
33788 #endif
33789
33790
33791 int
33792 main ()
33793 {
33794 if ((socklen_t *) 0)
33795   return 0;
33796 if (sizeof (socklen_t))
33797   return 0;
33798   ;
33799   return 0;
33800 }
33801 _ACEOF
33802 rm -f conftest.$ac_objext
33803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33804   (eval $ac_compile) 2>conftest.er1
33805   ac_status=$?
33806   grep -v '^ *+' conftest.er1 >conftest.err
33807   rm -f conftest.er1
33808   cat conftest.err >&5
33809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810   (exit $ac_status); } &&
33811          { ac_try='test -z "$ac_c_werror_flag"
33812                          || test ! -s conftest.err'
33813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33814   (eval $ac_try) 2>&5
33815   ac_status=$?
33816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33817   (exit $ac_status); }; } &&
33818          { ac_try='test -s conftest.$ac_objext'
33819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33820   (eval $ac_try) 2>&5
33821   ac_status=$?
33822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823   (exit $ac_status); }; }; then
33824   ac_cv_type_socklen_t=yes
33825 else
33826   echo "$as_me: failed program was:" >&5
33827 sed 's/^/| /' conftest.$ac_ext >&5
33828
33829 ac_cv_type_socklen_t=no
33830 fi
33831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33832 fi
33833 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
33834 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
33835 if test $ac_cv_type_socklen_t = yes; then
33836   :
33837 else
33838
33839 cat >>confdefs.h <<_ACEOF
33840 #define socklen_t int
33841 _ACEOF
33842
33843 fi
33844
33845
33846 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33847 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
33848 if test "${ac_cv_type_signal+set}" = set; then
33849   echo $ECHO_N "(cached) $ECHO_C" >&6
33850 else
33851   cat >conftest.$ac_ext <<_ACEOF
33852 /* confdefs.h.  */
33853 _ACEOF
33854 cat confdefs.h >>conftest.$ac_ext
33855 cat >>conftest.$ac_ext <<_ACEOF
33856 /* end confdefs.h.  */
33857 #include <sys/types.h>
33858 #include <signal.h>
33859 #ifdef signal
33860 # undef signal
33861 #endif
33862 #ifdef __cplusplus
33863 extern "C" void (*signal (int, void (*)(int)))(int);
33864 #else
33865 void (*signal ()) ();
33866 #endif
33867
33868 int
33869 main ()
33870 {
33871 int i;
33872   ;
33873   return 0;
33874 }
33875 _ACEOF
33876 rm -f conftest.$ac_objext
33877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33878   (eval $ac_compile) 2>conftest.er1
33879   ac_status=$?
33880   grep -v '^ *+' conftest.er1 >conftest.err
33881   rm -f conftest.er1
33882   cat conftest.err >&5
33883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884   (exit $ac_status); } &&
33885          { ac_try='test -z "$ac_c_werror_flag"
33886                          || test ! -s conftest.err'
33887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33888   (eval $ac_try) 2>&5
33889   ac_status=$?
33890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891   (exit $ac_status); }; } &&
33892          { ac_try='test -s conftest.$ac_objext'
33893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33894   (eval $ac_try) 2>&5
33895   ac_status=$?
33896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897   (exit $ac_status); }; }; then
33898   ac_cv_type_signal=void
33899 else
33900   echo "$as_me: failed program was:" >&5
33901 sed 's/^/| /' conftest.$ac_ext >&5
33902
33903 ac_cv_type_signal=int
33904 fi
33905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33906 fi
33907 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33908 echo "${ECHO_T}$ac_cv_type_signal" >&6
33909
33910 cat >>confdefs.h <<_ACEOF
33911 #define RETSIGTYPE $ac_cv_type_signal
33912 _ACEOF
33913
33914
33915
33916 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
33917 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
33918 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
33919   echo $ECHO_N "(cached) $ECHO_C" >&6
33920 else
33921   cat >conftest.$ac_ext <<_ACEOF
33922 /* confdefs.h.  */
33923 _ACEOF
33924 cat confdefs.h >>conftest.$ac_ext
33925 cat >>conftest.$ac_ext <<_ACEOF
33926 /* end confdefs.h.  */
33927 $ac_includes_default
33928 #include <signal.h>
33929
33930
33931 int
33932 main ()
33933 {
33934 if ((sig_atomic_t *) 0)
33935   return 0;
33936 if (sizeof (sig_atomic_t))
33937   return 0;
33938   ;
33939   return 0;
33940 }
33941 _ACEOF
33942 rm -f conftest.$ac_objext
33943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33944   (eval $ac_compile) 2>conftest.er1
33945   ac_status=$?
33946   grep -v '^ *+' conftest.er1 >conftest.err
33947   rm -f conftest.er1
33948   cat conftest.err >&5
33949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33950   (exit $ac_status); } &&
33951          { ac_try='test -z "$ac_c_werror_flag"
33952                          || test ! -s conftest.err'
33953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33954   (eval $ac_try) 2>&5
33955   ac_status=$?
33956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957   (exit $ac_status); }; } &&
33958          { ac_try='test -s conftest.$ac_objext'
33959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33960   (eval $ac_try) 2>&5
33961   ac_status=$?
33962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33963   (exit $ac_status); }; }; then
33964   ac_cv_type_sig_atomic_t=yes
33965 else
33966   echo "$as_me: failed program was:" >&5
33967 sed 's/^/| /' conftest.$ac_ext >&5
33968
33969 ac_cv_type_sig_atomic_t=no
33970 fi
33971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33972 fi
33973 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
33974 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
33975 if test $ac_cv_type_sig_atomic_t = yes; then
33976   :
33977 else
33978
33979 cat >>confdefs.h <<_ACEOF
33980 #define sig_atomic_t int
33981 _ACEOF
33982
33983 fi
33984
33985
33986 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33987 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33988 if test "${ac_cv_type_uid_t+set}" = set; then
33989   echo $ECHO_N "(cached) $ECHO_C" >&6
33990 else
33991   cat >conftest.$ac_ext <<_ACEOF
33992 /* confdefs.h.  */
33993 _ACEOF
33994 cat confdefs.h >>conftest.$ac_ext
33995 cat >>conftest.$ac_ext <<_ACEOF
33996 /* end confdefs.h.  */
33997 #include <sys/types.h>
33998
33999 _ACEOF
34000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34001   $EGREP "uid_t" >/dev/null 2>&1; then
34002   ac_cv_type_uid_t=yes
34003 else
34004   ac_cv_type_uid_t=no
34005 fi
34006 rm -f conftest*
34007
34008 fi
34009 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34010 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34011 if test $ac_cv_type_uid_t = no; then
34012
34013 cat >>confdefs.h <<\_ACEOF
34014 #define uid_t int
34015 _ACEOF
34016
34017
34018 cat >>confdefs.h <<\_ACEOF
34019 #define gid_t int
34020 _ACEOF
34021
34022 fi
34023
34024
34025 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34026 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34027 if test "${ac_cv_header_time+set}" = set; then
34028   echo $ECHO_N "(cached) $ECHO_C" >&6
34029 else
34030   cat >conftest.$ac_ext <<_ACEOF
34031 /* confdefs.h.  */
34032 _ACEOF
34033 cat confdefs.h >>conftest.$ac_ext
34034 cat >>conftest.$ac_ext <<_ACEOF
34035 /* end confdefs.h.  */
34036 #include <sys/types.h>
34037 #include <sys/time.h>
34038 #include <time.h>
34039
34040 int
34041 main ()
34042 {
34043 if ((struct tm *) 0)
34044 return 0;
34045   ;
34046   return 0;
34047 }
34048 _ACEOF
34049 rm -f conftest.$ac_objext
34050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34051   (eval $ac_compile) 2>conftest.er1
34052   ac_status=$?
34053   grep -v '^ *+' conftest.er1 >conftest.err
34054   rm -f conftest.er1
34055   cat conftest.err >&5
34056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057   (exit $ac_status); } &&
34058          { ac_try='test -z "$ac_c_werror_flag"
34059                          || test ! -s conftest.err'
34060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34061   (eval $ac_try) 2>&5
34062   ac_status=$?
34063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34064   (exit $ac_status); }; } &&
34065          { ac_try='test -s conftest.$ac_objext'
34066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34067   (eval $ac_try) 2>&5
34068   ac_status=$?
34069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34070   (exit $ac_status); }; }; then
34071   ac_cv_header_time=yes
34072 else
34073   echo "$as_me: failed program was:" >&5
34074 sed 's/^/| /' conftest.$ac_ext >&5
34075
34076 ac_cv_header_time=no
34077 fi
34078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34079 fi
34080 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34081 echo "${ECHO_T}$ac_cv_header_time" >&6
34082 if test $ac_cv_header_time = yes; then
34083
34084 cat >>confdefs.h <<\_ACEOF
34085 #define TIME_WITH_SYS_TIME 1
34086 _ACEOF
34087
34088 fi
34089
34090 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34091 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34092 if test "${ac_cv_struct_tm+set}" = set; then
34093   echo $ECHO_N "(cached) $ECHO_C" >&6
34094 else
34095   cat >conftest.$ac_ext <<_ACEOF
34096 /* confdefs.h.  */
34097 _ACEOF
34098 cat confdefs.h >>conftest.$ac_ext
34099 cat >>conftest.$ac_ext <<_ACEOF
34100 /* end confdefs.h.  */
34101 #include <sys/types.h>
34102 #include <time.h>
34103
34104 int
34105 main ()
34106 {
34107 struct tm *tp; tp->tm_sec;
34108   ;
34109   return 0;
34110 }
34111 _ACEOF
34112 rm -f conftest.$ac_objext
34113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34114   (eval $ac_compile) 2>conftest.er1
34115   ac_status=$?
34116   grep -v '^ *+' conftest.er1 >conftest.err
34117   rm -f conftest.er1
34118   cat conftest.err >&5
34119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120   (exit $ac_status); } &&
34121          { ac_try='test -z "$ac_c_werror_flag"
34122                          || test ! -s conftest.err'
34123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34124   (eval $ac_try) 2>&5
34125   ac_status=$?
34126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34127   (exit $ac_status); }; } &&
34128          { ac_try='test -s conftest.$ac_objext'
34129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34130   (eval $ac_try) 2>&5
34131   ac_status=$?
34132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34133   (exit $ac_status); }; }; then
34134   ac_cv_struct_tm=time.h
34135 else
34136   echo "$as_me: failed program was:" >&5
34137 sed 's/^/| /' conftest.$ac_ext >&5
34138
34139 ac_cv_struct_tm=sys/time.h
34140 fi
34141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34142 fi
34143 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34144 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34145 if test $ac_cv_struct_tm = sys/time.h; then
34146
34147 cat >>confdefs.h <<\_ACEOF
34148 #define TM_IN_SYS_TIME 1
34149 _ACEOF
34150
34151 fi
34152
34153 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34154 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34155 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34156   echo $ECHO_N "(cached) $ECHO_C" >&6
34157 else
34158   cat >conftest.$ac_ext <<_ACEOF
34159 /* confdefs.h.  */
34160 _ACEOF
34161 cat confdefs.h >>conftest.$ac_ext
34162 cat >>conftest.$ac_ext <<_ACEOF
34163 /* end confdefs.h.  */
34164 $ac_includes_default
34165 int
34166 main ()
34167 {
34168 static struct stat ac_aggr;
34169 if (ac_aggr.st_blksize)
34170 return 0;
34171   ;
34172   return 0;
34173 }
34174 _ACEOF
34175 rm -f conftest.$ac_objext
34176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34177   (eval $ac_compile) 2>conftest.er1
34178   ac_status=$?
34179   grep -v '^ *+' conftest.er1 >conftest.err
34180   rm -f conftest.er1
34181   cat conftest.err >&5
34182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34183   (exit $ac_status); } &&
34184          { ac_try='test -z "$ac_c_werror_flag"
34185                          || test ! -s conftest.err'
34186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34187   (eval $ac_try) 2>&5
34188   ac_status=$?
34189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190   (exit $ac_status); }; } &&
34191          { ac_try='test -s conftest.$ac_objext'
34192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34193   (eval $ac_try) 2>&5
34194   ac_status=$?
34195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196   (exit $ac_status); }; }; then
34197   ac_cv_member_struct_stat_st_blksize=yes
34198 else
34199   echo "$as_me: failed program was:" >&5
34200 sed 's/^/| /' conftest.$ac_ext >&5
34201
34202 cat >conftest.$ac_ext <<_ACEOF
34203 /* confdefs.h.  */
34204 _ACEOF
34205 cat confdefs.h >>conftest.$ac_ext
34206 cat >>conftest.$ac_ext <<_ACEOF
34207 /* end confdefs.h.  */
34208 $ac_includes_default
34209 int
34210 main ()
34211 {
34212 static struct stat ac_aggr;
34213 if (sizeof ac_aggr.st_blksize)
34214 return 0;
34215   ;
34216   return 0;
34217 }
34218 _ACEOF
34219 rm -f conftest.$ac_objext
34220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34221   (eval $ac_compile) 2>conftest.er1
34222   ac_status=$?
34223   grep -v '^ *+' conftest.er1 >conftest.err
34224   rm -f conftest.er1
34225   cat conftest.err >&5
34226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34227   (exit $ac_status); } &&
34228          { ac_try='test -z "$ac_c_werror_flag"
34229                          || test ! -s conftest.err'
34230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34231   (eval $ac_try) 2>&5
34232   ac_status=$?
34233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34234   (exit $ac_status); }; } &&
34235          { ac_try='test -s conftest.$ac_objext'
34236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34237   (eval $ac_try) 2>&5
34238   ac_status=$?
34239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240   (exit $ac_status); }; }; then
34241   ac_cv_member_struct_stat_st_blksize=yes
34242 else
34243   echo "$as_me: failed program was:" >&5
34244 sed 's/^/| /' conftest.$ac_ext >&5
34245
34246 ac_cv_member_struct_stat_st_blksize=no
34247 fi
34248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34249 fi
34250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34251 fi
34252 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34253 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34254 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34255
34256 cat >>confdefs.h <<_ACEOF
34257 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34258 _ACEOF
34259
34260
34261 fi
34262
34263 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34264 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34265 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34266   echo $ECHO_N "(cached) $ECHO_C" >&6
34267 else
34268   cat >conftest.$ac_ext <<_ACEOF
34269 /* confdefs.h.  */
34270 _ACEOF
34271 cat confdefs.h >>conftest.$ac_ext
34272 cat >>conftest.$ac_ext <<_ACEOF
34273 /* end confdefs.h.  */
34274 $ac_includes_default
34275 #include <pwd.h>
34276
34277 int
34278 main ()
34279 {
34280 static struct passwd ac_aggr;
34281 if (ac_aggr.pw_gecos)
34282 return 0;
34283   ;
34284   return 0;
34285 }
34286 _ACEOF
34287 rm -f conftest.$ac_objext
34288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34289   (eval $ac_compile) 2>conftest.er1
34290   ac_status=$?
34291   grep -v '^ *+' conftest.er1 >conftest.err
34292   rm -f conftest.er1
34293   cat conftest.err >&5
34294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34295   (exit $ac_status); } &&
34296          { ac_try='test -z "$ac_c_werror_flag"
34297                          || test ! -s conftest.err'
34298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34299   (eval $ac_try) 2>&5
34300   ac_status=$?
34301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302   (exit $ac_status); }; } &&
34303          { ac_try='test -s conftest.$ac_objext'
34304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34305   (eval $ac_try) 2>&5
34306   ac_status=$?
34307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308   (exit $ac_status); }; }; then
34309   ac_cv_member_struct_passwd_pw_gecos=yes
34310 else
34311   echo "$as_me: failed program was:" >&5
34312 sed 's/^/| /' conftest.$ac_ext >&5
34313
34314 cat >conftest.$ac_ext <<_ACEOF
34315 /* confdefs.h.  */
34316 _ACEOF
34317 cat confdefs.h >>conftest.$ac_ext
34318 cat >>conftest.$ac_ext <<_ACEOF
34319 /* end confdefs.h.  */
34320 $ac_includes_default
34321 #include <pwd.h>
34322
34323 int
34324 main ()
34325 {
34326 static struct passwd ac_aggr;
34327 if (sizeof ac_aggr.pw_gecos)
34328 return 0;
34329   ;
34330   return 0;
34331 }
34332 _ACEOF
34333 rm -f conftest.$ac_objext
34334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34335   (eval $ac_compile) 2>conftest.er1
34336   ac_status=$?
34337   grep -v '^ *+' conftest.er1 >conftest.err
34338   rm -f conftest.er1
34339   cat conftest.err >&5
34340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341   (exit $ac_status); } &&
34342          { ac_try='test -z "$ac_c_werror_flag"
34343                          || test ! -s conftest.err'
34344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34345   (eval $ac_try) 2>&5
34346   ac_status=$?
34347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348   (exit $ac_status); }; } &&
34349          { ac_try='test -s conftest.$ac_objext'
34350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34351   (eval $ac_try) 2>&5
34352   ac_status=$?
34353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354   (exit $ac_status); }; }; then
34355   ac_cv_member_struct_passwd_pw_gecos=yes
34356 else
34357   echo "$as_me: failed program was:" >&5
34358 sed 's/^/| /' conftest.$ac_ext >&5
34359
34360 ac_cv_member_struct_passwd_pw_gecos=no
34361 fi
34362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34363 fi
34364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34365 fi
34366 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34367 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34368 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34369
34370 cat >>confdefs.h <<_ACEOF
34371 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34372 _ACEOF
34373
34374
34375 fi
34376
34377 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34378 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34379 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34380   echo $ECHO_N "(cached) $ECHO_C" >&6
34381 else
34382   cat >conftest.$ac_ext <<_ACEOF
34383 /* confdefs.h.  */
34384 _ACEOF
34385 cat confdefs.h >>conftest.$ac_ext
34386 cat >>conftest.$ac_ext <<_ACEOF
34387 /* end confdefs.h.  */
34388 $ac_includes_default
34389 #include <pwd.h>
34390
34391 int
34392 main ()
34393 {
34394 static struct passwd ac_aggr;
34395 if (ac_aggr.pw_passwd)
34396 return 0;
34397   ;
34398   return 0;
34399 }
34400 _ACEOF
34401 rm -f conftest.$ac_objext
34402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34403   (eval $ac_compile) 2>conftest.er1
34404   ac_status=$?
34405   grep -v '^ *+' conftest.er1 >conftest.err
34406   rm -f conftest.er1
34407   cat conftest.err >&5
34408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409   (exit $ac_status); } &&
34410          { ac_try='test -z "$ac_c_werror_flag"
34411                          || test ! -s conftest.err'
34412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34413   (eval $ac_try) 2>&5
34414   ac_status=$?
34415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34416   (exit $ac_status); }; } &&
34417          { ac_try='test -s conftest.$ac_objext'
34418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34419   (eval $ac_try) 2>&5
34420   ac_status=$?
34421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34422   (exit $ac_status); }; }; then
34423   ac_cv_member_struct_passwd_pw_passwd=yes
34424 else
34425   echo "$as_me: failed program was:" >&5
34426 sed 's/^/| /' conftest.$ac_ext >&5
34427
34428 cat >conftest.$ac_ext <<_ACEOF
34429 /* confdefs.h.  */
34430 _ACEOF
34431 cat confdefs.h >>conftest.$ac_ext
34432 cat >>conftest.$ac_ext <<_ACEOF
34433 /* end confdefs.h.  */
34434 $ac_includes_default
34435 #include <pwd.h>
34436
34437 int
34438 main ()
34439 {
34440 static struct passwd ac_aggr;
34441 if (sizeof ac_aggr.pw_passwd)
34442 return 0;
34443   ;
34444   return 0;
34445 }
34446 _ACEOF
34447 rm -f conftest.$ac_objext
34448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34449   (eval $ac_compile) 2>conftest.er1
34450   ac_status=$?
34451   grep -v '^ *+' conftest.er1 >conftest.err
34452   rm -f conftest.er1
34453   cat conftest.err >&5
34454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455   (exit $ac_status); } &&
34456          { ac_try='test -z "$ac_c_werror_flag"
34457                          || test ! -s conftest.err'
34458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34459   (eval $ac_try) 2>&5
34460   ac_status=$?
34461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462   (exit $ac_status); }; } &&
34463          { ac_try='test -s conftest.$ac_objext'
34464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34465   (eval $ac_try) 2>&5
34466   ac_status=$?
34467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468   (exit $ac_status); }; }; then
34469   ac_cv_member_struct_passwd_pw_passwd=yes
34470 else
34471   echo "$as_me: failed program was:" >&5
34472 sed 's/^/| /' conftest.$ac_ext >&5
34473
34474 ac_cv_member_struct_passwd_pw_passwd=no
34475 fi
34476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34477 fi
34478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34479 fi
34480 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
34481 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
34482 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
34483
34484 cat >>confdefs.h <<_ACEOF
34485 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
34486 _ACEOF
34487
34488
34489 fi
34490
34491
34492 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
34493 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
34494 if test "${ol_cv_c_upper_lower+set}" = set; then
34495   echo $ECHO_N "(cached) $ECHO_C" >&6
34496 else
34497
34498         if test "$cross_compiling" = yes; then
34499   ol_cv_c_upper_lower=safe
34500 else
34501   cat >conftest.$ac_ext <<_ACEOF
34502 /* confdefs.h.  */
34503 _ACEOF
34504 cat confdefs.h >>conftest.$ac_ext
34505 cat >>conftest.$ac_ext <<_ACEOF
34506 /* end confdefs.h.  */
34507
34508 #include <ctype.h>
34509 main()
34510 {
34511         if ('C' == toupper('C'))
34512                 exit(0);
34513         else
34514                 exit(1);
34515 }
34516 _ACEOF
34517 rm -f conftest$ac_exeext
34518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34519   (eval $ac_link) 2>&5
34520   ac_status=$?
34521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   ol_cv_c_upper_lower=no
34529 else
34530   echo "$as_me: program exited with status $ac_status" >&5
34531 echo "$as_me: failed program was:" >&5
34532 sed 's/^/| /' conftest.$ac_ext >&5
34533
34534 ( exit $ac_status )
34535 ol_cv_c_upper_lower=yes
34536 fi
34537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34538 fi
34539 fi
34540 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
34541 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
34542 if test $ol_cv_c_upper_lower != no ; then
34543
34544 cat >>confdefs.h <<\_ACEOF
34545 #define C_UPPER_LOWER 1
34546 _ACEOF
34547
34548 fi
34549
34550 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34551 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
34552 if test "${ac_cv_c_const+set}" = set; then
34553   echo $ECHO_N "(cached) $ECHO_C" >&6
34554 else
34555   cat >conftest.$ac_ext <<_ACEOF
34556 /* confdefs.h.  */
34557 _ACEOF
34558 cat confdefs.h >>conftest.$ac_ext
34559 cat >>conftest.$ac_ext <<_ACEOF
34560 /* end confdefs.h.  */
34561
34562 int
34563 main ()
34564 {
34565 /* FIXME: Include the comments suggested by Paul. */
34566 #ifndef __cplusplus
34567   /* Ultrix mips cc rejects this.  */
34568   typedef int charset[2];
34569   const charset x;
34570   /* SunOS 4.1.1 cc rejects this.  */
34571   char const *const *ccp;
34572   char **p;
34573   /* NEC SVR4.0.2 mips cc rejects this.  */
34574   struct point {int x, y;};
34575   static struct point const zero = {0,0};
34576   /* AIX XL C 1.02.0.0 rejects this.
34577      It does not let you subtract one const X* pointer from another in
34578      an arm of an if-expression whose if-part is not a constant
34579      expression */
34580   const char *g = "string";
34581   ccp = &g + (g ? g-g : 0);
34582   /* HPUX 7.0 cc rejects these. */
34583   ++ccp;
34584   p = (char**) ccp;
34585   ccp = (char const *const *) p;
34586   { /* SCO 3.2v4 cc rejects this.  */
34587     char *t;
34588     char const *s = 0 ? (char *) 0 : (char const *) 0;
34589
34590     *t++ = 0;
34591   }
34592   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34593     int x[] = {25, 17};
34594     const int *foo = &x[0];
34595     ++foo;
34596   }
34597   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34598     typedef const int *iptr;
34599     iptr p = 0;
34600     ++p;
34601   }
34602   { /* AIX XL C 1.02.0.0 rejects this saying
34603        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34604     struct s { int j; const int *ap[3]; };
34605     struct s *b; b->j = 5;
34606   }
34607   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34608     const int foo = 10;
34609   }
34610 #endif
34611
34612   ;
34613   return 0;
34614 }
34615 _ACEOF
34616 rm -f conftest.$ac_objext
34617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34618   (eval $ac_compile) 2>conftest.er1
34619   ac_status=$?
34620   grep -v '^ *+' conftest.er1 >conftest.err
34621   rm -f conftest.er1
34622   cat conftest.err >&5
34623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34624   (exit $ac_status); } &&
34625          { ac_try='test -z "$ac_c_werror_flag"
34626                          || test ! -s conftest.err'
34627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34628   (eval $ac_try) 2>&5
34629   ac_status=$?
34630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631   (exit $ac_status); }; } &&
34632          { ac_try='test -s conftest.$ac_objext'
34633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34634   (eval $ac_try) 2>&5
34635   ac_status=$?
34636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34637   (exit $ac_status); }; }; then
34638   ac_cv_c_const=yes
34639 else
34640   echo "$as_me: failed program was:" >&5
34641 sed 's/^/| /' conftest.$ac_ext >&5
34642
34643 ac_cv_c_const=no
34644 fi
34645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34646 fi
34647 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34648 echo "${ECHO_T}$ac_cv_c_const" >&6
34649 if test $ac_cv_c_const = no; then
34650
34651 cat >>confdefs.h <<\_ACEOF
34652 #define const
34653 _ACEOF
34654
34655 fi
34656
34657 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
34658 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
34659 if test "${ol_cv_c_volatile+set}" = set; then
34660   echo $ECHO_N "(cached) $ECHO_C" >&6
34661 else
34662   cat >conftest.$ac_ext <<_ACEOF
34663 /* confdefs.h.  */
34664 _ACEOF
34665 cat confdefs.h >>conftest.$ac_ext
34666 cat >>conftest.$ac_ext <<_ACEOF
34667 /* end confdefs.h.  */
34668 int x, y, z;
34669 int
34670 main ()
34671 {
34672 volatile int a; int * volatile b = x ? &y : &z;
34673       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
34674       *b = 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   ol_cv_c_volatile=yes
34702 else
34703   echo "$as_me: failed program was:" >&5
34704 sed 's/^/| /' conftest.$ac_ext >&5
34705
34706 ol_cv_c_volatile=no
34707 fi
34708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34709 fi
34710 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
34711 echo "${ECHO_T}$ol_cv_c_volatile" >&6
34712   if test $ol_cv_c_volatile = yes; then
34713     :
34714   else
34715
34716 cat >>confdefs.h <<\_ACEOF
34717 #define volatile
34718 _ACEOF
34719
34720   fi
34721
34722
34723 if test $cross_compiling = yes ; then
34724         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
34725 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
34726
34727 cat >>confdefs.h <<\_ACEOF
34728 #define CROSS_COMPILING 1
34729 _ACEOF
34730
34731 else
34732         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
34733 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
34734 if test "${ac_cv_c_bigendian+set}" = set; then
34735   echo $ECHO_N "(cached) $ECHO_C" >&6
34736 else
34737   # See if sys/param.h defines the BYTE_ORDER macro.
34738 cat >conftest.$ac_ext <<_ACEOF
34739 /* confdefs.h.  */
34740 _ACEOF
34741 cat confdefs.h >>conftest.$ac_ext
34742 cat >>conftest.$ac_ext <<_ACEOF
34743 /* end confdefs.h.  */
34744 #include <sys/types.h>
34745 #include <sys/param.h>
34746
34747 int
34748 main ()
34749 {
34750 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
34751  bogus endian macros
34752 #endif
34753
34754   ;
34755   return 0;
34756 }
34757 _ACEOF
34758 rm -f conftest.$ac_objext
34759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34760   (eval $ac_compile) 2>conftest.er1
34761   ac_status=$?
34762   grep -v '^ *+' conftest.er1 >conftest.err
34763   rm -f conftest.er1
34764   cat conftest.err >&5
34765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766   (exit $ac_status); } &&
34767          { ac_try='test -z "$ac_c_werror_flag"
34768                          || test ! -s conftest.err'
34769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34770   (eval $ac_try) 2>&5
34771   ac_status=$?
34772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773   (exit $ac_status); }; } &&
34774          { ac_try='test -s conftest.$ac_objext'
34775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776   (eval $ac_try) 2>&5
34777   ac_status=$?
34778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779   (exit $ac_status); }; }; then
34780   # It does; now see whether it defined to BIG_ENDIAN or not.
34781 cat >conftest.$ac_ext <<_ACEOF
34782 /* confdefs.h.  */
34783 _ACEOF
34784 cat confdefs.h >>conftest.$ac_ext
34785 cat >>conftest.$ac_ext <<_ACEOF
34786 /* end confdefs.h.  */
34787 #include <sys/types.h>
34788 #include <sys/param.h>
34789
34790 int
34791 main ()
34792 {
34793 #if BYTE_ORDER != BIG_ENDIAN
34794  not big endian
34795 #endif
34796
34797   ;
34798   return 0;
34799 }
34800 _ACEOF
34801 rm -f conftest.$ac_objext
34802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34803   (eval $ac_compile) 2>conftest.er1
34804   ac_status=$?
34805   grep -v '^ *+' conftest.er1 >conftest.err
34806   rm -f conftest.er1
34807   cat conftest.err >&5
34808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34809   (exit $ac_status); } &&
34810          { ac_try='test -z "$ac_c_werror_flag"
34811                          || test ! -s conftest.err'
34812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34813   (eval $ac_try) 2>&5
34814   ac_status=$?
34815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816   (exit $ac_status); }; } &&
34817          { ac_try='test -s conftest.$ac_objext'
34818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34819   (eval $ac_try) 2>&5
34820   ac_status=$?
34821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34822   (exit $ac_status); }; }; then
34823   ac_cv_c_bigendian=yes
34824 else
34825   echo "$as_me: failed program was:" >&5
34826 sed 's/^/| /' conftest.$ac_ext >&5
34827
34828 ac_cv_c_bigendian=no
34829 fi
34830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34831 else
34832   echo "$as_me: failed program was:" >&5
34833 sed 's/^/| /' conftest.$ac_ext >&5
34834
34835 # It does not; compile a test program.
34836 if test "$cross_compiling" = yes; then
34837   # try to guess the endianness by grepping values into an object file
34838   ac_cv_c_bigendian=unknown
34839   cat >conftest.$ac_ext <<_ACEOF
34840 /* confdefs.h.  */
34841 _ACEOF
34842 cat confdefs.h >>conftest.$ac_ext
34843 cat >>conftest.$ac_ext <<_ACEOF
34844 /* end confdefs.h.  */
34845 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
34846 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
34847 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
34848 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
34849 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
34850 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
34851 int
34852 main ()
34853 {
34854  _ascii (); _ebcdic ();
34855   ;
34856   return 0;
34857 }
34858 _ACEOF
34859 rm -f conftest.$ac_objext
34860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34861   (eval $ac_compile) 2>conftest.er1
34862   ac_status=$?
34863   grep -v '^ *+' conftest.er1 >conftest.err
34864   rm -f conftest.er1
34865   cat conftest.err >&5
34866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34867   (exit $ac_status); } &&
34868          { ac_try='test -z "$ac_c_werror_flag"
34869                          || test ! -s conftest.err'
34870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34871   (eval $ac_try) 2>&5
34872   ac_status=$?
34873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34874   (exit $ac_status); }; } &&
34875          { ac_try='test -s conftest.$ac_objext'
34876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34877   (eval $ac_try) 2>&5
34878   ac_status=$?
34879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34880   (exit $ac_status); }; }; then
34881   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
34882   ac_cv_c_bigendian=yes
34883 fi
34884 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
34885   if test "$ac_cv_c_bigendian" = unknown; then
34886     ac_cv_c_bigendian=no
34887   else
34888     # finding both strings is unlikely to happen, but who knows?
34889     ac_cv_c_bigendian=unknown
34890   fi
34891 fi
34892 else
34893   echo "$as_me: failed program was:" >&5
34894 sed 's/^/| /' conftest.$ac_ext >&5
34895
34896 fi
34897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34898 else
34899   cat >conftest.$ac_ext <<_ACEOF
34900 /* confdefs.h.  */
34901 _ACEOF
34902 cat confdefs.h >>conftest.$ac_ext
34903 cat >>conftest.$ac_ext <<_ACEOF
34904 /* end confdefs.h.  */
34905 int
34906 main ()
34907 {
34908   /* Are we little or big endian?  From Harbison&Steele.  */
34909   union
34910   {
34911     long l;
34912     char c[sizeof (long)];
34913   } u;
34914   u.l = 1;
34915   exit (u.c[sizeof (long) - 1] == 1);
34916 }
34917 _ACEOF
34918 rm -f conftest$ac_exeext
34919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34920   (eval $ac_link) 2>&5
34921   ac_status=$?
34922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34925   (eval $ac_try) 2>&5
34926   ac_status=$?
34927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928   (exit $ac_status); }; }; then
34929   ac_cv_c_bigendian=no
34930 else
34931   echo "$as_me: program exited with status $ac_status" >&5
34932 echo "$as_me: failed program was:" >&5
34933 sed 's/^/| /' conftest.$ac_ext >&5
34934
34935 ( exit $ac_status )
34936 ac_cv_c_bigendian=yes
34937 fi
34938 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34939 fi
34940 fi
34941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34942 fi
34943 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
34944 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
34945 case $ac_cv_c_bigendian in
34946   yes)
34947
34948 cat >>confdefs.h <<\_ACEOF
34949 #define WORDS_BIGENDIAN 1
34950 _ACEOF
34951  ;;
34952   no)
34953      ;;
34954   *)
34955     { { echo "$as_me:$LINENO: error: unknown endianness
34956 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
34957 echo "$as_me: error: unknown endianness
34958 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
34959    { (exit 1); exit 1; }; } ;;
34960 esac
34961
34962 fi
34963
34964 echo "$as_me:$LINENO: checking for short" >&5
34965 echo $ECHO_N "checking for short... $ECHO_C" >&6
34966 if test "${ac_cv_type_short+set}" = set; then
34967   echo $ECHO_N "(cached) $ECHO_C" >&6
34968 else
34969   cat >conftest.$ac_ext <<_ACEOF
34970 /* confdefs.h.  */
34971 _ACEOF
34972 cat confdefs.h >>conftest.$ac_ext
34973 cat >>conftest.$ac_ext <<_ACEOF
34974 /* end confdefs.h.  */
34975 $ac_includes_default
34976 int
34977 main ()
34978 {
34979 if ((short *) 0)
34980   return 0;
34981 if (sizeof (short))
34982   return 0;
34983   ;
34984   return 0;
34985 }
34986 _ACEOF
34987 rm -f conftest.$ac_objext
34988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34989   (eval $ac_compile) 2>conftest.er1
34990   ac_status=$?
34991   grep -v '^ *+' conftest.er1 >conftest.err
34992   rm -f conftest.er1
34993   cat conftest.err >&5
34994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34995   (exit $ac_status); } &&
34996          { ac_try='test -z "$ac_c_werror_flag"
34997                          || test ! -s conftest.err'
34998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34999   (eval $ac_try) 2>&5
35000   ac_status=$?
35001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002   (exit $ac_status); }; } &&
35003          { ac_try='test -s conftest.$ac_objext'
35004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35005   (eval $ac_try) 2>&5
35006   ac_status=$?
35007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35008   (exit $ac_status); }; }; then
35009   ac_cv_type_short=yes
35010 else
35011   echo "$as_me: failed program was:" >&5
35012 sed 's/^/| /' conftest.$ac_ext >&5
35013
35014 ac_cv_type_short=no
35015 fi
35016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35017 fi
35018 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35019 echo "${ECHO_T}$ac_cv_type_short" >&6
35020
35021 echo "$as_me:$LINENO: checking size of short" >&5
35022 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35023 if test "${ac_cv_sizeof_short+set}" = set; then
35024   echo $ECHO_N "(cached) $ECHO_C" >&6
35025 else
35026   if test "$ac_cv_type_short" = yes; then
35027   # The cast to unsigned long works around a bug in the HP C Compiler
35028   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35029   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35030   # This bug is HP SR number 8606223364.
35031   if test "$cross_compiling" = yes; then
35032   # Depending upon the size, compute the lo and hi bounds.
35033 cat >conftest.$ac_ext <<_ACEOF
35034 /* confdefs.h.  */
35035 _ACEOF
35036 cat confdefs.h >>conftest.$ac_ext
35037 cat >>conftest.$ac_ext <<_ACEOF
35038 /* end confdefs.h.  */
35039 $ac_includes_default
35040 int
35041 main ()
35042 {
35043 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35044 test_array [0] = 0
35045
35046   ;
35047   return 0;
35048 }
35049 _ACEOF
35050 rm -f conftest.$ac_objext
35051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35052   (eval $ac_compile) 2>conftest.er1
35053   ac_status=$?
35054   grep -v '^ *+' conftest.er1 >conftest.err
35055   rm -f conftest.er1
35056   cat conftest.err >&5
35057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35058   (exit $ac_status); } &&
35059          { ac_try='test -z "$ac_c_werror_flag"
35060                          || test ! -s conftest.err'
35061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35062   (eval $ac_try) 2>&5
35063   ac_status=$?
35064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35065   (exit $ac_status); }; } &&
35066          { ac_try='test -s conftest.$ac_objext'
35067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35068   (eval $ac_try) 2>&5
35069   ac_status=$?
35070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35071   (exit $ac_status); }; }; then
35072   ac_lo=0 ac_mid=0
35073   while :; do
35074     cat >conftest.$ac_ext <<_ACEOF
35075 /* confdefs.h.  */
35076 _ACEOF
35077 cat confdefs.h >>conftest.$ac_ext
35078 cat >>conftest.$ac_ext <<_ACEOF
35079 /* end confdefs.h.  */
35080 $ac_includes_default
35081 int
35082 main ()
35083 {
35084 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35085 test_array [0] = 0
35086
35087   ;
35088   return 0;
35089 }
35090 _ACEOF
35091 rm -f conftest.$ac_objext
35092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35093   (eval $ac_compile) 2>conftest.er1
35094   ac_status=$?
35095   grep -v '^ *+' conftest.er1 >conftest.err
35096   rm -f conftest.er1
35097   cat conftest.err >&5
35098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099   (exit $ac_status); } &&
35100          { ac_try='test -z "$ac_c_werror_flag"
35101                          || test ! -s conftest.err'
35102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35103   (eval $ac_try) 2>&5
35104   ac_status=$?
35105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35106   (exit $ac_status); }; } &&
35107          { ac_try='test -s conftest.$ac_objext'
35108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35109   (eval $ac_try) 2>&5
35110   ac_status=$?
35111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35112   (exit $ac_status); }; }; then
35113   ac_hi=$ac_mid; break
35114 else
35115   echo "$as_me: failed program was:" >&5
35116 sed 's/^/| /' conftest.$ac_ext >&5
35117
35118 ac_lo=`expr $ac_mid + 1`
35119                     if test $ac_lo -le $ac_mid; then
35120                       ac_lo= ac_hi=
35121                       break
35122                     fi
35123                     ac_mid=`expr 2 '*' $ac_mid + 1`
35124 fi
35125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35126   done
35127 else
35128   echo "$as_me: failed program was:" >&5
35129 sed 's/^/| /' conftest.$ac_ext >&5
35130
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 $ac_includes_default
35138 int
35139 main ()
35140 {
35141 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35142 test_array [0] = 0
35143
35144   ;
35145   return 0;
35146 }
35147 _ACEOF
35148 rm -f conftest.$ac_objext
35149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35150   (eval $ac_compile) 2>conftest.er1
35151   ac_status=$?
35152   grep -v '^ *+' conftest.er1 >conftest.err
35153   rm -f conftest.er1
35154   cat conftest.err >&5
35155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35156   (exit $ac_status); } &&
35157          { ac_try='test -z "$ac_c_werror_flag"
35158                          || test ! -s conftest.err'
35159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35160   (eval $ac_try) 2>&5
35161   ac_status=$?
35162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35163   (exit $ac_status); }; } &&
35164          { ac_try='test -s conftest.$ac_objext'
35165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35166   (eval $ac_try) 2>&5
35167   ac_status=$?
35168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35169   (exit $ac_status); }; }; then
35170   ac_hi=-1 ac_mid=-1
35171   while :; do
35172     cat >conftest.$ac_ext <<_ACEOF
35173 /* confdefs.h.  */
35174 _ACEOF
35175 cat confdefs.h >>conftest.$ac_ext
35176 cat >>conftest.$ac_ext <<_ACEOF
35177 /* end confdefs.h.  */
35178 $ac_includes_default
35179 int
35180 main ()
35181 {
35182 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35183 test_array [0] = 0
35184
35185   ;
35186   return 0;
35187 }
35188 _ACEOF
35189 rm -f conftest.$ac_objext
35190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35191   (eval $ac_compile) 2>conftest.er1
35192   ac_status=$?
35193   grep -v '^ *+' conftest.er1 >conftest.err
35194   rm -f conftest.er1
35195   cat conftest.err >&5
35196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197   (exit $ac_status); } &&
35198          { ac_try='test -z "$ac_c_werror_flag"
35199                          || test ! -s conftest.err'
35200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35201   (eval $ac_try) 2>&5
35202   ac_status=$?
35203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35204   (exit $ac_status); }; } &&
35205          { ac_try='test -s conftest.$ac_objext'
35206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35207   (eval $ac_try) 2>&5
35208   ac_status=$?
35209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35210   (exit $ac_status); }; }; then
35211   ac_lo=$ac_mid; break
35212 else
35213   echo "$as_me: failed program was:" >&5
35214 sed 's/^/| /' conftest.$ac_ext >&5
35215
35216 ac_hi=`expr '(' $ac_mid ')' - 1`
35217                        if test $ac_mid -le $ac_hi; then
35218                          ac_lo= ac_hi=
35219                          break
35220                        fi
35221                        ac_mid=`expr 2 '*' $ac_mid`
35222 fi
35223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35224   done
35225 else
35226   echo "$as_me: failed program was:" >&5
35227 sed 's/^/| /' conftest.$ac_ext >&5
35228
35229 ac_lo= ac_hi=
35230 fi
35231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35232 fi
35233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35234 # Binary search between lo and hi bounds.
35235 while test "x$ac_lo" != "x$ac_hi"; do
35236   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35237   cat >conftest.$ac_ext <<_ACEOF
35238 /* confdefs.h.  */
35239 _ACEOF
35240 cat confdefs.h >>conftest.$ac_ext
35241 cat >>conftest.$ac_ext <<_ACEOF
35242 /* end confdefs.h.  */
35243 $ac_includes_default
35244 int
35245 main ()
35246 {
35247 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35248 test_array [0] = 0
35249
35250   ;
35251   return 0;
35252 }
35253 _ACEOF
35254 rm -f conftest.$ac_objext
35255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35256   (eval $ac_compile) 2>conftest.er1
35257   ac_status=$?
35258   grep -v '^ *+' conftest.er1 >conftest.err
35259   rm -f conftest.er1
35260   cat conftest.err >&5
35261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262   (exit $ac_status); } &&
35263          { ac_try='test -z "$ac_c_werror_flag"
35264                          || test ! -s conftest.err'
35265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35266   (eval $ac_try) 2>&5
35267   ac_status=$?
35268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35269   (exit $ac_status); }; } &&
35270          { ac_try='test -s conftest.$ac_objext'
35271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35272   (eval $ac_try) 2>&5
35273   ac_status=$?
35274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275   (exit $ac_status); }; }; then
35276   ac_hi=$ac_mid
35277 else
35278   echo "$as_me: failed program was:" >&5
35279 sed 's/^/| /' conftest.$ac_ext >&5
35280
35281 ac_lo=`expr '(' $ac_mid ')' + 1`
35282 fi
35283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35284 done
35285 case $ac_lo in
35286 ?*) ac_cv_sizeof_short=$ac_lo;;
35287 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35288 See \`config.log' for more details." >&5
35289 echo "$as_me: error: cannot compute sizeof (short), 77
35290 See \`config.log' for more details." >&2;}
35291    { (exit 1); exit 1; }; } ;;
35292 esac
35293 else
35294   if test "$cross_compiling" = yes; then
35295   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35296 See \`config.log' for more details." >&5
35297 echo "$as_me: error: cannot run test program while cross compiling
35298 See \`config.log' for more details." >&2;}
35299    { (exit 1); exit 1; }; }
35300 else
35301   cat >conftest.$ac_ext <<_ACEOF
35302 /* confdefs.h.  */
35303 _ACEOF
35304 cat confdefs.h >>conftest.$ac_ext
35305 cat >>conftest.$ac_ext <<_ACEOF
35306 /* end confdefs.h.  */
35307 $ac_includes_default
35308 long longval () { return (long) (sizeof (short)); }
35309 unsigned long ulongval () { return (long) (sizeof (short)); }
35310 #include <stdio.h>
35311 #include <stdlib.h>
35312 int
35313 main ()
35314 {
35315
35316   FILE *f = fopen ("conftest.val", "w");
35317   if (! f)
35318     exit (1);
35319   if (((long) (sizeof (short))) < 0)
35320     {
35321       long i = longval ();
35322       if (i != ((long) (sizeof (short))))
35323         exit (1);
35324       fprintf (f, "%ld\n", i);
35325     }
35326   else
35327     {
35328       unsigned long i = ulongval ();
35329       if (i != ((long) (sizeof (short))))
35330         exit (1);
35331       fprintf (f, "%lu\n", i);
35332     }
35333   exit (ferror (f) || fclose (f) != 0);
35334
35335   ;
35336   return 0;
35337 }
35338 _ACEOF
35339 rm -f conftest$ac_exeext
35340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35341   (eval $ac_link) 2>&5
35342   ac_status=$?
35343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35346   (eval $ac_try) 2>&5
35347   ac_status=$?
35348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349   (exit $ac_status); }; }; then
35350   ac_cv_sizeof_short=`cat conftest.val`
35351 else
35352   echo "$as_me: program exited with status $ac_status" >&5
35353 echo "$as_me: failed program was:" >&5
35354 sed 's/^/| /' conftest.$ac_ext >&5
35355
35356 ( exit $ac_status )
35357 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35358 See \`config.log' for more details." >&5
35359 echo "$as_me: error: cannot compute sizeof (short), 77
35360 See \`config.log' for more details." >&2;}
35361    { (exit 1); exit 1; }; }
35362 fi
35363 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35364 fi
35365 fi
35366 rm -f conftest.val
35367 else
35368   ac_cv_sizeof_short=0
35369 fi
35370 fi
35371 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35372 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35373 cat >>confdefs.h <<_ACEOF
35374 #define SIZEOF_SHORT $ac_cv_sizeof_short
35375 _ACEOF
35376
35377
35378 echo "$as_me:$LINENO: checking for int" >&5
35379 echo $ECHO_N "checking for int... $ECHO_C" >&6
35380 if test "${ac_cv_type_int+set}" = set; then
35381   echo $ECHO_N "(cached) $ECHO_C" >&6
35382 else
35383   cat >conftest.$ac_ext <<_ACEOF
35384 /* confdefs.h.  */
35385 _ACEOF
35386 cat confdefs.h >>conftest.$ac_ext
35387 cat >>conftest.$ac_ext <<_ACEOF
35388 /* end confdefs.h.  */
35389 $ac_includes_default
35390 int
35391 main ()
35392 {
35393 if ((int *) 0)
35394   return 0;
35395 if (sizeof (int))
35396   return 0;
35397   ;
35398   return 0;
35399 }
35400 _ACEOF
35401 rm -f conftest.$ac_objext
35402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35403   (eval $ac_compile) 2>conftest.er1
35404   ac_status=$?
35405   grep -v '^ *+' conftest.er1 >conftest.err
35406   rm -f conftest.er1
35407   cat conftest.err >&5
35408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35409   (exit $ac_status); } &&
35410          { ac_try='test -z "$ac_c_werror_flag"
35411                          || test ! -s conftest.err'
35412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35413   (eval $ac_try) 2>&5
35414   ac_status=$?
35415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416   (exit $ac_status); }; } &&
35417          { ac_try='test -s conftest.$ac_objext'
35418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35419   (eval $ac_try) 2>&5
35420   ac_status=$?
35421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35422   (exit $ac_status); }; }; then
35423   ac_cv_type_int=yes
35424 else
35425   echo "$as_me: failed program was:" >&5
35426 sed 's/^/| /' conftest.$ac_ext >&5
35427
35428 ac_cv_type_int=no
35429 fi
35430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35431 fi
35432 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35433 echo "${ECHO_T}$ac_cv_type_int" >&6
35434
35435 echo "$as_me:$LINENO: checking size of int" >&5
35436 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35437 if test "${ac_cv_sizeof_int+set}" = set; then
35438   echo $ECHO_N "(cached) $ECHO_C" >&6
35439 else
35440   if test "$ac_cv_type_int" = yes; then
35441   # The cast to unsigned long works around a bug in the HP C Compiler
35442   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35443   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35444   # This bug is HP SR number 8606223364.
35445   if test "$cross_compiling" = yes; then
35446   # Depending upon the size, compute the lo and hi bounds.
35447 cat >conftest.$ac_ext <<_ACEOF
35448 /* confdefs.h.  */
35449 _ACEOF
35450 cat confdefs.h >>conftest.$ac_ext
35451 cat >>conftest.$ac_ext <<_ACEOF
35452 /* end confdefs.h.  */
35453 $ac_includes_default
35454 int
35455 main ()
35456 {
35457 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
35458 test_array [0] = 0
35459
35460   ;
35461   return 0;
35462 }
35463 _ACEOF
35464 rm -f conftest.$ac_objext
35465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35466   (eval $ac_compile) 2>conftest.er1
35467   ac_status=$?
35468   grep -v '^ *+' conftest.er1 >conftest.err
35469   rm -f conftest.er1
35470   cat conftest.err >&5
35471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35472   (exit $ac_status); } &&
35473          { ac_try='test -z "$ac_c_werror_flag"
35474                          || test ! -s conftest.err'
35475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35476   (eval $ac_try) 2>&5
35477   ac_status=$?
35478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35479   (exit $ac_status); }; } &&
35480          { ac_try='test -s conftest.$ac_objext'
35481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35482   (eval $ac_try) 2>&5
35483   ac_status=$?
35484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485   (exit $ac_status); }; }; then
35486   ac_lo=0 ac_mid=0
35487   while :; do
35488     cat >conftest.$ac_ext <<_ACEOF
35489 /* confdefs.h.  */
35490 _ACEOF
35491 cat confdefs.h >>conftest.$ac_ext
35492 cat >>conftest.$ac_ext <<_ACEOF
35493 /* end confdefs.h.  */
35494 $ac_includes_default
35495 int
35496 main ()
35497 {
35498 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35499 test_array [0] = 0
35500
35501   ;
35502   return 0;
35503 }
35504 _ACEOF
35505 rm -f conftest.$ac_objext
35506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35507   (eval $ac_compile) 2>conftest.er1
35508   ac_status=$?
35509   grep -v '^ *+' conftest.er1 >conftest.err
35510   rm -f conftest.er1
35511   cat conftest.err >&5
35512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35513   (exit $ac_status); } &&
35514          { ac_try='test -z "$ac_c_werror_flag"
35515                          || test ! -s conftest.err'
35516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35517   (eval $ac_try) 2>&5
35518   ac_status=$?
35519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520   (exit $ac_status); }; } &&
35521          { ac_try='test -s conftest.$ac_objext'
35522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35523   (eval $ac_try) 2>&5
35524   ac_status=$?
35525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526   (exit $ac_status); }; }; then
35527   ac_hi=$ac_mid; break
35528 else
35529   echo "$as_me: failed program was:" >&5
35530 sed 's/^/| /' conftest.$ac_ext >&5
35531
35532 ac_lo=`expr $ac_mid + 1`
35533                     if test $ac_lo -le $ac_mid; then
35534                       ac_lo= ac_hi=
35535                       break
35536                     fi
35537                     ac_mid=`expr 2 '*' $ac_mid + 1`
35538 fi
35539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35540   done
35541 else
35542   echo "$as_me: failed program was:" >&5
35543 sed 's/^/| /' conftest.$ac_ext >&5
35544
35545 cat >conftest.$ac_ext <<_ACEOF
35546 /* confdefs.h.  */
35547 _ACEOF
35548 cat confdefs.h >>conftest.$ac_ext
35549 cat >>conftest.$ac_ext <<_ACEOF
35550 /* end confdefs.h.  */
35551 $ac_includes_default
35552 int
35553 main ()
35554 {
35555 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
35556 test_array [0] = 0
35557
35558   ;
35559   return 0;
35560 }
35561 _ACEOF
35562 rm -f conftest.$ac_objext
35563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35564   (eval $ac_compile) 2>conftest.er1
35565   ac_status=$?
35566   grep -v '^ *+' conftest.er1 >conftest.err
35567   rm -f conftest.er1
35568   cat conftest.err >&5
35569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570   (exit $ac_status); } &&
35571          { ac_try='test -z "$ac_c_werror_flag"
35572                          || test ! -s conftest.err'
35573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35574   (eval $ac_try) 2>&5
35575   ac_status=$?
35576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35577   (exit $ac_status); }; } &&
35578          { ac_try='test -s conftest.$ac_objext'
35579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35580   (eval $ac_try) 2>&5
35581   ac_status=$?
35582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35583   (exit $ac_status); }; }; then
35584   ac_hi=-1 ac_mid=-1
35585   while :; do
35586     cat >conftest.$ac_ext <<_ACEOF
35587 /* confdefs.h.  */
35588 _ACEOF
35589 cat confdefs.h >>conftest.$ac_ext
35590 cat >>conftest.$ac_ext <<_ACEOF
35591 /* end confdefs.h.  */
35592 $ac_includes_default
35593 int
35594 main ()
35595 {
35596 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
35597 test_array [0] = 0
35598
35599   ;
35600   return 0;
35601 }
35602 _ACEOF
35603 rm -f conftest.$ac_objext
35604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35605   (eval $ac_compile) 2>conftest.er1
35606   ac_status=$?
35607   grep -v '^ *+' conftest.er1 >conftest.err
35608   rm -f conftest.er1
35609   cat conftest.err >&5
35610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611   (exit $ac_status); } &&
35612          { ac_try='test -z "$ac_c_werror_flag"
35613                          || test ! -s conftest.err'
35614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35615   (eval $ac_try) 2>&5
35616   ac_status=$?
35617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618   (exit $ac_status); }; } &&
35619          { ac_try='test -s conftest.$ac_objext'
35620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35621   (eval $ac_try) 2>&5
35622   ac_status=$?
35623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624   (exit $ac_status); }; }; then
35625   ac_lo=$ac_mid; break
35626 else
35627   echo "$as_me: failed program was:" >&5
35628 sed 's/^/| /' conftest.$ac_ext >&5
35629
35630 ac_hi=`expr '(' $ac_mid ')' - 1`
35631                        if test $ac_mid -le $ac_hi; then
35632                          ac_lo= ac_hi=
35633                          break
35634                        fi
35635                        ac_mid=`expr 2 '*' $ac_mid`
35636 fi
35637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35638   done
35639 else
35640   echo "$as_me: failed program was:" >&5
35641 sed 's/^/| /' conftest.$ac_ext >&5
35642
35643 ac_lo= ac_hi=
35644 fi
35645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35646 fi
35647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35648 # Binary search between lo and hi bounds.
35649 while test "x$ac_lo" != "x$ac_hi"; do
35650   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35651   cat >conftest.$ac_ext <<_ACEOF
35652 /* confdefs.h.  */
35653 _ACEOF
35654 cat confdefs.h >>conftest.$ac_ext
35655 cat >>conftest.$ac_ext <<_ACEOF
35656 /* end confdefs.h.  */
35657 $ac_includes_default
35658 int
35659 main ()
35660 {
35661 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35662 test_array [0] = 0
35663
35664   ;
35665   return 0;
35666 }
35667 _ACEOF
35668 rm -f conftest.$ac_objext
35669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35670   (eval $ac_compile) 2>conftest.er1
35671   ac_status=$?
35672   grep -v '^ *+' conftest.er1 >conftest.err
35673   rm -f conftest.er1
35674   cat conftest.err >&5
35675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35676   (exit $ac_status); } &&
35677          { ac_try='test -z "$ac_c_werror_flag"
35678                          || test ! -s conftest.err'
35679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35680   (eval $ac_try) 2>&5
35681   ac_status=$?
35682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35683   (exit $ac_status); }; } &&
35684          { ac_try='test -s conftest.$ac_objext'
35685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35686   (eval $ac_try) 2>&5
35687   ac_status=$?
35688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35689   (exit $ac_status); }; }; then
35690   ac_hi=$ac_mid
35691 else
35692   echo "$as_me: failed program was:" >&5
35693 sed 's/^/| /' conftest.$ac_ext >&5
35694
35695 ac_lo=`expr '(' $ac_mid ')' + 1`
35696 fi
35697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35698 done
35699 case $ac_lo in
35700 ?*) ac_cv_sizeof_int=$ac_lo;;
35701 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
35702 See \`config.log' for more details." >&5
35703 echo "$as_me: error: cannot compute sizeof (int), 77
35704 See \`config.log' for more details." >&2;}
35705    { (exit 1); exit 1; }; } ;;
35706 esac
35707 else
35708   if test "$cross_compiling" = yes; then
35709   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35710 See \`config.log' for more details." >&5
35711 echo "$as_me: error: cannot run test program while cross compiling
35712 See \`config.log' for more details." >&2;}
35713    { (exit 1); exit 1; }; }
35714 else
35715   cat >conftest.$ac_ext <<_ACEOF
35716 /* confdefs.h.  */
35717 _ACEOF
35718 cat confdefs.h >>conftest.$ac_ext
35719 cat >>conftest.$ac_ext <<_ACEOF
35720 /* end confdefs.h.  */
35721 $ac_includes_default
35722 long longval () { return (long) (sizeof (int)); }
35723 unsigned long ulongval () { return (long) (sizeof (int)); }
35724 #include <stdio.h>
35725 #include <stdlib.h>
35726 int
35727 main ()
35728 {
35729
35730   FILE *f = fopen ("conftest.val", "w");
35731   if (! f)
35732     exit (1);
35733   if (((long) (sizeof (int))) < 0)
35734     {
35735       long i = longval ();
35736       if (i != ((long) (sizeof (int))))
35737         exit (1);
35738       fprintf (f, "%ld\n", i);
35739     }
35740   else
35741     {
35742       unsigned long i = ulongval ();
35743       if (i != ((long) (sizeof (int))))
35744         exit (1);
35745       fprintf (f, "%lu\n", i);
35746     }
35747   exit (ferror (f) || fclose (f) != 0);
35748
35749   ;
35750   return 0;
35751 }
35752 _ACEOF
35753 rm -f conftest$ac_exeext
35754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35755   (eval $ac_link) 2>&5
35756   ac_status=$?
35757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35760   (eval $ac_try) 2>&5
35761   ac_status=$?
35762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763   (exit $ac_status); }; }; then
35764   ac_cv_sizeof_int=`cat conftest.val`
35765 else
35766   echo "$as_me: program exited with status $ac_status" >&5
35767 echo "$as_me: failed program was:" >&5
35768 sed 's/^/| /' conftest.$ac_ext >&5
35769
35770 ( exit $ac_status )
35771 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
35772 See \`config.log' for more details." >&5
35773 echo "$as_me: error: cannot compute sizeof (int), 77
35774 See \`config.log' for more details." >&2;}
35775    { (exit 1); exit 1; }; }
35776 fi
35777 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35778 fi
35779 fi
35780 rm -f conftest.val
35781 else
35782   ac_cv_sizeof_int=0
35783 fi
35784 fi
35785 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35786 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
35787 cat >>confdefs.h <<_ACEOF
35788 #define SIZEOF_INT $ac_cv_sizeof_int
35789 _ACEOF
35790
35791
35792 echo "$as_me:$LINENO: checking for long" >&5
35793 echo $ECHO_N "checking for long... $ECHO_C" >&6
35794 if test "${ac_cv_type_long+set}" = set; then
35795   echo $ECHO_N "(cached) $ECHO_C" >&6
35796 else
35797   cat >conftest.$ac_ext <<_ACEOF
35798 /* confdefs.h.  */
35799 _ACEOF
35800 cat confdefs.h >>conftest.$ac_ext
35801 cat >>conftest.$ac_ext <<_ACEOF
35802 /* end confdefs.h.  */
35803 $ac_includes_default
35804 int
35805 main ()
35806 {
35807 if ((long *) 0)
35808   return 0;
35809 if (sizeof (long))
35810   return 0;
35811   ;
35812   return 0;
35813 }
35814 _ACEOF
35815 rm -f conftest.$ac_objext
35816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35817   (eval $ac_compile) 2>conftest.er1
35818   ac_status=$?
35819   grep -v '^ *+' conftest.er1 >conftest.err
35820   rm -f conftest.er1
35821   cat conftest.err >&5
35822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35823   (exit $ac_status); } &&
35824          { ac_try='test -z "$ac_c_werror_flag"
35825                          || test ! -s conftest.err'
35826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35827   (eval $ac_try) 2>&5
35828   ac_status=$?
35829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830   (exit $ac_status); }; } &&
35831          { ac_try='test -s conftest.$ac_objext'
35832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35833   (eval $ac_try) 2>&5
35834   ac_status=$?
35835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35836   (exit $ac_status); }; }; then
35837   ac_cv_type_long=yes
35838 else
35839   echo "$as_me: failed program was:" >&5
35840 sed 's/^/| /' conftest.$ac_ext >&5
35841
35842 ac_cv_type_long=no
35843 fi
35844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35845 fi
35846 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
35847 echo "${ECHO_T}$ac_cv_type_long" >&6
35848
35849 echo "$as_me:$LINENO: checking size of long" >&5
35850 echo $ECHO_N "checking size of long... $ECHO_C" >&6
35851 if test "${ac_cv_sizeof_long+set}" = set; then
35852   echo $ECHO_N "(cached) $ECHO_C" >&6
35853 else
35854   if test "$ac_cv_type_long" = yes; then
35855   # The cast to unsigned long works around a bug in the HP C Compiler
35856   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35857   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35858   # This bug is HP SR number 8606223364.
35859   if test "$cross_compiling" = yes; then
35860   # Depending upon the size, compute the lo and hi bounds.
35861 cat >conftest.$ac_ext <<_ACEOF
35862 /* confdefs.h.  */
35863 _ACEOF
35864 cat confdefs.h >>conftest.$ac_ext
35865 cat >>conftest.$ac_ext <<_ACEOF
35866 /* end confdefs.h.  */
35867 $ac_includes_default
35868 int
35869 main ()
35870 {
35871 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
35872 test_array [0] = 0
35873
35874   ;
35875   return 0;
35876 }
35877 _ACEOF
35878 rm -f conftest.$ac_objext
35879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35880   (eval $ac_compile) 2>conftest.er1
35881   ac_status=$?
35882   grep -v '^ *+' conftest.er1 >conftest.err
35883   rm -f conftest.er1
35884   cat conftest.err >&5
35885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886   (exit $ac_status); } &&
35887          { ac_try='test -z "$ac_c_werror_flag"
35888                          || test ! -s conftest.err'
35889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35890   (eval $ac_try) 2>&5
35891   ac_status=$?
35892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893   (exit $ac_status); }; } &&
35894          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
35900   ac_lo=0 ac_mid=0
35901   while :; do
35902     cat >conftest.$ac_ext <<_ACEOF
35903 /* confdefs.h.  */
35904 _ACEOF
35905 cat confdefs.h >>conftest.$ac_ext
35906 cat >>conftest.$ac_ext <<_ACEOF
35907 /* end confdefs.h.  */
35908 $ac_includes_default
35909 int
35910 main ()
35911 {
35912 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
35913 test_array [0] = 0
35914
35915   ;
35916   return 0;
35917 }
35918 _ACEOF
35919 rm -f conftest.$ac_objext
35920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35921   (eval $ac_compile) 2>conftest.er1
35922   ac_status=$?
35923   grep -v '^ *+' conftest.er1 >conftest.err
35924   rm -f conftest.er1
35925   cat conftest.err >&5
35926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35927   (exit $ac_status); } &&
35928          { ac_try='test -z "$ac_c_werror_flag"
35929                          || test ! -s conftest.err'
35930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35931   (eval $ac_try) 2>&5
35932   ac_status=$?
35933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35934   (exit $ac_status); }; } &&
35935          { ac_try='test -s conftest.$ac_objext'
35936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35937   (eval $ac_try) 2>&5
35938   ac_status=$?
35939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35940   (exit $ac_status); }; }; then
35941   ac_hi=$ac_mid; break
35942 else
35943   echo "$as_me: failed program was:" >&5
35944 sed 's/^/| /' conftest.$ac_ext >&5
35945
35946 ac_lo=`expr $ac_mid + 1`
35947                     if test $ac_lo -le $ac_mid; then
35948                       ac_lo= ac_hi=
35949                       break
35950                     fi
35951                     ac_mid=`expr 2 '*' $ac_mid + 1`
35952 fi
35953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35954   done
35955 else
35956   echo "$as_me: failed program was:" >&5
35957 sed 's/^/| /' conftest.$ac_ext >&5
35958
35959 cat >conftest.$ac_ext <<_ACEOF
35960 /* confdefs.h.  */
35961 _ACEOF
35962 cat confdefs.h >>conftest.$ac_ext
35963 cat >>conftest.$ac_ext <<_ACEOF
35964 /* end confdefs.h.  */
35965 $ac_includes_default
35966 int
35967 main ()
35968 {
35969 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
35970 test_array [0] = 0
35971
35972   ;
35973   return 0;
35974 }
35975 _ACEOF
35976 rm -f conftest.$ac_objext
35977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35978   (eval $ac_compile) 2>conftest.er1
35979   ac_status=$?
35980   grep -v '^ *+' conftest.er1 >conftest.err
35981   rm -f conftest.er1
35982   cat conftest.err >&5
35983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984   (exit $ac_status); } &&
35985          { ac_try='test -z "$ac_c_werror_flag"
35986                          || test ! -s conftest.err'
35987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35988   (eval $ac_try) 2>&5
35989   ac_status=$?
35990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35991   (exit $ac_status); }; } &&
35992          { ac_try='test -s conftest.$ac_objext'
35993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35994   (eval $ac_try) 2>&5
35995   ac_status=$?
35996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35997   (exit $ac_status); }; }; then
35998   ac_hi=-1 ac_mid=-1
35999   while :; do
36000     cat >conftest.$ac_ext <<_ACEOF
36001 /* confdefs.h.  */
36002 _ACEOF
36003 cat confdefs.h >>conftest.$ac_ext
36004 cat >>conftest.$ac_ext <<_ACEOF
36005 /* end confdefs.h.  */
36006 $ac_includes_default
36007 int
36008 main ()
36009 {
36010 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36011 test_array [0] = 0
36012
36013   ;
36014   return 0;
36015 }
36016 _ACEOF
36017 rm -f conftest.$ac_objext
36018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36019   (eval $ac_compile) 2>conftest.er1
36020   ac_status=$?
36021   grep -v '^ *+' conftest.er1 >conftest.err
36022   rm -f conftest.er1
36023   cat conftest.err >&5
36024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36025   (exit $ac_status); } &&
36026          { ac_try='test -z "$ac_c_werror_flag"
36027                          || test ! -s conftest.err'
36028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36029   (eval $ac_try) 2>&5
36030   ac_status=$?
36031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36032   (exit $ac_status); }; } &&
36033          { ac_try='test -s conftest.$ac_objext'
36034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36035   (eval $ac_try) 2>&5
36036   ac_status=$?
36037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36038   (exit $ac_status); }; }; then
36039   ac_lo=$ac_mid; break
36040 else
36041   echo "$as_me: failed program was:" >&5
36042 sed 's/^/| /' conftest.$ac_ext >&5
36043
36044 ac_hi=`expr '(' $ac_mid ')' - 1`
36045                        if test $ac_mid -le $ac_hi; then
36046                          ac_lo= ac_hi=
36047                          break
36048                        fi
36049                        ac_mid=`expr 2 '*' $ac_mid`
36050 fi
36051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36052   done
36053 else
36054   echo "$as_me: failed program was:" >&5
36055 sed 's/^/| /' conftest.$ac_ext >&5
36056
36057 ac_lo= ac_hi=
36058 fi
36059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36060 fi
36061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36062 # Binary search between lo and hi bounds.
36063 while test "x$ac_lo" != "x$ac_hi"; do
36064   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36065   cat >conftest.$ac_ext <<_ACEOF
36066 /* confdefs.h.  */
36067 _ACEOF
36068 cat confdefs.h >>conftest.$ac_ext
36069 cat >>conftest.$ac_ext <<_ACEOF
36070 /* end confdefs.h.  */
36071 $ac_includes_default
36072 int
36073 main ()
36074 {
36075 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36076 test_array [0] = 0
36077
36078   ;
36079   return 0;
36080 }
36081 _ACEOF
36082 rm -f conftest.$ac_objext
36083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36084   (eval $ac_compile) 2>conftest.er1
36085   ac_status=$?
36086   grep -v '^ *+' conftest.er1 >conftest.err
36087   rm -f conftest.er1
36088   cat conftest.err >&5
36089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36090   (exit $ac_status); } &&
36091          { ac_try='test -z "$ac_c_werror_flag"
36092                          || test ! -s conftest.err'
36093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36094   (eval $ac_try) 2>&5
36095   ac_status=$?
36096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36097   (exit $ac_status); }; } &&
36098          { ac_try='test -s conftest.$ac_objext'
36099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36100   (eval $ac_try) 2>&5
36101   ac_status=$?
36102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36103   (exit $ac_status); }; }; then
36104   ac_hi=$ac_mid
36105 else
36106   echo "$as_me: failed program was:" >&5
36107 sed 's/^/| /' conftest.$ac_ext >&5
36108
36109 ac_lo=`expr '(' $ac_mid ')' + 1`
36110 fi
36111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36112 done
36113 case $ac_lo in
36114 ?*) ac_cv_sizeof_long=$ac_lo;;
36115 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36116 See \`config.log' for more details." >&5
36117 echo "$as_me: error: cannot compute sizeof (long), 77
36118 See \`config.log' for more details." >&2;}
36119    { (exit 1); exit 1; }; } ;;
36120 esac
36121 else
36122   if test "$cross_compiling" = yes; then
36123   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36124 See \`config.log' for more details." >&5
36125 echo "$as_me: error: cannot run test program while cross compiling
36126 See \`config.log' for more details." >&2;}
36127    { (exit 1); exit 1; }; }
36128 else
36129   cat >conftest.$ac_ext <<_ACEOF
36130 /* confdefs.h.  */
36131 _ACEOF
36132 cat confdefs.h >>conftest.$ac_ext
36133 cat >>conftest.$ac_ext <<_ACEOF
36134 /* end confdefs.h.  */
36135 $ac_includes_default
36136 long longval () { return (long) (sizeof (long)); }
36137 unsigned long ulongval () { return (long) (sizeof (long)); }
36138 #include <stdio.h>
36139 #include <stdlib.h>
36140 int
36141 main ()
36142 {
36143
36144   FILE *f = fopen ("conftest.val", "w");
36145   if (! f)
36146     exit (1);
36147   if (((long) (sizeof (long))) < 0)
36148     {
36149       long i = longval ();
36150       if (i != ((long) (sizeof (long))))
36151         exit (1);
36152       fprintf (f, "%ld\n", i);
36153     }
36154   else
36155     {
36156       unsigned long i = ulongval ();
36157       if (i != ((long) (sizeof (long))))
36158         exit (1);
36159       fprintf (f, "%lu\n", i);
36160     }
36161   exit (ferror (f) || fclose (f) != 0);
36162
36163   ;
36164   return 0;
36165 }
36166 _ACEOF
36167 rm -f conftest$ac_exeext
36168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36169   (eval $ac_link) 2>&5
36170   ac_status=$?
36171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36174   (eval $ac_try) 2>&5
36175   ac_status=$?
36176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36177   (exit $ac_status); }; }; then
36178   ac_cv_sizeof_long=`cat conftest.val`
36179 else
36180   echo "$as_me: program exited with status $ac_status" >&5
36181 echo "$as_me: failed program was:" >&5
36182 sed 's/^/| /' conftest.$ac_ext >&5
36183
36184 ( exit $ac_status )
36185 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36186 See \`config.log' for more details." >&5
36187 echo "$as_me: error: cannot compute sizeof (long), 77
36188 See \`config.log' for more details." >&2;}
36189    { (exit 1); exit 1; }; }
36190 fi
36191 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36192 fi
36193 fi
36194 rm -f conftest.val
36195 else
36196   ac_cv_sizeof_long=0
36197 fi
36198 fi
36199 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36200 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36201 cat >>confdefs.h <<_ACEOF
36202 #define SIZEOF_LONG $ac_cv_sizeof_long
36203 _ACEOF
36204
36205
36206 echo "$as_me:$LINENO: checking for long long" >&5
36207 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36208 if test "${ac_cv_type_long_long+set}" = set; then
36209   echo $ECHO_N "(cached) $ECHO_C" >&6
36210 else
36211   cat >conftest.$ac_ext <<_ACEOF
36212 /* confdefs.h.  */
36213 _ACEOF
36214 cat confdefs.h >>conftest.$ac_ext
36215 cat >>conftest.$ac_ext <<_ACEOF
36216 /* end confdefs.h.  */
36217 $ac_includes_default
36218 int
36219 main ()
36220 {
36221 if ((long long *) 0)
36222   return 0;
36223 if (sizeof (long long))
36224   return 0;
36225   ;
36226   return 0;
36227 }
36228 _ACEOF
36229 rm -f conftest.$ac_objext
36230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36231   (eval $ac_compile) 2>conftest.er1
36232   ac_status=$?
36233   grep -v '^ *+' conftest.er1 >conftest.err
36234   rm -f conftest.er1
36235   cat conftest.err >&5
36236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237   (exit $ac_status); } &&
36238          { ac_try='test -z "$ac_c_werror_flag"
36239                          || test ! -s conftest.err'
36240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36241   (eval $ac_try) 2>&5
36242   ac_status=$?
36243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36244   (exit $ac_status); }; } &&
36245          { ac_try='test -s conftest.$ac_objext'
36246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36247   (eval $ac_try) 2>&5
36248   ac_status=$?
36249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250   (exit $ac_status); }; }; then
36251   ac_cv_type_long_long=yes
36252 else
36253   echo "$as_me: failed program was:" >&5
36254 sed 's/^/| /' conftest.$ac_ext >&5
36255
36256 ac_cv_type_long_long=no
36257 fi
36258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36259 fi
36260 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36261 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36262
36263 echo "$as_me:$LINENO: checking size of long long" >&5
36264 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36265 if test "${ac_cv_sizeof_long_long+set}" = set; then
36266   echo $ECHO_N "(cached) $ECHO_C" >&6
36267 else
36268   if test "$ac_cv_type_long_long" = yes; then
36269   # The cast to unsigned long works around a bug in the HP C Compiler
36270   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36271   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36272   # This bug is HP SR number 8606223364.
36273   if test "$cross_compiling" = yes; then
36274   # Depending upon the size, compute the lo and hi bounds.
36275 cat >conftest.$ac_ext <<_ACEOF
36276 /* confdefs.h.  */
36277 _ACEOF
36278 cat confdefs.h >>conftest.$ac_ext
36279 cat >>conftest.$ac_ext <<_ACEOF
36280 /* end confdefs.h.  */
36281 $ac_includes_default
36282 int
36283 main ()
36284 {
36285 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36286 test_array [0] = 0
36287
36288   ;
36289   return 0;
36290 }
36291 _ACEOF
36292 rm -f conftest.$ac_objext
36293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36294   (eval $ac_compile) 2>conftest.er1
36295   ac_status=$?
36296   grep -v '^ *+' conftest.er1 >conftest.err
36297   rm -f conftest.er1
36298   cat conftest.err >&5
36299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300   (exit $ac_status); } &&
36301          { ac_try='test -z "$ac_c_werror_flag"
36302                          || test ! -s conftest.err'
36303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36304   (eval $ac_try) 2>&5
36305   ac_status=$?
36306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307   (exit $ac_status); }; } &&
36308          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
36314   ac_lo=0 ac_mid=0
36315   while :; do
36316     cat >conftest.$ac_ext <<_ACEOF
36317 /* confdefs.h.  */
36318 _ACEOF
36319 cat confdefs.h >>conftest.$ac_ext
36320 cat >>conftest.$ac_ext <<_ACEOF
36321 /* end confdefs.h.  */
36322 $ac_includes_default
36323 int
36324 main ()
36325 {
36326 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36327 test_array [0] = 0
36328
36329   ;
36330   return 0;
36331 }
36332 _ACEOF
36333 rm -f conftest.$ac_objext
36334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36335   (eval $ac_compile) 2>conftest.er1
36336   ac_status=$?
36337   grep -v '^ *+' conftest.er1 >conftest.err
36338   rm -f conftest.er1
36339   cat conftest.err >&5
36340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36341   (exit $ac_status); } &&
36342          { ac_try='test -z "$ac_c_werror_flag"
36343                          || test ! -s conftest.err'
36344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36345   (eval $ac_try) 2>&5
36346   ac_status=$?
36347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36348   (exit $ac_status); }; } &&
36349          { ac_try='test -s conftest.$ac_objext'
36350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36351   (eval $ac_try) 2>&5
36352   ac_status=$?
36353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354   (exit $ac_status); }; }; then
36355   ac_hi=$ac_mid; break
36356 else
36357   echo "$as_me: failed program was:" >&5
36358 sed 's/^/| /' conftest.$ac_ext >&5
36359
36360 ac_lo=`expr $ac_mid + 1`
36361                     if test $ac_lo -le $ac_mid; then
36362                       ac_lo= ac_hi=
36363                       break
36364                     fi
36365                     ac_mid=`expr 2 '*' $ac_mid + 1`
36366 fi
36367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36368   done
36369 else
36370   echo "$as_me: failed program was:" >&5
36371 sed 's/^/| /' conftest.$ac_ext >&5
36372
36373 cat >conftest.$ac_ext <<_ACEOF
36374 /* confdefs.h.  */
36375 _ACEOF
36376 cat confdefs.h >>conftest.$ac_ext
36377 cat >>conftest.$ac_ext <<_ACEOF
36378 /* end confdefs.h.  */
36379 $ac_includes_default
36380 int
36381 main ()
36382 {
36383 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36384 test_array [0] = 0
36385
36386   ;
36387   return 0;
36388 }
36389 _ACEOF
36390 rm -f conftest.$ac_objext
36391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36392   (eval $ac_compile) 2>conftest.er1
36393   ac_status=$?
36394   grep -v '^ *+' conftest.er1 >conftest.err
36395   rm -f conftest.er1
36396   cat conftest.err >&5
36397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36398   (exit $ac_status); } &&
36399          { ac_try='test -z "$ac_c_werror_flag"
36400                          || test ! -s conftest.err'
36401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36402   (eval $ac_try) 2>&5
36403   ac_status=$?
36404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36405   (exit $ac_status); }; } &&
36406          { ac_try='test -s conftest.$ac_objext'
36407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36408   (eval $ac_try) 2>&5
36409   ac_status=$?
36410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36411   (exit $ac_status); }; }; then
36412   ac_hi=-1 ac_mid=-1
36413   while :; do
36414     cat >conftest.$ac_ext <<_ACEOF
36415 /* confdefs.h.  */
36416 _ACEOF
36417 cat confdefs.h >>conftest.$ac_ext
36418 cat >>conftest.$ac_ext <<_ACEOF
36419 /* end confdefs.h.  */
36420 $ac_includes_default
36421 int
36422 main ()
36423 {
36424 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36425 test_array [0] = 0
36426
36427   ;
36428   return 0;
36429 }
36430 _ACEOF
36431 rm -f conftest.$ac_objext
36432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36433   (eval $ac_compile) 2>conftest.er1
36434   ac_status=$?
36435   grep -v '^ *+' conftest.er1 >conftest.err
36436   rm -f conftest.er1
36437   cat conftest.err >&5
36438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36439   (exit $ac_status); } &&
36440          { ac_try='test -z "$ac_c_werror_flag"
36441                          || test ! -s conftest.err'
36442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36443   (eval $ac_try) 2>&5
36444   ac_status=$?
36445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446   (exit $ac_status); }; } &&
36447          { ac_try='test -s conftest.$ac_objext'
36448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36449   (eval $ac_try) 2>&5
36450   ac_status=$?
36451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36452   (exit $ac_status); }; }; then
36453   ac_lo=$ac_mid; break
36454 else
36455   echo "$as_me: failed program was:" >&5
36456 sed 's/^/| /' conftest.$ac_ext >&5
36457
36458 ac_hi=`expr '(' $ac_mid ')' - 1`
36459                        if test $ac_mid -le $ac_hi; then
36460                          ac_lo= ac_hi=
36461                          break
36462                        fi
36463                        ac_mid=`expr 2 '*' $ac_mid`
36464 fi
36465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36466   done
36467 else
36468   echo "$as_me: failed program was:" >&5
36469 sed 's/^/| /' conftest.$ac_ext >&5
36470
36471 ac_lo= ac_hi=
36472 fi
36473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36474 fi
36475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36476 # Binary search between lo and hi bounds.
36477 while test "x$ac_lo" != "x$ac_hi"; do
36478   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36479   cat >conftest.$ac_ext <<_ACEOF
36480 /* confdefs.h.  */
36481 _ACEOF
36482 cat confdefs.h >>conftest.$ac_ext
36483 cat >>conftest.$ac_ext <<_ACEOF
36484 /* end confdefs.h.  */
36485 $ac_includes_default
36486 int
36487 main ()
36488 {
36489 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36490 test_array [0] = 0
36491
36492   ;
36493   return 0;
36494 }
36495 _ACEOF
36496 rm -f conftest.$ac_objext
36497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36498   (eval $ac_compile) 2>conftest.er1
36499   ac_status=$?
36500   grep -v '^ *+' conftest.er1 >conftest.err
36501   rm -f conftest.er1
36502   cat conftest.err >&5
36503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36504   (exit $ac_status); } &&
36505          { ac_try='test -z "$ac_c_werror_flag"
36506                          || test ! -s conftest.err'
36507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36508   (eval $ac_try) 2>&5
36509   ac_status=$?
36510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36511   (exit $ac_status); }; } &&
36512          { ac_try='test -s conftest.$ac_objext'
36513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36514   (eval $ac_try) 2>&5
36515   ac_status=$?
36516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36517   (exit $ac_status); }; }; then
36518   ac_hi=$ac_mid
36519 else
36520   echo "$as_me: failed program was:" >&5
36521 sed 's/^/| /' conftest.$ac_ext >&5
36522
36523 ac_lo=`expr '(' $ac_mid ')' + 1`
36524 fi
36525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36526 done
36527 case $ac_lo in
36528 ?*) ac_cv_sizeof_long_long=$ac_lo;;
36529 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36530 See \`config.log' for more details." >&5
36531 echo "$as_me: error: cannot compute sizeof (long long), 77
36532 See \`config.log' for more details." >&2;}
36533    { (exit 1); exit 1; }; } ;;
36534 esac
36535 else
36536   if test "$cross_compiling" = yes; then
36537   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36538 See \`config.log' for more details." >&5
36539 echo "$as_me: error: cannot run test program while cross compiling
36540 See \`config.log' for more details." >&2;}
36541    { (exit 1); exit 1; }; }
36542 else
36543   cat >conftest.$ac_ext <<_ACEOF
36544 /* confdefs.h.  */
36545 _ACEOF
36546 cat confdefs.h >>conftest.$ac_ext
36547 cat >>conftest.$ac_ext <<_ACEOF
36548 /* end confdefs.h.  */
36549 $ac_includes_default
36550 long longval () { return (long) (sizeof (long long)); }
36551 unsigned long ulongval () { return (long) (sizeof (long long)); }
36552 #include <stdio.h>
36553 #include <stdlib.h>
36554 int
36555 main ()
36556 {
36557
36558   FILE *f = fopen ("conftest.val", "w");
36559   if (! f)
36560     exit (1);
36561   if (((long) (sizeof (long long))) < 0)
36562     {
36563       long i = longval ();
36564       if (i != ((long) (sizeof (long long))))
36565         exit (1);
36566       fprintf (f, "%ld\n", i);
36567     }
36568   else
36569     {
36570       unsigned long i = ulongval ();
36571       if (i != ((long) (sizeof (long long))))
36572         exit (1);
36573       fprintf (f, "%lu\n", i);
36574     }
36575   exit (ferror (f) || fclose (f) != 0);
36576
36577   ;
36578   return 0;
36579 }
36580 _ACEOF
36581 rm -f conftest$ac_exeext
36582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36583   (eval $ac_link) 2>&5
36584   ac_status=$?
36585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36588   (eval $ac_try) 2>&5
36589   ac_status=$?
36590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36591   (exit $ac_status); }; }; then
36592   ac_cv_sizeof_long_long=`cat conftest.val`
36593 else
36594   echo "$as_me: program exited with status $ac_status" >&5
36595 echo "$as_me: failed program was:" >&5
36596 sed 's/^/| /' conftest.$ac_ext >&5
36597
36598 ( exit $ac_status )
36599 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36600 See \`config.log' for more details." >&5
36601 echo "$as_me: error: cannot compute sizeof (long long), 77
36602 See \`config.log' for more details." >&2;}
36603    { (exit 1); exit 1; }; }
36604 fi
36605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36606 fi
36607 fi
36608 rm -f conftest.val
36609 else
36610   ac_cv_sizeof_long_long=0
36611 fi
36612 fi
36613 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
36614 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
36615 cat >>confdefs.h <<_ACEOF
36616 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
36617 _ACEOF
36618
36619
36620 echo "$as_me:$LINENO: checking for wchar_t" >&5
36621 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
36622 if test "${ac_cv_type_wchar_t+set}" = set; then
36623   echo $ECHO_N "(cached) $ECHO_C" >&6
36624 else
36625   cat >conftest.$ac_ext <<_ACEOF
36626 /* confdefs.h.  */
36627 _ACEOF
36628 cat confdefs.h >>conftest.$ac_ext
36629 cat >>conftest.$ac_ext <<_ACEOF
36630 /* end confdefs.h.  */
36631 $ac_includes_default
36632 int
36633 main ()
36634 {
36635 if ((wchar_t *) 0)
36636   return 0;
36637 if (sizeof (wchar_t))
36638   return 0;
36639   ;
36640   return 0;
36641 }
36642 _ACEOF
36643 rm -f conftest.$ac_objext
36644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36645   (eval $ac_compile) 2>conftest.er1
36646   ac_status=$?
36647   grep -v '^ *+' conftest.er1 >conftest.err
36648   rm -f conftest.er1
36649   cat conftest.err >&5
36650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36651   (exit $ac_status); } &&
36652          { ac_try='test -z "$ac_c_werror_flag"
36653                          || test ! -s conftest.err'
36654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36655   (eval $ac_try) 2>&5
36656   ac_status=$?
36657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36658   (exit $ac_status); }; } &&
36659          { ac_try='test -s conftest.$ac_objext'
36660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36661   (eval $ac_try) 2>&5
36662   ac_status=$?
36663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664   (exit $ac_status); }; }; then
36665   ac_cv_type_wchar_t=yes
36666 else
36667   echo "$as_me: failed program was:" >&5
36668 sed 's/^/| /' conftest.$ac_ext >&5
36669
36670 ac_cv_type_wchar_t=no
36671 fi
36672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36673 fi
36674 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
36675 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
36676
36677 echo "$as_me:$LINENO: checking size of wchar_t" >&5
36678 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
36679 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
36680   echo $ECHO_N "(cached) $ECHO_C" >&6
36681 else
36682   if test "$ac_cv_type_wchar_t" = yes; then
36683   # The cast to unsigned long works around a bug in the HP C Compiler
36684   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36685   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36686   # This bug is HP SR number 8606223364.
36687   if test "$cross_compiling" = yes; then
36688   # Depending upon the size, compute the lo and hi bounds.
36689 cat >conftest.$ac_ext <<_ACEOF
36690 /* confdefs.h.  */
36691 _ACEOF
36692 cat confdefs.h >>conftest.$ac_ext
36693 cat >>conftest.$ac_ext <<_ACEOF
36694 /* end confdefs.h.  */
36695 $ac_includes_default
36696 int
36697 main ()
36698 {
36699 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
36700 test_array [0] = 0
36701
36702   ;
36703   return 0;
36704 }
36705 _ACEOF
36706 rm -f conftest.$ac_objext
36707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36708   (eval $ac_compile) 2>conftest.er1
36709   ac_status=$?
36710   grep -v '^ *+' conftest.er1 >conftest.err
36711   rm -f conftest.er1
36712   cat conftest.err >&5
36713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36714   (exit $ac_status); } &&
36715          { ac_try='test -z "$ac_c_werror_flag"
36716                          || test ! -s conftest.err'
36717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36718   (eval $ac_try) 2>&5
36719   ac_status=$?
36720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36721   (exit $ac_status); }; } &&
36722          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
36728   ac_lo=0 ac_mid=0
36729   while :; do
36730     cat >conftest.$ac_ext <<_ACEOF
36731 /* confdefs.h.  */
36732 _ACEOF
36733 cat confdefs.h >>conftest.$ac_ext
36734 cat >>conftest.$ac_ext <<_ACEOF
36735 /* end confdefs.h.  */
36736 $ac_includes_default
36737 int
36738 main ()
36739 {
36740 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
36741 test_array [0] = 0
36742
36743   ;
36744   return 0;
36745 }
36746 _ACEOF
36747 rm -f conftest.$ac_objext
36748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36749   (eval $ac_compile) 2>conftest.er1
36750   ac_status=$?
36751   grep -v '^ *+' conftest.er1 >conftest.err
36752   rm -f conftest.er1
36753   cat conftest.err >&5
36754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755   (exit $ac_status); } &&
36756          { ac_try='test -z "$ac_c_werror_flag"
36757                          || test ! -s conftest.err'
36758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36759   (eval $ac_try) 2>&5
36760   ac_status=$?
36761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36762   (exit $ac_status); }; } &&
36763          { ac_try='test -s conftest.$ac_objext'
36764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36765   (eval $ac_try) 2>&5
36766   ac_status=$?
36767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768   (exit $ac_status); }; }; then
36769   ac_hi=$ac_mid; break
36770 else
36771   echo "$as_me: failed program was:" >&5
36772 sed 's/^/| /' conftest.$ac_ext >&5
36773
36774 ac_lo=`expr $ac_mid + 1`
36775                     if test $ac_lo -le $ac_mid; then
36776                       ac_lo= ac_hi=
36777                       break
36778                     fi
36779                     ac_mid=`expr 2 '*' $ac_mid + 1`
36780 fi
36781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36782   done
36783 else
36784   echo "$as_me: failed program was:" >&5
36785 sed 's/^/| /' conftest.$ac_ext >&5
36786
36787 cat >conftest.$ac_ext <<_ACEOF
36788 /* confdefs.h.  */
36789 _ACEOF
36790 cat confdefs.h >>conftest.$ac_ext
36791 cat >>conftest.$ac_ext <<_ACEOF
36792 /* end confdefs.h.  */
36793 $ac_includes_default
36794 int
36795 main ()
36796 {
36797 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
36798 test_array [0] = 0
36799
36800   ;
36801   return 0;
36802 }
36803 _ACEOF
36804 rm -f conftest.$ac_objext
36805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36806   (eval $ac_compile) 2>conftest.er1
36807   ac_status=$?
36808   grep -v '^ *+' conftest.er1 >conftest.err
36809   rm -f conftest.er1
36810   cat conftest.err >&5
36811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36812   (exit $ac_status); } &&
36813          { ac_try='test -z "$ac_c_werror_flag"
36814                          || test ! -s conftest.err'
36815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36816   (eval $ac_try) 2>&5
36817   ac_status=$?
36818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819   (exit $ac_status); }; } &&
36820          { ac_try='test -s conftest.$ac_objext'
36821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36822   (eval $ac_try) 2>&5
36823   ac_status=$?
36824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825   (exit $ac_status); }; }; then
36826   ac_hi=-1 ac_mid=-1
36827   while :; do
36828     cat >conftest.$ac_ext <<_ACEOF
36829 /* confdefs.h.  */
36830 _ACEOF
36831 cat confdefs.h >>conftest.$ac_ext
36832 cat >>conftest.$ac_ext <<_ACEOF
36833 /* end confdefs.h.  */
36834 $ac_includes_default
36835 int
36836 main ()
36837 {
36838 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
36839 test_array [0] = 0
36840
36841   ;
36842   return 0;
36843 }
36844 _ACEOF
36845 rm -f conftest.$ac_objext
36846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36847   (eval $ac_compile) 2>conftest.er1
36848   ac_status=$?
36849   grep -v '^ *+' conftest.er1 >conftest.err
36850   rm -f conftest.er1
36851   cat conftest.err >&5
36852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36853   (exit $ac_status); } &&
36854          { ac_try='test -z "$ac_c_werror_flag"
36855                          || test ! -s conftest.err'
36856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36857   (eval $ac_try) 2>&5
36858   ac_status=$?
36859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36860   (exit $ac_status); }; } &&
36861          { ac_try='test -s conftest.$ac_objext'
36862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36863   (eval $ac_try) 2>&5
36864   ac_status=$?
36865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36866   (exit $ac_status); }; }; then
36867   ac_lo=$ac_mid; break
36868 else
36869   echo "$as_me: failed program was:" >&5
36870 sed 's/^/| /' conftest.$ac_ext >&5
36871
36872 ac_hi=`expr '(' $ac_mid ')' - 1`
36873                        if test $ac_mid -le $ac_hi; then
36874                          ac_lo= ac_hi=
36875                          break
36876                        fi
36877                        ac_mid=`expr 2 '*' $ac_mid`
36878 fi
36879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36880   done
36881 else
36882   echo "$as_me: failed program was:" >&5
36883 sed 's/^/| /' conftest.$ac_ext >&5
36884
36885 ac_lo= ac_hi=
36886 fi
36887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36888 fi
36889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36890 # Binary search between lo and hi bounds.
36891 while test "x$ac_lo" != "x$ac_hi"; do
36892   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36893   cat >conftest.$ac_ext <<_ACEOF
36894 /* confdefs.h.  */
36895 _ACEOF
36896 cat confdefs.h >>conftest.$ac_ext
36897 cat >>conftest.$ac_ext <<_ACEOF
36898 /* end confdefs.h.  */
36899 $ac_includes_default
36900 int
36901 main ()
36902 {
36903 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
36904 test_array [0] = 0
36905
36906   ;
36907   return 0;
36908 }
36909 _ACEOF
36910 rm -f conftest.$ac_objext
36911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36912   (eval $ac_compile) 2>conftest.er1
36913   ac_status=$?
36914   grep -v '^ *+' conftest.er1 >conftest.err
36915   rm -f conftest.er1
36916   cat conftest.err >&5
36917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36918   (exit $ac_status); } &&
36919          { ac_try='test -z "$ac_c_werror_flag"
36920                          || test ! -s conftest.err'
36921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36922   (eval $ac_try) 2>&5
36923   ac_status=$?
36924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36925   (exit $ac_status); }; } &&
36926          { ac_try='test -s conftest.$ac_objext'
36927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36928   (eval $ac_try) 2>&5
36929   ac_status=$?
36930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36931   (exit $ac_status); }; }; then
36932   ac_hi=$ac_mid
36933 else
36934   echo "$as_me: failed program was:" >&5
36935 sed 's/^/| /' conftest.$ac_ext >&5
36936
36937 ac_lo=`expr '(' $ac_mid ')' + 1`
36938 fi
36939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36940 done
36941 case $ac_lo in
36942 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
36943 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
36944 See \`config.log' for more details." >&5
36945 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
36946 See \`config.log' for more details." >&2;}
36947    { (exit 1); exit 1; }; } ;;
36948 esac
36949 else
36950   if test "$cross_compiling" = yes; then
36951   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36952 See \`config.log' for more details." >&5
36953 echo "$as_me: error: cannot run test program while cross compiling
36954 See \`config.log' for more details." >&2;}
36955    { (exit 1); exit 1; }; }
36956 else
36957   cat >conftest.$ac_ext <<_ACEOF
36958 /* confdefs.h.  */
36959 _ACEOF
36960 cat confdefs.h >>conftest.$ac_ext
36961 cat >>conftest.$ac_ext <<_ACEOF
36962 /* end confdefs.h.  */
36963 $ac_includes_default
36964 long longval () { return (long) (sizeof (wchar_t)); }
36965 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
36966 #include <stdio.h>
36967 #include <stdlib.h>
36968 int
36969 main ()
36970 {
36971
36972   FILE *f = fopen ("conftest.val", "w");
36973   if (! f)
36974     exit (1);
36975   if (((long) (sizeof (wchar_t))) < 0)
36976     {
36977       long i = longval ();
36978       if (i != ((long) (sizeof (wchar_t))))
36979         exit (1);
36980       fprintf (f, "%ld\n", i);
36981     }
36982   else
36983     {
36984       unsigned long i = ulongval ();
36985       if (i != ((long) (sizeof (wchar_t))))
36986         exit (1);
36987       fprintf (f, "%lu\n", i);
36988     }
36989   exit (ferror (f) || fclose (f) != 0);
36990
36991   ;
36992   return 0;
36993 }
36994 _ACEOF
36995 rm -f conftest$ac_exeext
36996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36997   (eval $ac_link) 2>&5
36998   ac_status=$?
36999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37002   (eval $ac_try) 2>&5
37003   ac_status=$?
37004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37005   (exit $ac_status); }; }; then
37006   ac_cv_sizeof_wchar_t=`cat conftest.val`
37007 else
37008   echo "$as_me: program exited with status $ac_status" >&5
37009 echo "$as_me: failed program was:" >&5
37010 sed 's/^/| /' conftest.$ac_ext >&5
37011
37012 ( exit $ac_status )
37013 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37014 See \`config.log' for more details." >&5
37015 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37016 See \`config.log' for more details." >&2;}
37017    { (exit 1); exit 1; }; }
37018 fi
37019 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37020 fi
37021 fi
37022 rm -f conftest.val
37023 else
37024   ac_cv_sizeof_wchar_t=0
37025 fi
37026 fi
37027 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37028 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37029 cat >>confdefs.h <<_ACEOF
37030 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37031 _ACEOF
37032
37033
37034
37035 if test "$ac_cv_sizeof_int" -lt 4 ; then
37036         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37037 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37038
37039
37040 cat >>confdefs.h <<\_ACEOF
37041 #define LBER_INT_T long
37042 _ACEOF
37043
37044 else
37045
37046 cat >>confdefs.h <<\_ACEOF
37047 #define LBER_INT_T int
37048 _ACEOF
37049
37050 fi
37051
37052
37053 cat >>confdefs.h <<\_ACEOF
37054 #define LBER_LEN_T long
37055 _ACEOF
37056
37057
37058 cat >>confdefs.h <<\_ACEOF
37059 #define LBER_SOCKET_T int
37060 _ACEOF
37061
37062
37063 cat >>confdefs.h <<\_ACEOF
37064 #define LBER_TAG_T long
37065 _ACEOF
37066
37067
37068 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37069         if test $ac_cv_sizeof_long_long -gt 4 ; then
37070                 ol_with_mp=longlong
37071
37072 cat >>confdefs.h <<\_ACEOF
37073 #define USE_MP_LONG_LONG 1
37074 _ACEOF
37075
37076         elif test $ol_with_mp = longlong ; then
37077                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37078 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37079    { (exit 1); exit 1; }; }
37080         fi
37081 fi
37082 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37083         if test $ac_cv_sizeof_long -gt 4 ; then
37084                 ol_with_mp=long
37085
37086 cat >>confdefs.h <<\_ACEOF
37087 #define USE_MP_LONG 1
37088 _ACEOF
37089
37090         elif test $ol_with_mp = long ; then
37091                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37092 echo "$as_me: error: long unusable for multiple precision" >&2;}
37093    { (exit 1); exit 1; }; }
37094         fi
37095 fi
37096 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37097
37098 for ac_header in openssl/bn.h
37099 do
37100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37102   echo "$as_me:$LINENO: checking for $ac_header" >&5
37103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37105   echo $ECHO_N "(cached) $ECHO_C" >&6
37106 fi
37107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37109 else
37110   # Is the header compilable?
37111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37113 cat >conftest.$ac_ext <<_ACEOF
37114 /* confdefs.h.  */
37115 _ACEOF
37116 cat confdefs.h >>conftest.$ac_ext
37117 cat >>conftest.$ac_ext <<_ACEOF
37118 /* end confdefs.h.  */
37119 $ac_includes_default
37120 #include <$ac_header>
37121 _ACEOF
37122 rm -f conftest.$ac_objext
37123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37124   (eval $ac_compile) 2>conftest.er1
37125   ac_status=$?
37126   grep -v '^ *+' conftest.er1 >conftest.err
37127   rm -f conftest.er1
37128   cat conftest.err >&5
37129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130   (exit $ac_status); } &&
37131          { ac_try='test -z "$ac_c_werror_flag"
37132                          || test ! -s conftest.err'
37133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37134   (eval $ac_try) 2>&5
37135   ac_status=$?
37136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37137   (exit $ac_status); }; } &&
37138          { ac_try='test -s conftest.$ac_objext'
37139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37140   (eval $ac_try) 2>&5
37141   ac_status=$?
37142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37143   (exit $ac_status); }; }; then
37144   ac_header_compiler=yes
37145 else
37146   echo "$as_me: failed program was:" >&5
37147 sed 's/^/| /' conftest.$ac_ext >&5
37148
37149 ac_header_compiler=no
37150 fi
37151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37153 echo "${ECHO_T}$ac_header_compiler" >&6
37154
37155 # Is the header present?
37156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37158 cat >conftest.$ac_ext <<_ACEOF
37159 /* confdefs.h.  */
37160 _ACEOF
37161 cat confdefs.h >>conftest.$ac_ext
37162 cat >>conftest.$ac_ext <<_ACEOF
37163 /* end confdefs.h.  */
37164 #include <$ac_header>
37165 _ACEOF
37166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37167   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37168   ac_status=$?
37169   grep -v '^ *+' conftest.er1 >conftest.err
37170   rm -f conftest.er1
37171   cat conftest.err >&5
37172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173   (exit $ac_status); } >/dev/null; then
37174   if test -s conftest.err; then
37175     ac_cpp_err=$ac_c_preproc_warn_flag
37176     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37177   else
37178     ac_cpp_err=
37179   fi
37180 else
37181   ac_cpp_err=yes
37182 fi
37183 if test -z "$ac_cpp_err"; then
37184   ac_header_preproc=yes
37185 else
37186   echo "$as_me: failed program was:" >&5
37187 sed 's/^/| /' conftest.$ac_ext >&5
37188
37189   ac_header_preproc=no
37190 fi
37191 rm -f conftest.err conftest.$ac_ext
37192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37193 echo "${ECHO_T}$ac_header_preproc" >&6
37194
37195 # So?  What about this header?
37196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37197   yes:no: )
37198     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37202     ac_header_preproc=yes
37203     ;;
37204   no:yes:* )
37205     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37207     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37208 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37209     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37211     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37212 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37215     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37217     (
37218       cat <<\_ASBOX
37219 ## --------------------------------------------- ##
37220 ## Report this to <http://www.openldap.org/its/> ##
37221 ## --------------------------------------------- ##
37222 _ASBOX
37223     ) |
37224       sed "s/^/$as_me: WARNING:     /" >&2
37225     ;;
37226 esac
37227 echo "$as_me:$LINENO: checking for $ac_header" >&5
37228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37230   echo $ECHO_N "(cached) $ECHO_C" >&6
37231 else
37232   eval "$as_ac_Header=\$ac_header_preproc"
37233 fi
37234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37236
37237 fi
37238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37239   cat >>confdefs.h <<_ACEOF
37240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37241 _ACEOF
37242
37243 fi
37244
37245 done
37246
37247
37248 for ac_header in openssl/crypto.h
37249 do
37250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37252   echo "$as_me:$LINENO: checking for $ac_header" >&5
37253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37255   echo $ECHO_N "(cached) $ECHO_C" >&6
37256 fi
37257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37259 else
37260   # Is the header compilable?
37261 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37263 cat >conftest.$ac_ext <<_ACEOF
37264 /* confdefs.h.  */
37265 _ACEOF
37266 cat confdefs.h >>conftest.$ac_ext
37267 cat >>conftest.$ac_ext <<_ACEOF
37268 /* end confdefs.h.  */
37269 $ac_includes_default
37270 #include <$ac_header>
37271 _ACEOF
37272 rm -f conftest.$ac_objext
37273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37274   (eval $ac_compile) 2>conftest.er1
37275   ac_status=$?
37276   grep -v '^ *+' conftest.er1 >conftest.err
37277   rm -f conftest.er1
37278   cat conftest.err >&5
37279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280   (exit $ac_status); } &&
37281          { ac_try='test -z "$ac_c_werror_flag"
37282                          || test ! -s conftest.err'
37283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37284   (eval $ac_try) 2>&5
37285   ac_status=$?
37286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37287   (exit $ac_status); }; } &&
37288          { ac_try='test -s conftest.$ac_objext'
37289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37290   (eval $ac_try) 2>&5
37291   ac_status=$?
37292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293   (exit $ac_status); }; }; then
37294   ac_header_compiler=yes
37295 else
37296   echo "$as_me: failed program was:" >&5
37297 sed 's/^/| /' conftest.$ac_ext >&5
37298
37299 ac_header_compiler=no
37300 fi
37301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37302 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37303 echo "${ECHO_T}$ac_header_compiler" >&6
37304
37305 # Is the header present?
37306 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37308 cat >conftest.$ac_ext <<_ACEOF
37309 /* confdefs.h.  */
37310 _ACEOF
37311 cat confdefs.h >>conftest.$ac_ext
37312 cat >>conftest.$ac_ext <<_ACEOF
37313 /* end confdefs.h.  */
37314 #include <$ac_header>
37315 _ACEOF
37316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37317   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37318   ac_status=$?
37319   grep -v '^ *+' conftest.er1 >conftest.err
37320   rm -f conftest.er1
37321   cat conftest.err >&5
37322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37323   (exit $ac_status); } >/dev/null; then
37324   if test -s conftest.err; then
37325     ac_cpp_err=$ac_c_preproc_warn_flag
37326     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37327   else
37328     ac_cpp_err=
37329   fi
37330 else
37331   ac_cpp_err=yes
37332 fi
37333 if test -z "$ac_cpp_err"; then
37334   ac_header_preproc=yes
37335 else
37336   echo "$as_me: failed program was:" >&5
37337 sed 's/^/| /' conftest.$ac_ext >&5
37338
37339   ac_header_preproc=no
37340 fi
37341 rm -f conftest.err conftest.$ac_ext
37342 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37343 echo "${ECHO_T}$ac_header_preproc" >&6
37344
37345 # So?  What about this header?
37346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37347   yes:no: )
37348     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37352     ac_header_preproc=yes
37353     ;;
37354   no:yes:* )
37355     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37357     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37358 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37359     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37361     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37362 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37365     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37367     (
37368       cat <<\_ASBOX
37369 ## --------------------------------------------- ##
37370 ## Report this to <http://www.openldap.org/its/> ##
37371 ## --------------------------------------------- ##
37372 _ASBOX
37373     ) |
37374       sed "s/^/$as_me: WARNING:     /" >&2
37375     ;;
37376 esac
37377 echo "$as_me:$LINENO: checking for $ac_header" >&5
37378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37380   echo $ECHO_N "(cached) $ECHO_C" >&6
37381 else
37382   eval "$as_ac_Header=\$ac_header_preproc"
37383 fi
37384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37386
37387 fi
37388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37389   cat >>confdefs.h <<_ACEOF
37390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37391 _ACEOF
37392
37393 fi
37394
37395 done
37396
37397         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37398                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37399                 test "$ol_with_tls" = "found" ; then
37400                 ol_with_mp=bignum
37401
37402 cat >>confdefs.h <<\_ACEOF
37403 #define USE_MP_BIGNUM 1
37404 _ACEOF
37405
37406         elif test $ol_with_mp = bignum ; then
37407                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
37408 echo "$as_me: error: bignum not available" >&2;}
37409    { (exit 1); exit 1; }; }
37410         fi
37411 fi
37412 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
37413
37414 for ac_header in gmp.h
37415 do
37416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37418   echo "$as_me:$LINENO: checking for $ac_header" >&5
37419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37421   echo $ECHO_N "(cached) $ECHO_C" >&6
37422 fi
37423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37425 else
37426   # Is the header compilable?
37427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37429 cat >conftest.$ac_ext <<_ACEOF
37430 /* confdefs.h.  */
37431 _ACEOF
37432 cat confdefs.h >>conftest.$ac_ext
37433 cat >>conftest.$ac_ext <<_ACEOF
37434 /* end confdefs.h.  */
37435 $ac_includes_default
37436 #include <$ac_header>
37437 _ACEOF
37438 rm -f conftest.$ac_objext
37439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37440   (eval $ac_compile) 2>conftest.er1
37441   ac_status=$?
37442   grep -v '^ *+' conftest.er1 >conftest.err
37443   rm -f conftest.er1
37444   cat conftest.err >&5
37445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37446   (exit $ac_status); } &&
37447          { ac_try='test -z "$ac_c_werror_flag"
37448                          || test ! -s conftest.err'
37449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37450   (eval $ac_try) 2>&5
37451   ac_status=$?
37452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453   (exit $ac_status); }; } &&
37454          { ac_try='test -s conftest.$ac_objext'
37455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37456   (eval $ac_try) 2>&5
37457   ac_status=$?
37458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459   (exit $ac_status); }; }; then
37460   ac_header_compiler=yes
37461 else
37462   echo "$as_me: failed program was:" >&5
37463 sed 's/^/| /' conftest.$ac_ext >&5
37464
37465 ac_header_compiler=no
37466 fi
37467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37469 echo "${ECHO_T}$ac_header_compiler" >&6
37470
37471 # Is the header present?
37472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37474 cat >conftest.$ac_ext <<_ACEOF
37475 /* confdefs.h.  */
37476 _ACEOF
37477 cat confdefs.h >>conftest.$ac_ext
37478 cat >>conftest.$ac_ext <<_ACEOF
37479 /* end confdefs.h.  */
37480 #include <$ac_header>
37481 _ACEOF
37482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37484   ac_status=$?
37485   grep -v '^ *+' conftest.er1 >conftest.err
37486   rm -f conftest.er1
37487   cat conftest.err >&5
37488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37489   (exit $ac_status); } >/dev/null; then
37490   if test -s conftest.err; then
37491     ac_cpp_err=$ac_c_preproc_warn_flag
37492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37493   else
37494     ac_cpp_err=
37495   fi
37496 else
37497   ac_cpp_err=yes
37498 fi
37499 if test -z "$ac_cpp_err"; then
37500   ac_header_preproc=yes
37501 else
37502   echo "$as_me: failed program was:" >&5
37503 sed 's/^/| /' conftest.$ac_ext >&5
37504
37505   ac_header_preproc=no
37506 fi
37507 rm -f conftest.err conftest.$ac_ext
37508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37509 echo "${ECHO_T}$ac_header_preproc" >&6
37510
37511 # So?  What about this header?
37512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37513   yes:no: )
37514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37518     ac_header_preproc=yes
37519     ;;
37520   no:yes:* )
37521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37523     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37524 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37525     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37527     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37528 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37531     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37533     (
37534       cat <<\_ASBOX
37535 ## --------------------------------------------- ##
37536 ## Report this to <http://www.openldap.org/its/> ##
37537 ## --------------------------------------------- ##
37538 _ASBOX
37539     ) |
37540       sed "s/^/$as_me: WARNING:     /" >&2
37541     ;;
37542 esac
37543 echo "$as_me:$LINENO: checking for $ac_header" >&5
37544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37546   echo $ECHO_N "(cached) $ECHO_C" >&6
37547 else
37548   eval "$as_ac_Header=\$ac_header_preproc"
37549 fi
37550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37552
37553 fi
37554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37555   cat >>confdefs.h <<_ACEOF
37556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37557 _ACEOF
37558
37559 fi
37560
37561 done
37562
37563
37564 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
37565 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
37566 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
37567   echo $ECHO_N "(cached) $ECHO_C" >&6
37568 else
37569   ac_check_lib_save_LIBS=$LIBS
37570 LIBS="-lgmp  $LIBS"
37571 cat >conftest.$ac_ext <<_ACEOF
37572 /* confdefs.h.  */
37573 _ACEOF
37574 cat confdefs.h >>conftest.$ac_ext
37575 cat >>conftest.$ac_ext <<_ACEOF
37576 /* end confdefs.h.  */
37577
37578 /* Override any gcc2 internal prototype to avoid an error.  */
37579 #ifdef __cplusplus
37580 extern "C"
37581 #endif
37582 /* We use char because int might match the return type of a gcc2
37583    builtin and then its argument prototype would still apply.  */
37584 char __gmpz_add_ui ();
37585 int
37586 main ()
37587 {
37588 __gmpz_add_ui ();
37589   ;
37590   return 0;
37591 }
37592 _ACEOF
37593 rm -f conftest.$ac_objext conftest$ac_exeext
37594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37595   (eval $ac_link) 2>conftest.er1
37596   ac_status=$?
37597   grep -v '^ *+' conftest.er1 >conftest.err
37598   rm -f conftest.er1
37599   cat conftest.err >&5
37600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37601   (exit $ac_status); } &&
37602          { ac_try='test -z "$ac_c_werror_flag"
37603                          || test ! -s conftest.err'
37604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37605   (eval $ac_try) 2>&5
37606   ac_status=$?
37607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37608   (exit $ac_status); }; } &&
37609          { ac_try='test -s conftest$ac_exeext'
37610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37611   (eval $ac_try) 2>&5
37612   ac_status=$?
37613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37614   (exit $ac_status); }; }; then
37615   ac_cv_lib_gmp___gmpz_add_ui=yes
37616 else
37617   echo "$as_me: failed program was:" >&5
37618 sed 's/^/| /' conftest.$ac_ext >&5
37619
37620 ac_cv_lib_gmp___gmpz_add_ui=no
37621 fi
37622 rm -f conftest.err conftest.$ac_objext \
37623       conftest$ac_exeext conftest.$ac_ext
37624 LIBS=$ac_check_lib_save_LIBS
37625 fi
37626 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
37627 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
37628 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
37629   cat >>confdefs.h <<_ACEOF
37630 #define HAVE_LIBGMP 1
37631 _ACEOF
37632
37633   LIBS="-lgmp $LIBS"
37634
37635 fi
37636
37637         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
37638
37639 cat >>confdefs.h <<\_ACEOF
37640 #define USE_MP_GMP 1
37641 _ACEOF
37642
37643                 ol_with_mp=gmp
37644         elif test $ol_with_mp = gmp ; then
37645                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
37646 echo "$as_me: error: gmp not available" >&2;}
37647    { (exit 1); exit 1; }; }
37648         fi
37649 fi
37650 if test $ol_with_mp = auto ; then
37651         ol_with_mp=no
37652 fi
37653
37654 echo "$as_me:$LINENO: checking for working memcmp" >&5
37655 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
37656 if test "${ac_cv_func_memcmp_working+set}" = set; then
37657   echo $ECHO_N "(cached) $ECHO_C" >&6
37658 else
37659   if test "$cross_compiling" = yes; then
37660   ac_cv_func_memcmp_working=no
37661 else
37662   cat >conftest.$ac_ext <<_ACEOF
37663 /* confdefs.h.  */
37664 _ACEOF
37665 cat confdefs.h >>conftest.$ac_ext
37666 cat >>conftest.$ac_ext <<_ACEOF
37667 /* end confdefs.h.  */
37668 $ac_includes_default
37669 int
37670 main ()
37671 {
37672
37673   /* Some versions of memcmp are not 8-bit clean.  */
37674   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
37675   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
37676     exit (1);
37677
37678   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
37679      or more and with at least one buffer not starting on a 4-byte boundary.
37680      William Lewis provided this test program.   */
37681   {
37682     char foo[21];
37683     char bar[21];
37684     int i;
37685     for (i = 0; i < 4; i++)
37686       {
37687         char *a = foo + i;
37688         char *b = bar + i;
37689         strcpy (a, "--------01111111");
37690         strcpy (b, "--------10000000");
37691         if (memcmp (a, b, 16) >= 0)
37692           exit (1);
37693       }
37694     exit (0);
37695   }
37696
37697   ;
37698   return 0;
37699 }
37700 _ACEOF
37701 rm -f conftest$ac_exeext
37702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37703   (eval $ac_link) 2>&5
37704   ac_status=$?
37705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37706   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37708   (eval $ac_try) 2>&5
37709   ac_status=$?
37710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37711   (exit $ac_status); }; }; then
37712   ac_cv_func_memcmp_working=yes
37713 else
37714   echo "$as_me: program exited with status $ac_status" >&5
37715 echo "$as_me: failed program was:" >&5
37716 sed 's/^/| /' conftest.$ac_ext >&5
37717
37718 ( exit $ac_status )
37719 ac_cv_func_memcmp_working=no
37720 fi
37721 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37722 fi
37723 fi
37724 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
37725 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
37726 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
37727     "memcmp.$ac_objext"   | \
37728   *" memcmp.$ac_objext"   | \
37729     "memcmp.$ac_objext "* | \
37730   *" memcmp.$ac_objext "* ) ;;
37731   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
37732 esac
37733
37734
37735
37736 if test $ac_cv_func_memcmp_working = no ; then
37737
37738 cat >>confdefs.h <<\_ACEOF
37739 #define NEED_MEMCMP_REPLACEMENT 1
37740 _ACEOF
37741
37742 fi
37743
37744
37745 for ac_func in strftime
37746 do
37747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37748 echo "$as_me:$LINENO: checking for $ac_func" >&5
37749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37750 if eval "test \"\${$as_ac_var+set}\" = set"; then
37751   echo $ECHO_N "(cached) $ECHO_C" >&6
37752 else
37753   cat >conftest.$ac_ext <<_ACEOF
37754 /* confdefs.h.  */
37755 _ACEOF
37756 cat confdefs.h >>conftest.$ac_ext
37757 cat >>conftest.$ac_ext <<_ACEOF
37758 /* end confdefs.h.  */
37759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37761 #define $ac_func innocuous_$ac_func
37762
37763 /* System header to define __stub macros and hopefully few prototypes,
37764     which can conflict with char $ac_func (); below.
37765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37766     <limits.h> exists even on freestanding compilers.  */
37767
37768 #ifdef __STDC__
37769 # include <limits.h>
37770 #else
37771 # include <assert.h>
37772 #endif
37773
37774 #undef $ac_func
37775
37776 /* Override any gcc2 internal prototype to avoid an error.  */
37777 #ifdef __cplusplus
37778 extern "C"
37779 {
37780 #endif
37781 /* We use char because int might match the return type of a gcc2
37782    builtin and then its argument prototype would still apply.  */
37783 char $ac_func ();
37784 /* The GNU C library defines this for functions which it implements
37785     to always fail with ENOSYS.  Some functions are actually named
37786     something starting with __ and the normal name is an alias.  */
37787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37788 choke me
37789 #else
37790 char (*f) () = $ac_func;
37791 #endif
37792 #ifdef __cplusplus
37793 }
37794 #endif
37795
37796 int
37797 main ()
37798 {
37799 return f != $ac_func;
37800   ;
37801   return 0;
37802 }
37803 _ACEOF
37804 rm -f conftest.$ac_objext conftest$ac_exeext
37805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37806   (eval $ac_link) 2>conftest.er1
37807   ac_status=$?
37808   grep -v '^ *+' conftest.er1 >conftest.err
37809   rm -f conftest.er1
37810   cat conftest.err >&5
37811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37812   (exit $ac_status); } &&
37813          { ac_try='test -z "$ac_c_werror_flag"
37814                          || test ! -s conftest.err'
37815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37816   (eval $ac_try) 2>&5
37817   ac_status=$?
37818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37819   (exit $ac_status); }; } &&
37820          { ac_try='test -s conftest$ac_exeext'
37821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37822   (eval $ac_try) 2>&5
37823   ac_status=$?
37824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37825   (exit $ac_status); }; }; then
37826   eval "$as_ac_var=yes"
37827 else
37828   echo "$as_me: failed program was:" >&5
37829 sed 's/^/| /' conftest.$ac_ext >&5
37830
37831 eval "$as_ac_var=no"
37832 fi
37833 rm -f conftest.err conftest.$ac_objext \
37834       conftest$ac_exeext conftest.$ac_ext
37835 fi
37836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37838 if test `eval echo '${'$as_ac_var'}'` = yes; then
37839   cat >>confdefs.h <<_ACEOF
37840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37841 _ACEOF
37842
37843 else
37844   # strftime is in -lintl on SCO UNIX.
37845 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
37846 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
37847 if test "${ac_cv_lib_intl_strftime+set}" = set; then
37848   echo $ECHO_N "(cached) $ECHO_C" >&6
37849 else
37850   ac_check_lib_save_LIBS=$LIBS
37851 LIBS="-lintl  $LIBS"
37852 cat >conftest.$ac_ext <<_ACEOF
37853 /* confdefs.h.  */
37854 _ACEOF
37855 cat confdefs.h >>conftest.$ac_ext
37856 cat >>conftest.$ac_ext <<_ACEOF
37857 /* end confdefs.h.  */
37858
37859 /* Override any gcc2 internal prototype to avoid an error.  */
37860 #ifdef __cplusplus
37861 extern "C"
37862 #endif
37863 /* We use char because int might match the return type of a gcc2
37864    builtin and then its argument prototype would still apply.  */
37865 char strftime ();
37866 int
37867 main ()
37868 {
37869 strftime ();
37870   ;
37871   return 0;
37872 }
37873 _ACEOF
37874 rm -f conftest.$ac_objext conftest$ac_exeext
37875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37876   (eval $ac_link) 2>conftest.er1
37877   ac_status=$?
37878   grep -v '^ *+' conftest.er1 >conftest.err
37879   rm -f conftest.er1
37880   cat conftest.err >&5
37881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882   (exit $ac_status); } &&
37883          { ac_try='test -z "$ac_c_werror_flag"
37884                          || test ! -s conftest.err'
37885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37886   (eval $ac_try) 2>&5
37887   ac_status=$?
37888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889   (exit $ac_status); }; } &&
37890          { ac_try='test -s conftest$ac_exeext'
37891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37892   (eval $ac_try) 2>&5
37893   ac_status=$?
37894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895   (exit $ac_status); }; }; then
37896   ac_cv_lib_intl_strftime=yes
37897 else
37898   echo "$as_me: failed program was:" >&5
37899 sed 's/^/| /' conftest.$ac_ext >&5
37900
37901 ac_cv_lib_intl_strftime=no
37902 fi
37903 rm -f conftest.err conftest.$ac_objext \
37904       conftest$ac_exeext conftest.$ac_ext
37905 LIBS=$ac_check_lib_save_LIBS
37906 fi
37907 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
37908 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
37909 if test $ac_cv_lib_intl_strftime = yes; then
37910   cat >>confdefs.h <<\_ACEOF
37911 #define HAVE_STRFTIME 1
37912 _ACEOF
37913
37914 LIBS="-lintl $LIBS"
37915 fi
37916
37917 fi
37918 done
37919
37920
37921 echo "$as_me:$LINENO: checking for inet_aton()" >&5
37922 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
37923 if test "${ol_cv_func_inet_aton+set}" = set; then
37924   echo $ECHO_N "(cached) $ECHO_C" >&6
37925 else
37926   cat >conftest.$ac_ext <<_ACEOF
37927 /* confdefs.h.  */
37928 _ACEOF
37929 cat confdefs.h >>conftest.$ac_ext
37930 cat >>conftest.$ac_ext <<_ACEOF
37931 /* end confdefs.h.  */
37932
37933 #ifdef HAVE_SYS_TYPES_H
37934 #       include <sys/types.h>
37935 #endif
37936 #ifdef HAVE_SYS_SOCKET_H
37937 #       include <sys/socket.h>
37938 #       ifdef HAVE_SYS_SELECT_H
37939 #               include <sys/select.h>
37940 #       endif
37941 #       include <netinet/in.h>
37942 #       ifdef HAVE_ARPA_INET_H
37943 #               include <arpa/inet.h>
37944 #       endif
37945 #endif
37946
37947 int
37948 main ()
37949 {
37950 struct in_addr in;
37951 int rc = inet_aton( "255.255.255.255", &in );
37952   ;
37953   return 0;
37954 }
37955 _ACEOF
37956 rm -f conftest.$ac_objext conftest$ac_exeext
37957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37958   (eval $ac_link) 2>conftest.er1
37959   ac_status=$?
37960   grep -v '^ *+' conftest.er1 >conftest.err
37961   rm -f conftest.er1
37962   cat conftest.err >&5
37963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37964   (exit $ac_status); } &&
37965          { ac_try='test -z "$ac_c_werror_flag"
37966                          || test ! -s conftest.err'
37967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37968   (eval $ac_try) 2>&5
37969   ac_status=$?
37970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971   (exit $ac_status); }; } &&
37972          { ac_try='test -s conftest$ac_exeext'
37973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37974   (eval $ac_try) 2>&5
37975   ac_status=$?
37976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977   (exit $ac_status); }; }; then
37978   ol_cv_func_inet_aton=yes
37979 else
37980   echo "$as_me: failed program was:" >&5
37981 sed 's/^/| /' conftest.$ac_ext >&5
37982
37983 ol_cv_func_inet_aton=no
37984 fi
37985 rm -f conftest.err conftest.$ac_objext \
37986       conftest$ac_exeext conftest.$ac_ext
37987 fi
37988 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
37989 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
37990   if test $ol_cv_func_inet_aton != no; then
37991
37992 cat >>confdefs.h <<\_ACEOF
37993 #define HAVE_INET_ATON 1
37994 _ACEOF
37995
37996   fi
37997
37998
37999 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38000 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38001 if test "${ac_cv_func__spawnlp+set}" = set; then
38002   echo $ECHO_N "(cached) $ECHO_C" >&6
38003 else
38004   cat >conftest.$ac_ext <<_ACEOF
38005 /* confdefs.h.  */
38006 _ACEOF
38007 cat confdefs.h >>conftest.$ac_ext
38008 cat >>conftest.$ac_ext <<_ACEOF
38009 /* end confdefs.h.  */
38010 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38012 #define _spawnlp innocuous__spawnlp
38013
38014 /* System header to define __stub macros and hopefully few prototypes,
38015     which can conflict with char _spawnlp (); below.
38016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38017     <limits.h> exists even on freestanding compilers.  */
38018
38019 #ifdef __STDC__
38020 # include <limits.h>
38021 #else
38022 # include <assert.h>
38023 #endif
38024
38025 #undef _spawnlp
38026
38027 /* Override any gcc2 internal prototype to avoid an error.  */
38028 #ifdef __cplusplus
38029 extern "C"
38030 {
38031 #endif
38032 /* We use char because int might match the return type of a gcc2
38033    builtin and then its argument prototype would still apply.  */
38034 char _spawnlp ();
38035 /* The GNU C library defines this for functions which it implements
38036     to always fail with ENOSYS.  Some functions are actually named
38037     something starting with __ and the normal name is an alias.  */
38038 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38039 choke me
38040 #else
38041 char (*f) () = _spawnlp;
38042 #endif
38043 #ifdef __cplusplus
38044 }
38045 #endif
38046
38047 int
38048 main ()
38049 {
38050 return f != _spawnlp;
38051   ;
38052   return 0;
38053 }
38054 _ACEOF
38055 rm -f conftest.$ac_objext conftest$ac_exeext
38056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38057   (eval $ac_link) 2>conftest.er1
38058   ac_status=$?
38059   grep -v '^ *+' conftest.er1 >conftest.err
38060   rm -f conftest.er1
38061   cat conftest.err >&5
38062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38063   (exit $ac_status); } &&
38064          { ac_try='test -z "$ac_c_werror_flag"
38065                          || test ! -s conftest.err'
38066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38067   (eval $ac_try) 2>&5
38068   ac_status=$?
38069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38070   (exit $ac_status); }; } &&
38071          { ac_try='test -s conftest$ac_exeext'
38072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38073   (eval $ac_try) 2>&5
38074   ac_status=$?
38075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38076   (exit $ac_status); }; }; then
38077   ac_cv_func__spawnlp=yes
38078 else
38079   echo "$as_me: failed program was:" >&5
38080 sed 's/^/| /' conftest.$ac_ext >&5
38081
38082 ac_cv_func__spawnlp=no
38083 fi
38084 rm -f conftest.err conftest.$ac_objext \
38085       conftest$ac_exeext conftest.$ac_ext
38086 fi
38087 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38088 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38089 if test $ac_cv_func__spawnlp = yes; then
38090
38091 cat >>confdefs.h <<\_ACEOF
38092 #define HAVE_SPAWNLP 1
38093 _ACEOF
38094
38095 fi
38096
38097
38098 echo "$as_me:$LINENO: checking for _snprintf" >&5
38099 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38100 if test "${ac_cv_func__snprintf+set}" = set; then
38101   echo $ECHO_N "(cached) $ECHO_C" >&6
38102 else
38103   cat >conftest.$ac_ext <<_ACEOF
38104 /* confdefs.h.  */
38105 _ACEOF
38106 cat confdefs.h >>conftest.$ac_ext
38107 cat >>conftest.$ac_ext <<_ACEOF
38108 /* end confdefs.h.  */
38109 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38111 #define _snprintf innocuous__snprintf
38112
38113 /* System header to define __stub macros and hopefully few prototypes,
38114     which can conflict with char _snprintf (); below.
38115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38116     <limits.h> exists even on freestanding compilers.  */
38117
38118 #ifdef __STDC__
38119 # include <limits.h>
38120 #else
38121 # include <assert.h>
38122 #endif
38123
38124 #undef _snprintf
38125
38126 /* Override any gcc2 internal prototype to avoid an error.  */
38127 #ifdef __cplusplus
38128 extern "C"
38129 {
38130 #endif
38131 /* We use char because int might match the return type of a gcc2
38132    builtin and then its argument prototype would still apply.  */
38133 char _snprintf ();
38134 /* The GNU C library defines this for functions which it implements
38135     to always fail with ENOSYS.  Some functions are actually named
38136     something starting with __ and the normal name is an alias.  */
38137 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38138 choke me
38139 #else
38140 char (*f) () = _snprintf;
38141 #endif
38142 #ifdef __cplusplus
38143 }
38144 #endif
38145
38146 int
38147 main ()
38148 {
38149 return f != _snprintf;
38150   ;
38151   return 0;
38152 }
38153 _ACEOF
38154 rm -f conftest.$ac_objext conftest$ac_exeext
38155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38156   (eval $ac_link) 2>conftest.er1
38157   ac_status=$?
38158   grep -v '^ *+' conftest.er1 >conftest.err
38159   rm -f conftest.er1
38160   cat conftest.err >&5
38161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38162   (exit $ac_status); } &&
38163          { ac_try='test -z "$ac_c_werror_flag"
38164                          || test ! -s conftest.err'
38165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38166   (eval $ac_try) 2>&5
38167   ac_status=$?
38168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38169   (exit $ac_status); }; } &&
38170          { ac_try='test -s conftest$ac_exeext'
38171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38172   (eval $ac_try) 2>&5
38173   ac_status=$?
38174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38175   (exit $ac_status); }; }; then
38176   ac_cv_func__snprintf=yes
38177 else
38178   echo "$as_me: failed program was:" >&5
38179 sed 's/^/| /' conftest.$ac_ext >&5
38180
38181 ac_cv_func__snprintf=no
38182 fi
38183 rm -f conftest.err conftest.$ac_objext \
38184       conftest$ac_exeext conftest.$ac_ext
38185 fi
38186 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38187 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38188 if test $ac_cv_func__snprintf = yes; then
38189   ac_cv_func_snprintf=yes
38190
38191 cat >>confdefs.h <<\_ACEOF
38192 #define snprintf _snprintf
38193 _ACEOF
38194
38195
38196 fi
38197
38198
38199 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38200 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38201 if test "${ac_cv_func__vsnprintf+set}" = set; then
38202   echo $ECHO_N "(cached) $ECHO_C" >&6
38203 else
38204   cat >conftest.$ac_ext <<_ACEOF
38205 /* confdefs.h.  */
38206 _ACEOF
38207 cat confdefs.h >>conftest.$ac_ext
38208 cat >>conftest.$ac_ext <<_ACEOF
38209 /* end confdefs.h.  */
38210 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38212 #define _vsnprintf innocuous__vsnprintf
38213
38214 /* System header to define __stub macros and hopefully few prototypes,
38215     which can conflict with char _vsnprintf (); below.
38216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38217     <limits.h> exists even on freestanding compilers.  */
38218
38219 #ifdef __STDC__
38220 # include <limits.h>
38221 #else
38222 # include <assert.h>
38223 #endif
38224
38225 #undef _vsnprintf
38226
38227 /* Override any gcc2 internal prototype to avoid an error.  */
38228 #ifdef __cplusplus
38229 extern "C"
38230 {
38231 #endif
38232 /* We use char because int might match the return type of a gcc2
38233    builtin and then its argument prototype would still apply.  */
38234 char _vsnprintf ();
38235 /* The GNU C library defines this for functions which it implements
38236     to always fail with ENOSYS.  Some functions are actually named
38237     something starting with __ and the normal name is an alias.  */
38238 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38239 choke me
38240 #else
38241 char (*f) () = _vsnprintf;
38242 #endif
38243 #ifdef __cplusplus
38244 }
38245 #endif
38246
38247 int
38248 main ()
38249 {
38250 return f != _vsnprintf;
38251   ;
38252   return 0;
38253 }
38254 _ACEOF
38255 rm -f conftest.$ac_objext conftest$ac_exeext
38256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38257   (eval $ac_link) 2>conftest.er1
38258   ac_status=$?
38259   grep -v '^ *+' conftest.er1 >conftest.err
38260   rm -f conftest.er1
38261   cat conftest.err >&5
38262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38263   (exit $ac_status); } &&
38264          { ac_try='test -z "$ac_c_werror_flag"
38265                          || test ! -s conftest.err'
38266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38267   (eval $ac_try) 2>&5
38268   ac_status=$?
38269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38270   (exit $ac_status); }; } &&
38271          { ac_try='test -s conftest$ac_exeext'
38272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38273   (eval $ac_try) 2>&5
38274   ac_status=$?
38275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38276   (exit $ac_status); }; }; then
38277   ac_cv_func__vsnprintf=yes
38278 else
38279   echo "$as_me: failed program was:" >&5
38280 sed 's/^/| /' conftest.$ac_ext >&5
38281
38282 ac_cv_func__vsnprintf=no
38283 fi
38284 rm -f conftest.err conftest.$ac_objext \
38285       conftest$ac_exeext conftest.$ac_ext
38286 fi
38287 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38288 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38289 if test $ac_cv_func__vsnprintf = yes; then
38290   ac_cv_func_vsnprintf=yes
38291
38292 cat >>confdefs.h <<\_ACEOF
38293 #define vsnprintf _vsnprintf
38294 _ACEOF
38295
38296
38297 fi
38298
38299
38300
38301 for ac_func in vprintf
38302 do
38303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38304 echo "$as_me:$LINENO: checking for $ac_func" >&5
38305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38306 if eval "test \"\${$as_ac_var+set}\" = set"; then
38307   echo $ECHO_N "(cached) $ECHO_C" >&6
38308 else
38309   cat >conftest.$ac_ext <<_ACEOF
38310 /* confdefs.h.  */
38311 _ACEOF
38312 cat confdefs.h >>conftest.$ac_ext
38313 cat >>conftest.$ac_ext <<_ACEOF
38314 /* end confdefs.h.  */
38315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38317 #define $ac_func innocuous_$ac_func
38318
38319 /* System header to define __stub macros and hopefully few prototypes,
38320     which can conflict with char $ac_func (); below.
38321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38322     <limits.h> exists even on freestanding compilers.  */
38323
38324 #ifdef __STDC__
38325 # include <limits.h>
38326 #else
38327 # include <assert.h>
38328 #endif
38329
38330 #undef $ac_func
38331
38332 /* Override any gcc2 internal prototype to avoid an error.  */
38333 #ifdef __cplusplus
38334 extern "C"
38335 {
38336 #endif
38337 /* We use char because int might match the return type of a gcc2
38338    builtin and then its argument prototype would still apply.  */
38339 char $ac_func ();
38340 /* The GNU C library defines this for functions which it implements
38341     to always fail with ENOSYS.  Some functions are actually named
38342     something starting with __ and the normal name is an alias.  */
38343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38344 choke me
38345 #else
38346 char (*f) () = $ac_func;
38347 #endif
38348 #ifdef __cplusplus
38349 }
38350 #endif
38351
38352 int
38353 main ()
38354 {
38355 return f != $ac_func;
38356   ;
38357   return 0;
38358 }
38359 _ACEOF
38360 rm -f conftest.$ac_objext conftest$ac_exeext
38361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38362   (eval $ac_link) 2>conftest.er1
38363   ac_status=$?
38364   grep -v '^ *+' conftest.er1 >conftest.err
38365   rm -f conftest.er1
38366   cat conftest.err >&5
38367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368   (exit $ac_status); } &&
38369          { ac_try='test -z "$ac_c_werror_flag"
38370                          || test ! -s conftest.err'
38371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38372   (eval $ac_try) 2>&5
38373   ac_status=$?
38374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38375   (exit $ac_status); }; } &&
38376          { ac_try='test -s conftest$ac_exeext'
38377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38378   (eval $ac_try) 2>&5
38379   ac_status=$?
38380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38381   (exit $ac_status); }; }; then
38382   eval "$as_ac_var=yes"
38383 else
38384   echo "$as_me: failed program was:" >&5
38385 sed 's/^/| /' conftest.$ac_ext >&5
38386
38387 eval "$as_ac_var=no"
38388 fi
38389 rm -f conftest.err conftest.$ac_objext \
38390       conftest$ac_exeext conftest.$ac_ext
38391 fi
38392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38394 if test `eval echo '${'$as_ac_var'}'` = yes; then
38395   cat >>confdefs.h <<_ACEOF
38396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38397 _ACEOF
38398
38399 echo "$as_me:$LINENO: checking for _doprnt" >&5
38400 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38401 if test "${ac_cv_func__doprnt+set}" = set; then
38402   echo $ECHO_N "(cached) $ECHO_C" >&6
38403 else
38404   cat >conftest.$ac_ext <<_ACEOF
38405 /* confdefs.h.  */
38406 _ACEOF
38407 cat confdefs.h >>conftest.$ac_ext
38408 cat >>conftest.$ac_ext <<_ACEOF
38409 /* end confdefs.h.  */
38410 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38412 #define _doprnt innocuous__doprnt
38413
38414 /* System header to define __stub macros and hopefully few prototypes,
38415     which can conflict with char _doprnt (); below.
38416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38417     <limits.h> exists even on freestanding compilers.  */
38418
38419 #ifdef __STDC__
38420 # include <limits.h>
38421 #else
38422 # include <assert.h>
38423 #endif
38424
38425 #undef _doprnt
38426
38427 /* Override any gcc2 internal prototype to avoid an error.  */
38428 #ifdef __cplusplus
38429 extern "C"
38430 {
38431 #endif
38432 /* We use char because int might match the return type of a gcc2
38433    builtin and then its argument prototype would still apply.  */
38434 char _doprnt ();
38435 /* The GNU C library defines this for functions which it implements
38436     to always fail with ENOSYS.  Some functions are actually named
38437     something starting with __ and the normal name is an alias.  */
38438 #if defined (__stub__doprnt) || defined (__stub____doprnt)
38439 choke me
38440 #else
38441 char (*f) () = _doprnt;
38442 #endif
38443 #ifdef __cplusplus
38444 }
38445 #endif
38446
38447 int
38448 main ()
38449 {
38450 return f != _doprnt;
38451   ;
38452   return 0;
38453 }
38454 _ACEOF
38455 rm -f conftest.$ac_objext conftest$ac_exeext
38456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38457   (eval $ac_link) 2>conftest.er1
38458   ac_status=$?
38459   grep -v '^ *+' conftest.er1 >conftest.err
38460   rm -f conftest.er1
38461   cat conftest.err >&5
38462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38463   (exit $ac_status); } &&
38464          { ac_try='test -z "$ac_c_werror_flag"
38465                          || test ! -s conftest.err'
38466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38467   (eval $ac_try) 2>&5
38468   ac_status=$?
38469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38470   (exit $ac_status); }; } &&
38471          { ac_try='test -s conftest$ac_exeext'
38472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38473   (eval $ac_try) 2>&5
38474   ac_status=$?
38475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38476   (exit $ac_status); }; }; then
38477   ac_cv_func__doprnt=yes
38478 else
38479   echo "$as_me: failed program was:" >&5
38480 sed 's/^/| /' conftest.$ac_ext >&5
38481
38482 ac_cv_func__doprnt=no
38483 fi
38484 rm -f conftest.err conftest.$ac_objext \
38485       conftest$ac_exeext conftest.$ac_ext
38486 fi
38487 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
38488 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
38489 if test $ac_cv_func__doprnt = yes; then
38490
38491 cat >>confdefs.h <<\_ACEOF
38492 #define HAVE_DOPRNT 1
38493 _ACEOF
38494
38495 fi
38496
38497 fi
38498 done
38499
38500
38501
38502 if test $ac_cv_func_vprintf = yes ; then
38503
38504
38505 for ac_func in snprintf vsnprintf
38506 do
38507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38508 echo "$as_me:$LINENO: checking for $ac_func" >&5
38509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38510 if eval "test \"\${$as_ac_var+set}\" = set"; then
38511   echo $ECHO_N "(cached) $ECHO_C" >&6
38512 else
38513   cat >conftest.$ac_ext <<_ACEOF
38514 /* confdefs.h.  */
38515 _ACEOF
38516 cat confdefs.h >>conftest.$ac_ext
38517 cat >>conftest.$ac_ext <<_ACEOF
38518 /* end confdefs.h.  */
38519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38521 #define $ac_func innocuous_$ac_func
38522
38523 /* System header to define __stub macros and hopefully few prototypes,
38524     which can conflict with char $ac_func (); below.
38525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38526     <limits.h> exists even on freestanding compilers.  */
38527
38528 #ifdef __STDC__
38529 # include <limits.h>
38530 #else
38531 # include <assert.h>
38532 #endif
38533
38534 #undef $ac_func
38535
38536 /* Override any gcc2 internal prototype to avoid an error.  */
38537 #ifdef __cplusplus
38538 extern "C"
38539 {
38540 #endif
38541 /* We use char because int might match the return type of a gcc2
38542    builtin and then its argument prototype would still apply.  */
38543 char $ac_func ();
38544 /* The GNU C library defines this for functions which it implements
38545     to always fail with ENOSYS.  Some functions are actually named
38546     something starting with __ and the normal name is an alias.  */
38547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38548 choke me
38549 #else
38550 char (*f) () = $ac_func;
38551 #endif
38552 #ifdef __cplusplus
38553 }
38554 #endif
38555
38556 int
38557 main ()
38558 {
38559 return f != $ac_func;
38560   ;
38561   return 0;
38562 }
38563 _ACEOF
38564 rm -f conftest.$ac_objext conftest$ac_exeext
38565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38566   (eval $ac_link) 2>conftest.er1
38567   ac_status=$?
38568   grep -v '^ *+' conftest.er1 >conftest.err
38569   rm -f conftest.er1
38570   cat conftest.err >&5
38571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38572   (exit $ac_status); } &&
38573          { ac_try='test -z "$ac_c_werror_flag"
38574                          || test ! -s conftest.err'
38575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38576   (eval $ac_try) 2>&5
38577   ac_status=$?
38578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38579   (exit $ac_status); }; } &&
38580          { ac_try='test -s conftest$ac_exeext'
38581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38582   (eval $ac_try) 2>&5
38583   ac_status=$?
38584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38585   (exit $ac_status); }; }; then
38586   eval "$as_ac_var=yes"
38587 else
38588   echo "$as_me: failed program was:" >&5
38589 sed 's/^/| /' conftest.$ac_ext >&5
38590
38591 eval "$as_ac_var=no"
38592 fi
38593 rm -f conftest.err conftest.$ac_objext \
38594       conftest$ac_exeext conftest.$ac_ext
38595 fi
38596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38598 if test `eval echo '${'$as_ac_var'}'` = yes; then
38599   cat >>confdefs.h <<_ACEOF
38600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38601 _ACEOF
38602
38603 fi
38604 done
38605
38606 fi
38607
38608
38609
38610
38611
38612
38613
38614
38615
38616
38617
38618
38619
38620
38621
38622
38623
38624
38625
38626
38627
38628
38629
38630
38631
38632
38633
38634
38635
38636
38637
38638
38639
38640
38641
38642
38643
38644
38645
38646
38647
38648
38649
38650
38651
38652
38653
38654
38655
38656
38657
38658
38659
38660
38661
38662
38663 for ac_func in \
38664         bcopy                   \
38665         closesocket             \
38666         chroot                  \
38667         endgrent                \
38668         endpwent                \
38669         fcntl                   \
38670         flock                   \
38671         fstat                   \
38672         getdtablesize           \
38673         getgrgid                \
38674         gethostname             \
38675         getpass                 \
38676         getpassphrase           \
38677         getpwuid                \
38678         getpwnam                \
38679         getspnam                \
38680         gettimeofday            \
38681         initgroups              \
38682         inet_ntoa_b             \
38683         ioctl                   \
38684         lockf                   \
38685         memcpy                  \
38686         memmove                 \
38687         memrchr                 \
38688         mkstemp                 \
38689         mktemp                  \
38690         pipe                    \
38691         read                    \
38692         recv                    \
38693         recvfrom                \
38694         setpwfile               \
38695         setgid                  \
38696         setegid                 \
38697         setsid                  \
38698         setuid                  \
38699         seteuid                 \
38700         signal                  \
38701         strdup                  \
38702         strpbrk                 \
38703         strrchr                 \
38704         strsep                  \
38705         strstr                  \
38706         strtol                  \
38707         strtoul                 \
38708         strtoq                  \
38709         strtouq                 \
38710         strtoll                 \
38711         strspn                  \
38712         sysconf                 \
38713         waitpid                 \
38714         wait4                   \
38715         write                   \
38716         send                    \
38717         sendmsg                 \
38718         sendto                  \
38719
38720 do
38721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38722 echo "$as_me:$LINENO: checking for $ac_func" >&5
38723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38724 if eval "test \"\${$as_ac_var+set}\" = set"; then
38725   echo $ECHO_N "(cached) $ECHO_C" >&6
38726 else
38727   cat >conftest.$ac_ext <<_ACEOF
38728 /* confdefs.h.  */
38729 _ACEOF
38730 cat confdefs.h >>conftest.$ac_ext
38731 cat >>conftest.$ac_ext <<_ACEOF
38732 /* end confdefs.h.  */
38733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38735 #define $ac_func innocuous_$ac_func
38736
38737 /* System header to define __stub macros and hopefully few prototypes,
38738     which can conflict with char $ac_func (); below.
38739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38740     <limits.h> exists even on freestanding compilers.  */
38741
38742 #ifdef __STDC__
38743 # include <limits.h>
38744 #else
38745 # include <assert.h>
38746 #endif
38747
38748 #undef $ac_func
38749
38750 /* Override any gcc2 internal prototype to avoid an error.  */
38751 #ifdef __cplusplus
38752 extern "C"
38753 {
38754 #endif
38755 /* We use char because int might match the return type of a gcc2
38756    builtin and then its argument prototype would still apply.  */
38757 char $ac_func ();
38758 /* The GNU C library defines this for functions which it implements
38759     to always fail with ENOSYS.  Some functions are actually named
38760     something starting with __ and the normal name is an alias.  */
38761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38762 choke me
38763 #else
38764 char (*f) () = $ac_func;
38765 #endif
38766 #ifdef __cplusplus
38767 }
38768 #endif
38769
38770 int
38771 main ()
38772 {
38773 return f != $ac_func;
38774   ;
38775   return 0;
38776 }
38777 _ACEOF
38778 rm -f conftest.$ac_objext conftest$ac_exeext
38779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38780   (eval $ac_link) 2>conftest.er1
38781   ac_status=$?
38782   grep -v '^ *+' conftest.er1 >conftest.err
38783   rm -f conftest.er1
38784   cat conftest.err >&5
38785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38786   (exit $ac_status); } &&
38787          { ac_try='test -z "$ac_c_werror_flag"
38788                          || test ! -s conftest.err'
38789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38790   (eval $ac_try) 2>&5
38791   ac_status=$?
38792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38793   (exit $ac_status); }; } &&
38794          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
38800   eval "$as_ac_var=yes"
38801 else
38802   echo "$as_me: failed program was:" >&5
38803 sed 's/^/| /' conftest.$ac_ext >&5
38804
38805 eval "$as_ac_var=no"
38806 fi
38807 rm -f conftest.err conftest.$ac_objext \
38808       conftest$ac_exeext conftest.$ac_ext
38809 fi
38810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38812 if test `eval echo '${'$as_ac_var'}'` = yes; then
38813   cat >>confdefs.h <<_ACEOF
38814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38815 _ACEOF
38816
38817 fi
38818 done
38819
38820
38821
38822
38823 for ac_func in getopt getpeereid
38824 do
38825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38826 echo "$as_me:$LINENO: checking for $ac_func" >&5
38827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38828 if eval "test \"\${$as_ac_var+set}\" = set"; then
38829   echo $ECHO_N "(cached) $ECHO_C" >&6
38830 else
38831   cat >conftest.$ac_ext <<_ACEOF
38832 /* confdefs.h.  */
38833 _ACEOF
38834 cat confdefs.h >>conftest.$ac_ext
38835 cat >>conftest.$ac_ext <<_ACEOF
38836 /* end confdefs.h.  */
38837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38839 #define $ac_func innocuous_$ac_func
38840
38841 /* System header to define __stub macros and hopefully few prototypes,
38842     which can conflict with char $ac_func (); below.
38843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38844     <limits.h> exists even on freestanding compilers.  */
38845
38846 #ifdef __STDC__
38847 # include <limits.h>
38848 #else
38849 # include <assert.h>
38850 #endif
38851
38852 #undef $ac_func
38853
38854 /* Override any gcc2 internal prototype to avoid an error.  */
38855 #ifdef __cplusplus
38856 extern "C"
38857 {
38858 #endif
38859 /* We use char because int might match the return type of a gcc2
38860    builtin and then its argument prototype would still apply.  */
38861 char $ac_func ();
38862 /* The GNU C library defines this for functions which it implements
38863     to always fail with ENOSYS.  Some functions are actually named
38864     something starting with __ and the normal name is an alias.  */
38865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38866 choke me
38867 #else
38868 char (*f) () = $ac_func;
38869 #endif
38870 #ifdef __cplusplus
38871 }
38872 #endif
38873
38874 int
38875 main ()
38876 {
38877 return f != $ac_func;
38878   ;
38879   return 0;
38880 }
38881 _ACEOF
38882 rm -f conftest.$ac_objext conftest$ac_exeext
38883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38884   (eval $ac_link) 2>conftest.er1
38885   ac_status=$?
38886   grep -v '^ *+' conftest.er1 >conftest.err
38887   rm -f conftest.er1
38888   cat conftest.err >&5
38889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38890   (exit $ac_status); } &&
38891          { ac_try='test -z "$ac_c_werror_flag"
38892                          || test ! -s conftest.err'
38893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38894   (eval $ac_try) 2>&5
38895   ac_status=$?
38896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38897   (exit $ac_status); }; } &&
38898          { ac_try='test -s conftest$ac_exeext'
38899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38900   (eval $ac_try) 2>&5
38901   ac_status=$?
38902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38903   (exit $ac_status); }; }; then
38904   eval "$as_ac_var=yes"
38905 else
38906   echo "$as_me: failed program was:" >&5
38907 sed 's/^/| /' conftest.$ac_ext >&5
38908
38909 eval "$as_ac_var=no"
38910 fi
38911 rm -f conftest.err conftest.$ac_objext \
38912       conftest$ac_exeext conftest.$ac_ext
38913 fi
38914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38916 if test `eval echo '${'$as_ac_var'}'` = yes; then
38917   cat >>confdefs.h <<_ACEOF
38918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38919 _ACEOF
38920
38921 else
38922   case $LIBOBJS in
38923     "$ac_func.$ac_objext"   | \
38924   *" $ac_func.$ac_objext"   | \
38925     "$ac_func.$ac_objext "* | \
38926   *" $ac_func.$ac_objext "* ) ;;
38927   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
38928 esac
38929
38930 fi
38931 done
38932
38933
38934
38935 if test "$ac_cv_func_getopt" != yes; then
38936         LIBSRCS="$LIBSRCS getopt.c"
38937 fi
38938
38939 if test "$ac_cv_func_getpeereid" != yes; then
38940
38941 for ac_func in getpeerucred
38942 do
38943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38944 echo "$as_me:$LINENO: checking for $ac_func" >&5
38945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38946 if eval "test \"\${$as_ac_var+set}\" = set"; then
38947   echo $ECHO_N "(cached) $ECHO_C" >&6
38948 else
38949   cat >conftest.$ac_ext <<_ACEOF
38950 /* confdefs.h.  */
38951 _ACEOF
38952 cat confdefs.h >>conftest.$ac_ext
38953 cat >>conftest.$ac_ext <<_ACEOF
38954 /* end confdefs.h.  */
38955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38957 #define $ac_func innocuous_$ac_func
38958
38959 /* System header to define __stub macros and hopefully few prototypes,
38960     which can conflict with char $ac_func (); below.
38961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38962     <limits.h> exists even on freestanding compilers.  */
38963
38964 #ifdef __STDC__
38965 # include <limits.h>
38966 #else
38967 # include <assert.h>
38968 #endif
38969
38970 #undef $ac_func
38971
38972 /* Override any gcc2 internal prototype to avoid an error.  */
38973 #ifdef __cplusplus
38974 extern "C"
38975 {
38976 #endif
38977 /* We use char because int might match the return type of a gcc2
38978    builtin and then its argument prototype would still apply.  */
38979 char $ac_func ();
38980 /* The GNU C library defines this for functions which it implements
38981     to always fail with ENOSYS.  Some functions are actually named
38982     something starting with __ and the normal name is an alias.  */
38983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38984 choke me
38985 #else
38986 char (*f) () = $ac_func;
38987 #endif
38988 #ifdef __cplusplus
38989 }
38990 #endif
38991
38992 int
38993 main ()
38994 {
38995 return f != $ac_func;
38996   ;
38997   return 0;
38998 }
38999 _ACEOF
39000 rm -f conftest.$ac_objext conftest$ac_exeext
39001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39002   (eval $ac_link) 2>conftest.er1
39003   ac_status=$?
39004   grep -v '^ *+' conftest.er1 >conftest.err
39005   rm -f conftest.er1
39006   cat conftest.err >&5
39007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008   (exit $ac_status); } &&
39009          { ac_try='test -z "$ac_c_werror_flag"
39010                          || test ! -s conftest.err'
39011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39012   (eval $ac_try) 2>&5
39013   ac_status=$?
39014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015   (exit $ac_status); }; } &&
39016          { ac_try='test -s conftest$ac_exeext'
39017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39018   (eval $ac_try) 2>&5
39019   ac_status=$?
39020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021   (exit $ac_status); }; }; then
39022   eval "$as_ac_var=yes"
39023 else
39024   echo "$as_me: failed program was:" >&5
39025 sed 's/^/| /' conftest.$ac_ext >&5
39026
39027 eval "$as_ac_var=no"
39028 fi
39029 rm -f conftest.err conftest.$ac_objext \
39030       conftest$ac_exeext conftest.$ac_ext
39031 fi
39032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39034 if test `eval echo '${'$as_ac_var'}'` = yes; then
39035   cat >>confdefs.h <<_ACEOF
39036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39037 _ACEOF
39038
39039 fi
39040 done
39041
39042         if test "$ac_cv_func_getpeerucred" != yes ; then
39043                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39044 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39045 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39046   echo $ECHO_N "(cached) $ECHO_C" >&6
39047 else
39048   cat >conftest.$ac_ext <<_ACEOF
39049 /* confdefs.h.  */
39050 _ACEOF
39051 cat confdefs.h >>conftest.$ac_ext
39052 cat >>conftest.$ac_ext <<_ACEOF
39053 /* end confdefs.h.  */
39054 $ac_includes_default
39055 #ifdef HAVE_SYS_SOCKET_H
39056 #include <sys/socket.h>
39057 #endif
39058
39059 int
39060 main ()
39061 {
39062 static struct msghdr ac_aggr;
39063 if (ac_aggr.msg_accrightslen)
39064 return 0;
39065   ;
39066   return 0;
39067 }
39068 _ACEOF
39069 rm -f conftest.$ac_objext
39070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39071   (eval $ac_compile) 2>conftest.er1
39072   ac_status=$?
39073   grep -v '^ *+' conftest.er1 >conftest.err
39074   rm -f conftest.er1
39075   cat conftest.err >&5
39076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39077   (exit $ac_status); } &&
39078          { ac_try='test -z "$ac_c_werror_flag"
39079                          || test ! -s conftest.err'
39080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39081   (eval $ac_try) 2>&5
39082   ac_status=$?
39083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39084   (exit $ac_status); }; } &&
39085          { ac_try='test -s conftest.$ac_objext'
39086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39087   (eval $ac_try) 2>&5
39088   ac_status=$?
39089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39090   (exit $ac_status); }; }; then
39091   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39092 else
39093   echo "$as_me: failed program was:" >&5
39094 sed 's/^/| /' conftest.$ac_ext >&5
39095
39096 cat >conftest.$ac_ext <<_ACEOF
39097 /* confdefs.h.  */
39098 _ACEOF
39099 cat confdefs.h >>conftest.$ac_ext
39100 cat >>conftest.$ac_ext <<_ACEOF
39101 /* end confdefs.h.  */
39102 $ac_includes_default
39103 #ifdef HAVE_SYS_SOCKET_H
39104 #include <sys/socket.h>
39105 #endif
39106
39107 int
39108 main ()
39109 {
39110 static struct msghdr ac_aggr;
39111 if (sizeof ac_aggr.msg_accrightslen)
39112 return 0;
39113   ;
39114   return 0;
39115 }
39116 _ACEOF
39117 rm -f conftest.$ac_objext
39118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39119   (eval $ac_compile) 2>conftest.er1
39120   ac_status=$?
39121   grep -v '^ *+' conftest.er1 >conftest.err
39122   rm -f conftest.er1
39123   cat conftest.err >&5
39124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39125   (exit $ac_status); } &&
39126          { ac_try='test -z "$ac_c_werror_flag"
39127                          || test ! -s conftest.err'
39128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39129   (eval $ac_try) 2>&5
39130   ac_status=$?
39131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39132   (exit $ac_status); }; } &&
39133          { ac_try='test -s conftest.$ac_objext'
39134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39135   (eval $ac_try) 2>&5
39136   ac_status=$?
39137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39138   (exit $ac_status); }; }; then
39139   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39140 else
39141   echo "$as_me: failed program was:" >&5
39142 sed 's/^/| /' conftest.$ac_ext >&5
39143
39144 ac_cv_member_struct_msghdr_msg_accrightslen=no
39145 fi
39146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39147 fi
39148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39149 fi
39150 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39151 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39152 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39153
39154 cat >>confdefs.h <<_ACEOF
39155 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39156 _ACEOF
39157
39158
39159 fi
39160
39161                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39162                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39163 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39164 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39165   echo $ECHO_N "(cached) $ECHO_C" >&6
39166 else
39167   cat >conftest.$ac_ext <<_ACEOF
39168 /* confdefs.h.  */
39169 _ACEOF
39170 cat confdefs.h >>conftest.$ac_ext
39171 cat >>conftest.$ac_ext <<_ACEOF
39172 /* end confdefs.h.  */
39173 $ac_includes_default
39174 #ifdef HAVE_SYS_SOCKET_H
39175 #include <sys/socket.h>
39176 #endif
39177
39178 int
39179 main ()
39180 {
39181 static struct msghdr ac_aggr;
39182 if (ac_aggr.msg_control)
39183 return 0;
39184   ;
39185   return 0;
39186 }
39187 _ACEOF
39188 rm -f conftest.$ac_objext
39189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39190   (eval $ac_compile) 2>conftest.er1
39191   ac_status=$?
39192   grep -v '^ *+' conftest.er1 >conftest.err
39193   rm -f conftest.er1
39194   cat conftest.err >&5
39195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39196   (exit $ac_status); } &&
39197          { ac_try='test -z "$ac_c_werror_flag"
39198                          || test ! -s conftest.err'
39199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39200   (eval $ac_try) 2>&5
39201   ac_status=$?
39202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39203   (exit $ac_status); }; } &&
39204          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
39210   ac_cv_member_struct_msghdr_msg_control=yes
39211 else
39212   echo "$as_me: failed program was:" >&5
39213 sed 's/^/| /' conftest.$ac_ext >&5
39214
39215 cat >conftest.$ac_ext <<_ACEOF
39216 /* confdefs.h.  */
39217 _ACEOF
39218 cat confdefs.h >>conftest.$ac_ext
39219 cat >>conftest.$ac_ext <<_ACEOF
39220 /* end confdefs.h.  */
39221 $ac_includes_default
39222 #ifdef HAVE_SYS_SOCKET_H
39223 #include <sys/socket.h>
39224 #endif
39225
39226 int
39227 main ()
39228 {
39229 static struct msghdr ac_aggr;
39230 if (sizeof ac_aggr.msg_control)
39231 return 0;
39232   ;
39233   return 0;
39234 }
39235 _ACEOF
39236 rm -f conftest.$ac_objext
39237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39238   (eval $ac_compile) 2>conftest.er1
39239   ac_status=$?
39240   grep -v '^ *+' conftest.er1 >conftest.err
39241   rm -f conftest.er1
39242   cat conftest.err >&5
39243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39244   (exit $ac_status); } &&
39245          { ac_try='test -z "$ac_c_werror_flag"
39246                          || test ! -s conftest.err'
39247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39248   (eval $ac_try) 2>&5
39249   ac_status=$?
39250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39251   (exit $ac_status); }; } &&
39252          { ac_try='test -s conftest.$ac_objext'
39253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39254   (eval $ac_try) 2>&5
39255   ac_status=$?
39256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39257   (exit $ac_status); }; }; then
39258   ac_cv_member_struct_msghdr_msg_control=yes
39259 else
39260   echo "$as_me: failed program was:" >&5
39261 sed 's/^/| /' conftest.$ac_ext >&5
39262
39263 ac_cv_member_struct_msghdr_msg_control=no
39264 fi
39265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39266 fi
39267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39268 fi
39269 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39270 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39271 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39272
39273 cat >>confdefs.h <<_ACEOF
39274 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39275 _ACEOF
39276
39277
39278 fi
39279
39280                 fi
39281                 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
39282 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
39283 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
39284   echo $ECHO_N "(cached) $ECHO_C" >&6
39285 else
39286   cat >conftest.$ac_ext <<_ACEOF
39287 /* confdefs.h.  */
39288 _ACEOF
39289 cat confdefs.h >>conftest.$ac_ext
39290 cat >>conftest.$ac_ext <<_ACEOF
39291 /* end confdefs.h.  */
39292 $ac_includes_default
39293 int
39294 main ()
39295 {
39296 static struct stat ac_aggr;
39297 if (ac_aggr.st_fstype)
39298 return 0;
39299   ;
39300   return 0;
39301 }
39302 _ACEOF
39303 rm -f conftest.$ac_objext
39304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39305   (eval $ac_compile) 2>conftest.er1
39306   ac_status=$?
39307   grep -v '^ *+' conftest.er1 >conftest.err
39308   rm -f conftest.er1
39309   cat conftest.err >&5
39310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39311   (exit $ac_status); } &&
39312          { ac_try='test -z "$ac_c_werror_flag"
39313                          || test ! -s conftest.err'
39314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39315   (eval $ac_try) 2>&5
39316   ac_status=$?
39317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39318   (exit $ac_status); }; } &&
39319          { ac_try='test -s conftest.$ac_objext'
39320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39321   (eval $ac_try) 2>&5
39322   ac_status=$?
39323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39324   (exit $ac_status); }; }; then
39325   ac_cv_member_struct_stat_st_fstype=yes
39326 else
39327   echo "$as_me: failed program was:" >&5
39328 sed 's/^/| /' conftest.$ac_ext >&5
39329
39330 cat >conftest.$ac_ext <<_ACEOF
39331 /* confdefs.h.  */
39332 _ACEOF
39333 cat confdefs.h >>conftest.$ac_ext
39334 cat >>conftest.$ac_ext <<_ACEOF
39335 /* end confdefs.h.  */
39336 $ac_includes_default
39337 int
39338 main ()
39339 {
39340 static struct stat ac_aggr;
39341 if (sizeof ac_aggr.st_fstype)
39342 return 0;
39343   ;
39344   return 0;
39345 }
39346 _ACEOF
39347 rm -f conftest.$ac_objext
39348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39349   (eval $ac_compile) 2>conftest.er1
39350   ac_status=$?
39351   grep -v '^ *+' conftest.er1 >conftest.err
39352   rm -f conftest.er1
39353   cat conftest.err >&5
39354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39355   (exit $ac_status); } &&
39356          { ac_try='test -z "$ac_c_werror_flag"
39357                          || test ! -s conftest.err'
39358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39359   (eval $ac_try) 2>&5
39360   ac_status=$?
39361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39362   (exit $ac_status); }; } &&
39363          { ac_try='test -s conftest.$ac_objext'
39364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39365   (eval $ac_try) 2>&5
39366   ac_status=$?
39367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39368   (exit $ac_status); }; }; then
39369   ac_cv_member_struct_stat_st_fstype=yes
39370 else
39371   echo "$as_me: failed program was:" >&5
39372 sed 's/^/| /' conftest.$ac_ext >&5
39373
39374 ac_cv_member_struct_stat_st_fstype=no
39375 fi
39376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39377 fi
39378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39379 fi
39380 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
39381 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
39382 if test $ac_cv_member_struct_stat_st_fstype = yes; then
39383
39384 cat >>confdefs.h <<_ACEOF
39385 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
39386 _ACEOF
39387
39388
39389 fi
39390 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
39391 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
39392 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
39393   echo $ECHO_N "(cached) $ECHO_C" >&6
39394 else
39395   cat >conftest.$ac_ext <<_ACEOF
39396 /* confdefs.h.  */
39397 _ACEOF
39398 cat confdefs.h >>conftest.$ac_ext
39399 cat >>conftest.$ac_ext <<_ACEOF
39400 /* end confdefs.h.  */
39401 $ac_includes_default
39402 int
39403 main ()
39404 {
39405 static struct stat ac_aggr;
39406 if (ac_aggr.st_vfstype)
39407 return 0;
39408   ;
39409   return 0;
39410 }
39411 _ACEOF
39412 rm -f conftest.$ac_objext
39413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39414   (eval $ac_compile) 2>conftest.er1
39415   ac_status=$?
39416   grep -v '^ *+' conftest.er1 >conftest.err
39417   rm -f conftest.er1
39418   cat conftest.err >&5
39419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39420   (exit $ac_status); } &&
39421          { ac_try='test -z "$ac_c_werror_flag"
39422                          || test ! -s conftest.err'
39423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39424   (eval $ac_try) 2>&5
39425   ac_status=$?
39426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39427   (exit $ac_status); }; } &&
39428          { ac_try='test -s conftest.$ac_objext'
39429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39430   (eval $ac_try) 2>&5
39431   ac_status=$?
39432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39433   (exit $ac_status); }; }; then
39434   ac_cv_member_struct_stat_st_vfstype=yes
39435 else
39436   echo "$as_me: failed program was:" >&5
39437 sed 's/^/| /' conftest.$ac_ext >&5
39438
39439 cat >conftest.$ac_ext <<_ACEOF
39440 /* confdefs.h.  */
39441 _ACEOF
39442 cat confdefs.h >>conftest.$ac_ext
39443 cat >>conftest.$ac_ext <<_ACEOF
39444 /* end confdefs.h.  */
39445 $ac_includes_default
39446 int
39447 main ()
39448 {
39449 static struct stat ac_aggr;
39450 if (sizeof ac_aggr.st_vfstype)
39451 return 0;
39452   ;
39453   return 0;
39454 }
39455 _ACEOF
39456 rm -f conftest.$ac_objext
39457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39458   (eval $ac_compile) 2>conftest.er1
39459   ac_status=$?
39460   grep -v '^ *+' conftest.er1 >conftest.err
39461   rm -f conftest.er1
39462   cat conftest.err >&5
39463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39464   (exit $ac_status); } &&
39465          { ac_try='test -z "$ac_c_werror_flag"
39466                          || test ! -s conftest.err'
39467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39468   (eval $ac_try) 2>&5
39469   ac_status=$?
39470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39471   (exit $ac_status); }; } &&
39472          { ac_try='test -s conftest.$ac_objext'
39473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39474   (eval $ac_try) 2>&5
39475   ac_status=$?
39476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39477   (exit $ac_status); }; }; then
39478   ac_cv_member_struct_stat_st_vfstype=yes
39479 else
39480   echo "$as_me: failed program was:" >&5
39481 sed 's/^/| /' conftest.$ac_ext >&5
39482
39483 ac_cv_member_struct_stat_st_vfstype=no
39484 fi
39485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39486 fi
39487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39488 fi
39489 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
39490 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
39491 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
39492
39493 cat >>confdefs.h <<_ACEOF
39494 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
39495 _ACEOF
39496
39497
39498 fi
39499
39500                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
39501                         cat >conftest.$ac_ext <<_ACEOF
39502 struct stat st; char *ptr=st.st_fstype;
39503 _ACEOF
39504 rm -f conftest.$ac_objext
39505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39506   (eval $ac_compile) 2>conftest.er1
39507   ac_status=$?
39508   grep -v '^ *+' conftest.er1 >conftest.err
39509   rm -f conftest.er1
39510   cat conftest.err >&5
39511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39512   (exit $ac_status); } &&
39513          { ac_try='test -z "$ac_c_werror_flag"
39514                          || test ! -s conftest.err'
39515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39516   (eval $ac_try) 2>&5
39517   ac_status=$?
39518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39519   (exit $ac_status); }; } &&
39520          { ac_try='test -s conftest.$ac_objext'
39521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39522   (eval $ac_try) 2>&5
39523   ac_status=$?
39524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39525   (exit $ac_status); }; }; then
39526   cat >>confdefs.h <<\_ACEOF
39527 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
39528 _ACEOF
39529
39530 else
39531   echo "$as_me: failed program was:" >&5
39532 sed 's/^/| /' conftest.$ac_ext >&5
39533
39534 cat >>confdefs.h <<\_ACEOF
39535 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
39536 _ACEOF
39537
39538 fi
39539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39540                 fi
39541         fi
39542         LIBSRCS="$LIBSRCS getpeereid.c"
39543 fi
39544
39545 if test "$ac_cv_func_snprintf" != yes ||
39546    test "$ac_cv_func_vsnprintf" != yes; then
39547         if test "$ac_cv_func_snprintf" != yes; then
39548
39549 cat >>confdefs.h <<\_ACEOF
39550 #define snprintf ber_pvt_snprintf
39551 _ACEOF
39552
39553         fi
39554         if test "$ac_cv_func_vsnprintf" != yes; then
39555
39556 cat >>confdefs.h <<\_ACEOF
39557 #define vsnprintf ber_pvt_vsnprintf
39558 _ACEOF
39559
39560         fi
39561 fi
39562
39563
39564 if test "$ol_enable_slapi" != no ; then
39565
39566 for ac_header in ltdl.h
39567 do
39568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39570   echo "$as_me:$LINENO: checking for $ac_header" >&5
39571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39573   echo $ECHO_N "(cached) $ECHO_C" >&6
39574 fi
39575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39577 else
39578   # Is the header compilable?
39579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39581 cat >conftest.$ac_ext <<_ACEOF
39582 /* confdefs.h.  */
39583 _ACEOF
39584 cat confdefs.h >>conftest.$ac_ext
39585 cat >>conftest.$ac_ext <<_ACEOF
39586 /* end confdefs.h.  */
39587 $ac_includes_default
39588 #include <$ac_header>
39589 _ACEOF
39590 rm -f conftest.$ac_objext
39591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39592   (eval $ac_compile) 2>conftest.er1
39593   ac_status=$?
39594   grep -v '^ *+' conftest.er1 >conftest.err
39595   rm -f conftest.er1
39596   cat conftest.err >&5
39597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39598   (exit $ac_status); } &&
39599          { ac_try='test -z "$ac_c_werror_flag"
39600                          || test ! -s conftest.err'
39601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39602   (eval $ac_try) 2>&5
39603   ac_status=$?
39604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39605   (exit $ac_status); }; } &&
39606          { ac_try='test -s conftest.$ac_objext'
39607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39608   (eval $ac_try) 2>&5
39609   ac_status=$?
39610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39611   (exit $ac_status); }; }; then
39612   ac_header_compiler=yes
39613 else
39614   echo "$as_me: failed program was:" >&5
39615 sed 's/^/| /' conftest.$ac_ext >&5
39616
39617 ac_header_compiler=no
39618 fi
39619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39621 echo "${ECHO_T}$ac_header_compiler" >&6
39622
39623 # Is the header present?
39624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39626 cat >conftest.$ac_ext <<_ACEOF
39627 /* confdefs.h.  */
39628 _ACEOF
39629 cat confdefs.h >>conftest.$ac_ext
39630 cat >>conftest.$ac_ext <<_ACEOF
39631 /* end confdefs.h.  */
39632 #include <$ac_header>
39633 _ACEOF
39634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39635   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39636   ac_status=$?
39637   grep -v '^ *+' conftest.er1 >conftest.err
39638   rm -f conftest.er1
39639   cat conftest.err >&5
39640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39641   (exit $ac_status); } >/dev/null; then
39642   if test -s conftest.err; then
39643     ac_cpp_err=$ac_c_preproc_warn_flag
39644     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39645   else
39646     ac_cpp_err=
39647   fi
39648 else
39649   ac_cpp_err=yes
39650 fi
39651 if test -z "$ac_cpp_err"; then
39652   ac_header_preproc=yes
39653 else
39654   echo "$as_me: failed program was:" >&5
39655 sed 's/^/| /' conftest.$ac_ext >&5
39656
39657   ac_header_preproc=no
39658 fi
39659 rm -f conftest.err conftest.$ac_ext
39660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39661 echo "${ECHO_T}$ac_header_preproc" >&6
39662
39663 # So?  What about this header?
39664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39665   yes:no: )
39666     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39670     ac_header_preproc=yes
39671     ;;
39672   no:yes:* )
39673     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39675     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39676 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39677     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39679     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39680 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39683     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39685     (
39686       cat <<\_ASBOX
39687 ## --------------------------------------------- ##
39688 ## Report this to <http://www.openldap.org/its/> ##
39689 ## --------------------------------------------- ##
39690 _ASBOX
39691     ) |
39692       sed "s/^/$as_me: WARNING:     /" >&2
39693     ;;
39694 esac
39695 echo "$as_me:$LINENO: checking for $ac_header" >&5
39696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39698   echo $ECHO_N "(cached) $ECHO_C" >&6
39699 else
39700   eval "$as_ac_Header=\$ac_header_preproc"
39701 fi
39702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39704
39705 fi
39706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39707   cat >>confdefs.h <<_ACEOF
39708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39709 _ACEOF
39710
39711 fi
39712
39713 done
39714
39715
39716         if test $ac_cv_header_ltdl_h != yes ; then
39717                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
39718 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
39719    { (exit 1); exit 1; }; }
39720         fi
39721         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
39722 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
39723 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
39724   echo $ECHO_N "(cached) $ECHO_C" >&6
39725 else
39726   ac_check_lib_save_LIBS=$LIBS
39727 LIBS="-lltdl  $LIBS"
39728 cat >conftest.$ac_ext <<_ACEOF
39729 /* confdefs.h.  */
39730 _ACEOF
39731 cat confdefs.h >>conftest.$ac_ext
39732 cat >>conftest.$ac_ext <<_ACEOF
39733 /* end confdefs.h.  */
39734
39735 /* Override any gcc2 internal prototype to avoid an error.  */
39736 #ifdef __cplusplus
39737 extern "C"
39738 #endif
39739 /* We use char because int might match the return type of a gcc2
39740    builtin and then its argument prototype would still apply.  */
39741 char lt_dlinit ();
39742 int
39743 main ()
39744 {
39745 lt_dlinit ();
39746   ;
39747   return 0;
39748 }
39749 _ACEOF
39750 rm -f conftest.$ac_objext conftest$ac_exeext
39751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39752   (eval $ac_link) 2>conftest.er1
39753   ac_status=$?
39754   grep -v '^ *+' conftest.er1 >conftest.err
39755   rm -f conftest.er1
39756   cat conftest.err >&5
39757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39758   (exit $ac_status); } &&
39759          { ac_try='test -z "$ac_c_werror_flag"
39760                          || test ! -s conftest.err'
39761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39762   (eval $ac_try) 2>&5
39763   ac_status=$?
39764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39765   (exit $ac_status); }; } &&
39766          { ac_try='test -s conftest$ac_exeext'
39767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39768   (eval $ac_try) 2>&5
39769   ac_status=$?
39770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39771   (exit $ac_status); }; }; then
39772   ac_cv_lib_ltdl_lt_dlinit=yes
39773 else
39774   echo "$as_me: failed program was:" >&5
39775 sed 's/^/| /' conftest.$ac_ext >&5
39776
39777 ac_cv_lib_ltdl_lt_dlinit=no
39778 fi
39779 rm -f conftest.err conftest.$ac_objext \
39780       conftest$ac_exeext conftest.$ac_ext
39781 LIBS=$ac_check_lib_save_LIBS
39782 fi
39783 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
39784 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
39785 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
39786
39787                 SLAPI_LIBS=-lltdl
39788                 LIBSLAPI=libslapi.a
39789                 LIBSLAPITOOLS=../libslapi.a
39790
39791 cat >>confdefs.h <<\_ACEOF
39792 #define HAVE_LIBLTDL 1
39793 _ACEOF
39794
39795
39796 else
39797   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
39798 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
39799    { (exit 1); exit 1; }; }
39800 fi
39801
39802
39803
39804 cat >>confdefs.h <<\_ACEOF
39805 #define LDAP_SLAPI 1
39806 _ACEOF
39807
39808 fi
39809
39810 if test "$ol_enable_debug" != no ; then
39811         if test "$ol_enable_debug" = traditional; then
39812
39813 cat >>confdefs.h <<\_ACEOF
39814 #define OLD_DEBUG 1
39815 _ACEOF
39816
39817         fi
39818
39819 cat >>confdefs.h <<\_ACEOF
39820 #define LDAP_DEBUG 1
39821 _ACEOF
39822
39823 fi
39824 if test "$ol_enable_syslog" = yes ; then
39825
39826 cat >>confdefs.h <<\_ACEOF
39827 #define LDAP_SYSLOG 1
39828 _ACEOF
39829
39830 fi
39831 if test "$ol_enable_proctitle" != no ; then
39832
39833 cat >>confdefs.h <<\_ACEOF
39834 #define LDAP_PROCTITLE 1
39835 _ACEOF
39836
39837 fi
39838 if test "$ol_enable_referrals" != no ; then
39839
39840 cat >>confdefs.h <<\_ACEOF
39841 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
39842 _ACEOF
39843
39844 fi
39845 if test "$ol_enable_local" != no; then
39846
39847 cat >>confdefs.h <<\_ACEOF
39848 #define LDAP_PF_LOCAL 1
39849 _ACEOF
39850
39851 fi
39852 if test "$ol_link_ipv6" != no; then
39853
39854 cat >>confdefs.h <<\_ACEOF
39855 #define LDAP_PF_INET6 1
39856 _ACEOF
39857
39858 fi
39859 if test "$ol_enable_cleartext" != no ; then
39860
39861 cat >>confdefs.h <<\_ACEOF
39862 #define SLAPD_CLEARTEXT 1
39863 _ACEOF
39864
39865 fi
39866 if test "$ol_enable_crypt" != no ; then
39867
39868 cat >>confdefs.h <<\_ACEOF
39869 #define SLAPD_CRYPT 1
39870 _ACEOF
39871
39872 fi
39873 if test "$ol_link_spasswd" != no ; then
39874
39875 cat >>confdefs.h <<\_ACEOF
39876 #define SLAPD_SPASSWD 1
39877 _ACEOF
39878
39879 fi
39880 if test "$ol_enable_rlookups" != no ; then
39881
39882 cat >>confdefs.h <<\_ACEOF
39883 #define SLAPD_RLOOKUPS 1
39884 _ACEOF
39885
39886 fi
39887 if test "$ol_enable_aci" != no ; then
39888         if test $ol_enable_dynacl = no ; then
39889                 ol_enable_dynacl=yes
39890                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
39891 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
39892         fi
39893         if test "$ol_enable_aci" = mod ; then
39894                 MFLAG=SLAPD_MOD_DYNAMIC
39895                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
39896 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
39897    { (exit 1); exit 1; }; }
39898         else
39899                 MFLAG=SLAPD_MOD_STATIC
39900         fi
39901         WITH_ACI_ENABLED=$ol_enable_aci
39902
39903 cat >>confdefs.h <<_ACEOF
39904 #define SLAPD_ACI_ENABLED $MFLAG
39905 _ACEOF
39906
39907 else
39908         WITH_ACI_ENABLED=no
39909 fi
39910 if test "$ol_enable_dynacl" != no ; then
39911
39912 cat >>confdefs.h <<\_ACEOF
39913 #define SLAP_DYNACL 1
39914 _ACEOF
39915
39916 fi
39917
39918 if test "$ol_link_modules" != no ; then
39919
39920 cat >>confdefs.h <<\_ACEOF
39921 #define SLAPD_MODULES 1
39922 _ACEOF
39923
39924         BUILD_SLAPD=yes
39925         SLAPD_MODULES_LDFLAGS="-dlopen self"
39926 fi
39927
39928
39929 cat >>confdefs.h <<\_ACEOF
39930 #define SLAPD_MOD_STATIC 1
39931 _ACEOF
39932
39933
39934 cat >>confdefs.h <<\_ACEOF
39935 #define SLAPD_MOD_DYNAMIC 2
39936 _ACEOF
39937
39938
39939 if test "$ol_enable_monitor" != no ; then
39940         BUILD_SLAPD=yes
39941         BUILD_MONITOR=$ol_enable_monitor
39942         if test "$ol_enable_monitor" = mod ; then
39943                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
39944                 MFLAG=SLAPD_MOD_DYNAMIC
39945         else
39946                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
39947                 MFLAG=SLAPD_MOD_STATIC
39948         fi
39949
39950 cat >>confdefs.h <<_ACEOF
39951 #define SLAPD_MONITOR $MFLAG
39952 _ACEOF
39953
39954 fi
39955
39956 if test "$ol_enable_bdb" != no ; then
39957         BUILD_SLAPD=yes
39958         BUILD_BDB=$ol_enable_bdb
39959         if test "$ol_enable_bdb" = mod ; then
39960                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
39961                 MFLAG=SLAPD_MOD_DYNAMIC
39962         else
39963                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
39964                 MFLAG=SLAPD_MOD_STATIC
39965         fi
39966
39967 cat >>confdefs.h <<_ACEOF
39968 #define SLAPD_BDB $MFLAG
39969 _ACEOF
39970
39971 fi
39972
39973 if test "$ol_enable_dnssrv" != no ; then
39974         BUILD_SLAPD=yes
39975         BUILD_DNSSRV=$ol_enable_dnssrv
39976         if test "$ol_enable_dnssrv" = mod ; then
39977                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
39978                 MFLAG=SLAPD_MOD_DYNAMIC
39979         else
39980                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
39981                 MFLAG=SLAPD_MOD_STATIC
39982         fi
39983
39984 cat >>confdefs.h <<_ACEOF
39985 #define SLAPD_DNSSRV $MFLAG
39986 _ACEOF
39987
39988 fi
39989
39990 if test "$ol_enable_hdb" != no ; then
39991         BUILD_SLAPD=yes
39992         BUILD_HDB=$ol_enable_hdb
39993         if test "$ol_enable_hdb" = mod ; then
39994                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
39995                 MFLAG=SLAPD_MOD_DYNAMIC
39996         else
39997                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
39998                 MFLAG=SLAPD_MOD_STATIC
39999         fi
40000
40001 cat >>confdefs.h <<_ACEOF
40002 #define SLAPD_HDB $MFLAG
40003 _ACEOF
40004
40005 fi
40006
40007 if test "$ol_enable_ldap" != no ; then
40008         BUILD_SLAPD=yes
40009         BUILD_LDAP=$ol_enable_ldap
40010         if test "$ol_enable_ldap" = mod ; then
40011                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
40012                 MFLAG=SLAPD_MOD_DYNAMIC
40013         else
40014                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
40015                 MFLAG=SLAPD_MOD_STATIC
40016         fi
40017
40018 cat >>confdefs.h <<_ACEOF
40019 #define SLAPD_LDAP $MFLAG
40020 _ACEOF
40021
40022 fi
40023
40024 if test "$ol_enable_meta" != no ; then
40025         BUILD_SLAPD=yes
40026         BUILD_META=$ol_enable_meta
40027         BUILD_REWRITE=yes
40028         if test "$ol_enable_meta" = mod ; then
40029                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40030                 MFLAG=SLAPD_MOD_DYNAMIC
40031         else
40032                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40033                 MFLAG=SLAPD_MOD_STATIC
40034         fi
40035
40036 cat >>confdefs.h <<_ACEOF
40037 #define SLAPD_META $MFLAG
40038 _ACEOF
40039
40040 fi
40041
40042 if test "$ol_enable_null" != no ; then
40043         BUILD_SLAPD=yes
40044         BUILD_NULL=$ol_enable_null
40045         if test "$ol_enable_null" = mod ; then
40046                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40047                 MFLAG=SLAPD_MOD_DYNAMIC
40048         else
40049                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40050                 MFLAG=SLAPD_MOD_STATIC
40051         fi
40052
40053 cat >>confdefs.h <<_ACEOF
40054 #define SLAPD_NULL $MFLAG
40055 _ACEOF
40056
40057 fi
40058
40059 if test "$ol_enable_passwd" != no ; then
40060         BUILD_SLAPD=yes
40061         BUILD_PASSWD=$ol_enable_passwd
40062         if test "$ol_enable_passwd" = mod ; then
40063                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40064                 MFLAG=SLAPD_MOD_DYNAMIC
40065         else
40066                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40067                 MFLAG=SLAPD_MOD_STATIC
40068         fi
40069
40070 cat >>confdefs.h <<_ACEOF
40071 #define SLAPD_PASSWD $MFLAG
40072 _ACEOF
40073
40074 fi
40075
40076 if test "$ol_link_perl" != no ; then
40077         BUILD_SLAPD=yes
40078         BUILD_PERL=$ol_enable_perl
40079         if test "$ol_enable_perl" = mod ; then
40080                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40081                 MFLAG=SLAPD_MOD_DYNAMIC
40082         else
40083                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40084                 MFLAG=SLAPD_MOD_STATIC
40085         fi
40086
40087 cat >>confdefs.h <<_ACEOF
40088 #define SLAPD_PERL $MFLAG
40089 _ACEOF
40090
40091 fi
40092
40093 if test "$ol_enable_relay" != no ; then
40094         BUILD_SLAPD=yes
40095         BUILD_RELAY=$ol_enable_relay
40096         if test "$ol_enable_relay" = mod ; then
40097                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40098                 MFLAG=SLAPD_MOD_DYNAMIC
40099         else
40100                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40101                 MFLAG=SLAPD_MOD_STATIC
40102         fi
40103
40104 cat >>confdefs.h <<_ACEOF
40105 #define SLAPD_RELAY $MFLAG
40106 _ACEOF
40107
40108 fi
40109
40110 if test "$ol_enable_shell" != no ; then
40111         if test "$ol_link_threads" != no ; then
40112                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40113 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40114         fi
40115         BUILD_SLAPD=yes
40116         BUILD_SHELL=$ol_enable_shell
40117         if test "$ol_enable_shell" = mod ; then
40118                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40119                 MFLAG=SLAPD_MOD_DYNAMIC
40120         else
40121                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40122                 MFLAG=SLAPD_MOD_STATIC
40123         fi
40124
40125 cat >>confdefs.h <<_ACEOF
40126 #define SLAPD_SHELL $MFLAG
40127 _ACEOF
40128
40129 fi
40130
40131 if test "$ol_link_sql" != no ; then
40132         BUILD_SLAPD=yes
40133         BUILD_SQL=$ol_enable_sql
40134         if test "$ol_enable_sql" = mod; then
40135                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40136                 MFLAG=SLAPD_MOD_DYNAMIC
40137         else
40138                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40139                 MFLAG=SLAPD_MOD_STATIC
40140         fi
40141
40142 cat >>confdefs.h <<_ACEOF
40143 #define SLAPD_SQL $MFLAG
40144 _ACEOF
40145
40146 fi
40147
40148 if test "$ol_enable_accesslog" != no ; then
40149         BUILD_ACCESSLOG=$ol_enable_accesslog
40150         if test "$ol_enable_accesslog" = mod ; then
40151                 MFLAG=SLAPD_MOD_DYNAMIC
40152                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40153         else
40154                 MFLAG=SLAPD_MOD_STATIC
40155                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40156         fi
40157
40158 cat >>confdefs.h <<_ACEOF
40159 #define SLAPD_OVER_ACCESSLOG $MFLAG
40160 _ACEOF
40161
40162 fi
40163
40164 if test "$ol_enable_auditlog" != no ; then
40165         BUILD_AUDITLOG=$ol_enable_auditlog
40166         if test "$ol_enable_auditlog" = mod ; then
40167                 MFLAG=SLAPD_MOD_DYNAMIC
40168                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40169         else
40170                 MFLAG=SLAPD_MOD_STATIC
40171                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40172         fi
40173
40174 cat >>confdefs.h <<_ACEOF
40175 #define SLAPD_OVER_AUDITLOG $MFLAG
40176 _ACEOF
40177
40178 fi
40179
40180 if test "$ol_enable_constraint" != no ; then
40181         BUILD_CONSTRAINT=$ol_enable_constraint
40182         if test "$ol_enable_constraint" = mod ; then
40183                 MFLAG=SLAPD_MOD_DYNAMIC
40184                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
40185         else
40186                 MFLAG=SLAPD_MOD_STATIC
40187                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
40188         fi
40189
40190 cat >>confdefs.h <<_ACEOF
40191 #define SLAPD_OVER_CONSTRAINT $MFLAG
40192 _ACEOF
40193
40194 fi
40195
40196 if test "$ol_enable_dds" != no ; then
40197         BUILD_DDS=$ol_enable_dds
40198         if test "$ol_enable_dds" = mod ; then
40199                 MFLAG=SLAPD_MOD_DYNAMIC
40200                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40201         else
40202                 MFLAG=SLAPD_MOD_STATIC
40203                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40204         fi
40205
40206 cat >>confdefs.h <<_ACEOF
40207 #define SLAPD_OVER_DDS $MFLAG
40208 _ACEOF
40209
40210 fi
40211
40212 if test "$ol_enable_dyngroup" != no ; then
40213         BUILD_DYNGROUP=$ol_enable_dyngroup
40214         if test "$ol_enable_dyngroup" = mod ; then
40215                 MFLAG=SLAPD_MOD_DYNAMIC
40216                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40217         else
40218                 MFLAG=SLAPD_MOD_STATIC
40219                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40220         fi
40221
40222 cat >>confdefs.h <<_ACEOF
40223 #define SLAPD_OVER_DYNGROUP $MFLAG
40224 _ACEOF
40225
40226 fi
40227
40228 if test "$ol_enable_dynlist" != no ; then
40229         BUILD_DYNLIST=$ol_enable_dynlist
40230         if test "$ol_enable_dynlist" = mod ; then
40231                 MFLAG=SLAPD_MOD_DYNAMIC
40232                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40233         else
40234                 MFLAG=SLAPD_MOD_STATIC
40235                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40236         fi
40237
40238 cat >>confdefs.h <<_ACEOF
40239 #define SLAPD_OVER_DYNLIST $MFLAG
40240 _ACEOF
40241
40242 fi
40243
40244 if test "$ol_enable_ppolicy" != no ; then
40245         BUILD_PPOLICY=$ol_enable_ppolicy
40246         if test "$ol_enable_ppolicy" = mod ; then
40247                 MFLAG=SLAPD_MOD_DYNAMIC
40248                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40249         else
40250                 MFLAG=SLAPD_MOD_STATIC
40251                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40252         fi
40253
40254 cat >>confdefs.h <<_ACEOF
40255 #define SLAPD_OVER_PPOLICY $MFLAG
40256 _ACEOF
40257
40258 fi
40259
40260 if test "$ol_enable_proxycache" != no ; then
40261         BUILD_PROXYCACHE=$ol_enable_proxycache
40262         if test "$ol_enable_proxycache" = mod ; then
40263                 MFLAG=SLAPD_MOD_DYNAMIC
40264                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40265         else
40266                 MFLAG=SLAPD_MOD_STATIC
40267                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40268         fi
40269
40270 cat >>confdefs.h <<_ACEOF
40271 #define SLAPD_OVER_PROXYCACHE $MFLAG
40272 _ACEOF
40273
40274 fi
40275
40276 if test "$ol_enable_refint" != no ; then
40277         BUILD_REFINT=$ol_enable_refint
40278         if test "$ol_enable_refint" = mod ; then
40279                 MFLAG=SLAPD_MOD_DYNAMIC
40280                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40281         else
40282                 MFLAG=SLAPD_MOD_STATIC
40283                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40284         fi
40285
40286 cat >>confdefs.h <<_ACEOF
40287 #define SLAPD_OVER_REFINT $MFLAG
40288 _ACEOF
40289
40290 fi
40291
40292 if test "$ol_enable_retcode" != no ; then
40293         BUILD_RETCODE=$ol_enable_retcode
40294         if test "$ol_enable_retcode" = mod ; then
40295                 MFLAG=SLAPD_MOD_DYNAMIC
40296                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40297         else
40298                 MFLAG=SLAPD_MOD_STATIC
40299                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40300         fi
40301
40302 cat >>confdefs.h <<_ACEOF
40303 #define SLAPD_OVER_RETCODE $MFLAG
40304 _ACEOF
40305
40306 fi
40307
40308 if test "$ol_enable_rwm" != no ; then
40309         BUILD_REWRITE=yes
40310         BUILD_RWM=$ol_enable_rwm
40311         if test "$ol_enable_rwm" = mod ; then
40312                 MFLAG=SLAPD_MOD_DYNAMIC
40313                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40314         else
40315                 MFLAG=SLAPD_MOD_STATIC
40316                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40317         fi
40318
40319 cat >>confdefs.h <<_ACEOF
40320 #define SLAPD_OVER_RWM $MFLAG
40321 _ACEOF
40322
40323 fi
40324
40325 if test "$ol_enable_seqmod" != no ; then
40326         BUILD_SEQMOD=$ol_enable_seqmod
40327         if test "$ol_enable_seqmod" = mod ; then
40328                 MFLAG=SLAPD_MOD_DYNAMIC
40329                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40330         else
40331                 MFLAG=SLAPD_MOD_STATIC
40332                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40333         fi
40334
40335 cat >>confdefs.h <<_ACEOF
40336 #define SLAPD_OVER_SEQMOD $MFLAG
40337 _ACEOF
40338
40339 fi
40340
40341 if test "$ol_enable_syncprov" != no ; then
40342         BUILD_SYNCPROV=$ol_enable_syncprov
40343         if test "$ol_enable_syncprov" = mod ; then
40344                 MFLAG=SLAPD_MOD_DYNAMIC
40345                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40346         else
40347                 MFLAG=SLAPD_MOD_STATIC
40348                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40349         fi
40350
40351 cat >>confdefs.h <<_ACEOF
40352 #define SLAPD_OVER_SYNCPROV $MFLAG
40353 _ACEOF
40354
40355 fi
40356
40357 if test "$ol_enable_translucent" != no ; then
40358         BUILD_TRANSLUCENT=$ol_enable_translucent
40359         if test "$ol_enable_translucent" = mod ; then
40360                 MFLAG=SLAPD_MOD_DYNAMIC
40361                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40362         else
40363                 MFLAG=SLAPD_MOD_STATIC
40364                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40365         fi
40366
40367 cat >>confdefs.h <<_ACEOF
40368 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40369 _ACEOF
40370
40371 fi
40372
40373 if test "$ol_enable_unique" != no ; then
40374         BUILD_UNIQUE=$ol_enable_unique
40375         if test "$ol_enable_unique" = mod ; then
40376                 MFLAG=SLAPD_MOD_DYNAMIC
40377                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40378         else
40379                 MFLAG=SLAPD_MOD_STATIC
40380                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40381         fi
40382
40383 cat >>confdefs.h <<_ACEOF
40384 #define SLAPD_OVER_UNIQUE $MFLAG
40385 _ACEOF
40386
40387 fi
40388
40389 if test "$ol_enable_valsort" != no ; then
40390         BUILD_VALSORT=$ol_enable_valsort
40391         if test "$ol_enable_valsort" = mod ; then
40392                 MFLAG=SLAPD_MOD_DYNAMIC
40393                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40394         else
40395                 MFLAG=SLAPD_MOD_STATIC
40396                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40397         fi
40398
40399 cat >>confdefs.h <<_ACEOF
40400 #define SLAPD_OVER_VALSORT $MFLAG
40401 _ACEOF
40402
40403 fi
40404
40405 if test "$ol_enable_rewrite" != no ; then
40406
40407 cat >>confdefs.h <<\_ACEOF
40408 #define ENABLE_REWRITE 1
40409 _ACEOF
40410
40411         BUILD_REWRITE=yes
40412 fi
40413
40414 if test "$ol_enable_slapi" != no ; then
40415
40416 cat >>confdefs.h <<\_ACEOF
40417 #define ENABLE_SLAPI 1
40418 _ACEOF
40419
40420         BUILD_SLAPI=yes
40421         SLAPD_SLAPI_DEPEND=libslapi.a
40422 fi
40423
40424
40425
40426 if test "$ac_cv_mingw32" = yes ; then
40427         PLAT=NT
40428         SLAPD_MODULES_LDFLAGS=
40429 else
40430         PLAT=UNIX
40431 fi
40432
40433
40434
40435
40436
40437
40438
40439
40440
40441
40442
40443
40444
40445
40446
40447
40448
40449
40450
40451
40452
40453
40454
40455
40456
40457
40458
40459
40460
40461
40462
40463
40464
40465
40466
40467
40468
40469
40470
40471
40472
40473
40474
40475
40476
40477
40478
40479
40480
40481
40482
40483
40484
40485
40486
40487
40488
40489
40490
40491
40492
40493
40494
40495
40496
40497
40498
40499
40500
40501
40502
40503
40504
40505
40506
40507
40508
40509
40510
40511
40512
40513
40514
40515 # Check whether --with-xxinstall or --without-xxinstall was given.
40516 if test "${with_xxinstall+set}" = set; then
40517   withval="$with_xxinstall"
40518
40519 fi;
40520
40521
40522                                                                                                                                                                                                                                                                                                                                                                                             ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
40523
40524
40525           ac_config_commands="$ac_config_commands default"
40526
40527
40528
40529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40530 # Let make expand exec_prefix.
40531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40532
40533 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40534 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40535 # trailing colons and then remove the whole line if VPATH becomes empty
40536 # (actually we leave an empty line to preserve line numbers).
40537 if test "x$srcdir" = x.; then
40538   ac_vpsub='/^[  ]*VPATH[        ]*=/{
40539 s/:*\$(srcdir):*/:/;
40540 s/:*\${srcdir}:*/:/;
40541 s/:*@srcdir@:*/:/;
40542 s/^\([^=]*=[     ]*\):*/\1/;
40543 s/:*$//;
40544 s/^[^=]*=[       ]*$//;
40545 }'
40546 fi
40547
40548 DEFS=-DHAVE_CONFIG_H
40549
40550 ac_libobjs=
40551 ac_ltlibobjs=
40552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40553   # 1. Remove the extension, and $U if already installed.
40554   ac_i=`echo "$ac_i" |
40555          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40556   # 2. Add them.
40557   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40558   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40559 done
40560 LIBOBJS=$ac_libobjs
40561
40562 LTLIBOBJS=$ac_ltlibobjs
40563
40564
40565 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40566   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40567 Usually this means the macro was only invoked conditionally." >&5
40568 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40569 Usually this means the macro was only invoked conditionally." >&2;}
40570    { (exit 1); exit 1; }; }
40571 fi
40572 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40573   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40574 Usually this means the macro was only invoked conditionally." >&5
40575 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40576 Usually this means the macro was only invoked conditionally." >&2;}
40577    { (exit 1); exit 1; }; }
40578 fi
40579 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40580   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40581 Usually this means the macro was only invoked conditionally." >&5
40582 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40583 Usually this means the macro was only invoked conditionally." >&2;}
40584    { (exit 1); exit 1; }; }
40585 fi
40586
40587 : ${CONFIG_STATUS=./config.status}
40588 ac_clean_files_save=$ac_clean_files
40589 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40590 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40591 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40592 cat >$CONFIG_STATUS <<_ACEOF
40593 #! $SHELL
40594 # Generated by $as_me.
40595 # Run this file to recreate the current configuration.
40596 # Compiler output produced by configure, useful for debugging
40597 # configure, is in config.log if it exists.
40598
40599 debug=false
40600 ac_cs_recheck=false
40601 ac_cs_silent=false
40602 SHELL=\${CONFIG_SHELL-$SHELL}
40603 _ACEOF
40604
40605 cat >>$CONFIG_STATUS <<\_ACEOF
40606 ## --------------------- ##
40607 ## M4sh Initialization.  ##
40608 ## --------------------- ##
40609
40610 # Be Bourne compatible
40611 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40612   emulate sh
40613   NULLCMD=:
40614   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40615   # is contrary to our usage.  Disable this feature.
40616   alias -g '${1+"$@"}'='"$@"'
40617 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40618   set -o posix
40619 fi
40620 DUALCASE=1; export DUALCASE # for MKS sh
40621
40622 # Support unset when possible.
40623 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40624   as_unset=unset
40625 else
40626   as_unset=false
40627 fi
40628
40629
40630 # Work around bugs in pre-3.0 UWIN ksh.
40631 $as_unset ENV MAIL MAILPATH
40632 PS1='$ '
40633 PS2='> '
40634 PS4='+ '
40635
40636 # NLS nuisances.
40637 for as_var in \
40638   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40639   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40640   LC_TELEPHONE LC_TIME
40641 do
40642   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40643     eval $as_var=C; export $as_var
40644   else
40645     $as_unset $as_var
40646   fi
40647 done
40648
40649 # Required to use basename.
40650 if expr a : '\(a\)' >/dev/null 2>&1; then
40651   as_expr=expr
40652 else
40653   as_expr=false
40654 fi
40655
40656 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40657   as_basename=basename
40658 else
40659   as_basename=false
40660 fi
40661
40662
40663 # Name of the executable.
40664 as_me=`$as_basename "$0" ||
40665 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40666          X"$0" : 'X\(//\)$' \| \
40667          X"$0" : 'X\(/\)$' \| \
40668          .     : '\(.\)' 2>/dev/null ||
40669 echo X/"$0" |
40670     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40671           /^X\/\(\/\/\)$/{ s//\1/; q; }
40672           /^X\/\(\/\).*/{ s//\1/; q; }
40673           s/.*/./; q'`
40674
40675
40676 # PATH needs CR, and LINENO needs CR and PATH.
40677 # Avoid depending upon Character Ranges.
40678 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40679 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40680 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40681 as_cr_digits='0123456789'
40682 as_cr_alnum=$as_cr_Letters$as_cr_digits
40683
40684 # The user is always right.
40685 if test "${PATH_SEPARATOR+set}" != set; then
40686   echo "#! /bin/sh" >conf$$.sh
40687   echo  "exit 0"   >>conf$$.sh
40688   chmod +x conf$$.sh
40689   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40690     PATH_SEPARATOR=';'
40691   else
40692     PATH_SEPARATOR=:
40693   fi
40694   rm -f conf$$.sh
40695 fi
40696
40697
40698   as_lineno_1=$LINENO
40699   as_lineno_2=$LINENO
40700   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40701   test "x$as_lineno_1" != "x$as_lineno_2" &&
40702   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
40703   # Find who we are.  Look in the path if we contain no path at all
40704   # relative or not.
40705   case $0 in
40706     *[\\/]* ) as_myself=$0 ;;
40707     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40708 for as_dir in $PATH
40709 do
40710   IFS=$as_save_IFS
40711   test -z "$as_dir" && as_dir=.
40712   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40713 done
40714
40715        ;;
40716   esac
40717   # We did not find ourselves, most probably we were run as `sh COMMAND'
40718   # in which case we are not to be found in the path.
40719   if test "x$as_myself" = x; then
40720     as_myself=$0
40721   fi
40722   if test ! -f "$as_myself"; then
40723     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
40724 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
40725    { (exit 1); exit 1; }; }
40726   fi
40727   case $CONFIG_SHELL in
40728   '')
40729     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40730 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
40731 do
40732   IFS=$as_save_IFS
40733   test -z "$as_dir" && as_dir=.
40734   for as_base in sh bash ksh sh5; do
40735          case $as_dir in
40736          /*)
40737            if ("$as_dir/$as_base" -c '
40738   as_lineno_1=$LINENO
40739   as_lineno_2=$LINENO
40740   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40741   test "x$as_lineno_1" != "x$as_lineno_2" &&
40742   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
40743              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40744              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40745              CONFIG_SHELL=$as_dir/$as_base
40746              export CONFIG_SHELL
40747              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40748            fi;;
40749          esac
40750        done
40751 done
40752 ;;
40753   esac
40754
40755   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40756   # uniformly replaced by the line number.  The first 'sed' inserts a
40757   # line-number line before each line; the second 'sed' does the real
40758   # work.  The second script uses 'N' to pair each line-number line
40759   # with the numbered line, and appends trailing '-' during
40760   # substitution so that $LINENO is not a special case at line end.
40761   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40762   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
40763   sed '=' <$as_myself |
40764     sed '
40765       N
40766       s,$,-,
40767       : loop
40768       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40769       t loop
40770       s,-$,,
40771       s,^['$as_cr_digits']*\n,,
40772     ' >$as_me.lineno &&
40773   chmod +x $as_me.lineno ||
40774     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40775 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40776    { (exit 1); exit 1; }; }
40777
40778   # Don't try to exec as it changes $[0], causing all sort of problems
40779   # (the dirname of $[0] is not the place where we might find the
40780   # original and so on.  Autoconf is especially sensible to this).
40781   . ./$as_me.lineno
40782   # Exit status is that of the last command.
40783   exit
40784 }
40785
40786
40787 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40788   *c*,-n*) ECHO_N= ECHO_C='
40789 ' ECHO_T='      ' ;;
40790   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
40791   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
40792 esac
40793
40794 if expr a : '\(a\)' >/dev/null 2>&1; then
40795   as_expr=expr
40796 else
40797   as_expr=false
40798 fi
40799
40800 rm -f conf$$ conf$$.exe conf$$.file
40801 echo >conf$$.file
40802 if ln -s conf$$.file conf$$ 2>/dev/null; then
40803   # We could just check for DJGPP; but this test a) works b) is more generic
40804   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40805   if test -f conf$$.exe; then
40806     # Don't use ln at all; we don't have any links
40807     as_ln_s='cp -p'
40808   else
40809     as_ln_s='ln -s'
40810   fi
40811 elif ln conf$$.file conf$$ 2>/dev/null; then
40812   as_ln_s=ln
40813 else
40814   as_ln_s='cp -p'
40815 fi
40816 rm -f conf$$ conf$$.exe conf$$.file
40817
40818 if mkdir -p . 2>/dev/null; then
40819   as_mkdir_p=:
40820 else
40821   test -d ./-p && rmdir ./-p
40822   as_mkdir_p=false
40823 fi
40824
40825 as_executable_p="test -f"
40826
40827 # Sed expression to map a string onto a valid CPP name.
40828 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40829
40830 # Sed expression to map a string onto a valid variable name.
40831 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40832
40833
40834 # IFS
40835 # We need space, tab and new line, in precisely that order.
40836 as_nl='
40837 '
40838 IFS="   $as_nl"
40839
40840 # CDPATH.
40841 $as_unset CDPATH
40842
40843 exec 6>&1
40844
40845 # Open the log real soon, to keep \$[0] and so on meaningful, and to
40846 # report actual input values of CONFIG_FILES etc. instead of their
40847 # values after options handling.  Logging --version etc. is OK.
40848 exec 5>>config.log
40849 {
40850   echo
40851   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40852 ## Running $as_me. ##
40853 _ASBOX
40854 } >&5
40855 cat >&5 <<_CSEOF
40856
40857 This file was extended by $as_me, which was
40858 generated by GNU Autoconf 2.59.  Invocation command line was
40859
40860   CONFIG_FILES    = $CONFIG_FILES
40861   CONFIG_HEADERS  = $CONFIG_HEADERS
40862   CONFIG_LINKS    = $CONFIG_LINKS
40863   CONFIG_COMMANDS = $CONFIG_COMMANDS
40864   $ $0 $@
40865
40866 _CSEOF
40867 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
40868 echo >&5
40869 _ACEOF
40870
40871 # Files that config.status was made for.
40872 if test -n "$ac_config_files"; then
40873   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
40874 fi
40875
40876 if test -n "$ac_config_headers"; then
40877   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
40878 fi
40879
40880 if test -n "$ac_config_links"; then
40881   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
40882 fi
40883
40884 if test -n "$ac_config_commands"; then
40885   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
40886 fi
40887
40888 cat >>$CONFIG_STATUS <<\_ACEOF
40889
40890 ac_cs_usage="\
40891 \`$as_me' instantiates files from templates according to the
40892 current configuration.
40893
40894 Usage: $0 [OPTIONS] [FILE]...
40895
40896   -h, --help       print this help, then exit
40897   -V, --version    print version number, then exit
40898   -q, --quiet      do not print progress messages
40899   -d, --debug      don't remove temporary files
40900       --recheck    update $as_me by reconfiguring in the same conditions
40901   --file=FILE[:TEMPLATE]
40902                    instantiate the configuration file FILE
40903   --header=FILE[:TEMPLATE]
40904                    instantiate the configuration header FILE
40905
40906 Configuration files:
40907 $config_files
40908
40909 Configuration headers:
40910 $config_headers
40911
40912 Configuration commands:
40913 $config_commands
40914
40915 Report bugs to <bug-autoconf@gnu.org>."
40916 _ACEOF
40917
40918 cat >>$CONFIG_STATUS <<_ACEOF
40919 ac_cs_version="\\
40920 config.status
40921 configured by $0, generated by GNU Autoconf 2.59,
40922   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
40923
40924 Copyright (C) 2003 Free Software Foundation, Inc.
40925 This config.status script is free software; the Free Software Foundation
40926 gives unlimited permission to copy, distribute and modify it."
40927 srcdir=$srcdir
40928 INSTALL="$INSTALL"
40929 _ACEOF
40930
40931 cat >>$CONFIG_STATUS <<\_ACEOF
40932 # If no file are specified by the user, then we need to provide default
40933 # value.  By we need to know if files were specified by the user.
40934 ac_need_defaults=:
40935 while test $# != 0
40936 do
40937   case $1 in
40938   --*=*)
40939     ac_option=`expr "x$1" : 'x\([^=]*\)='`
40940     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
40941     ac_shift=:
40942     ;;
40943   -*)
40944     ac_option=$1
40945     ac_optarg=$2
40946     ac_shift=shift
40947     ;;
40948   *) # This is not an option, so the user has probably given explicit
40949      # arguments.
40950      ac_option=$1
40951      ac_need_defaults=false;;
40952   esac
40953
40954   case $ac_option in
40955   # Handling of the options.
40956 _ACEOF
40957 cat >>$CONFIG_STATUS <<\_ACEOF
40958   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40959     ac_cs_recheck=: ;;
40960   --version | --vers* | -V )
40961     echo "$ac_cs_version"; exit 0 ;;
40962   --he | --h)
40963     # Conflict between --help and --header
40964     { { echo "$as_me:$LINENO: error: ambiguous option: $1
40965 Try \`$0 --help' for more information." >&5
40966 echo "$as_me: error: ambiguous option: $1
40967 Try \`$0 --help' for more information." >&2;}
40968    { (exit 1); exit 1; }; };;
40969   --help | --hel | -h )
40970     echo "$ac_cs_usage"; exit 0 ;;
40971   --debug | --d* | -d )
40972     debug=: ;;
40973   --file | --fil | --fi | --f )
40974     $ac_shift
40975     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40976     ac_need_defaults=false;;
40977   --header | --heade | --head | --hea )
40978     $ac_shift
40979     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40980     ac_need_defaults=false;;
40981   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40982   | -silent | --silent | --silen | --sile | --sil | --si | --s)
40983     ac_cs_silent=: ;;
40984
40985   # This is an error.
40986   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
40987 Try \`$0 --help' for more information." >&5
40988 echo "$as_me: error: unrecognized option: $1
40989 Try \`$0 --help' for more information." >&2;}
40990    { (exit 1); exit 1; }; } ;;
40991
40992   *) ac_config_targets="$ac_config_targets $1" ;;
40993
40994   esac
40995   shift
40996 done
40997
40998 ac_configure_extra_args=
40999
41000 if $ac_cs_silent; then
41001   exec 6>/dev/null
41002   ac_configure_extra_args="$ac_configure_extra_args --silent"
41003 fi
41004
41005 _ACEOF
41006 cat >>$CONFIG_STATUS <<_ACEOF
41007 if \$ac_cs_recheck; then
41008   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41009   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41010 fi
41011
41012 _ACEOF
41013
41014 cat >>$CONFIG_STATUS <<_ACEOF
41015 #
41016 # INIT-COMMANDS section.
41017 #
41018
41019 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41020
41021 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41022 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41023
41024
41025 _ACEOF
41026
41027
41028
41029 cat >>$CONFIG_STATUS <<\_ACEOF
41030 for ac_config_target in $ac_config_targets
41031 do
41032   case "$ac_config_target" in
41033   # Handling of arguments.
41034   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41035   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41036   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41037   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41038   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41039   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41040   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41041   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41042   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41043   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41044   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41045   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41046   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41047   "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" ;;
41048   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41049   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41050   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41051   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41052   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41053   "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" ;;
41054   "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" ;;
41055   "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" ;;
41056   "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" ;;
41057   "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" ;;
41058   "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" ;;
41059   "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" ;;
41060   "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" ;;
41061   "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" ;;
41062   "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" ;;
41063   "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" ;;
41064   "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" ;;
41065   "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" ;;
41066   "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" ;;
41067   "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" ;;
41068   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41069   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41070   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41071   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41072   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41073   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41074   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41075   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41076   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41077   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41078 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41079    { (exit 1); exit 1; }; };;
41080   esac
41081 done
41082
41083 # If the user did not use the arguments to specify the items to instantiate,
41084 # then the envvar interface is used.  Set only those that are not.
41085 # We use the long form for the default assignment because of an extremely
41086 # bizarre bug on SunOS 4.1.3.
41087 if $ac_need_defaults; then
41088   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41089   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41090   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41091 fi
41092
41093 # Have a temporary directory for convenience.  Make it in the build tree
41094 # simply because there is no reason to put it here, and in addition,
41095 # creating and moving files from /tmp can sometimes cause problems.
41096 # Create a temporary directory, and hook for its removal unless debugging.
41097 $debug ||
41098 {
41099   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41100   trap '{ (exit 1); exit 1; }' 1 2 13 15
41101 }
41102
41103 # Create a (secure) tmp directory for tmp files.
41104
41105 {
41106   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41107   test -n "$tmp" && test -d "$tmp"
41108 }  ||
41109 {
41110   tmp=./confstat$$-$RANDOM
41111   (umask 077 && mkdir $tmp)
41112 } ||
41113 {
41114    echo "$me: cannot create a temporary directory in ." >&2
41115    { (exit 1); exit 1; }
41116 }
41117
41118 _ACEOF
41119
41120 cat >>$CONFIG_STATUS <<_ACEOF
41121
41122 #
41123 # CONFIG_FILES section.
41124 #
41125
41126 # No need to generate the scripts if there are no CONFIG_FILES.
41127 # This happens for instance when ./config.status config.h
41128 if test -n "\$CONFIG_FILES"; then
41129   # Protect against being on the right side of a sed subst in config.status.
41130   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41131    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41132 s,@SHELL@,$SHELL,;t t
41133 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41134 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41135 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41136 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41137 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41138 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41139 s,@exec_prefix@,$exec_prefix,;t t
41140 s,@prefix@,$prefix,;t t
41141 s,@program_transform_name@,$program_transform_name,;t t
41142 s,@bindir@,$bindir,;t t
41143 s,@sbindir@,$sbindir,;t t
41144 s,@libexecdir@,$libexecdir,;t t
41145 s,@datadir@,$datadir,;t t
41146 s,@sysconfdir@,$sysconfdir,;t t
41147 s,@sharedstatedir@,$sharedstatedir,;t t
41148 s,@localstatedir@,$localstatedir,;t t
41149 s,@libdir@,$libdir,;t t
41150 s,@includedir@,$includedir,;t t
41151 s,@oldincludedir@,$oldincludedir,;t t
41152 s,@infodir@,$infodir,;t t
41153 s,@mandir@,$mandir,;t t
41154 s,@build_alias@,$build_alias,;t t
41155 s,@host_alias@,$host_alias,;t t
41156 s,@target_alias@,$target_alias,;t t
41157 s,@DEFS@,$DEFS,;t t
41158 s,@ECHO_C@,$ECHO_C,;t t
41159 s,@ECHO_N@,$ECHO_N,;t t
41160 s,@ECHO_T@,$ECHO_T,;t t
41161 s,@LIBS@,$LIBS,;t t
41162 s,@build@,$build,;t t
41163 s,@build_cpu@,$build_cpu,;t t
41164 s,@build_vendor@,$build_vendor,;t t
41165 s,@build_os@,$build_os,;t t
41166 s,@host@,$host,;t t
41167 s,@host_cpu@,$host_cpu,;t t
41168 s,@host_vendor@,$host_vendor,;t t
41169 s,@host_os@,$host_os,;t t
41170 s,@target@,$target,;t t
41171 s,@target_cpu@,$target_cpu,;t t
41172 s,@target_vendor@,$target_vendor,;t t
41173 s,@target_os@,$target_os,;t t
41174 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41175 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41176 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41177 s,@CYGPATH_W@,$CYGPATH_W,;t t
41178 s,@PACKAGE@,$PACKAGE,;t t
41179 s,@VERSION@,$VERSION,;t t
41180 s,@ACLOCAL@,$ACLOCAL,;t t
41181 s,@AUTOCONF@,$AUTOCONF,;t t
41182 s,@AUTOMAKE@,$AUTOMAKE,;t t
41183 s,@AUTOHEADER@,$AUTOHEADER,;t t
41184 s,@MAKEINFO@,$MAKEINFO,;t t
41185 s,@install_sh@,$install_sh,;t t
41186 s,@STRIP@,$STRIP,;t t
41187 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41188 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41189 s,@mkdir_p@,$mkdir_p,;t t
41190 s,@AWK@,$AWK,;t t
41191 s,@SET_MAKE@,$SET_MAKE,;t t
41192 s,@am__leading_dot@,$am__leading_dot,;t t
41193 s,@AMTAR@,$AMTAR,;t t
41194 s,@am__tar@,$am__tar,;t t
41195 s,@am__untar@,$am__untar,;t t
41196 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41197 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41198 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41199 s,@top_builddir@,$top_builddir,;t t
41200 s,@ldap_subdir@,$ldap_subdir,;t t
41201 s,@CC@,$CC,;t t
41202 s,@AR@,$AR,;t t
41203 s,@CFLAGS@,$CFLAGS,;t t
41204 s,@LDFLAGS@,$LDFLAGS,;t t
41205 s,@CPPFLAGS@,$CPPFLAGS,;t t
41206 s,@ac_ct_CC@,$ac_ct_CC,;t t
41207 s,@EXEEXT@,$EXEEXT,;t t
41208 s,@OBJEXT@,$OBJEXT,;t t
41209 s,@DEPDIR@,$DEPDIR,;t t
41210 s,@am__include@,$am__include,;t t
41211 s,@am__quote@,$am__quote,;t t
41212 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41213 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41214 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41215 s,@CCDEPMODE@,$CCDEPMODE,;t t
41216 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41217 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41218 s,@EGREP@,$EGREP,;t t
41219 s,@LN_S@,$LN_S,;t t
41220 s,@ECHO@,$ECHO,;t t
41221 s,@ac_ct_AR@,$ac_ct_AR,;t t
41222 s,@RANLIB@,$RANLIB,;t t
41223 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41224 s,@DLLTOOL@,$DLLTOOL,;t t
41225 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41226 s,@AS@,$AS,;t t
41227 s,@ac_ct_AS@,$ac_ct_AS,;t t
41228 s,@OBJDUMP@,$OBJDUMP,;t t
41229 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41230 s,@CPP@,$CPP,;t t
41231 s,@LIBTOOL@,$LIBTOOL,;t t
41232 s,@PERLBIN@,$PERLBIN,;t t
41233 s,@OL_MKDEP@,$OL_MKDEP,;t t
41234 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41235 s,@LTSTATIC@,$LTSTATIC,;t t
41236 s,@LIBOBJS@,$LIBOBJS,;t t
41237 s,@LIBSRCS@,$LIBSRCS,;t t
41238 s,@PLAT@,$PLAT,;t t
41239 s,@WITH_SASL@,$WITH_SASL,;t t
41240 s,@WITH_TLS@,$WITH_TLS,;t t
41241 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41242 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41243 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41244 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41245 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41246 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41247 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41248 s,@BUILD_BDB@,$BUILD_BDB,;t t
41249 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41250 s,@BUILD_HDB@,$BUILD_HDB,;t t
41251 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41252 s,@BUILD_META@,$BUILD_META,;t t
41253 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41254 s,@BUILD_NULL@,$BUILD_NULL,;t t
41255 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41256 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41257 s,@BUILD_PERL@,$BUILD_PERL,;t t
41258 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41259 s,@BUILD_SQL@,$BUILD_SQL,;t t
41260 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41261 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41262 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41263 s,@BUILD_DDS@,$BUILD_DDS,;t t
41264 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41265 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41266 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41267 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41268 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41269 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41270 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41271 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41272 s,@BUILD_RWM@,$BUILD_RWM,;t t
41273 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41274 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41275 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41276 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41277 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41278 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41279 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41280 s,@BDB_LIBS@,$BDB_LIBS,;t t
41281 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41282 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41283 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41284 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41285 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41286 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41287 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41288 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41289 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41290 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41291 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41292 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41293 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41294 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41295 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41296 s,@SASL_LIBS@,$SASL_LIBS,;t t
41297 s,@TLS_LIBS@,$TLS_LIBS,;t t
41298 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41299 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41300 s,@LIBSLAPI@,$LIBSLAPI,;t t
41301 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41302 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41303 s,@ICU_LIBS@,$ICU_LIBS,;t t
41304 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41305 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41306 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41307 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41308 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41309 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41310 CEOF
41311
41312 _ACEOF
41313
41314   cat >>$CONFIG_STATUS <<\_ACEOF
41315   # Split the substitutions into bite-sized pieces for seds with
41316   # small command number limits, like on Digital OSF/1 and HP-UX.
41317   ac_max_sed_lines=48
41318   ac_sed_frag=1 # Number of current file.
41319   ac_beg=1 # First line for current file.
41320   ac_end=$ac_max_sed_lines # Line after last line for current file.
41321   ac_more_lines=:
41322   ac_sed_cmds=
41323   while $ac_more_lines; do
41324     if test $ac_beg -gt 1; then
41325       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41326     else
41327       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41328     fi
41329     if test ! -s $tmp/subs.frag; then
41330       ac_more_lines=false
41331     else
41332       # The purpose of the label and of the branching condition is to
41333       # speed up the sed processing (if there are no `@' at all, there
41334       # is no need to browse any of the substitutions).
41335       # These are the two extra sed commands mentioned above.
41336       (echo ':t
41337   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41338       if test -z "$ac_sed_cmds"; then
41339         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41340       else
41341         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41342       fi
41343       ac_sed_frag=`expr $ac_sed_frag + 1`
41344       ac_beg=$ac_end
41345       ac_end=`expr $ac_end + $ac_max_sed_lines`
41346     fi
41347   done
41348   if test -z "$ac_sed_cmds"; then
41349     ac_sed_cmds=cat
41350   fi
41351 fi # test -n "$CONFIG_FILES"
41352
41353 _ACEOF
41354 cat >>$CONFIG_STATUS <<\_ACEOF
41355 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41356   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41357   case $ac_file in
41358   - | *:- | *:-:* ) # input from stdin
41359         cat >$tmp/stdin
41360         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41361         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41362   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41363         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41364   * )   ac_file_in=$ac_file.in ;;
41365   esac
41366
41367   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41368   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41369 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41370          X"$ac_file" : 'X\(//\)[^/]' \| \
41371          X"$ac_file" : 'X\(//\)$' \| \
41372          X"$ac_file" : 'X\(/\)' \| \
41373          .     : '\(.\)' 2>/dev/null ||
41374 echo X"$ac_file" |
41375     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41376           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41377           /^X\(\/\/\)$/{ s//\1/; q; }
41378           /^X\(\/\).*/{ s//\1/; q; }
41379           s/.*/./; q'`
41380   { if $as_mkdir_p; then
41381     mkdir -p "$ac_dir"
41382   else
41383     as_dir="$ac_dir"
41384     as_dirs=
41385     while test ! -d "$as_dir"; do
41386       as_dirs="$as_dir $as_dirs"
41387       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41389          X"$as_dir" : 'X\(//\)[^/]' \| \
41390          X"$as_dir" : 'X\(//\)$' \| \
41391          X"$as_dir" : 'X\(/\)' \| \
41392          .     : '\(.\)' 2>/dev/null ||
41393 echo X"$as_dir" |
41394     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41395           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41396           /^X\(\/\/\)$/{ s//\1/; q; }
41397           /^X\(\/\).*/{ s//\1/; q; }
41398           s/.*/./; q'`
41399     done
41400     test ! -n "$as_dirs" || mkdir $as_dirs
41401   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41402 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41403    { (exit 1); exit 1; }; }; }
41404
41405   ac_builddir=.
41406
41407 if test "$ac_dir" != .; then
41408   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41409   # A "../" for each directory in $ac_dir_suffix.
41410   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41411 else
41412   ac_dir_suffix= ac_top_builddir=
41413 fi
41414
41415 case $srcdir in
41416   .)  # No --srcdir option.  We are building in place.
41417     ac_srcdir=.
41418     if test -z "$ac_top_builddir"; then
41419        ac_top_srcdir=.
41420     else
41421        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41422     fi ;;
41423   [\\/]* | ?:[\\/]* )  # Absolute path.
41424     ac_srcdir=$srcdir$ac_dir_suffix;
41425     ac_top_srcdir=$srcdir ;;
41426   *) # Relative path.
41427     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41428     ac_top_srcdir=$ac_top_builddir$srcdir ;;
41429 esac
41430
41431 # Do not use `cd foo && pwd` to compute absolute paths, because
41432 # the directories may not exist.
41433 case `pwd` in
41434 .) ac_abs_builddir="$ac_dir";;
41435 *)
41436   case "$ac_dir" in
41437   .) ac_abs_builddir=`pwd`;;
41438   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41439   *) ac_abs_builddir=`pwd`/"$ac_dir";;
41440   esac;;
41441 esac
41442 case $ac_abs_builddir in
41443 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41444 *)
41445   case ${ac_top_builddir}. in
41446   .) ac_abs_top_builddir=$ac_abs_builddir;;
41447   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41448   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41449   esac;;
41450 esac
41451 case $ac_abs_builddir in
41452 .) ac_abs_srcdir=$ac_srcdir;;
41453 *)
41454   case $ac_srcdir in
41455   .) ac_abs_srcdir=$ac_abs_builddir;;
41456   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41457   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41458   esac;;
41459 esac
41460 case $ac_abs_builddir in
41461 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41462 *)
41463   case $ac_top_srcdir in
41464   .) ac_abs_top_srcdir=$ac_abs_builddir;;
41465   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41466   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41467   esac;;
41468 esac
41469
41470
41471   case $INSTALL in
41472   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41473   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41474   esac
41475
41476   if test x"$ac_file" != x-; then
41477     { echo "$as_me:$LINENO: creating $ac_file" >&5
41478 echo "$as_me: creating $ac_file" >&6;}
41479     rm -f "$ac_file"
41480   fi
41481   # Let's still pretend it is `configure' which instantiates (i.e., don't
41482   # use $as_me), people would be surprised to read:
41483   #    /* config.h.  Generated by config.status.  */
41484   if test x"$ac_file" = x-; then
41485     configure_input=
41486   else
41487     configure_input="$ac_file.  "
41488   fi
41489   configure_input=$configure_input"Generated from `echo $ac_file_in |
41490                                      sed 's,.*/,,'` by configure."
41491
41492   # First look for the input files in the build tree, otherwise in the
41493   # src tree.
41494   ac_file_inputs=`IFS=:
41495     for f in $ac_file_in; do
41496       case $f in
41497       -) echo $tmp/stdin ;;
41498       [\\/$]*)
41499          # Absolute (can't be DOS-style, as IFS=:)
41500          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41501 echo "$as_me: error: cannot find input file: $f" >&2;}
41502    { (exit 1); exit 1; }; }
41503          echo "$f";;
41504       *) # Relative
41505          if test -f "$f"; then
41506            # Build tree
41507            echo "$f"
41508          elif test -f "$srcdir/$f"; then
41509            # Source tree
41510            echo "$srcdir/$f"
41511          else
41512            # /dev/null tree
41513            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41514 echo "$as_me: error: cannot find input file: $f" >&2;}
41515    { (exit 1); exit 1; }; }
41516          fi;;
41517       esac
41518     done` || { (exit 1); exit 1; }
41519 _ACEOF
41520 cat >>$CONFIG_STATUS <<_ACEOF
41521   sed "$ac_vpsub
41522 $extrasub
41523 _ACEOF
41524 cat >>$CONFIG_STATUS <<\_ACEOF
41525 :t
41526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41527 s,@configure_input@,$configure_input,;t t
41528 s,@srcdir@,$ac_srcdir,;t t
41529 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41530 s,@top_srcdir@,$ac_top_srcdir,;t t
41531 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41532 s,@builddir@,$ac_builddir,;t t
41533 s,@abs_builddir@,$ac_abs_builddir,;t t
41534 s,@top_builddir@,$ac_top_builddir,;t t
41535 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41536 s,@INSTALL@,$ac_INSTALL,;t t
41537 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41538   rm -f $tmp/stdin
41539   if test x"$ac_file" != x-; then
41540     mv $tmp/out $ac_file
41541   else
41542     cat $tmp/out
41543     rm -f $tmp/out
41544   fi
41545
41546 done
41547 _ACEOF
41548 cat >>$CONFIG_STATUS <<\_ACEOF
41549
41550 #
41551 # CONFIG_HEADER section.
41552 #
41553
41554 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41555 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41556 #
41557 # ac_d sets the value in "#define NAME VALUE" lines.
41558 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
41559 ac_dB='[         ].*$,\1#\2'
41560 ac_dC=' '
41561 ac_dD=',;t'
41562 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41563 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
41564 ac_uB='$,\1#\2define\3'
41565 ac_uC=' '
41566 ac_uD=',;t'
41567
41568 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41569   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41570   case $ac_file in
41571   - | *:- | *:-:* ) # input from stdin
41572         cat >$tmp/stdin
41573         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41574         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41575   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41576         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41577   * )   ac_file_in=$ac_file.in ;;
41578   esac
41579
41580   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41581 echo "$as_me: creating $ac_file" >&6;}
41582
41583   # First look for the input files in the build tree, otherwise in the
41584   # src tree.
41585   ac_file_inputs=`IFS=:
41586     for f in $ac_file_in; do
41587       case $f in
41588       -) echo $tmp/stdin ;;
41589       [\\/$]*)
41590          # Absolute (can't be DOS-style, as IFS=:)
41591          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41592 echo "$as_me: error: cannot find input file: $f" >&2;}
41593    { (exit 1); exit 1; }; }
41594          # Do quote $f, to prevent DOS paths from being IFS'd.
41595          echo "$f";;
41596       *) # Relative
41597          if test -f "$f"; then
41598            # Build tree
41599            echo "$f"
41600          elif test -f "$srcdir/$f"; then
41601            # Source tree
41602            echo "$srcdir/$f"
41603          else
41604            # /dev/null tree
41605            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41606 echo "$as_me: error: cannot find input file: $f" >&2;}
41607    { (exit 1); exit 1; }; }
41608          fi;;
41609       esac
41610     done` || { (exit 1); exit 1; }
41611   # Remove the trailing spaces.
41612   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
41613
41614 _ACEOF
41615
41616 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41617 # `conftest.undefs', that substitutes the proper values into
41618 # config.h.in to produce config.h.  The first handles `#define'
41619 # templates, and the second `#undef' templates.
41620 # And first: Protect against being on the right side of a sed subst in
41621 # config.status.  Protect against being in an unquoted here document
41622 # in config.status.
41623 rm -f conftest.defines conftest.undefs
41624 # Using a here document instead of a string reduces the quoting nightmare.
41625 # Putting comments in sed scripts is not portable.
41626 #
41627 # `end' is used to avoid that the second main sed command (meant for
41628 # 0-ary CPP macros) applies to n-ary macro definitions.
41629 # See the Autoconf documentation for `clear'.
41630 cat >confdef2sed.sed <<\_ACEOF
41631 s/[\\&,]/\\&/g
41632 s,[\\$`],\\&,g
41633 t clear
41634 : clear
41635 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41636 t end
41637 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41638 : end
41639 _ACEOF
41640 # If some macros were called several times there might be several times
41641 # the same #defines, which is useless.  Nevertheless, we may not want to
41642 # sort them, since we want the *last* AC-DEFINE to be honored.
41643 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41644 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41645 rm -f confdef2sed.sed
41646
41647 # This sed command replaces #undef with comments.  This is necessary, for
41648 # example, in the case of _POSIX_SOURCE, which is predefined and required
41649 # on some systems where configure will not decide to define it.
41650 cat >>conftest.undefs <<\_ACEOF
41651 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41652 _ACEOF
41653
41654 # Break up conftest.defines because some shells have a limit on the size
41655 # of here documents, and old seds have small limits too (100 cmds).
41656 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41657 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41658 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41659 echo '  :' >>$CONFIG_STATUS
41660 rm -f conftest.tail
41661 while grep . conftest.defines >/dev/null
41662 do
41663   # Write a limited-size here document to $tmp/defines.sed.
41664   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41665   # Speed up: don't consider the non `#define' lines.
41666   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
41667   # Work around the forget-to-reset-the-flag bug.
41668   echo 't clr' >>$CONFIG_STATUS
41669   echo ': clr' >>$CONFIG_STATUS
41670   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41671   echo 'CEOF
41672   sed -f $tmp/defines.sed $tmp/in >$tmp/out
41673   rm -f $tmp/in
41674   mv $tmp/out $tmp/in
41675 ' >>$CONFIG_STATUS
41676   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41677   rm -f conftest.defines
41678   mv conftest.tail conftest.defines
41679 done
41680 rm -f conftest.defines
41681 echo '  fi # grep' >>$CONFIG_STATUS
41682 echo >>$CONFIG_STATUS
41683
41684 # Break up conftest.undefs because some shells have a limit on the size
41685 # of here documents, and old seds have small limits too (100 cmds).
41686 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
41687 rm -f conftest.tail
41688 while grep . conftest.undefs >/dev/null
41689 do
41690   # Write a limited-size here document to $tmp/undefs.sed.
41691   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41692   # Speed up: don't consider the non `#undef'
41693   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
41694   # Work around the forget-to-reset-the-flag bug.
41695   echo 't clr' >>$CONFIG_STATUS
41696   echo ': clr' >>$CONFIG_STATUS
41697   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41698   echo 'CEOF
41699   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41700   rm -f $tmp/in
41701   mv $tmp/out $tmp/in
41702 ' >>$CONFIG_STATUS
41703   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41704   rm -f conftest.undefs
41705   mv conftest.tail conftest.undefs
41706 done
41707 rm -f conftest.undefs
41708
41709 cat >>$CONFIG_STATUS <<\_ACEOF
41710   # Let's still pretend it is `configure' which instantiates (i.e., don't
41711   # use $as_me), people would be surprised to read:
41712   #    /* config.h.  Generated by config.status.  */
41713   if test x"$ac_file" = x-; then
41714     echo "/* Generated by configure.  */" >$tmp/config.h
41715   else
41716     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
41717   fi
41718   cat $tmp/in >>$tmp/config.h
41719   rm -f $tmp/in
41720   if test x"$ac_file" != x-; then
41721     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41722       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41723 echo "$as_me: $ac_file is unchanged" >&6;}
41724     else
41725       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41726 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41727          X"$ac_file" : 'X\(//\)[^/]' \| \
41728          X"$ac_file" : 'X\(//\)$' \| \
41729          X"$ac_file" : 'X\(/\)' \| \
41730          .     : '\(.\)' 2>/dev/null ||
41731 echo X"$ac_file" |
41732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41733           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41734           /^X\(\/\/\)$/{ s//\1/; q; }
41735           /^X\(\/\).*/{ s//\1/; q; }
41736           s/.*/./; q'`
41737       { if $as_mkdir_p; then
41738     mkdir -p "$ac_dir"
41739   else
41740     as_dir="$ac_dir"
41741     as_dirs=
41742     while test ! -d "$as_dir"; do
41743       as_dirs="$as_dir $as_dirs"
41744       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41745 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41746          X"$as_dir" : 'X\(//\)[^/]' \| \
41747          X"$as_dir" : 'X\(//\)$' \| \
41748          X"$as_dir" : 'X\(/\)' \| \
41749          .     : '\(.\)' 2>/dev/null ||
41750 echo X"$as_dir" |
41751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41752           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41753           /^X\(\/\/\)$/{ s//\1/; q; }
41754           /^X\(\/\).*/{ s//\1/; q; }
41755           s/.*/./; q'`
41756     done
41757     test ! -n "$as_dirs" || mkdir $as_dirs
41758   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41759 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41760    { (exit 1); exit 1; }; }; }
41761
41762       rm -f $ac_file
41763       mv $tmp/config.h $ac_file
41764     fi
41765   else
41766     cat $tmp/config.h
41767     rm -f $tmp/config.h
41768   fi
41769 # Compute $ac_file's index in $config_headers.
41770 _am_stamp_count=1
41771 for _am_header in $config_headers :; do
41772   case $_am_header in
41773     $ac_file | $ac_file:* )
41774       break ;;
41775     * )
41776       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41777   esac
41778 done
41779 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
41780 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41781          X$ac_file : 'X\(//\)[^/]' \| \
41782          X$ac_file : 'X\(//\)$' \| \
41783          X$ac_file : 'X\(/\)' \| \
41784          .     : '\(.\)' 2>/dev/null ||
41785 echo X$ac_file |
41786     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41787           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41788           /^X\(\/\/\)$/{ s//\1/; q; }
41789           /^X\(\/\).*/{ s//\1/; q; }
41790           s/.*/./; q'`/stamp-h$_am_stamp_count
41791 done
41792 _ACEOF
41793 cat >>$CONFIG_STATUS <<\_ACEOF
41794
41795 #
41796 # CONFIG_COMMANDS section.
41797 #
41798 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
41799   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
41800   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
41801   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
41802 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41803          X"$ac_dest" : 'X\(//\)[^/]' \| \
41804          X"$ac_dest" : 'X\(//\)$' \| \
41805          X"$ac_dest" : 'X\(/\)' \| \
41806          .     : '\(.\)' 2>/dev/null ||
41807 echo X"$ac_dest" |
41808     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41809           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41810           /^X\(\/\/\)$/{ s//\1/; q; }
41811           /^X\(\/\).*/{ s//\1/; q; }
41812           s/.*/./; q'`
41813   { if $as_mkdir_p; then
41814     mkdir -p "$ac_dir"
41815   else
41816     as_dir="$ac_dir"
41817     as_dirs=
41818     while test ! -d "$as_dir"; do
41819       as_dirs="$as_dir $as_dirs"
41820       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41822          X"$as_dir" : 'X\(//\)[^/]' \| \
41823          X"$as_dir" : 'X\(//\)$' \| \
41824          X"$as_dir" : 'X\(/\)' \| \
41825          .     : '\(.\)' 2>/dev/null ||
41826 echo X"$as_dir" |
41827     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41828           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41829           /^X\(\/\/\)$/{ s//\1/; q; }
41830           /^X\(\/\).*/{ s//\1/; q; }
41831           s/.*/./; q'`
41832     done
41833     test ! -n "$as_dirs" || mkdir $as_dirs
41834   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41835 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41836    { (exit 1); exit 1; }; }; }
41837
41838   ac_builddir=.
41839
41840 if test "$ac_dir" != .; then
41841   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41842   # A "../" for each directory in $ac_dir_suffix.
41843   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41844 else
41845   ac_dir_suffix= ac_top_builddir=
41846 fi
41847
41848 case $srcdir in
41849   .)  # No --srcdir option.  We are building in place.
41850     ac_srcdir=.
41851     if test -z "$ac_top_builddir"; then
41852        ac_top_srcdir=.
41853     else
41854        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41855     fi ;;
41856   [\\/]* | ?:[\\/]* )  # Absolute path.
41857     ac_srcdir=$srcdir$ac_dir_suffix;
41858     ac_top_srcdir=$srcdir ;;
41859   *) # Relative path.
41860     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41861     ac_top_srcdir=$ac_top_builddir$srcdir ;;
41862 esac
41863
41864 # Do not use `cd foo && pwd` to compute absolute paths, because
41865 # the directories may not exist.
41866 case `pwd` in
41867 .) ac_abs_builddir="$ac_dir";;
41868 *)
41869   case "$ac_dir" in
41870   .) ac_abs_builddir=`pwd`;;
41871   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41872   *) ac_abs_builddir=`pwd`/"$ac_dir";;
41873   esac;;
41874 esac
41875 case $ac_abs_builddir in
41876 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41877 *)
41878   case ${ac_top_builddir}. in
41879   .) ac_abs_top_builddir=$ac_abs_builddir;;
41880   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41881   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41882   esac;;
41883 esac
41884 case $ac_abs_builddir in
41885 .) ac_abs_srcdir=$ac_srcdir;;
41886 *)
41887   case $ac_srcdir in
41888   .) ac_abs_srcdir=$ac_abs_builddir;;
41889   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41890   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41891   esac;;
41892 esac
41893 case $ac_abs_builddir in
41894 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41895 *)
41896   case $ac_top_srcdir in
41897   .) ac_abs_top_srcdir=$ac_abs_builddir;;
41898   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41899   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41900   esac;;
41901 esac
41902
41903
41904   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
41905 echo "$as_me: executing $ac_dest commands" >&6;}
41906   case $ac_dest in
41907     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
41908   # Strip MF so we end up with the name of the file.
41909   mf=`echo "$mf" | sed -e 's/:.*$//'`
41910   # Check whether this is an Automake generated Makefile or not.
41911   # We used to match only the files named `Makefile.in', but
41912   # some people rename them; so instead we look at the file content.
41913   # Grep'ing the first line is not enough: some people post-process
41914   # each Makefile.in and add a new line on top of each file to say so.
41915   # So let's grep whole file.
41916   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
41917     dirpart=`(dirname "$mf") 2>/dev/null ||
41918 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41919          X"$mf" : 'X\(//\)[^/]' \| \
41920          X"$mf" : 'X\(//\)$' \| \
41921          X"$mf" : 'X\(/\)' \| \
41922          .     : '\(.\)' 2>/dev/null ||
41923 echo X"$mf" |
41924     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41925           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41926           /^X\(\/\/\)$/{ s//\1/; q; }
41927           /^X\(\/\).*/{ s//\1/; q; }
41928           s/.*/./; q'`
41929   else
41930     continue
41931   fi
41932   # Extract the definition of DEPDIR, am__include, and am__quote
41933   # from the Makefile without running `make'.
41934   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
41935   test -z "$DEPDIR" && continue
41936   am__include=`sed -n 's/^am__include = //p' < "$mf"`
41937   test -z "am__include" && continue
41938   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
41939   # When using ansi2knr, U may be empty or an underscore; expand it
41940   U=`sed -n 's/^U = //p' < "$mf"`
41941   # Find all dependency output files, they are included files with
41942   # $(DEPDIR) in their names.  We invoke sed twice because it is the
41943   # simplest approach to changing $(DEPDIR) to its actual value in the
41944   # expansion.
41945   for file in `sed -n "
41946     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
41947        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
41948     # Make sure the directory exists.
41949     test -f "$dirpart/$file" && continue
41950     fdir=`(dirname "$file") 2>/dev/null ||
41951 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41952          X"$file" : 'X\(//\)[^/]' \| \
41953          X"$file" : 'X\(//\)$' \| \
41954          X"$file" : 'X\(/\)' \| \
41955          .     : '\(.\)' 2>/dev/null ||
41956 echo X"$file" |
41957     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41958           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41959           /^X\(\/\/\)$/{ s//\1/; q; }
41960           /^X\(\/\).*/{ s//\1/; q; }
41961           s/.*/./; q'`
41962     { if $as_mkdir_p; then
41963     mkdir -p $dirpart/$fdir
41964   else
41965     as_dir=$dirpart/$fdir
41966     as_dirs=
41967     while test ! -d "$as_dir"; do
41968       as_dirs="$as_dir $as_dirs"
41969       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41971          X"$as_dir" : 'X\(//\)[^/]' \| \
41972          X"$as_dir" : 'X\(//\)$' \| \
41973          X"$as_dir" : 'X\(/\)' \| \
41974          .     : '\(.\)' 2>/dev/null ||
41975 echo X"$as_dir" |
41976     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41977           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41978           /^X\(\/\/\)$/{ s//\1/; q; }
41979           /^X\(\/\).*/{ s//\1/; q; }
41980           s/.*/./; q'`
41981     done
41982     test ! -n "$as_dirs" || mkdir $as_dirs
41983   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
41984 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
41985    { (exit 1); exit 1; }; }; }
41986
41987     # echo "creating $dirpart/$file"
41988     echo '# dummy' > "$dirpart/$file"
41989   done
41990 done
41991  ;;
41992     default )
41993 chmod +x tests/run
41994 date > stamp-h
41995 BACKENDSC="servers/slapd/backends.c"
41996 echo "Making $BACKENDSC"
41997 rm -f $BACKENDSC
41998 cat > $BACKENDSC << ENDX
41999 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42000  *
42001  * Copyright 1998-2007 The OpenLDAP Foundation.
42002  * All rights reserved.
42003  *
42004  * Redistribution and use in source and binary forms, with or without
42005  * modification, are permitted only as authorized by the OpenLDAP
42006  * Public License.
42007  *
42008  * A copy of this license is available in the file LICENSE in the
42009  * top-level directory of the distribution or, alternatively, at
42010  * <http://www.OpenLDAP.org/license.html>.
42011  */
42012 /* This file is automatically generated by configure; please do not edit. */
42013
42014 #include "portable.h"
42015 #include "slap.h"
42016
42017 ENDX
42018 if test "${STATIC_BACKENDS}"; then
42019         for b in config ${STATIC_BACKENDS}; do
42020                 bb=`echo "${b}" | sed -e 's/back-//'`
42021                 cat >> $BACKENDSC << ENDX
42022 extern BI_init ${bb}_back_initialize;
42023 ENDX
42024         done
42025
42026         cat >> $BACKENDSC << ENDX
42027
42028 BackendInfo slap_binfo[] = {
42029 ENDX
42030
42031         for b in config ${STATIC_BACKENDS}; do
42032                 bb=`echo "${b}" | sed -e 's/back-//'`
42033                 echo "    Add ${bb} ..."
42034                 cat >> $BACKENDSC << ENDX
42035         { "${bb}", ${bb}_back_initialize },
42036 ENDX
42037         done
42038
42039         cat >> $BACKENDSC << ENDX
42040         { NULL, NULL },
42041 };
42042
42043 /* end of generated file */
42044 ENDX
42045 fi
42046 OVERLAYSC="servers/slapd/overlays/statover.c"
42047 echo "Making $OVERLAYSC"
42048 rm -f $OVERLAYSC
42049 cat > $OVERLAYSC << ENDX
42050 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42051  *
42052  * Copyright 1998-2007 The OpenLDAP Foundation.
42053  * All rights reserved.
42054  *
42055  * Redistribution and use in source and binary forms, with or without
42056  * modification, are permitted only as authorized by the OpenLDAP
42057  * Public License.
42058  *
42059  * A copy of this license is available in the file LICENSE in the
42060  * top-level directory of the distribution or, alternatively, at
42061  * <http://www.OpenLDAP.org/license.html>.
42062  */
42063 /* This file is automatically generated by configure; please do not edit. */
42064
42065 #include "portable.h"
42066 #include "slap.h"
42067
42068 ENDX
42069 if test "${STATIC_OVERLAYS}"; then
42070         for o in ${STATIC_OVERLAYS}; do
42071                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42072                 cat >> $OVERLAYSC << ENDX
42073 extern OV_init ${oo}_initialize;
42074 ENDX
42075         done
42076 fi
42077
42078 cat >> $OVERLAYSC << ENDX
42079
42080 OverlayInit slap_oinfo[] = {
42081 ENDX
42082
42083 if test "${STATIC_OVERLAYS}"; then
42084         for o in ${STATIC_OVERLAYS}; do
42085                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42086                 echo "    Add ${oo} ..."
42087                 cat >> $OVERLAYSC << ENDX
42088         { "${oo}", ${oo}_initialize },
42089 ENDX
42090         done
42091 fi
42092
42093         cat >> $OVERLAYSC << ENDX
42094         { NULL, NULL },
42095 };
42096
42097 /* end of generated file */
42098 ENDX
42099
42100 echo Please run \"make depend\" to build dependencies
42101  ;;
42102   esac
42103 done
42104 _ACEOF
42105
42106 cat >>$CONFIG_STATUS <<\_ACEOF
42107
42108 { (exit 0); exit 0; }
42109 _ACEOF
42110 chmod +x $CONFIG_STATUS
42111 ac_clean_files=$ac_clean_files_save
42112
42113
42114 # configure is writing to config.log, and then calls config.status.
42115 # config.status does its own redirection, appending to config.log.
42116 # Unfortunately, on DOS this fails, as config.log is still kept open
42117 # by configure, so config.status won't be able to write to it; its
42118 # output is simply discarded.  So we exec the FD to /dev/null,
42119 # effectively closing config.log, so it can be properly (re)opened and
42120 # appended to by config.status.  When coming back to configure, we
42121 # need to make the FD available again.
42122 if test "$no_create" != yes; then
42123   ac_cs_success=:
42124   ac_config_status_args=
42125   test "$silent" = yes &&
42126     ac_config_status_args="$ac_config_status_args --quiet"
42127   exec 5>/dev/null
42128   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42129   exec 5>>config.log
42130   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42131   # would make configure fail if this is the last instruction.
42132   $ac_cs_success || { (exit 1); exit 1; }
42133 fi
42134